After cloning ray-tracer
, run yarn install
to fetch its dependencies. Then, you can run several commands:
yarn test
runs the complete test suiteyarn build-src
compiles the libraryyarn build-examples
compiles the examplesyarn animate <animation-example-name>
generates an animation- Example:
yarn animate spheres
- Example:
yarn generate <highres-example-name>
generates a high resolution image- Example:
yarn generate pattern
- Example:
- Render artifacts are written to
build/artifacts
yarn build-docs
compiles the web appyarn start
starts the development server- Navigate to
http://localhost:8000/docs
The ray tracer uses right-handed coordinates and counter-clockwise rotation around the axis. Matrices are row-major.
To convert the .ppm
files to more common image formats, see FORMAT.md.