   heightmap generation and OpenGL
  Hi everybody,I''m trying to make a game like Magic Carpet using OpenGL but I have a problem with the HeightMaps. First of all I wanted to know if there is a way to make the map with "true colors" like blue for sea and brown for earth etc... Then I really have trouble importing the heightmaps into my applications I can''t understand why but if my bmp is larger thant 64x64 the game runs really slow. I''d like to create routines to load heightmaps and have the same result as Terragen (http://www.planetside.co.uk/terragen/)I''m sorry about my english but it is not my primary languageThanks you for your answers   Se souvenir des belles choses 
  use a 1D-gradient, and the height of the current vertex/fragment as it''s coordinate ( after having normalized the heightmap )   ;  You can check out a demo I''ve coded at: http://dynamic4.gamespy.com/~digitalxtreme/index.php?section=opengl&page=comments&oglproj=landscapeThere you will find heightmapping and some other nice things.  The demo comes with a source code.As for performance problems, well, doubling a side of a square means that you''ve got 4 times more space, heh.Again, you can play with performance in my demo by loading .bmps of different sizes.HTH 