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
2 replies to this topic
Sponsor:
#2 Members - Reputation: 521
Posted 24 March 2012 - 04:28 AM
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.






