mikethebike
01-28-2012, 05:04 AM
Hi
I need to rotate on all axes a terrain. ok but now how to translate for looking from above and at distance?
glTranslatef(0, 70, -250);//distance and above?
glRotatef ...pitch heading etc.
Like that the terrain moves but it should not move in relation to the viewer. In other words how to put the viewer into the middle of the rotating terrain?
Many thanks
I need to rotate on all axes a terrain. ok but now how to translate for looking from above and at distance?
glTranslatef(0, 70, -250);//distance and above?
glRotatef ...pitch heading etc.
Like that the terrain moves but it should not move in relation to the viewer. In other words how to put the viewer into the middle of the rotating terrain?
Many thanks