Rotation (dumb problem)

Started by
18 comments, last by skow 18 years, 9 months ago
i don't know it didn't seem to work. Think you can use my code in the example. Thta would clear things up and If it still doesn't work I have a pic to explain myself better:

IGNORE THE LEGS I DIDNT FINISH THEM
bi-FreeSoftware
Advertisement
your picture isn't showing up. put a link to the picture instead, because the file is too large or something for it to be posted it on here.
looks like i can't get the picture to show up and I can't link to it because of my cruddy free hosting. srry.
bi-FreeSoftware
can't you just post it on image shack or something like that? try putting it on image shack, and then have a link to that page where your image is displayed.
Click here
bi-FreeSoftware
What kind of coordinates does DrawGun() use for it's vertices? It just makes a rectangle around (0, 0), right?
Well, I actually draw using 0,0 as my top left corner. I use glVertexi().
bi-FreeSoftware
Allright, that should be good enough. Are you absolutely positively sure that swapping the two lines "glRotatef(aimer, 0.0f, 0.0f, 1.0f);" and "glTranslatef(-9.0f, -26.0f, 0.0f);" in the code you posted does not fix this?
yup, it didn't do a thing to change it.
bi-FreeSoftware
After translating, push a matrix and then rotate.

This topic is closed to new replies.

Advertisement