logoalt Hacker News

A Couple 3D AABB Tricks

26 pointsby ibobevlast Wednesday at 8:45 AM8 commentsview on HN

Comments

stonemetal12yesterday at 7:09 PM

For non 3d graphics people AABB -> Axis Aligned Bounding Box.

throwaway2027yesterday at 6:30 PM

struct aabb { float x_minmax[2]; float y_minmax[2]; float z_minmax[2]; };

Why not just do struct aabb { float mins[3]; float maxs[3]; };

show 2 replies
pphyschyesterday at 8:12 PM

The minmax representation makes less sense if you are frequently updating the 3D objects position, no? You really want both representations available.

It make sense to generate the bounds JIT when you are actually building an octree to test collisions. Assuming you have a nontrivial amount of objects.

show 1 reply