Work

ActiveC++23 · Ray tracing · Rendering · Global illumination

Software ray tracer

A physically-based software ray tracer built from scratch in C++23 to study rendering equations, light transport, and global illumination — following The Ray Tracer Challenge.

  • Full ray–object intersection pipeline: spheres, planes, cubes, cylinders, and CSG groups.
  • Phong shading model with point lights, soft shadows, reflections, and refraction via Snell's law.
  • Scene graph with hierarchical transforms using 4×4 matrix stacks.
  • Pattern system: stripe, gradient, ring, checker, and nested patterns mapped via UV transforms.
  • BMP/PPM image export with configurable anti-aliasing sample count.
Source on GitHub, opens in a new tab

ActiveC++23 · Linear algebra · Quaternions · Header-only

Mathematics for game engines

A C++23 header-only math library and educational resource implementing the linear algebra foundations required for real-time 3D engines, based on Foundations of Game Engine Development Vol. 1.

  • Vec2, Vec3, Vec4 and Mat3, Mat4 classes with full operator overloading and SIMD-friendly layout.
  • Quaternion class with slerp, conjugate, and conversion to/from axis-angle and rotation matrices.
  • Transform pipeline: model → view → clip → NDC with configurable projection (perspective/ortho).
  • Plane equations, frustum construction, and point/AABB intersection tests.
  • Comprehensive test suite and inline documentation linking theory to implementation.
Source on GitHub, opens in a new tab

CompleteC++23 · Modules · raylib · Graph algorithms

Maze generator & solver

A maze generator and solver built entirely on C++23 named modules, carving mazes you can either drain headlessly or watch being generated one move per frame in a raylib window.

  • Randomised depth-first backtracking and Wilson's loop-erased random walks, optionally braided to add loops.
  • Generation exposed as a lazy stream of steps, so the same code runs headless or animates a frame at a time.
  • Breadth-first search solver, its optimality checked against an independently computed distance map.
  • Live raylib window: pause, single-step, switch algorithms, repainting only the cells that changed.
  • Reproducible from the seed, exported as plain text; 600×600 carved in 30 ms and solved in 12 ms.
Source on GitHub, opens in a new tab
AU

CompleteC++23 · Modules · Cryptography · Simulation

Enigma M4 'Shark'

A simulator of the four-rotor Enigma M4 'Shark' — the machine the German U-boat fleet used from February 1942 — written in C++23 as a set of named modules.

  • All eight rotors with their historical wiring and notches, both Zusatzwalzen, both thin reflectors, plugboard and Ringstellung.
  • Stepping mechanism reproduces the double step, so the middle rotor advances on two consecutive key presses.
  • Prints the settings the machine started on, the ciphertext in four-letter radio groups, and the settings it was left in.
  • Driven by prompts or entirely by flags; the machine itself is a library depending on nothing but the standard library.
  • 491 recorded test vectors covering every rotor and reflector combination, all 26 ring settings, and the double-step edge cases.
Source on GitHub, opens in a new tab