The axis of houdini's sphere bound is wrong

   766   4   1
User Avatar
Member
13 posts
Joined: June 2015
Offline
Hello everyone, houdini’s sphere bound. There seems to be an axial misalignment problem.

Attachments:
e54b593c-d7ef-482f-9232-90b63ee72dcc.png (1.2 MB)
958c112a-b5e7-4bd6-b30d-8122a8bec1c1.png (1.2 MB)

User Avatar
Member
396 posts
Joined: Nov. 2016
Offline
On a perfect sphere, any rotation would be correct. In this case you're getting the rotation that results in the smallest possible bounding box, taking the subdivisions into account. You can uncheck Oriented Bounding Box if you'd rather have it straight.
User Avatar
Member
4520 posts
Joined: Feb. 2012
Offline
Hi,

This is by design.

Oriented Bounding Box (OBB) aligns with the eigenvectors derived from the input geometry's covariance matrix.

From this matrix, it determines the principal directions along which the points spread out the most - these directions are identified by calculating the eigenvectors of the covariance matrix. These eigenvectors do not necessarily align with the world axes because they are intimately related to the geometry's own distribution of points, not the global coordinates.

This approach doesn't necessarily produce the smallest box, but it ensures that the box is aligned with the geometry's natural orientation, thereby efficiently encapsulating the actual shape.

On the other hand, the Minimum Volume Box (MVB) takes a different approach. It seeks to encapsulate the geometry within a box of the absolute minimum volume, regardless of the geometry's principal directions. This process involves a more complex calculation, often exploring various orientations of the box to determine the one that encompasses the geometry with the smallest volume.

Hope this helps.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
13 posts
Joined: June 2015
Offline
非常
On a perfect sphere, any rotation would be correct. In this case you're getting the rotation that results in the smallest possible bounding box, taking the subdivisions into account. You can uncheck Oriented Bounding Box if you'd rather have it straight.

Attachments:
matrix_sphere.hip (218.3 KB)

User Avatar
Member
13 posts
Joined: June 2015
Offline
animatrix_
Hi,

This is by design.

Oriented Bounding Box (OBB) aligns with the eigenvectors derived from the input geometry's covariance matrix.

From this matrix, it determines the principal directions along which the points spread out the most - these directions are identified by calculating the eigenvectors of the covariance matrix. These eigenvectors do not necessarily align with the world axes because they are intimately related to the geometry's own distribution of points, not the global coordinates.

This approach doesn't necessarily produce the smallest box, but it ensures that the box is aligned with the geometry's natural orientation, thereby efficiently encapsulating the actual shape.

On the other hand, the Minimum Volume Box (MVB) takes a different approach. It seeks to encapsulate the geometry within a box of the absolute minimum volume, regardless of the geometry's principal directions. This process involves a more complex calculation, often exploring various orientations of the box to determine the one that encompasses the geometry with the smallest volume.

Hope this helps.

Attachments:
matrix_sphere.hip (218.3 KB)

  • Quick Links