FYI, you can parse on your own like this:

Collada.parse (MeshClass, { material: MaterialClass } );


or


var material:BitmapMaterial = new BitmapMaterial (Cast.bitmap (MaterialClass), 
{ smoothing: true } );
Collada.parse (MeshClass, { material: material } );


That works great if you're embedding. I don't use the built-in load method, but 
if you need the Collada and UV to be outside Flash at runtime, you can load 
them using a URLLoader for the mesh and Loader for the UV, then parse it like 
this. You wouldn't need to cast the material as a bitmap since that's how it 
comes from the Loader, and I think you could just pass the text value into the 
first parameter of the parse method

Hope this helps you get up and running


On Thu, 18 Feb 2010 13:28:38 -0800, Reinorvak <[email protected]> wrote:

Greetings again everyone,

Recently, I've come across the problem of trying to load a pre-
textured model into away3d using the Collada format. I believe I've
read on something like this before, but couldn't find the post so just
point me in the direction if its already been resolved.

Here's the thing. When I load the model into away3d, the parse
constantly gets stuck on the notifyProgress function. The parser will
first fire a notifySuccess, but then continues to call the
notifyProgess and continues parsing the collada file, after getting
out of its notifyProgress loop. This process will continue forever,
and I'll never get my models on screen.

However, should I not set the texture material onto the model, it
loads just fine and goes on its way. So, I'm not sure if this is a
problem with the .dae file, which it seems to be, or with something in
away3d. Either way, I need models to be able to load textures from
Maya using this collada format. Any help will be appreciated and
thanks in advance.

P.S. I'll keep looking on my own for the solution in the mean time.

Rein

Reply via email to