[Papervision3D] Missing collada assets after compiling swf - how to embed

Andromedus r.hoddinott at btinternet.com
Wed Sep 3 08:51:12 PDT 2008


Aha - that's making a bit more sense now.  So I hard code the .dae contents
into my actionscript, I get that.  

But I'm using the Collada class, which handles loading and applying the
materials to the model - multiple materials tiled over the model according
to the uv mapping in the .dae file.  It's not just one material that I can
apply to the model manually.  So will I have to go into the Collada.as and
edit it to use BitmapAssetMaterial, instead of whatever else is going on in
there?




George Profenza wrote:
> 
> Hi,
> 
> Put your textures in the library and use BitmapAssetMaterial to load them.
> As for the model, you'll just have to put the text inside the .DAE file in
> actionscript.
> Just make a new layer ( named modelAS for example ) and create a new XML
> or
> DAE object.
> 
> var model:DAE = new DAE(
> //paste xml code here
> )
> 
> or
> var modelXML:XML = new XML(
> //paste xml code here
> )
> var model:DAE = new DAE(modelXML);
> 
> That's sort of a workaround.
> 
> Flash CS3 doesn't support the [Embed] metadata.
> 
> If you want to use that, use Flex Builder or the Flex SDK.
> 
> All the best,
> George
> 
> -- 
> George Profenza,
> Student, Certified Flash Designer & Developer
> -------------------------------------------------------------------
> m: 07957916404
> -------------------------------------------------------------------
> experiments: http://flash.quietroot.org/labs/
> blog: http://tomaterial.blogspot.com/
> works: http://flash.quietroot.org/
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Missing-collada-assets-after-compiling-swf---how-to-embed-tp19291276p19292159.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list