Discussion:
Papervision and loading DAE files
DrColinL
2011-01-09 22:38:14 UTC
Permalink
Quick question.

We're using Flash 10 and papervision for our 3d art. We're not doing
animation, more of a display of objects the user can position. They are
fairly high poly count but placeholders are put in for adjusting the camera
(low poly count) and you can switch back to the high detail object at a
button click. Works fine... so far so good.

Unfortunately the dae files are large in some cases (several hundred K). If
the user could have the object pack local on their machine Flash 10 could
load them locally. Unfortunately Flash 10 only lets you chose individual
files to load. Solution to this is, due to the fact DAE files are XML, put
all the DAE objects in one XML file and cache the objects in memory creating
the model objects as and when needed. Downside is textures will still need
to be fetched from the server (these are small files so no big deal).

Question. If I have a DAE XML file in memory how can I create a model
object with this data (I can't pass a file value in as I already have the
XML file in RAM). Can this be done; if so, how?

Thanks

Colin
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Papervision-and-loading-DAE-files-tp3206372p3206372.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Don Bloomfield
2011-01-10 00:28:43 UTC
Permalink
Hi,

I'm no expert, but you might want to look at the following link as well
before working out your solution:
http://blog.teleranek.org/?p=9

I suspect rolling your own parser from the existing code will be best, and
you should be able to incorporate your single xml setup, as well as optimise
fairly significantly.

Don
Have a great day

-----Original Message-----
From: papervision3d-bounces-***@public.gmane.org
[mailto:papervision3d-bounces-***@public.gmane.org] On Behalf Of DrColinL
Sent: Monday, 10 January 2011 9:38 AM
To: papervision3D-***@public.gmane.org
Subject: [Papervision3D] Papervision and loading DAE files


Quick question.

We're using Flash 10 and papervision for our 3d art. We're not doing
animation, more of a display of objects the user can position. They are
fairly high poly count but placeholders are put in for adjusting the camera
(low poly count) and you can switch back to the high detail object at a
button click. Works fine... so far so good.

Unfortunately the dae files are large in some cases (several hundred K). If
the user could have the object pack local on their machine Flash 10 could
load them locally. Unfortunately Flash 10 only lets you chose individual
files to load. Solution to this is, due to the fact DAE files are XML, put
all the DAE objects in one XML file and cache the objects in memory creating
the model objects as and when needed. Downside is textures will still need
to be fetched from the server (these are small files so no big deal).

Question. If I have a DAE XML file in memory how can I create a model
object with this data (I can't pass a file value in as I already have the
XML file in RAM). Can this be done; if so, how?

Thanks

Colin
--
View this message in context:
http://papervision3d.758870.n4.nabble.com/Papervision-and-loading-DAE-files-
tp3206372p3206372.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Dr. C Layfield
2011-01-10 00:47:35 UTC
Permalink
Thanks for the link. Pretty shocking reading really.

Perhaps it is better to embed my dae objects in the SWF file itself. Does anyone have any experience as to how difficult this is and roughly how much larger your SWF will end up if I embedded 2MB of DAE files into it? Performance issues I should be aware of?

Thanks!

Colin
Post by Don Bloomfield
Hi,
I'm no expert, but you might want to look at the following link as well
http://blog.teleranek.org/?p=9
I suspect rolling your own parser from the existing code will be best, and
you should be able to incorporate your single xml setup, as well as optimise
fairly significantly.
Don
Have a great day
-----Original Message-----
Sent: Monday, 10 January 2011 9:38 AM
Subject: [Papervision3D] Papervision and loading DAE files
Quick question.
We're using Flash 10 and papervision for our 3d art. We're not doing
animation, more of a display of objects the user can position. They are
fairly high poly count but placeholders are put in for adjusting the camera
(low poly count) and you can switch back to the high detail object at a
button click. Works fine... so far so good.
Unfortunately the dae files are large in some cases (several hundred K). If
the user could have the object pack local on their machine Flash 10 could
load them locally. Unfortunately Flash 10 only lets you chose individual
files to load. Solution to this is, due to the fact DAE files are XML, put
all the DAE objects in one XML file and cache the objects in memory creating
the model objects as and when needed. Downside is textures will still need
to be fetched from the server (these are small files so no big deal).
Question. If I have a DAE XML file in memory how can I create a model
object with this data (I can't pass a file value in as I already have the
XML file in RAM). Can this be done; if so, how?
Thanks
Colin
--
http://papervision3d.758870.n4.nabble.com/Papervision-and-loading-DAE-files-
tp3206372p3206372.html
Sent from the Papervision3D mailing list archive at Nabble.com.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Merrill, Jason
2011-01-10 19:01:58 UTC
Permalink
There is an add-on for Blender (which as you may know is a free 3D app) to convert a 3d model to pure Actionscript 3. Then you can add models to your scene just by adding a new instance of a class. You could then, have your 3d models each as individual .swf files, which you could do all the normal loading techniques on. I've tried it before, worked well. I don't know all the ins and outs of importing a DAE to Blender, but shouldn't be too much trouble. Might be worth looking into.

