{"id":30160088,"url":"https://github.com/cschladetsch/cppraymarch","last_synced_at":"2025-08-11T15:26:01.156Z","repository":{"id":292694496,"uuid":"981652602","full_name":"cschladetsch/CppRayMarch","owner":"cschladetsch","description":"Cpp23 RayMarcher using just CPU.","archived":false,"fork":false,"pushed_at":"2025-05-11T16:05:46.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-11T16:39:03.335Z","etag":null,"topics":["cpp23","graphics","raymarycher","smfl"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cschladetsch.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-11T15:42:54.000Z","updated_at":"2025-05-11T16:05:49.000Z","dependencies_parsed_at":"2025-05-11T16:49:14.254Z","dependency_job_id":null,"html_url":"https://github.com/cschladetsch/CppRayMarch","commit_stats":null,"previous_names":["cschladetsch/cppraymarch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cschladetsch/CppRayMarch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschladetsch%2FCppRayMarch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschladetsch%2FCppRayMarch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschladetsch%2FCppRayMarch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschladetsch%2FCppRayMarch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cschladetsch","download_url":"https://codeload.github.com/cschladetsch/CppRayMarch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschladetsch%2FCppRayMarch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269912793,"owners_count":24495406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp23","graphics","raymarycher","smfl"],"created_at":"2025-08-11T15:25:57.984Z","updated_at":"2025-08-11T15:26:01.151Z","avatar_url":"https://github.com/cschladetsch.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Ray Marching Renderer\n\nA modern C++23 implementation of a ray marching renderer using Signed Distance Functions (SDFs) and SFML for visualization.\n\n\\![Ray Marching Render](https://github.com/username/CppRayMarch/raw/main/screenshots/render.png)\n\n## Demo\n\n![Demo](resources/Demo.jpg)\n\n## Features\n\n- Fast ray marching using signed distance functions (SDFs)\n- Interactive camera controls\n- Physically-based material system with metallic/roughness properties\n- Atmospheric lighting with soft shadows\n- Multi-threaded rendering using C++23 features\n- GPU-like rendering pipeline implemented entirely on the CPU\n- Interactive controls for camera movement and quality settings\n\n## Requirements\n\n- C++23 compatible compiler (Clang 16+ or GCC 13+ recommended)\n- CMake 3.22+\n- SFML 2.6+\n\n## Building the Project\n\n### Using Clang (Recommended)\n\n```bash\n./build-clang.sh\n```\n\n### Using GCC\n\n```bash\n./build-gcc.sh\n```\n\n## Running the Application\n\nAfter building, you can run the ray marcher with:\n\n```bash\n./build-clang/raymarch\n```\n\nOr if you built with GCC:\n\n```bash\n./build/raymarch\n```\n\n## Controls\n\n| Key               | Action                              |\n|-------------------|-------------------------------------|\n| W, A, S, D        | Move camera forward, left, back, right |\n| Q, E              | Move camera up, down                |\n| Arrow Keys        | Rotate camera                       |\n| Space             | Toggle between auto and manual camera mode |\n| R                 | Increase samples per pixel (higher quality) |\n| F                 | Decrease samples per pixel (faster rendering) |\n| Escape            | Exit application                    |\n\n## Scene Construction\n\nThe scene is built using Signed Distance Functions (SDFs) which enable complex geometry to be defined mathematically. The current scene includes:\n\n- Procedurally placed pillars with glowing spheres\n- Reflective tori with metallic properties\n- A central complex shape created by CSG operations\n- Atmospheric lighting with dramatic shadows\n- Custom sky and ground gradients\n\n## Technical Details\n\n### Ray Marching Algorithm\n\nUnlike traditional ray tracing, ray marching works by stepping along a ray in variable increments until an intersection is found. This method excels at rendering:\n\n- Complex mathematical surfaces\n- Procedurally generated geometry\n- CSG (Constructive Solid Geometry) operations\n- Fractal structures\n\n### C++23 Features\n\nThis project leverages modern C++ features including:\n\n- C++20 modules for improved compilation speed\n- Concepts and constraints for generic programming\n- std::format for string formatting\n- Multithreaded rendering using std::thread and atomics\n\n## Project Structure\n\n- `src/` - Source code files\n  - `main.cpp` - Application entry point\n  - `modules/` - C++ module implementations\n    - `camera.cpp` - Camera module implementation (with rm namespace)\n    - `common.cpp` - Common utilities and data structures\n    - `renderer.cpp` - Rendering pipeline implementation\n    - `scene.cpp` - Scene graph and SDF implementations\n    - Note: The `.cppm` files are reference files, not used in the build\n- `include/` - Header files (traditional includes for non-modular code)\n- `build-clang.sh` - Build script for Clang (recommended)\n- `build-gcc.sh` - Build script for GCC\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgments\n\n- [Inigo Quilez](https://iquilezles.org/articles/) for his excellent resources on SDFs and ray marching\n- The SFML team for their simple and effective multimedia library\nEOF \u003c /dev/null\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschladetsch%2Fcppraymarch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcschladetsch%2Fcppraymarch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschladetsch%2Fcppraymarch/lists"}