[Papervision3D] Putting Collada into Flash

Tim Knip tim.knip at gmail.com
Fri Nov 16 05:24:24 PST 2007


With ASCollada's Phunky branch + PV3D's Phunky you can pass a
ByteArray to the constructor...

[Embed (source="myfile.DAE" mimeType="application/octet-stream")]
public var myDae:Class;

var ba:ByteArray = new myDAE();

var dae:DAE = new DAE( ba );

Tim

2007/11/16, jlm at justinfront.net <jlm at justinfront.net>:
> Flex has some square bracket stuff you can embed collada xml with and
> you can compile your as3 code in flex.
>
> Textmate of flashdevelop will can help you remove return characters
> etc.. with a find and replace.
>
> If you save your XML to a flash cookie and then get one of thoughs sol
> readers you should be able to copy the result back into flash, if sols
> support xml.
>
> Ralphs moon rotation example has that get model stuff in I dont have
> it to hand but I am sure someone has.
>
>
>
> Quoting Đani Stojanov <dani.stojanov at gmail.com>:
>
> > On Nov 16, 2007 12:38 PM,  <jlm at justinfront.net> wrote:
> >> put it directly in the swf as xml.
> >> sorry some of my keys do not seem to work properly on my webmail I
> >> think it thinks I am in finland or something.. but
> >>
> >> model = new XML("...")
> >
> > yes, i was thinking the same thing ;), only problem is to place it all
> > in one line to parse properly... :D
> >
> >>
> >> also i think you maybe able to get the model from the displaylist in
> >> collada by its name and reuse it.
> >>
> > hmm... i'll check it out...
> >
> > Thanks once again,
> >
> > Đani
> >
> >>
> >>
> >> Quoting Đani Stojanov <dani.stojanov at gmail.com>:
> >>
> >> > yeah I guess I will do something like that...
> >> > thanks...
> >> >
> >> > On Nov 16, 2007 12:25 PM, Pedro Furtado <pedro.furtado at gmail.com> wrote:
> >> >> COLLADA:* — An XML COLLADA object or the filename of the .dae
> >> scene to load
> >> >>
> >> >> so load your .dae into a string, make 10 different colladas,
> >> >> or load 1 collada, and add it 10 times with different names.
> >> >>
> >> >>
> >> >>
> >> >>  On 11/16/07, Đani Stojanov <dani.stojanov at gmail.com> wrote:
> >> >> > yeah, the cache should work, but my boss won't be happy when he sees
> >> >> > 10 server calls for the same file regardless of it ;)
> >> >> > thanks for the tip...
> >> >> >
> >> >> > Đani
> >> >> >
> >> >> > On Nov 16, 2007 12:11 PM, Pedro Furtado <
> >> pedro.furtado at gmail.com> wrote:
> >> >> > > I'm just taking a lucky guess here, but due to flash cache thingy the
> >> >> second
> >> >> > > time you load it it should be in cache, also you can just
> >> load it once
> >> >> and
> >> >> > > then replicate it, or even create a class wrapper for it,
> >> load it there
> >> >> and
> >> >> > > then replicate it.
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > > On 11/16/07, Đani Stojanov <dani.stojanov at gmail.com> wrote:
> >> >> > > >
> >> >> > > >
> >> >> > > >
> >> >> > > > Hi,
> >> >> > > >
> >> >> > > > is there a tried out way to place Collada info into the AS....?
> >> >> > > > I for instance want to replicate the same object 10 times... so I
> >> >> > > > don't want the the .dae file to be loaded 10 times...
> >> >> > > > I have an idea on how to do this, but if somebody has experience or
> >> >> > > > some kind of code, it would be helpful...
> >> >> > > >
> >> >> > > > Thank you,
> >> >> > > >
> >> >> > > > Đani
> >> >> > > > _______________________________________________
> >> >> > > > Papervision3D mailing list
> >> >> > > > Papervision3D at osflash.org
> >> >> > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >> >> > > >
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > > --
> >> >> > > Pedro Furtado
> >> >> > >  http://www.dreaminginflash.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
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Pedro Furtado
> >> >> http://www.dreaminginflash.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
> >> >
> >>
> >>
> >>
> >>
> >
>
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>


More information about the Papervision3D mailing list