Some early tests for a raytracer I’ve been working on.
The raytracer is written in C#. The graphics engine is written from scratch in OpenGL. For ray-triangle intersection I implemented kd-tree spatial partitioning for the imported OBJ meshes. Even though it was a great learning experience, in the end I ended up using Embree for faster ray performance. So far I’ve only implemented simple optical interactions like reflections, refractions, absorption, dispersion and fresnel equations. The resulting energy deposition is stored in an Octree so the energy density can be easily computed for each part.