ilyabelow / raytracing

Simple and quick raytracing w/ only std C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note: I wrote this before I found out about SDF and graphics pipeline in general

Raytracing

Simple raytracer that I've written as an exercise in C++ and geometry using only my brain and C++ standard library

Alt Text

The raytracer supports:

  • Planes, spheres and cylinders

  • Coordinate system for each surface type which enables to make any shape

(it's a water lily)

Alt text

  • Reflection, refraction and translucency

Alt text

  • Textures
  • Rendering to files

TODO:

  • Light! lighting is literally the coolest thing about raytracing
  • Quaternions! because Direction abstraction sucks
  • Custom textures! for that I'll have to read image files w/ external library
  • Concurrency! so it runs fast
  • Drawing to a screen! because opening files in not cool
  • Anti-Aliasing! so distant textures are not as noisy
  • More demos! and bug fixes

About

Simple and quick raytracing w/ only std C++


Languages

Language:C++ 89.6%Language:C 8.6%Language:CMake 1.8%