Advertisement

glRotatef() help

Started by March 26, 2003 04:05 PM
0 comments, last by dnagcat 21 years, 11 months ago
I have been trying to find this info and after looking in multiple locations I have found this to be consistent: "Looking down the axis of rotation (x) toward the origin, CCW is positive" but if this is true how can this happen on Lesson 10: the variable lookupdown is increased if page down is pressed and decreased if page up is increased then the lookupdown var is used in glRotatef(lookupdown, 1.0f, 0.0f, 0.0f); So if the counter clockwise statement is true above when page down is pressed and lookupdown is increased you SHOULD look up, and vice-versa, but this is of course not the case. I hope that was not too confusing... Could anyone correct my thinking or enlighten me!!!
by George I think he''s got it... We are not turning at all, the world is turning so it will turn opposite the direction you want.
For instance if I want to look up I make the world rotate down....and vice versa... See...all I had to do was type in my problem to get it solved...man I love this forum!

This topic is closed to new replies.

Advertisement