https://github.com/hhhizzz/ray_tracing_one_week
A C++ project for learning ray tracing
https://github.com/hhhizzz/ray_tracing_one_week
raytracing-render
Last synced: about 2 months ago
JSON representation
A C++ project for learning ray tracing
- Host: GitHub
- URL: https://github.com/hhhizzz/ray_tracing_one_week
- Owner: hhhizzz
- Created: 2022-05-07T08:24:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-29T15:35:58.000Z (over 2 years ago)
- Last Synced: 2025-02-03T14:49:20.820Z (4 months ago)
- Topics: raytracing-render
- Language: C++
- Homepage:
- Size: 1.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ray tracing one week
A C++ project for learning ray tracing
Most code comes from [Ray Tracing in One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html)
Strictly follow the [Google C++ style guide](https://google.github.io/styleguide/cppguide.html)
## First week

## The next week

## Build
```bash
# Download the dependency for reading Jpeg file
git submodule update --init --recursive
# Using cmake to build
mkdir build
cd build
cmake ..
make
```## Run
```bash
# 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