i have a 3D model in .obj file and .mtl file
i have 19 meshes and 2 material
everytime i load my model i think there’s only one material on my model
so i traced the source code and found this in OBJParser::translate()
bmMaterial = DefaultMaterialManager.getDefaultMaterial();
.
.
.
if(groups[g].materialID != ""){
bmMaterial.name = groups[g].materialID+"~"+mesh.name;
} else {
bmMaterial.name = _lastMtlID+"~"+mesh.name;
}
and since the DefaultMaterialManager has a static member
private static var _defaultMaterial:TextureMaterial;
so i got only just one material each time?