The problem was, or seems to still be, that now I can only keep rotating around the Z axis, but not around any other axis. It's kinda odd. As I understood it, you have to first create a polygon around an axis, and then rotate it (which I don't seem to be doing right). Now the triangle does rotate around the Z axis, but it gets 'slashed' again if I try to rotate around any other axis.
And now I'm throroughly confused since as I've seen in tutorials I've seen it defined as this: void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); But I'm having to use glRotatef(rtri, 0.0, 0.0, 1.0); which, yet again, rotates around the Z axis but 'slashes' the figure if I attempt to rotate around X or Y. Thanks by the response, by the way. As for the lower value I was giving 'rtri,' it was I making a mistake so thanks for the help. On 21 abr, 16:12, Greg Ewing <[email protected]> wrote: > claudio canepa wrote: > > must be > > glRotatef(rtri, 0.0, 0.0, 1.0) > > , else you are doing a strange projection > > Also, the first argument is the angle to rotate in degrees. > You seem to be rotating by 0.15 degrees, which is likely > to be too small to notice. Were you thinking of radians? > > -- > Greg > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/pyglet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
