Skip to content

bigmat18/csg-raymarching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSG Ray-Marching

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.

1. Libraries, and Requirements

Libraries Used

  • etu-opengl for OpenGL rendering
  • json for json loading and formatting

Software Requirements

  • C++: >= C++23
  • CMake: >= 3.20
  • Compiler: GCC/Clang/MSVC with C++23 support

2. Install & Build

  1. Clone the repo
git clone https://github.com/bigmat18/csg-raymarching.git
cd csg-raymarching
  1. Configure and build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
  1. Run the demo
./build/hackmore

3. Results

The 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. CSG Base

4. Contributors

Avatar Name Role Links
Matteo Giuntoni Matteo Giuntoni Programmer & Manteriner @bigmat18LinkedIn
Avatar Name Role Links
Davide Fantasia Davide Fantasia Modeling & Scene Design @DavideFantasiaLinkedIn

About

CSG scene renderer using SDF ray marching. Built for STAG 2025 hackathon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published