{"id":32361633,"url":"https://github.com/jproj3cts/donut-a-cpu-based-rendering-engine","last_synced_at":"2026-05-17T06:32:50.175Z","repository":{"id":61610955,"uuid":"551927791","full_name":"jproj3cts/DONUT-A-CPU-based-rendering-engine","owner":"jproj3cts","description":"A simple program that renders vector objects and supports various transformations upon them - such as rotations and translations.","archived":false,"fork":false,"pushed_at":"2022-10-18T21:13:15.000Z","size":5991,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-05-24T17:25:15.571Z","etag":null,"topics":["c","consol","console-application","klein","klein-bottle","linear-algebra","rendering","torus","vector","vector-graphics","windows"],"latest_commit_sha":null,"homepage":"https://github.com/jproj3cts/DONUT-A-CPU-based-rendering-engine","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jproj3cts.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}},"created_at":"2022-10-15T12:14:03.000Z","updated_at":"2022-10-17T22:00:06.000Z","dependencies_parsed_at":"2022-10-20T10:00:39.149Z","dependency_job_id":null,"html_url":"https://github.com/jproj3cts/DONUT-A-CPU-based-rendering-engine","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/jproj3cts/DONUT-A-CPU-based-rendering-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jproj3cts%2FDONUT-A-CPU-based-rendering-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jproj3cts%2FDONUT-A-CPU-based-rendering-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jproj3cts%2FDONUT-A-CPU-based-rendering-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jproj3cts%2FDONUT-A-CPU-based-rendering-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jproj3cts","download_url":"https://codeload.github.com/jproj3cts/DONUT-A-CPU-based-rendering-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jproj3cts%2FDONUT-A-CPU-based-rendering-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33129247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","consol","console-application","klein","klein-bottle","linear-algebra","rendering","torus","vector","vector-graphics","windows"],"created_at":"2025-10-24T15:01:41.488Z","updated_at":"2026-05-17T06:32:50.170Z","avatar_url":"https://github.com/jproj3cts.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DONUT-A-CPU-based-rendering-engine\n\nD.O.N.U.T. (Diligently Optimised reNdering Useful Techniques), or - more gramatically - UDONT, is an engine is capable of rendering any 3D shape you can parameterize from any distance or viewing angle. The video below demos this for a klein bottle. \n\nhttps://user-images.githubusercontent.com/114860885/196288825-5b2e7a50-eee7-4fd6-adde-f124875d1ea0.mp4\n\n\nI adapted this from the code written by Andy Sloane, the original can be found here: https://www.a1k0n.net/2011/07/20/donut-math.html.\n\nTo compile for yourself, simply run:\n```\ngcc donut.c -o donut -lgdi32 \n```\nafter cd-ing into the same directory as the donut.c file.\n\n\u003e\u003e\u003e Note: this application currently only works on windows.\n\n## Planned Improvements\n  1. Add support for changing camera angle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjproj3cts%2Fdonut-a-cpu-based-rendering-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjproj3cts%2Fdonut-a-cpu-based-rendering-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjproj3cts%2Fdonut-a-cpu-based-rendering-engine/lists"}