/Raymarcher

Raymarcher written in C++

Primary LanguageC

Raymarcher

This raymarcher is designed to render geometrical shapes and 3D fractals.

Usage

Build and run the application with these commands:

make clean make ./raymarcher

Features

Primitive Shapes

This raymarch can render:

  • Spheres
  • Cubes
  • Planes
  • Tori

Complex Shapes

By combining the previously mentioned shapes's signed distance functions, this raymarcher can produce complex models like:

  • Cube with a spherical hole
  • Cube frame
  • Peanut shape

To learn more about SDFs and complex shape creation, you can visit this comprehensive guide.

Fractals

Explore fractal geometry with this raymarcher. Currently, the Mandelbulb fractal is supported.

More on the Mandelbulb.

Backgrounds

Set the scene with different environmental backdrops:

  • Day
  • Night
  • Stars in a black sky

Textures

You can add more detail to your spheres and cubes with supported textures.

Rendering Effects

This raymarcher also supports:

  • Reflections
  • Soft shadowing
  • Anti-aliasing

Screenshots

Example Screenshot Example Screenshot Example Screenshot Example Screenshot Example Screenshot Example Screenshot Example Screenshot