dav74 Posted October 31, 2013 Share Posted October 31, 2013 Hi,With a mesh create with babylon, there is no texture problem.if i import a mesh from blender (Suzanne for example (without texture)),after a "material.diffuseTexture = new BABYLON.Texture("grass.jpg", scene);", there is no texture applied , just the color (if it's a grass texture, Suzanne is green...it's all)are there rules for texture (for mesh import from blender) ?thank you for your help Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 31, 2013 Share Posted October 31, 2013 You have to add texture coordinates to Suzanne inside Blender Quote Link to comment Share on other sites More sharing options...
dav74 Posted October 31, 2013 Author Share Posted October 31, 2013 Ok thank you Quote Link to comment Share on other sites More sharing options...
Denis2222 Posted January 19, 2014 Share Posted January 19, 2014 Hello, i'm newb with babylon js. I have the same problem than up. Texturing Mesh create with : BABYLON.Mesh.CreateBox("wall", 1, scene, false); Texture good in render. Texturing the mesh from scene.meshes[x].material.diffuseTexture = new BABYLON.Texture Don't work.( Just diffuse color ) Don't understand "add texture coordinates to suzanne" Need scene.meshes[x].material.diffuseTexture.offSetX += X ? EDIT for img Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 19, 2014 Share Posted January 19, 2014 Hello this is more a Blender question. You have to unwrap textures coordinates in blender onto your object. Quote Link to comment Share on other sites More sharing options...
Denis2222 Posted January 19, 2014 Share Posted January 19, 2014 Thanks ! Now Working. It's now time to learn Unwraping with blender. Big thanks one more ! 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.