{"id":15392669,"url":"https://github.com/jackdbd/path-tracer","last_synced_at":"2025-10-07T14:28:14.976Z","repository":{"id":42383018,"uuid":"478643410","full_name":"jackdbd/path-tracer","owner":"jackdbd","description":"unbiased Monte Carlo path tracer implemented in zig","archived":false,"fork":false,"pushed_at":"2022-04-07T21:45:33.000Z","size":616,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T00:43:06.188Z","etag":null,"topics":["illumination","path-tracing","raytracing-in-one-weekend"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/jackdbd.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}},"created_at":"2022-04-06T16:37:13.000Z","updated_at":"2022-04-19T08:17:16.000Z","dependencies_parsed_at":"2022-09-09T09:50:43.657Z","dependency_job_id":null,"html_url":"https://github.com/jackdbd/path-tracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackdbd/path-tracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fpath-tracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fpath-tracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fpath-tracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fpath-tracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackdbd","download_url":"https://codeload.github.com/jackdbd/path-tracer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fpath-tracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278788936,"owners_count":26046069,"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-07T02:00:06.786Z","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":["illumination","path-tracing","raytracing-in-one-weekend"],"created_at":"2024-10-01T15:15:38.304Z","updated_at":"2025-10-07T14:28:14.933Z","avatar_url":"https://github.com/jackdbd.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ray Tracing in one weekend in zig\n\n[![CI](https://github.com/jackdbd/path-tracer/actions/workflows/ci.yaml/badge.svg)](https://github.com/jackdbd/path-tracer/actions/workflows/ci.yaml)\n\nImplementation of Peter Shirley's [Ray Tracing in One Weekend](https://github.com/RayTracing/raytracing.github.io) book in the Zig programming language.\n\nTested on Zig version **0.9.1**.\n\n![scene 21 rendered with 150 samples per pixel, depth 6, seed 456](./images/demo.png)\n\n## Installation\n\nClone the repo and jump into it:\n\n```sh\ngit clone git@github.com:jackdbd/path-tracer.git\ncd path-tracer\n```\n\nIn order to use this library and run the examples you will need zig version **0.9.1**. You can get it using [zigup](https://github.com/marler8997/zigup):\n\n```sh\nzigup fetch 0.9.1\nzigup 0.9.1\n```\n\n## Build\n\nBuild and run the executable in [debug](https://ziglang.org/documentation/master/#Debug) mode.\n\n```sh\nzig build run\n```\n\nBuild the executable in [release-fast](https://ziglang.org/documentation/master/#ReleaseFast) mode, then run it.\n\n```sh\nzig build -Drelease-fast --verbose\n# run it\n./zig-out/bin/ray-tracing-in-one-weekend-zig\n```\n\n## Tests\n\nRun all tests:\n\n```sh\nzig build test\n```\n\nOtherwise, run all tests defined in a single file:\n\n```sh\nzig test src/material.zig\nzig test src/utils.zig\nzig test src/render_targets/ppm_image.zig --main-pkg-path ./src\n```\n\n## Other\n\nFormat all zig code\n\n```sh\nzig fmt src\n```\n\n## TODO\n\n- implement example with [async and await](https://ziglang.org/documentation/master/#Async-and-Await)\n- implement more scenes\n- improve documentation about Monte Carlo path tracing algorithm and global illumination model\n- generate docs with `zig test src/utils.zig -femit-docs=./docs` or similar command\n- fix issues with zig-clap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdbd%2Fpath-tracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackdbd%2Fpath-tracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdbd%2Fpath-tracer/lists"}