Jump to content
  • Advertisement
swiftcoder

3D Max norm distances for primitives

Recommended Posts

Anyone know of a handy reference for the max norm (l^infinity norm) distance calculations for the usual primitive shapes (sphere, box, torus, cone, pyramid, etc)?

The SIGGRAPH talk "Learning from failure" about the tech in Dreams mentions the max norm producing better signed distance fields (particularly with respect to octree generation) than the standard euclidean distance everyone uses. Simple shapes are fine to derive by hand, but the seminal paper is making my eyes glaze.

Ideally, some enterprising soul would have already derived a bunch of these, along the lines of Ingo Quilez' distance functions reference.

Edit: for those following along, shadertoy has a derivation for an ellipsoid, along with an interesting discussion of how to perform rotations in max norm context.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!