Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Xna 4.0 Creating BoundyBox

4: Adsense

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
1 reply to this topic

#1 Liam19871   Members   

103
Like
0Likes
Like

Posted 11 April 2013 - 03:30 PM

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?



#2 VladR   Members   

722
Like
0Likes
Like

Posted 11 April 2013 - 07:11 PM

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...


VladR    My 3rd person action RPG on GreenLight:    http://steamcommunity.com/sharedfiles/filedetails/?id=92951596

 





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.