{"id":31755358,"url":"https://github.com/hilbertcube/simd-pathtracer","last_synced_at":"2025-10-09T18:46:55.162Z","repository":{"id":314992928,"uuid":"1057034521","full_name":"hilbertcube/SIMD-Pathtracer","owner":"hilbertcube","description":"A path tracer with 3D model importing, written in modern C++ and accelerated using SIMD, OpenMP, and tile-based rendering","archived":false,"fork":false,"pushed_at":"2025-09-25T08:56:01.000Z","size":27967,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-25T10:30:24.587Z","etag":null,"topics":["3d-graphics","3d-models","cpp","openmp-parallelization","path-tracing","raytracing","simd"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hilbertcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T07:32:03.000Z","updated_at":"2025-09-25T08:56:04.000Z","dependencies_parsed_at":"2025-09-18T08:43:27.697Z","dependency_job_id":null,"html_url":"https://github.com/hilbertcube/SIMD-Pathtracer","commit_stats":null,"previous_names":["hilbertcube/simd-raytracer","hilbertcube/simd-pathtracer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hilbertcube/SIMD-Pathtracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilbertcube%2FSIMD-Pathtracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilbertcube%2FSIMD-Pathtracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilbertcube%2FSIMD-Pathtracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilbertcube%2FSIMD-Pathtracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hilbertcube","download_url":"https://codeload.github.com/hilbertcube/SIMD-Pathtracer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hilbertcube%2FSIMD-Pathtracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001877,"owners_count":26083226,"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-10-09T02:00:07.460Z","response_time":59,"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":["3d-graphics","3d-models","cpp","openmp-parallelization","path-tracing","raytracing","simd"],"created_at":"2025-10-09T18:46:53.950Z","updated_at":"2025-10-09T18:46:55.157Z","avatar_url":"https://github.com/hilbertcube.png","language":"C++","readme":"# Ray tracing in one weekend, with SIMD\nAn optimized implementation of Peter Shirley’s classic ray tracing (actually path tracing) series: [*Ray Tracing in One Weekend*](https://raytracing.github.io/books/RayTracingInOneWeekend.html) and [*Ray Tracing: The Next Week*](https://raytracing.github.io/books/RayTracingTheNextWeek.html). This version is written in C++17, enhanced with SIMD intrinsics and OpenMP multithreading for better performance.\n\n### Preview:\n\n![Final scene](images/final_scene.png)\n![Cornell Box](images/merge_cornell.png)\n![Cornell Box](images/metal_teapot.png)\n![Cornell Box](images/dragon.png)\n![Perlin Sphere](images/light.png)\n![Spheres](images/spheres.png)\n\n## Features Added\n\nPeter Shirley’s originals were intentionally C-style. This project reimagines them with modern C++ practices and performance optimizations.\n\nSome features added:\n- A 3D model importer.\n- Generic vector class: implemented a generic N-dimensional vector class.\n- Image Writer: Instead of relying on a PPM writer, which is very slow and produces very large files, I implemented an image writer using stb_image_write. It supports multiple output formats, including PPM, PNG, JPEG, BMP, and TGA.\n- Multithreading: Initially, I implemented a custom thread pool, but later transitioned to OpenMP for simplicity and better performance (skill issue on my part).\n- Tile-based rendering: The image is divided into tiles for more efficient parallel rendering.\n- CPU SIMD intrinsics: Used for optimized vector operations and improved performance.\n\n## Building with CMake\n### External (header-only) dependencies\n- [stb_image_write.h](https://github.com/nothings/stb/blob/master/stb_image_write.h)\n- [stb_image.h](https://github.com/nothings/stb/blob/master/stb_image.h)\n- [tiny_obj_loader.h](https://github.com/tinyobjloader/tinyobjloader)\n\n### Requirements\n- C++17 (GCC \u003e= 9, Clang \u003e= 10, or MSVC \u003e= 2019)\n- [CMake](https://cmake.org/)\n- OpenMP support\n\n### Build Instructions\n```bash\n# Clone the repository\ngit clone https://github.com/hilbertcube/SIMD-Pathtracer.git\ncd SIMD-Pathtracer\n\n# Create a build directory\nmkdir build \u0026\u0026 cd build\n\n# Configure the project\ncmake .. -DCMAKE_BUILD_TYPE=Release\n\n# Build the project\ncmake --build .\n```\n\n### Running\n\nAfter building, you’ll find the executable inside the build/ directory:\n```bash\n./SIMD-Pathtracer\n```\nBy default, it renders the final scene and saves it to `output.png` (or another format if specified).\n\n### Usage\nTo enable SIMD, simply add `#define _USE_SIMD_` before `#include \"vector.hpp\"`, but remember to do this only once, or else just use `#ifndef`.\n\n## Future plans\n- CUDA acceleration\n- Command line arguments","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilbertcube%2Fsimd-pathtracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhilbertcube%2Fsimd-pathtracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilbertcube%2Fsimd-pathtracer/lists"}