08-03-2005, 07:42 AM
Hi,
OK I have a question which I'm sure has a simple answer, but I don't know what it is!
Can someone please tell me what the difference is between using:
gl.glRotatef(45.0f,0.0f,0.0f,1.0f);
and
gl.glRotatef(45.0f,0.0f,0.0f,0.5f);
Because no matter which one I use, it still rotates my object by exactly the same angle! In fact, no matter what I put for the Z value (unless it's zero), it always has exactly the same effect.
Can someone plese enlighten me?!
And also, if there's a reason for using one instead of the other, can anyone give me an example of where you might use it?
Many thanks!! :)
Danny G
OK I have a question which I'm sure has a simple answer, but I don't know what it is!
Can someone please tell me what the difference is between using:
gl.glRotatef(45.0f,0.0f,0.0f,1.0f);
and
gl.glRotatef(45.0f,0.0f,0.0f,0.5f);
Because no matter which one I use, it still rotates my object by exactly the same angle! In fact, no matter what I put for the Z value (unless it's zero), it always has exactly the same effect.
Can someone plese enlighten me?!
And also, if there's a reason for using one instead of the other, can anyone give me an example of where you might use it?
Many thanks!! :)
Danny G