Skip to content

MMehdiMousavi/Tracy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer

A textbook C++ Raytracer code. This is for learning purposes only.

How to use:

set parameters: samples per pixel, image width, bounce limit.
create world: add objects, materials. (some are there already)
set up camera: position, look at, up vector, FOV, aspect ratio.
build: main.cpp
run: cmake-build/raytracer.exe >image.ppm
open: image.ppm for final render.

This repo is based off of Peter Shirley's amazing book (RT in one Weekend).

latest render:

drawing

Next milestones:

  • Adding lights, triangles, etc.
  • Add multi-threading or use DirectX/CUDA
  • Add GUI

About

A textbook C++ Raytracer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages