You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What type of mesh is it?
If your object is loaded from wavefront OBJ/MTL files, then you need to
look at "SSMesh_wfOBJ". Because wavefront supports multiple textures in an
object, it doesn't use AbstractMesh.textureMaterial. Instead it has it's
own "material subsets", each with a mesh and texture. You'll have to find
the right one in the list (SSMesh_wfOBJ.geometrySubsets) and reassign it.
I was looking for a way to change an SSObjectMesh's texture while the program is running. My attempt at it was:
myObjectMesh.textureMaterial = new SSTextureMaterial (myNewTexture);
However, this doesn't seem to do anything -- I'm guessing I'm misunderstanding how SimpleScene handles this, looking for any suggestions! Thanks.
The text was updated successfully, but these errors were encountered: