Skip to content

hhhizzz/ray_tracing_one_week

Repository files navigation

ray tracing one week

A C++ project for learning ray tracing

Most code comes from Ray Tracing in One Weekend

Strictly follow the Google C++ style guide

First week

The next week

Build

# Download the dependency for reading Jpeg file
git submodule update --init --recursive
# Using cmake to build
mkdir build
cd build
cmake ..
make

Run

# Render the Random scene
./ray_tracing

# Render other scenes, you can find all the available scenes in the main.cpp
SCENE=Earth ./ray_tracing

# Modify the SPP to accelerate the processing
SPP=100 ./ray_tracing

Available scenes

  • Random
  • Random with Time
  • Checker Texture
  • Two Spheres
  • Two Perlin Spheres
  • Earth
  • Simple Light
  • Cornell Box
  • Cornell Smoke
  • The Next Week

About

A C++ project for learning ray tracing

Topics

Resources

Stars

Watchers

Forks