etx-tracer icon indicating copy to clipboard operation
etx-tracer copied to clipboard

Physically-based CPU and GPU ray-tracer

etx-tracer

Physically-based GPU and CPU ray-tracer emerging on a surface.

Features

  • Vertex Connection and Merging algorithm (CPU and GPU);
  • Full-spectral rendering (by sampling single wavelength per ray);
  • Heterogeneous and scattering medium rendering in path tracing integrators (CPU and GPU);
  • Volumetric Bidirectional Path Tracing integrator;
  • Variety of BSDFs:
    • basic materials - diffuse, plastic, conductor, dielectric;
    • multiscattering materials - diffuse, conductor, dielectric;
    • additionaal materials - thinfilm, translucent, coating, mirror, coating;
    • generic PBR material (WIP);
  • Variety of emitters:
    • area;
    • environment map;
    • directional emitter with finite angluar size;
    • collimated area lights (lasers);
  • Spectral representation of material's properties (colors, index of refractions, etc);
  • Normal mapping;
  • Thin-film rendering over most of materials (including conductor materials);
  • Using OptiX for GPU ray-tracing;
  • Most of the code is reused for CPU and GPU integrators;
  • Atmosphere integrator;

Samples

Several renderings from the ray-tracer. Samples contains showcase for materials, volumetric data rendering, spectral rendering, participating media rendering and SDS (specular-diffuse-specular paths), which are usually tricky thing to render. As well as thin film rendering, collimated emitters, depth of field, and other effects.

More renderings could be found in my Twitter:

Bubbles in Cornell BoxVolumetric cloudRoom RefractionsLaserRing Soap BubblesDiamondsSDS SDSSDS

Story behind this project

This project is a fusion of several my previous projects

  • et-engine - the old game engine, which actually was used in several shipped games;
  • etx - an extension to the engine, which is used for UI;
  • metal-ray-tracer - ray-tracer based on Metal Performance Shaders.

Project milestones:

Order is a subject to change, but here are main things to do:

  • [x] boilerplate code for window, input handling, etc;
  • [x] basic boilerplate code for ray-tracing;
  • [x] simplest CPU path-tracer;
  • [x] OptiX and GPU-related code basics;
  • [x] additional code for ray-tracing;
  • [x] GPU path tracing;
  • [x] VCM integrators (CPU and GPU);
  • [ ] cross-platform, cross-API support; ... maintaining code, adding new features.

Building

This part of the description would be updated during the development of the project, at the moment there is nothing to build here. All updates will be located here: BUILDING.md

Sponsors

This project is GitHub-sponsored by:

Links

Links to the books/papers/publications/resources I've used during the development: