{"id":24327828,"url":"https://github.com/nhollmann/pathtracer","last_synced_at":"2025-07-27T06:39:04.613Z","repository":{"id":168808258,"uuid":"198114190","full_name":"NHollmann/Pathtracer","owner":"NHollmann","description":"A simple command line pathtracer.","archived":false,"fork":false,"pushed_at":"2019-08-17T17:11:05.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T07:33:29.140Z","etag":null,"topics":["pathtracer","raytracer"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"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/NHollmann.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}},"created_at":"2019-07-21T23:14:30.000Z","updated_at":"2019-08-17T17:11:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"98bfbad1-6eb0-40e2-af9e-0e23ead24046","html_url":"https://github.com/NHollmann/Pathtracer","commit_stats":null,"previous_names":["nhollmann/pathtracer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NHollmann/Pathtracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHollmann%2FPathtracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHollmann%2FPathtracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHollmann%2FPathtracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHollmann%2FPathtracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NHollmann","download_url":"https://codeload.github.com/NHollmann/Pathtracer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHollmann%2FPathtracer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267318663,"owners_count":24068487,"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-07-27T02:00:11.917Z","response_time":82,"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":["pathtracer","raytracer"],"created_at":"2025-01-17T22:15:59.774Z","updated_at":"2025-07-27T06:39:04.606Z","avatar_url":"https://github.com/NHollmann.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pathtracer\n*A simple pathtracer running from the commandline for Linux, macOS and Windows*\n\nThis is strongly based on the book [Ray Tracing in a Weekend](http://in1weekend.blogspot.com/2016/01/ray-tracing-in-one-weekend.html) by Peter Shirley.\nThe code follows the one from the book, but I've changed a lot of the code structure and added some extra features.\n\n## Features\n\n- [x] Runs from the command line with options\n- [x] Multithreaded\n- [x] PPM Output\n- [x] BMP Output\n- [x] TGA Output\n- [x] Antialiasing\n- [x] Diffuse, Metal and Dielectric Materials\n- [x] Positionable camera\n- [x] Defocus blur\n- [x] Motion blur\n\n## Running\nThe usage is relly simple. For a complete overview of all options, enter `./raytracer --help`. Here are some examples:\n```bash\n./raytracer --help # Print help with all options\n./raytracer # Start raytracing of the default world with default settings\n./raytracer --world random # Random Scene (from the book)\n./raytracer --world demo # Demo Scene (from the book)\n./raytracer --width 1280 --height 640 # Output image with size 1280x640\n```\n\n## Requirements\nThe final binary has no requirements.\n\nTo compile this project you need `cmake` \u003e= 3.2 and a C++ compiler with support for C++14. There aren't any other dependencies.\nIt was tested on Linux (Ubuntu, with gcc), macOS Mojave (clang) and Windows 10 (MSVC).\n\n## Compiling\nThis project uses cmake for cross platform compilation.\n\n### Unix\nUse the default cmake workflow:\n```bash\n# Assuming you are already in the project directory\nmkdir build # Out of source build\ncd build\ncmake ..\nmake\n./raytracer --help # Show help to check if compilation was successfull.\n```\n\n### Windows\nUse cmake for windows to create a Visual Studio project.\nOpen this project and make sure you have Release selected, then compile the complete project.\nThis was tested with VS 2017.\n\n### Debug build\nThe project will be builded as Release by default. If you need a debug build, set `CMAKE_BUILD_TYPE` to `Debug`:\n```bash\ncmake -DCMAKE_BUILD_TYPE=Debug ..\n```\n\n### Double precision\nTo compile the project with doubles instead of floats, set the cmake option `DOUBLE_AS_FLOAT` to `ON`:\n```bash\ncmake -DDOUBLE_AS_FLOAT ..\n```\n\n## Todo\nSome features I like to add:\n- [ ] More worlds\n- [ ] Make drand48 thread safe (maybe erand48?)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhollmann%2Fpathtracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhollmann%2Fpathtracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhollmann%2Fpathtracer/lists"}