if your model have 4 textures applied, you will not be able to apply as Mesh.material
you will have to loop over the Mesh.faces and set the material per face.
Mesh.faces[i].material = material;

if the model is (too) complex
you are better off splitting the geometry in more meshes with unique material in your editor.

Fabrice


On Sep 2, 2009, at 11:06 AM, mudong wrote:


Hello,

Guy, I've been working on this for days, but I still couldn't figure
out how to do this. There are couple posts about this topic a while
back, but they didn't help my problem.

Ok, here's what I did. I made a hollowed box in google sketchup, and I
used different materials(.jpg file) for some surfaces of the hollowed
box. My model was exported as .dae file. and I loaded this .dae file
in away3d. The .jpg files for material are seperated from the .dae
file. Now I just don't know how to get the material into the 3d
model.

If there was just one material, it's easy, simply add the material.
but now I have 4 materials, how do I add the materials and make sure
materials match the surfaces where they are supposed to apply to?

Many thanks,

Ron

Reply via email to