MaciejSzybiak / VoxelPathTracer

CPU-only path tracer for rendering voxel grids.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voxel Path Tracer

A CPU-only path tracer for rendering voxel grids.

Preview

Features

  • Unidirectional path tracing
  • Based on fast voxel traversal algorithm (DDA)
  • Perspective camera
  • Multiple sampling
  • Supports color, emission and reflectivity
  • Sun with direction and color
  • Simple API
  • No thrid party dependencies

Future ideas

  • Transparency support

Examples

BasicExample

Rnders an image with some predefined settings.

MengerSpongeExample

Renders a menger sponge (like in the picture above). The program is executed using command line and has the following options:

 -i, --iterations    (Default: 3) Number of iterations in range [1, 6]
 -s, --samples       (Default: 300) Number of render samples
 -r, --resolution    (Default: 500) Resolution of rendered image
 -p, --path          (Default: image.png) Path where rendered image will be saved
 -l, --light         (Default: false) Add a light in the middle of the sponge
 -c, --color         (Default: Cyan) White, Gray, Black, Cyan, Yellow, Red, Green, Blue
 -d, --denoiser      (Default: false) Use median filter to reduce noise
 --help              Display the help screen.
 --version           Display version information.

Dev log

1. Diffuse color

Diffuse

2. Emissive surfaces

Emissive1

Emissive2

3. Hard shadows

Hard shadows

4. Reflections

Mirror

Fuzzy

5. Soft shadows

Soft shadows

About

CPU-only path tracer for rendering voxel grids.

License:MIT License


Languages

Language:C# 100.0%