Jump to content
  • Advertisement
Sign in to follow this  
vir2007

Wavefront OBJ - Get Model Properties

This topic is 2425 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

Hi all,

I want to know how to get infos regarding a .obj file such as WIDTH and HEIGHT and CENTER of the model (which permit the rotation and translation according to it)

Im using this model parser with Assimp/FreeImage:
http://svn.augmate.org/Verse/trunk/objs/

Is there anyway from those libraries that give me what i need

Im still new here

Thanks for reading

Share this post


Link to post
Share on other sites
Advertisement
You would want to calculate the boundingbox, which is basically done by comparing the position of the vertices (you can google the exact way), once you have all 8 corners of your bounding box, you can easily calculate the width, height, depth and center with some simple calculations.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!