#### Archived

This topic is now archived and is closed to further replies.

# Rotating??

This topic is 6130 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi guis!! I'm new OpenGL developer, and I want to know a thing about rotation... To rotate things, we can use glRotatef right? Yes.. but I'm getting some problems with it... I'll try to explain, but it's very confusion, so you'll have to pay mutch attention (sorry...) For example... let's imagine a quad, and its X, Y, Z axis: _________z / \. /_____y_____\z | . | | . | | . | |_____y_____| x .......... x Lets imagine that X is rotated 30º (how we see in the picture).. In this case, if we do a rotation on Y axis, the result will be, that only the Y axis will be rotated... (if X rotation value were 0, it would be OK, but it's not 0.. then, the Z axis had to be rotated too...) I know that the command glRotatef don't do this, but I would like to know, it there is another command, function or something like that I can use to do this... Well, this is my question... I don't know if I explained it very well, but I'll be happy if someone explain me how to do that.. Thanks! Edited by - FERNANDO-BRASIL on December 14, 2001 8:30:58 PM

##### Share on other sites
Well!!! I''ll try to do again the question, but with other words...

I would like to do a rotation that turn the quad always considering the CAMERA angle of vision. If I did a rotation on X axis, it''ll have to turn always in the same X axis, independent if the Quad Y, Z rotation already have a value that sure, will make the X axis appears to be rotated in another direction...

hehe.. I think this question was better than the other....

##### Share on other sites
PLEASE... place those ASCII diagrams inside [ code ] tags!

1. 1
2. 2
3. 3
4. 4
Rutin
12
5. 5

• 12
• 19
• 10
• 14
• 10
• ### Forum Statistics

• Total Topics
632665
• Total Posts
3007710
• ### Who's Online (See full list)

There are no registered users currently online

×