Skip to content

fahad-cpp/PathTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU Path Tracer

Path Tracer that runs on CPU in C++.

Latest Renders:

Glowing Ball
Coloured Balls
Reflective Ball

Building from source

Windows

  • install a c++ compiler, cmake and ninja
winget install cmake
winget install LLVM.LLVM
winget install Ninja-build.Ninja
  • clone the repo.
git clone --recursive https://github.com/fahad-cpp/PathTracer PathTracer
cd PathTracer
  • build using cmake with ninja and run
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
build\PathTracer.exe

Linux

  • install a c++ compiler, cmake and ninja using your package manager
sudo pacman -S clang ninja cmake
  • clone the repo
git clone --recursive https://github.com/fahad-cpp/PathTracer PathTracer
cd PathTracer
  • build using cmake with ninja and run
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
./build/PathTracer

Input

  • R - Render again
  • P - Print to PPM
  • ESC - Exit

About

Path Tracer written in C++

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors