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

Reply via email to