/SimpleRT

Simple Ray Tracer in C++

Primary LanguageC++

SimpleRT

Simple Ray Tracer in C++

Build and Run

Build

g++ main.cpp -o main

Generate image file result.ppm

main.exe > result.ppm

Generate image file result.ppm with width height and samples

main.exe [width] [height] [samples] > result.ppm

Generate 1200x800 image with 10 samples

main.exe 1200 800 10 > result.ppm

Results

1. Metal

rough_metal

2. Glass

glass_sphere

3. Bubble

bubble

4. Random Scene

final