{"id":29091166,"url":"https://github.com/a-voronov/computer-graphics-from-scratch","last_synced_at":"2025-06-28T06:05:46.261Z","repository":{"id":300962367,"uuid":"1006744972","full_name":"a-voronov/computer-graphics-from-scratch","owner":"a-voronov","description":"Computer Graphics from Scratch: Lightweight C++ implementation with no external libraries","archived":false,"fork":false,"pushed_at":"2025-06-24T12:21:56.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T13:34:30.164Z","etag":null,"topics":["computer-graphics","cpp"],"latest_commit_sha":null,"homepage":"","language":null,"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/a-voronov.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,"zenodo":null}},"created_at":"2025-06-22T23:09:05.000Z","updated_at":"2025-06-24T12:22:00.000Z","dependencies_parsed_at":"2025-06-24T13:35:56.738Z","dependency_job_id":"cfaf58f1-4b30-4f11-a642-857a6785f136","html_url":"https://github.com/a-voronov/computer-graphics-from-scratch","commit_stats":null,"previous_names":["a-voronov/computer-graphics-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-voronov/computer-graphics-from-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-voronov%2Fcomputer-graphics-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-voronov%2Fcomputer-graphics-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-voronov%2Fcomputer-graphics-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-voronov%2Fcomputer-graphics-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-voronov","download_url":"https://codeload.github.com/a-voronov/computer-graphics-from-scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-voronov%2Fcomputer-graphics-from-scratch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382732,"owners_count":23302296,"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":["computer-graphics","cpp"],"created_at":"2025-06-28T06:05:45.383Z","updated_at":"2025-06-28T06:05:46.252Z","avatar_url":"https://github.com/a-voronov.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Computer Graphics from Scratch\n\nC++ implementation of [Computer Graphics from Scratch](https://gabrielgambetta.com/computer-graphics-from-scratch/) book for self-studying purposes.\n\nThe book is using JavaScript and HTML Canvas to implement logic and display results.\nIt seems to me that the easiest implementation in C++ without using any libraries, is to render results straight into the bmp files. So I've added a quick [bmp implementation](/examples/bmp.h).\n\n## Run Examples\n\n```\nmkdir -p bin results\n\nclang++ -std=c++17 examples/\u003cexample\u003e.cc -o bin/\u003cexample\u003e\n\nbin/\u003cexample\u003e \u0026\u0026 open results/\u003cexample\u003e.bmp\n```\n\n## Results\n\n| [01 - Basic Raytracing](/examples/01-basic-raytracing.cc) | [02 - Diffuse Reflection](/examples/02-diffuse-reflection.cc) | 03 - Specular Reflection |\n|---|---|---|\n| ![Basic Raytracing](/results/01-basic-raytracing.bmp) | ![Diffuse Reflection](/results/02-diffuse-reflection.bmp) |  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-voronov%2Fcomputer-graphics-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-voronov%2Fcomputer-graphics-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-voronov%2Fcomputer-graphics-from-scratch/lists"}