{"id":18655386,"url":"https://github.com/emredogann/software-ray-tracer","last_synced_at":"2025-11-05T18:30:38.354Z","repository":{"id":163738533,"uuid":"459128336","full_name":"EmreDogann/Software-Ray-Tracer","owner":"EmreDogann","description":"A CPU-driven Multi-Threaded Ray Tracer written in C++.","archived":false,"fork":false,"pushed_at":"2022-02-16T13:47:39.000Z","size":8451,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T14:33:04.600Z","etag":null,"topics":["cmake","cpp","cpu","multithreading","ray-tracing","raytracer","raytracing","raytracing-in-one-weekend"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmreDogann.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":"2022-02-14T11:08:21.000Z","updated_at":"2022-02-16T13:49:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d84799b8-24cd-41d0-a395-da0afa312196","html_url":"https://github.com/EmreDogann/Software-Ray-Tracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmreDogann%2FSoftware-Ray-Tracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmreDogann%2FSoftware-Ray-Tracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmreDogann%2FSoftware-Ray-Tracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmreDogann%2FSoftware-Ray-Tracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmreDogann","download_url":"https://codeload.github.com/EmreDogann/Software-Ray-Tracer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239470152,"owners_count":19644067,"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","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":["cmake","cpp","cpu","multithreading","ray-tracing","raytracer","raytracing","raytracing-in-one-weekend"],"created_at":"2024-11-07T07:18:36.475Z","updated_at":"2025-11-05T18:30:38.282Z","avatar_url":"https://github.com/EmreDogann.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Software Ray Tracing\nMy implementation of the [Ray Tracing In One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) series.\n\n# Main features:\n- Materials (Lambertain, Metallic, Dielectric)\n- Camera Positioning\n- MSAA\n- Ray interactions:\n  - Reflection\n  - Refraction/Transmission\n- Global-Illumination\n- Multi-Threading\n\n# Multi-Threading\nFor Multi-Threading, I have designed the implementation as follows:\n- Spawn **X** number of threads (by default will spawn the max number of threads available).\n- Using atomic variables, each thread will pick a row to compute.\n  - Once a row has been finished, the thread will move onto the next free row.\n- Once all rows have been calculated, they are reordered in an array and then written to a .ppm file.\n\nThe image below has a resolution of **2560x1440**. Rendered with 100 samples per pixel with a ray depth of 50.\n\nOn a Ryzen 7 3700x, utlizing all 16 threads at 4.0GHz all-core, the entire image was rendered in 5 minutes 46 seconds. This is almost a 10x improvement on the inital single-threaded version.\n\n![Image](./images/Image.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredogann%2Fsoftware-ray-tracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femredogann%2Fsoftware-ray-tracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredogann%2Fsoftware-ray-tracer/lists"}