Add a listener to the loader, addOnSuccess(yourfunction) in this function access the event.handle
if the handle is an ObjectContainer3D, access the children array and cast as Mesh
Fabrice On Oct 13, 2008, at 11:44 AM, Daevid wrote:
Hi, i'm loading in a 3ds-model and have some problem with changing the material after the model is created. The model consists of six different meshes and I would like to use different shaders on one of the meshes. I load the model like this: loader = Max3DS.load("assets/meshes/"+modelName+".3ds", {name:modelName, material:material, centerMeshes:true}); I try to change the material like this: var ground:Mesh=this.children[0].children[5]; ground.material=new WireColorMaterial(); Do I need to update the model in some other way to get the change applied? Thanks for any help! /David