Skip to content

Instantly share code, notes, and snippets.

@paniq
Last active October 23, 2025 15:19
Show Gist options
  • Select an option

  • Save paniq/6c7a465b841dc2c87294c61108370389 to your computer and use it in GitHub Desktop.

Select an option

Save paniq/6c7a465b841dc2c87294c61108370389 to your computer and use it in GitHub Desktop.
Ellipsoid Frustum Intersection

Yesterday I posted a problem to math stack exchange that bothers me for a while now, and right after I've had a few exchanges on Twitter that inspired me to attempt a solution.

The basic challenge is this: we want to solve for a pixel or tile on screen

  1. Whether an ellipsoid arbitrarily parametrized in world space is overlapping this pixel
  2. What the near and far depth range of the overlapping portion is (important for culling, but also ray-space CSG)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment