Jump to content
  • Advertisement
Sign in to follow this  
deffer

Create bump map texture

This topic is 4812 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. So, I wanted to try out some bump mapping this time. I created a black/white texture representing height of the bumps. How can I transform it to the proper bump map format? I know the theory, I'm just looking for a program that does this automatically. Anything out there? I searched g****e, but (as usual, lately) with no success. Tried looking for it in Photoshop, didn't find anything either. What do you use?

Share this post


Link to post
Share on other sites
Advertisement
I take it by proper format you mean normal maps? There is a plugin for The GIMP floating about, link to it from the nvidia developers site. You already know how you are going to handle the normal mapping? dot3, fragment shader, etc?

Share this post


Link to post
Share on other sites
Since I'm a Win guy, I'm going to give Photoshop a try.

Yeah, I know how to handle the rest.
Thanks for the info!

Share this post


Link to post
Share on other sites
If you're using Direct3d you can always use the D3DXComputeNormalMap function...
(I'm not sure if there's an equivilant helper function for OpenGL)

-Michael g.

Share this post


Link to post
Share on other sites
A normal map can be generated by taking the derivative of height along u and v directions of the height map, adding the z as the inverse of "bumpiness" and normalizing the result at each pixel.

Share this post


Link to post
Share on other sites
Quote:
Original post by Thr33d
If you're using Direct3d you can always use the D3DXComputeNormalMap function...
(I'm not sure if there's an equivilant helper function for OpenGL)

-Michael g.


Nah opengl doesn't, sadly, OpenGL is a bit closer to hardware than DX is, its a pro and a con.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!