Advertisement Jump to content
Sign in to follow this  

Wavefront OBJ - Get Model Properties

This topic is 2489 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:

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
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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!