Jump to content

problem with texture


Recommended Posts


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
Link to comment
Share on other sites

  • 2 months later...

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"  



scene.meshes[x].material.diffuseTexture.offSetX += X ?




EDIT for img


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...