katzeforest Posted January 14, 2016 Share Posted January 14, 2016 I want to assign the texture to an imported test.babylon model but it does not work. As shown in the following image the texture is created successfully and assigned to the sphere object. Anyone knows what is going on here? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 14, 2016 Share Posted January 14, 2016 Hello can you check that your mesh is exported with texture coordinates? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 14, 2016 Share Posted January 14, 2016 Are you sure the mesh has a UV? If not, it will not display. Quote Link to comment Share on other sites More sharing options...
ChrisR Posted January 14, 2016 Share Posted January 14, 2016 The problem could also be due to material mapping. Your best bet would be to use a debugger and see if there is a multi material applied to the mesh. If this is the case, then you might need to change the material in the multi-material submaterial array. http://doc.babylonjs.com/classes/2.2/MultiMaterial Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 14, 2016 Share Posted January 14, 2016 Another thing to check - what is the length of the newMeshes array? maybe the mesh is built out of a few meshes (like Babylon's Dude mesh) you then assign the texture only to a part of the mesh. But my first guess would still be UV coordinates. Either missing or wrong. Love your Totoro avatar, btw Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.