View Full Version : Rotate
03-12-2001, 09:23 AM
I have rendered a graph. The z-axis units are fine except id like to rotate them 90 degrees left (-x direction). So that as i rotate my scene the units are facing the correct direction so that they are readable. I know to use glRotatef(), but cant figure the parameters to do this correctly.
Thanx in advance.
03-12-2001, 10:25 AM
I'm not sure exactly what you mean... what axis do you want to rotate around. Try one of these
glRotatef(90, 0, 1, 0);
glRotatef(90, 1, 0, 0);
glRotatef(90, 0, 0, 1);
03-12-2001, 11:02 AM
Thx...i played with those and have the correct rotation now.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.