I'll play around with it some more but I'm pretty sure I can get it at
this point. I'll let you know when I got it working.

On Aug 21, 5:28 am, Rob Bateman <[email protected]> wrote:
> Hey StarbuckZero
>
> you can access the materials auto loaded into a model from a 3ds or collada
> file by using the materialLibrary property on teh resulting root container
> of the object. eg:
>
> myColladaContainer.materialLibrary.getMaterial("myMaterialName");
>
> you may need to cast the returned object to the correct marterial type
> (usually bitmapmaterial), after that you can set precision etc as you would
> normally
>
> hth
>
> Rob
>
>
>
> On Thu, Aug 20, 2009 at 4:21 PM, desgraci <[email protected]> wrote:
>
> > this example is ho to set the textures apart in a .dae, very similar
> > to the .3ds:
>
> >                iguanaModel = Collada.parse(iguanaModelClass,
> > {x:-900,y:-90,z:-995,materials:
> > {alpha_png:iguana2BitmapMaterial,body_jpg:pruebaMateria5}});
>
> > here u can set the elements with different materials, that uve already
> > made. but lets say is imposible in .3ds, (im sure u can do something
> > like this, but just in case...), u can get the childs like this:
>
> >                mesh1= iguanaModel.getChildByName("Cube") as Mesh;
>
> > modify the like this:
>
> >                mesh1.rotationX=160;
> >                mesh1.material=precitionMat;
>
> > and after that put them back:
>
> >                iguanaModel.addChild(mesh1 as Object3D);
> >                scene.addChild(iguanaModel);
>
> > i work my scenes like this, never had a problem with this, ofc, as
> > always this is the way that works for me, i knwo theres a lot of ppl
> > with better and faster ways, just trying to help, so if u know one
> > better or have the code already made for .3ds help :p.
>
> > let me know if the precision solved all ur problems.
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]

Reply via email to