Jump to content

Bump maps


unicomp21
 Share

Recommended Posts

Well, I'm managed to generate textures and meshes using procedural techniques.  Now I'm working on bump maps.  For my first attempt, my assumption was the bitmap contained the actual normals, no worky.  I guess this means the values in the bitmap are actually offsets from the interpolated normal in the vertex shader?  What does the math look like?  Is it this?

 

normalize(vertex_shader_normal + bump_map_normal)

 

I'm pretty sure I understand the encoding of the bitmap (ie -1.0 to 1.0 -> 0 to 255) for (xyz -> rgb)

 

 

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