PDA

View Full Version : elevation mapping in different directions



kon
07-04-2002, 02:54 AM
Hi,

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?

kon

Jambolo
07-04-2002, 10:55 AM
Um. Call glRotatef( -1.57, 1., 0., 0. ), then draw?

Mezz
07-04-2002, 11:14 AM
What Jambolo said, although I think glRotate() takes it's angle in degrees rather than radians.

-Mezz

kon
07-08-2002, 12:16 AM
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!

kon