Jump to content

Bump Textures Exported from Blender in Babylon JS v2.0


amorgan
 Share

Recommended Posts

I haven't looked too much into it yet, as the issue wasn't obvious to me, but porting my models from v1.14 to be compatible v2.0 using the latest Blender export, my bump maps display incorrectly. They were fine in the previous version (v1.14). Using Babylons bump texture works fine, but the ones assigned and exported from Blender with, my model, seem to have a "glare' or something to where they are not being computed correctly. Has anyone had this issue?

 

I attached an example model that has been exported. If you use http://www.babylonjs.com/sandbox/ and turn on and off the bump texture channel after loading the model and the two .png, you will see what I am talking about.

 

Thanks

Models3D.zip

Link to comment
Share on other sites

@Luaacro: Shaders are not broken:) http://www.babylonjs.com/?BUMP

 

@amorgan: Your bump map is not a normal map so this is the expected result.

 

So far you have to use this kind of picture:

http://www.babylonjs.com/scenes/customs/normalMap.jpg

 

 

And as far as I'm concerned you should have had the same results in 1.14. (only difference is bump intensity which is lowered on 2.0)

Link to comment
Share on other sites

Well then. Shouldn't the shader support a grayscale image (height map) as a bump map since it represents the height with respect to the normal, whereas a normal map correlates r, g, b to x, y, z with respect to the normal? I'm at your mercy, so whatever you say goes. i could try to convert the grayscale to the equivlent normal map, I made these myself, hence the grayscale, since it was much easier for me haha.

 

Thanks.

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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