[Papervision3D] Help with basic collada loading
worldofpaper at googlemail.com
Thu Jan 17 08:23:36 PST 2008
The Collada class was the parser used to load and parse COLLADA (.dae) files
prior to papervision3d 2.0 - since 2.0 (which is the GreatWhite branch)
collada files have been parsed using TIm Knip's ascollada code - and use the
DAE class as the entry point for this behaviour.... so if you're using 1.5or
1.9 use Collada.as - if you're using 2.0 use the DAE class.
Remember, though, that GreatWhite(2.0) is alpha - so subject to change, so
if you're working on a production project it's probably best to avoid it for
now. If you're just learning, however, go for it - cause in the next few
months it will become the trunk of the project.
On Jan 17, 2008 4:16 PM, Martin Fabichak <mfabichak at gmail.com> wrote:
> Your Collada file is .dae, right?
> I really don´t know the difference between the Collada class and DAE
> class, but I always do:
> dae = new DAE();
> don´t forget the import:
> import org.papervision3d.objects.parsers.DAE;
> As the .dae file is a XML, it has the one special tag:
> <image id="track_RightTrack_jpg-img"
> name="" is the texture name.
> You can change the materials with the dae instance, too.
> Hope that helps.
> Martin Fabichak
> On Jan 17, 2008 12:55 PM, Marko P <markop at hotmail.com> wrote:
> > Hi!
> > My first experiments in PV3D were mainly following pv3d.org tutorials,
> > but
> > there is nothing yet about loading external collada files. I tried to
> > load
> > my model the same way i coded a primitive cube:
> > kocka = new Cube(cubeMaterials);
> > scene.addChild(kocka);
> > model = new Collada("cube.dae", colladaMaterials);
> > scene.addChild(model);
> > But i get error "Cannot access a property or method of a null object
> > reference" (i use FlashDevelop 3 b5 + Flex SDK + GreatWhite). I also
> > tried
> > to load the model into DAE object, but without success.
> > Could somebody please give me some guidance on this topic? I searched
> > the
> > web, but couldn't find anything.
> > Thanks in advance!
> > Greetings,
> > Marko
> > --
> > View this message in context:
> > http://www.nabble.com/Help-with-basic-collada-loading-tp14922463p14922463.html
> > Sent from the Papervision3D mailing list archive at Nabble.com<http://nabble.com/>
> > .
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> Papervision3D mailing list
> Papervision3D at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D