no one can help?
On Aug 11, 12:39 pm, martin <[email protected]> wrote: > thx. > the mesh.toas3class is new for me and works fine. > i have another question. i load an collada file with to object and > every object has in the 3d programm a different material. > if i parse this in away, and grab the mesh each > > here the trace and code > ! ------------- Begin Parse Collada ------------- > ! ------------- Begin Parse Scene ------------- > + Parse Node : ID14 : ID14 > + Parse Node : ID23 : ID23 > ! ------------- End Parse Scene ------------- > ! ------------- No animations to parse ------------- > + Parse Geometry : ID15 > + Parse MeshMaterialData > + Parse Geometry : ID24 > + Parse MeshMaterialData > + Build Material : ID8 > + Build Material : ID3 > + Build Mesh : ID14 > + Build Mesh : ID23 > > col = Collada.parse(COLLADA, {scaling: 0.01, material:texture}); // > with material:null it doesn't work to change afterwords the texture > apart for each object > > var mesh1:Mesh = col.getChildByName("ID14") as Mesh; > var mesh2:Mesh = col.getChildByName("ID23") as Mesh; > mesh1.material = texture1; > mesh2.material = texture2; > => doesn't work => every time it is the texture from the parse line > above > > col.materialLibrary.getMaterial("ID3").material = texture1; > col.materialLibrary.getMaterial("ID8").material = texture2; > => doesn't works too :( > > so how can i change the material apart from my collada objects? > thx. > martin > > On Aug 8, 12:26 am, Fabrice3D <[email protected]> wrote: > > > at this time of dev, the animation export is not fully implemted into > > the AS3Exporter class. > > if you load an md2 and want to export it as class, using the > > Mesh.toas3class handler > > this one works perfectly. > > > another way to do it is to load key frames (still meshes) exported as > > as3 or loaded as obj, or collada. > > and feed the Animator class. > > > Fabrice > > > On Aug 8, 2009, at 12:01 AM, martin wrote: > > > > hello everybody, > > > how can i create an AnimationSequence with collada or md2. > > > i have the problem to cast the loader to an mesh/array of vertices. > > > what is the best way here. > > > currently i experiment with the as3geomexporter it is good but not > > > perfect, how can make an animation with collada or md2? > > > thx. > > > martin
