{"id":21088687,"url":"https://github.com/crocidb/pathtracer","last_synced_at":"2025-09-13T00:38:17.071Z","repository":{"id":136395168,"uuid":"171026102","full_name":"CrociDB/pathtracer","owner":"CrociDB","description":"An path tracer implementation based on Ray Tracing in One Weekend in Rust with CPU multithreading.","archived":false,"fork":false,"pushed_at":"2019-08-30T12:32:09.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T15:08:20.443Z","etag":null,"topics":["graphics","graphics-programming","parallel","pathtracer","raytracer","raytracing","raytracing-one-weekend","renderer","rendering","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/CrociDB.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}},"created_at":"2019-02-16T16:38:39.000Z","updated_at":"2020-01-20T15:59:50.000Z","dependencies_parsed_at":"2024-06-06T23:06:33.800Z","dependency_job_id":null,"html_url":"https://github.com/CrociDB/pathtracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CrociDB/pathtracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrociDB%2Fpathtracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrociDB%2Fpathtracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrociDB%2Fpathtracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrociDB%2Fpathtracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrociDB","download_url":"https://codeload.github.com/CrociDB/pathtracer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrociDB%2Fpathtracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274902332,"owners_count":25371074,"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-09-12T02:00:09.324Z","response_time":60,"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":["graphics","graphics-programming","parallel","pathtracer","raytracer","raytracing","raytracing-one-weekend","renderer","rendering","rust"],"created_at":"2024-11-19T21:19:49.827Z","updated_at":"2025-09-13T00:38:16.998Z","avatar_url":"https://github.com/CrociDB.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"An implementation based on `Ray Tracing in One Weekend` by **Peter Shirley**[1] in Rust with CPU multithreading.\n\n[1] http://www.realtimerendering.com/raytracing/Ray%20Tracing%20in%20a%20Weekend.pdf\n\n![Pathtracer](https://i.imgur.com/a2ws5oV.png)\n\n## Building\n\n### Linux (Debian based)\n\nAssuming you have `rustc 1.33` or newer already installed, install `libsdl2-dev` on your system:\n\n```sh\n$ sudo apt-get libsdl2-dev\n```\n\nOpen `Cargo.toml` and remove `build` property (that's only for Windows).\n\nNow simply go for:\n\n``` sh\n$ cargo run --release\n```\n\n*I strongly recommend running it on the release configuration, since it's optimized and runs at least 15x faster.*\n\n### Windows (MSVC)\n\nAssuming you have `rustc 1.33` or newer already installed, download SDL2 runtime libraries from [here](https://www.libsdl.org/download-2.0.php), then extract all `*.lib` files to `pathtracer-root\\msvc\\lib\\64\\*.lib` and all the `*.dll` files to `pathtracer-root\\msvc\\dll\\64\\*.lib`, assuming you're running on a `x86-64` environment. Otherwise, open `src\\build.rs` and figure it out.\n\nNow simply do:\n\n```\n\u003e cargo run --release\n```\n\n*I strongly recommend running it on the release configuration, since it's optimized and runs at least 15x faster.*\n\n## Instructions\n\nWhen a black window open, press `SPACE` and wait sometime for it to render.\n\nYou can change how many rays per pixel you want to cast, on `src/tracer/mod.rs` there's a global constant called `SAMPLINGS_PER_PIXEL`, it's set to `100` by default, but you can test how many rays you want.\n\n*Warning: be careful when running more than **100** rays per pixel, since it may get your computer really slow for a few minutes.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrocidb%2Fpathtracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrocidb%2Fpathtracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrocidb%2Fpathtracer/lists"}