Ray marching

From Fractal Wiki
Jump to navigation Jump to search

A technique for rendering 3D fractals using distance estimation.

Start the ray at position [math]P[/math] and unit direction [math]\hat D[/math]. Repeat:

  • Compute the distance estimate lower bound [math]d(P)[/math].
  • Advance the ray by this distance: [math] P \to P + d(P) \hat D [/math]

The ray is guaranteed not to intersect the fractal.

Original Page by Claude