Game Development Community

Model Rotation

by Grant McNeil · in Technical Issues · 08/10/2002 (5:11 pm) · 4 replies

Whenever i rotate my model it rotates around the origin (0,0,0), and not the models origin. how do i change the point my model rotates around?

thanks,

--Grant

p.s.
has anyone ever heard of the old Java game, no longer exsistant, "Hyper Plasma Ball"?

#1
08/10/2002 (6:06 pm)
If your using 3D Studio Max one of the panels in the dialog box to the right side is the hierarchy panel (right next to the modify panel). In the adjust pivot roll out there is a button called effect pivot only. Click it and you will be able to adjust the axis of rotation.

Alc
#2
08/11/2002 (2:55 pm)
the only thing I needed was the glPopMatrix(); command.

thanks anyway,

--Grant
#4
08/12/2002 (9:22 am)
translate your model to the point you wanted to be the rotation center, rotate your model, then do inverse translate. you can always multiply these 3 matrixes into one.
#3
08/12/2002 (11:29 am)
hmmm...guess I should have read the topic a little better eh? heh. (Technical OpenGL forum)

Alc