Jump to content

Bump/normal map not working in blender-exported scene


Recommended Posts


I've exported a blender scene as a .babylon file. I'm able to load the scene, including materials with colour, however I can't get my bump map (using normal mapping) to work.

When I try it I can see that chrome's dev tools has loaded the normal map png file, however I don't see any bump in the scene/mesh.

I'm new to Babylon.js and Blender, so it's possible I may have made a silly error somewhere. I've attached the .babylon, .png, and .blend file just in case.

Any help really appreciated!


Link to comment
Share on other sites

Looking at your blend file, you assigned 4 materials to Plane (Grass, Snow, Sand, & Westeros).  Grass, snow, & sand are just a diffuse color, and they all have areas / vertices assigned.  This results in a multi-materials, which displays as you saw.

The 4th material, Westeros, with the Bump texture, has no area assigned.  Based on the similarity of shape, you want to apply the bump across the whole plane.  This is not going to work as is.  A single Babylon standard material, has various colors difuse, ambient, etc.  It also can have a number of textures applied.

You either need to break up your bump map texture into 3, and apply each to the grass, snow, & sand.  Or, bake the grass, snow, & sand into a diffuse texture, then create a single material with the 2 textures.  I am not the one to direct you, but the 2 texture / single BJS material would perform better.

Link to comment
Share on other sites


Mr Palmer beat me to an answer, so I delete most of what i wrote ... and just focus on the part of the westeros.babylon file which causes your problem :)


he Plane mesh has 4 subMeshes. The last one, which is the one with the multimatID 3 (which also has the bumpmap) has neither a vertexCount nor an indexCount.

Without fixing the whole subMeshes I just tested by assigning the mutlimatID3 to the 3rd submesh and the bumpmap is being displayed just fine


Love the wall up north btw :D

Link to comment
Share on other sites

Well looks like JC beat me to it too:o And he is dead right the normal map is in a material that is not assigned to any vertices.

I just added a normal map to the sand material - nothing else. Result below in red border is new file in  BJS sandbox.

cheers, gryff :)


Link to comment
Share on other sites


Gryff, is that Windows Xp? :P

Yep Joe - my workhorse machine. I have a Win7 machine too on my desk - but the XP machine has lots of software installed (my local web server, video editing software, terrain editing software  and 16 versions of Blender:o. I'm not doing all those installations on the Win7 machine.

cheers, gryff :)


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...