How do you load in a .bmp file to use it as a height map in C++?

Posted by user1324894 on Programmers See other posts from Programmers or by user1324894
Published on 2012-11-29T19:42:17Z Indexed on 2012/11/29 23:17 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

I need to create a terrain that can be used in C++ and opengl and I am told that using a height map is the way to go. I have a .bmp file that is a greyscale image that I would like to use. However, I do not know how to load that greyscale image into the project so that it can be used as a height map or how I can apply a texture to it to create terrain nor how to compute the normals that I'm told will be required. How would I go about achieving what I would like to do?

© Programmers or respective owner

Related posts about c++

Related posts about graphics