Skip to content
No description, website, or topics provided.
C++ CMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
cmake
docs
hunter_installs
models
renders
scenes
src
.editorconfig
.gitignore
CMakeLists.txt
README.md

README.md

raytracer

Loads scene descriptions and progressively outputs 3D renders.

This ray tracer is extremely in-progress and inefficient - not recommended for use!

Load a 3D scene file and render a 2D image using ray tracing.

Built originally for COMP 371 Computer Graphics at Concordia University in Montréal, Québec.

Works on macOS and Linux. Should work for Windows, but not recently tested.

Features

Pick a scene to ray cast, watch it be traced in real time, and save it to file!

Specifying scenes

See Scene description format.

Viewing saved output

Saved renders are placed in the renders directory.

Building

See Building and running the project.

Acknowledgements

Dependencies

Beyond the C++ standard library this application relies on:

  • GLM
  • STB (particularly the stb_image_write.h header library)
  • tinyobjloader
  • Boost
  • SDL2 (for displaying the current state of the ray trace)

(Following standard setup procedure in a CMake-compatible IDE should fetch all these dependencies for you, so you shouldn't need to download them separately.)

Other help

  • Cross platform CMake setup created using Hunter
  • Thanks to this StackOverflow answer, and also this other StackOverflow answer, for helping me display my render with SDL
  • Thanks to COMP 371 at Concordia for all the materials helping with various formulas for ray tracing
  • Thanks to Scratchapixel tutorials for good explanations of geometric methods for find ray intersections with spheres and planes/triangles.
You can’t perform that action at this time.