Suppose my model is a composite of objects, and each object contains few materials, I need to map different texture for each material.
I tried to print the name, i can't get the material name but object name. How can I get the material name of each object?
for (Animated3D o : skinnedGroup) {
System.out.println("name:" + o.getName());
o.build();
o.discardMeshData();
}
// output
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:headMesh_triangles
name:Cover_LMesh_triangles
name:Cover_LMesh_triangles
name:Cover_RMesh_triangles
...