[Papervision3D] Help with basic collada loading

Trevor Burton 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.

T

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();
> dae.load("model/Seymour.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:
> <library_images>
>         <image id="track_RightTrack_jpg-img"
> name="track_RightTrack_jpg-img">
>             <init_from>texture\track_righttrack.jpg</init_from>
>         </image>
> </library_images>
> 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
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
Trevor Burton
http://www.paperworld3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080117/61c05d62/attachment.html 


More information about the Papervision3D mailing list