{"id":13441508,"url":"https://github.com/ssloy/tinyraytracer","last_synced_at":"2025-04-13T01:59:47.124Z","repository":{"id":40642793,"uuid":"166652275","full_name":"ssloy/tinyraytracer","owner":"ssloy","description":"A brief computer graphics / rendering course","archived":false,"fork":false,"pushed_at":"2023-07-07T05:37:37.000Z","size":158857,"stargazers_count":5157,"open_issues_count":16,"forks_count":335,"subscribers_count":68,"default_branch":"master","last_synced_at":"2025-04-13T01:59:41.974Z","etag":null,"topics":["3d","3d-graphics","c-plus-plus","computer-graphics","cpp","fun","graphics","images","learning","raytracer","raytracing","raytracing-engine","rendering","rendering-engine","shaders","software-renderer","tutorial"],"latest_commit_sha":null,"homepage":"https://github.com/ssloy/tinyraytracer/wiki","language":"C++","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/ssloy.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}},"created_at":"2019-01-20T11:12:19.000Z","updated_at":"2025-04-11T13:37:49.000Z","dependencies_parsed_at":"2024-01-19T02:25:43.432Z","dependency_job_id":"e63caaf5-4ccb-48f7-962a-ac5ef3c090bf","html_url":"https://github.com/ssloy/tinyraytracer","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/ssloy%2Ftinyraytracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Ftinyraytracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Ftinyraytracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssloy%2Ftinyraytracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssloy","download_url":"https://codeload.github.com/ssloy/tinyraytracer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654046,"owners_count":21140235,"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":["3d","3d-graphics","c-plus-plus","computer-graphics","cpp","fun","graphics","images","learning","raytracer","raytracing","raytracing-engine","rendering","rendering-engine","shaders","software-renderer","tutorial"],"created_at":"2024-07-31T03:01:34.892Z","updated_at":"2025-04-13T01:59:47.099Z","avatar_url":"https://github.com/ssloy.png","language":"C++","funding_links":[],"categories":["C++","Uncategorized","CG Tutorials","\u003e 3k ★","3D computer graphics"],"sub_categories":["Uncategorized","Data Management","Raytracing"],"readme":"# Understandable RayTracing in 256 lines of bare C++\n\nThis repository is a support code for my computer graphics lectures. It is not meant to be the ultimate rendering code or even physically realistic. It is meant to be **simple**. This project is distributed under the [DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE](https://en.wikipedia.org/wiki/WTFPL).\n\n**Check [the wiki](https://github.com/ssloy/tinyraytracer/wiki) that accompanies the source code. The second raytracing chapter is available [in the tinykaboom repository](https://github.com/ssloy/tinykaboom/wiki). If you are looking for a software rasterizer, check the [other part of the lectures](https://github.com/ssloy/tinyrenderer/wiki).**\n\nIn my lectures I tend to avoid third party libraries as long as it is reasonable, because it forces to understand what is happening under the hood. So, the raytracing 256 lines of plain C++ give us this result:\n![](https://raw.githubusercontent.com/ssloy/tinyraytracer/master/out.jpg)\n\n## compilation\n```sh\ngit clone https://github.com/ssloy/tinyraytracer.git\ncd tinyraytracer\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nYou can open the project in Gitpod, a free online dev evironment for GitHub:\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ssloy/tinyraytracer)\n\nOn open, the editor will compile \u0026 run the program as well as open the resulting image in the editor's preview.\nJust change the code in the editor and rerun the script (use the terminal's history) to see updated images.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssloy%2Ftinyraytracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssloy%2Ftinyraytracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssloy%2Ftinyraytracer/lists"}