CSG Ray-Marching is a small educational/experimental renderer for Constructive Solid Geometry (CSG) scenes using Signed Distance Fields (SDF) and ray marching.
It lets you compose primitives with boolean operations (union, intersection, subtraction), apply transforms and render images with basic lighting. This project was developed during the STAG 2025 conference hackathon, focused on CSG and ray marching.
- etu-opengl for OpenGL rendering
- json for json loading and formatting
- C++: >= C++23
- CMake: >= 3.20
- Compiler: GCC/Clang/MSVC with C++23 support
- Clone the repo
git clone https://github.com/bigmat18/csg-raymarching.git
cd csg-raymarching- Configure and build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j- Run the demo
./build/hackmoreThe final scene is based on a model built by Davide Fantasia, inspired by “The Creation of Adam.” The scene is interactive and leverages the techniques
mentioned above.

| Avatar | Name | Role | Links |
|---|---|---|---|
![]() |
Matteo Giuntoni | Programmer & Manteriner | @bigmat18 • LinkedIn |
| Avatar | Name | Role | Links |
|---|---|---|---|
![]() |
Davide Fantasia | Modeling & Scene Design | @DavideFantasia • LinkedIn |

