Arbitrary axis aligned bounding box

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
shapeare2014
Gnoblar
Posts: 7
Joined: Thu Oct 09, 2014 8:26 am

Arbitrary axis aligned bounding box

Post by shapeare2014 » Tue Oct 14, 2014 12:18 pm

How can I calculate a bounding box that is aligned according to another object :roll: ?

The figure in the following link http://imgur.com/Dul5XaJ is an example.
Image
In both situations, the bounding box of the sphere is aligned with the red box. Simple rotating the bounding box on the left won't get the one on the right!
0 x

User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4291
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 2
Contact:

Re: Arbitrary axis aligned bounding box

Post by spacegaier » Tue Nov 11, 2014 12:36 am

Ogre unfortunately only provides AABB = Axis-Aligned Bounding Boxes, so they re always aligned to the global axis. If you definitely need arbitrary bounding boxes that is something you need to take care of yourself.

Those two links might help you get started:
http://www.ogre3d.org/tikiwiki/tiki-ind ... ding%20Box
http://www.ogre3d.org/tikiwiki/tiki-ind ... ding%20Box
0 x
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...

Post Reply