{"id":21879740,"url":"https://github.com/vikastmz/path_tracer","last_synced_at":"2025-03-22T00:17:52.183Z","repository":{"id":78621135,"uuid":"268658178","full_name":"vikasTmz/Path_Tracer","owner":"vikasTmz","description":"Monte Carlo Path Tracing written in C++ ","archived":false,"fork":false,"pushed_at":"2022-10-31T04:37:32.000Z","size":6164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T18:33:54.738Z","etag":null,"topics":["cornell-box","monte-carlo","pathtracing","physically-based-rendering","rendering"],"latest_commit_sha":null,"homepage":null,"language":null,"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/vikasTmz.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":"2020-06-01T23:53:01.000Z","updated_at":"2022-10-31T04:37:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"252bd48e-33a4-42aa-a76e-cff8a5d7efc2","html_url":"https://github.com/vikasTmz/Path_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/vikasTmz%2FPath_Tracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasTmz%2FPath_Tracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasTmz%2FPath_Tracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasTmz%2FPath_Tracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikasTmz","download_url":"https://codeload.github.com/vikasTmz/Path_Tracer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885696,"owners_count":20526296,"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":["cornell-box","monte-carlo","pathtracing","physically-based-rendering","rendering"],"created_at":"2024-11-28T08:18:20.695Z","updated_at":"2025-03-22T00:17:52.167Z","avatar_url":"https://github.com/vikasTmz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monte Carlo Path Tracing\n\nPart of [Brown University CSCI2240](https://dritchie.github.io/csci2240/) assignment.\n\n\n## Description\n\n\nThis project contains code to perform Monte Carlo Path Tracing written in C++ and was built on top of the Stencil code\nprovided to us by the instructors of CSCI2240.\n\n## Requirements\n\n```\nQt ( \u003e 5.9.0)\nQt Creator ( \u003e 4.5.0)\nOpenMP\n```\n\n## Implementation\n\n#### Four basic types of BRDFs ​✔\n\n**Diffuse [640 x 640] [2000 Samples]**\n\n\u003cimg src=\"images/diffuse_global.png\"  style=\"width: 500px;\" /\u003e\n\n\n**Mirror [640 x 640] [2000 Samples]**\n\n\u003cimg src=\"images/mirror_global.png\"  style=\"width: 500px;\" /\u003e\n\n\n**Glossy [640 x 640] [3000 Samples]**\n\n\u003cimg src=\"images/glossy_global.png\"  style=\"width: 500px;\" /\u003e\n\n \n **Refraction [640 x 640] [1500 Samples]**\n \n\u003cimg src=\"images/refraction.png\"  style=\"width: 500px;\" /\u003e\n\n\n#### Soft Shadows and Indirect Illumination ​✔\n\nSoft Shadows and Colour Bleeding Caustics\n\n\u003cimg src=\"images/softshadows.png\"  style=\"width: 500px;\" /\u003e\n\n\n#### Russian Roulette path termination ​✔\n\n#### Tone Mapping ​✔\n\n#### Event splitting ​✔\n\n\u003cimg src=\"images/event_split.png\"  style=\"width: 500px;\" /\u003e\n\n## Extra Features\n\n#### Attenuate refracted paths ​ ​✔\n\n\u003cimg src=\"images/attenuation.png\"  style=\"width: 500px;\" /\u003e\n\nReference : https://www.scratchapixel.com/lessons/3d-basic-rendering/global-illumination-path-tracing\n\n#### Importance Sampling ​✔\n\n\u003cimg src=\"images/importance.png\"  style=\"width: 500px;\" /\u003e\n\nWith importance sampling, the path tracer converges within 2000 samples per pixel, while the naive uniform sampling\ntechnique still produces noise for the same samples per pixel.\n\nReference: https://www.tobias-franke.eu/log/2014/03/30/notes_on_importance_sampling.html\n\n\n#### Depth of field ​✔\n\n\u003cimg src=\"images/dof1.png\"  style=\"width: 500px;\" /\u003e\n\u003cimg src=\"images/dof2.png\"  style=\"width: 500px;\" /\u003e\n\n\n## Other Scenes\n\n\u003cimg src=\"images/water.png\"  style=\"width: 500px;\" /\u003e\n\u003cimg src=\"images/boat.png\"  style=\"width: 500px;\" /\u003e\n\n\n## Usage\n\n#### Build :\n\n- Using Qt Creator.\n- Using CLI:\n\n```\ncd Path_Tracer\nmkdir build\ncd build\nqmake -makefile ../path-stencil.pro\nmake -j\n```\n\n#### Run :\n\n- Using Qt Creator\nSet the following arguments in Qt Creator.\n```\n# \u003cpath to xml file\u003e \u003crendered image path\u003e \u003cnumber of samples\u003e \u003cimage height\u003e \u003cimage width\u003e\n../Path_Tracer_2240/example-scenes/CornellBox-Sphere.xml ./output.png 100 256 256\n```\n- Using CLI :\n```./path-stencil ../Path_Tracer_2240/example-scenes/CornellBox-Sphere.xml ./output.png 100 256 256```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikastmz%2Fpath_tracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikastmz%2Fpath_tracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikastmz%2Fpath_tracer/lists"}