[Papervision3D] Help with basic collada loading

Trevor Burton worldofpaper at googlemail.com
Thu Jan 17 08:52:31 PST 2008


no sure, i'm working with it, too, it's just that if you were doing a
production project with it and something were to change then you could have
a very unhappy client, that's all...

T

On Jan 17, 2008 4:38 PM, Martin Fabichak <mfabichak at gmail.com> wrote:

> But Trevor, even GreatWhite being a alpha, it´s pretty good =)
>
> I´m going to use it for a little game that i´m going to make with my
> friends.
>
> if everything goes right, I'll let you know ;P
>
>   On Jan 17, 2008 1:23 PM, Trevor Burton <worldofpaper at googlemail.com>
> wrote:
>
> >   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.5 or 1.9 use Collada.as <http://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.orgtutorials, 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
> > _______________________________________________
> > 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/5cf49a1f/attachment-0001.html 


More information about the Papervision3D mailing list