elevation mapping in different directions


currently my elevation mapping demo takes a heightmap (8bit) and renders in increasing z-direction. Now I want to render it from a side (let’s say increasing y-direction). Is there a way to change the heightmap (level information) using (extended) OpenGL so that it represents the elevation in that direction?


Um. Call glRotatef( -1.57, 1., 0., 0. ), then draw?

What Jambolo said, although I think glRotate() takes it’s angle in degrees rather than radians.


Well, you misunderstood my question (or it was not written clear enough). Having a heightmap with a white square in the middle (that’s the z-case) I want to have the heightmap converted into one which has a white ‘band’ when rendering the y-slice stack. Hope my problem is clearer now!