Sign in to follow this  
Liam Thomas

Xna 4.0 Creating BoundyBox

Recommended Posts

I have read how other people have done theirs and understand how it works but when i have tried to implement it myself it seems to be the wrong verision of Xna or either the box is half the size. Is there simple code to do this?

Share this post


Link to post
Share on other sites

How exactly does the XNA's built-in BBOX functionality not work for you ?

 

Before XNA, when I implemented BBOX functionality myself, the basic algorithm is very simple - browse through all vertices and find the Max/Min for X/Y/Z.

 

Obviously, if you want the smallest sphere possible to encompass the same volume, the computations get more complex.

 

But the method I described above is, like, half a page worth of code...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this