   Heightmaps
  Hello. I am programing with dev c++ and opengl and I am trying to create a heightmap in my program. I know there is very good example on nehe (with raw texture), but I want to use bitmap. Can anyone tell me/give link/ simple source how to read pixels in bitmap.[edit] I have another question, how to load bitmap into my program? I am using set up from first nehe lessons. I think that it will be good if I load a bitmap as a texture (good way?) and read every pixel but I still don't know how. http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html# This is quite good, but not clearly enought (maybe I am not clever enought:)).[Edited by - Krasnal on June 22, 2006 9:58:48 AM]
  http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html#   ;  The easiest way is to use something like ImageMagick to convert from whatever bitmap format you're using into raw RGB or grey bytes, then you can read it in easily.Mark   ;  Instead of writing your own code to load bitmaps, you might consider using an image loading library such as SDL_image or DevIL.   ;  Hmm which program should I use to convert to .raw? I download a .raw heighmap but I cannot create it by myself. I found some converters but they aren't converting enought good. For example they are converting to .r08. I know that I can use it instead .raw but main problem is that I must convert 256 colors bitmap. So it isn't possible to make a heighmap using it.   