So I build my coin in 3ds. Befor exportin I’ve selected 3 groups of polygones and apply 3 different material to it (Basic material - just color, nothing else). Then I’ve exported my model to .obj and .mtl files.
The problem is when I load object into flash there is nothing at all! Empty screen.
function onObjectComplete(event:LoaderEvent):void {
var coin:Mesh = Mesh(loader.getChildAt(0));
if (coin.material != null) {
var mtl:TextureMaterial = coin.material as TextureMaterial;
coin.material = mtl;
}else{
coin.material = defaultMaterial;
}
}
But… if I switch material type from TextureMaterial to ColorMaterial, I can see my object and it’s all green , but still not with my texture from .mlt. What am I doing wrong?