javascriptthree.jsbounding-boxconvex-hullaabb

THREE.js OBB Implementation


I was able to use Yuka_OBB implementation to generate oriented bounding box. I have some questions regarding the obtained results:

Bed (AABB)

bed_aabb

Bed (OBB)

bed_obb

Wall (AABB)

wall_aabb

Wall (OBB)

wall_obb

Question: What type of OBB is generated here from one of the following types:

  1. modal
  2. up/gravity aligned
  3. arbitrarily oriented in 3D space
  4. semantically oriented with front

Question:

While, Bed (OBB) seems properly aligned, I want to understand what's going on with Wall (OBB)? Can I do better to improve the orientation of box around wall?


Solution

  • It is arbitrarily oriented in 3D space.

    If it is the best-fit box, you can't improve it without getting a larger OBB. Read gamma.cs.unc.edu/users/gottschalk/main.pdf to get a better understanding of OBBs