Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

AppleBoiy/RTWeekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend

This repository contains the code for the book "Ray Tracing in One Weekend" by Peter Shirley. The book is a great introduction to ray tracing and computer graphics. The book is available for free on the Ray Tracing in One Weekend website.

Final Image
Latest Image generated by the code
Image 99: The Final Scene

Building the Code

The code is written in C++ and uses the CMake build system. The code has been tested on MacOS.

To build the code, you need to have CMake installed. You can install CMake using Homebrew on MacOS.

brew install cmake

Building the Code

  • To build the code, you can use the following make commands.
# To build the code
make build

# To make latest version of the image
make latest

# To create PPMS, this will generate the PPM files in the `dist` directory.
make create

# To convert PPM to PNG, this will convert the PPM files to PNG files in the `dist` directory.
make convert

# To deploy (build, create PPM, convert PPM to PNG, and get the latest image).
make deploy

# To clean the build and dist directories along with the images.
make clean

References

Ray Tracing in One Weekend
Peter Shirley, Trevor David Black, Steve Hollasch

Version 4.0.0-alpha.2, 2024-04-07

Copyright 2018-2024 Peter Shirley. All rights reserved.

LICENSE https://github.com/RayTracing/raytracing.github.io/blob/dev/COPYING.txt

https://github.com/RayTracing/raytracing.github.io

About

learn from the book: Ray Tracing in One Weekend

Resources

Stars

Watchers

Forks

Contributors