Skip to content

Make the most perfect ray tracing with the simplest code

Notifications You must be signed in to change notification settings

IT-dreamer/Simple-RayTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project is a learning of what is ray tracing and how to achieve, from display a picture in ppm format to the realization of ray tracing, the tutorial is: Ray Tracing in One Weekend.

Usage

$ git clone https://github.com/IT-dreamer/Simple-RayTracer.git
$ cd Simple-RayTracer
$ mkdir build
$ cd ./build
$ cmake ..
$ make

The cpp files in the src file correspond to different chapter exercises, just specify the MAIN_FILE in the CMakeLists.txt to the target file.

How to check ppm file

You can use the Web PPM Viewer.The target image(out.ppm) are stored in the target file. Cause it's compiling with /src/12_TheNext.cpp, you will see

About

Make the most perfect ray tracing with the simplest code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published