• Advertisement

Archived

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

Moving Milkshape Models w/out translatef

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to have more control over my Milkshape Models. i cannot figure out how to access a center point on a model (x,y,z) that i can change to change the position of my Model in OpenGL. The only thing i can figure out is to use Translatef() before my call to pModel->draw(). i believe that this will cause problems down the line, since it would be more difficult to determine collision and to move a possible 100 models in different directions simultaniosly. can anyone tell me how to find that center point and use it to move my models??

Share this post


Link to post
Share on other sites
Advertisement
You''ll have to use translatef at some point, it just means you have to do the same when doing collision detection.

To find the centre of the model, you should just be able to do the averages of the (x,y,z) values for all the vertices.

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL

Share this post


Link to post
Share on other sites

  • Advertisement