nklein logo

4-cube with axes removed -- N-Dimensional Ray Tracing

The picture at the top of the page is a trace of a 4-dimensional cube with a cylinder cut out of each major axis.

Here is a sample of the objects and textures that are possible with this raytracer. This is a slice from a trace of a four-dimensional scene. Here is the whole trace and the source file that generated it.

slice from 4-D version of all objects

From left to right, these are:

Here, a (k,n)-cylinder means an n-dimensional cylinder where k of the dimensions are restricted by the sum of their squares being less than or equal to the square of the radius. The remaining (n-k) dimensions are independently clipped.

Feedback of any sort is welcome to rt@nklein.com


Latest version fixes template classes to be compatible with newer compilers.

Off-site links about N-Dimensional Stuff

(copyright 2000-2004) (gpg keys)

Valid XHTML 1.0! Valid CSS!