• Advertisement
Sign in to follow this  

[.net] BoundingBox Strange Behavior

This topic is 4614 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 everyone who cares to read this post!! I have a very strange problem: I created a mesh of a tank in blender and loaded it to my app. then I calculated a BoundingBox (using Geometry.BoundingBox method) and rendered it, strangely enough the box didn't bound the mesh and was offseted about a third in t z and x directions, Has any 1 encontered such a problem? more strange is the fact that a diffrent mesh resulted in a proper bounding box thanks in advance...

Share this post


Link to post
Share on other sites
Advertisement
I haven't used any of that, but maybe the bounding box is always a cube, so it grows in all directions equally to accomodate one long part of the tank, possibly the cannon.

Share this post


Link to post
Share on other sites
I don't think this is the case as I see that the box is in the correct size but is offseted about a querter of the mesh size in z and x axises ,
I shall try to put a screenshot link when I'll return from work...

Share this post


Link to post
Share on other sites
You're not moving the tank or anything like that? If the bb was placed correctly, would it contain the entire tank?

Share this post


Link to post
Share on other sites
The Problem occurs without moving the tank Mesh(i.e. I render the tank and it's bbox directly after loading the mesh, moreover the bbox and the tank mesh share the same tranform.
do you think a transform in the .x file caused by the modeller software did such a thing?

Share this post


Link to post
Share on other sites
The problem could be that the tank isn't centered in the .x file, but if so, you'd think that the bb would still have the correct corner values... :S

Share this post


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

  • Advertisement