Setting material of a mesh does not work.

Software: Away3D 3.x

Percy, Newbie
Posted: 16 June 2013 07:23 AM   Total Posts: 12

I loaded a model from external file harpoon_new.DAE. And set the material on the Loader3DEvent.LOAD_SUCCESS event handler as this:

((event.loader.handle as ObjectContainer3D).children[0] as Mesh).material=new ColorMaterial("FFFFFF"); 

I have debugged and saw the material property of the mesh object is ColorMaterial with white color. But it is always

purple? not white.

 

File Attachments
harpoon_new.DAE  (File Size: 56KB - Downloads: 0)
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X