Buoyancy Gem
A while ago, I mentioned that I was interested in writing a Gem on buoyancy. Well GPG6 is now available with my buoyancy Gem. The title is “Exact Buoyancy for Polyhedra.” I hope you find it useful.

A while ago, I mentioned that I was interested in writing a Gem on buoyancy. Well GPG6 is now available with my buoyancy Gem. The title is “Exact Buoyancy for Polyhedra.” I hope you find it useful.

April 1st, 2006 at 5:43 pm
I’ll have to check that out.
I’ve seen buoyancy done very efficiently by applying a force at the center of buoyancy. The center was approximated by using nine line vs plane depth tests which seemed to be enough to get a rough version of the buoyancy volume.
How expensive is your scheme?
April 2nd, 2006 at 10:33 am
The algorithm is O(n) in the number of vertices and triangles. It is highly vectorized and cache friendly. I used it on the PS2 (for boxes) without an impact on performance. In other words, it was cheaper to simulate a box in water than on land.
A nice thing about the algorithm is that it doesn’t require any additional authoring. You don’t have to embed spheres or place surface points.