A project following a wonderful ray tracing tutorial book called Ray Tracing in One Weekend.
- glm is used for vector and color representations.
- lodepng is used to output the image as a PNG file, instead of a PPM file.
- File structure and conventions are differnt from the original book. I tried to write the code in a more 'C++ way'.
This project only supports Windows x64, but you will probably be able to use the same source files and run it in different platfoms.
- Clone this repository and all of its submodules
$ git clone --recursive https://github.com/HappyFaceFriend/RayTracingInOneWeekend
-
Run
GenerateProject.bat
to generate a vs2022 project.- If you are not using vs2022, modify the bat file to your desired IDE
-
Build the project in visual studio
-
The resulting image will be under the directory
RayTracingInOneWeekend
.