If you can't locate the name of the plug-in, let me know and I'll dig into my archives and find it for you (can't recall off the top of my head)

Jason Merrill
Instructional Technology Architect
Bank of America Global Learning





_______________________

-----Original Message-----
From: papervision3d-bounces-***@public.gmane.org [mailto:papervision3d-bounces-***@public.gmane.org] On Behalf Of Dr. C Layfield
Sent: Sunday, January 09, 2011 7:48 PM
To: papervision3d-***@public.gmane.org
Subject: Re: [Papervision3D] Papervision and loading DAE files

Thanks for the link. Pretty shocking reading really.

Perhaps it is better to embed my dae objects in the SWF file itself. Does anyone have any experience as to how difficult this is and roughly how much larger your SWF will end up if I embedded 2MB of DAE files into it? Performance issues I should be aware of?

Thanks!

Colin
Post by Don Bloomfield
Hi,
I'm no expert, but you might want to look at the following link as
http://blog.teleranek.org/?p=9
I suspect rolling your own parser from the existing code will be best,
and you should be able to incorporate your single xml setup, as well
as optimise fairly significantly.
Don
Have a great day
-----Original Message-----
Sent: Monday, 10 January 2011 9:38 AM
Subject: [Papervision3D] Papervision and loading DAE files
Quick question.
We're using Flash 10 and papervision for our 3d art. We're not doing
animation, more of a display of objects the user can position. They
are fairly high poly count but placeholders are put in for adjusting
the camera (low poly count) and you can switch back to the high detail
object at a button click. Works fine... so far so good.
Unfortunately the dae files are large in some cases (several hundred
K). If the user could have the object pack local on their machine
Flash 10 could load them locally. Unfortunately Flash 10 only lets
you chose individual files to load. Solution to this is, due to the
fact DAE files are XML, put all the DAE objects in one XML file and
cache the objects in memory creating the model objects as and when
needed. Downside is textures will still need to be fetched from the server (these are small files so no big deal).
Question. If I have a DAE XML file in memory how can I create a model
object with this data (I can't pass a file value in as I already have
the XML file in RAM). Can this be done; if so, how?
Thanks
Colin
--
http://papervision3d.758870.n4.nabble.com/Papervision-and-loading-DAE-
files-
tp3206372p3206372.html
Sent from the Papervision3D mailing list archive at Nabble.com.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_______________________________________________
Papervision3D mailing list
Papervision3D-***@public.gmane.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
John Grden
2011-01-10 01:55:18 UTC
Permalink
You can use the clone() method in the DAE object

Sent from my iPad
Post by DrColinL
Quick question.
We're using Flash 10 and papervision for our 3d art. We're not doing
animation, more of a display of objects the user can position. They are
fairly high poly count but placeholders are put in for adjusting the camera
(low poly count) and you can switch back to the high detail object at a
button click. Works fine... so far so good.
Unfortunately the dae files are large in some cases (several hundred K). If
the user could have the object pack local on their machine Flash 10 could
load them locally. Unfortunately Flash 10 only lets you chose individual
files to load. Solution to this is, due to the fact DAE files are XML, put
all the DAE objects in one XML file and cache the objects in memory creating
the model objects as and when needed. Downside is textures will still need
to be fetched from the server (these are small files so no big deal).
Question. If I have a DAE XML file in memory how can I create a model
object with this data (I can't pass a file value in as I already have the
XML file in RAM). Can this be done; if so, how?
Thanks
Colin
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Papervision-and-loading-DAE-files-tp3206372p3206372.html
Sent from the Papervision3D mailing list archive at Nabble.com.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Loading...