View Full Version : Rotate
link19
03-12-2001, 08: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.
Deiussum
03-12-2001, 09: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);
link19
03-12-2001, 10:02 AM
Thx...i played with those and have the correct rotation now.
Cheers,
Link19
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.