Jump to content

  • Log In with Google      Sign In   
  • Create Account

Wavefront OBJ - Get Model Properties


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 vir2007   Members   -  Reputation: 105

Like
0Likes
Like

Posted 23 March 2012 - 03:23 PM

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

Sponsor:

#2 Rld_   Members   -  Reputation: 1527

Like
1Likes
Like

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.

#3 vir2007   Members   -  Reputation: 105

Like
0Likes
Like

Posted 25 March 2012 - 03:51 PM

thnx mate, i missed "bounding box" keyword :)

thnx again




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS