{"id":30049917,"url":"https://github.com/exoad/software_rasterizer","last_synced_at":"2026-03-03T15:04:12.275Z","repository":{"id":296719512,"uuid":"993541542","full_name":"exoad/software_rasterizer","owner":"exoad","description":"Let your CPU cosplay as a GPU 💅!","archived":false,"fork":false,"pushed_at":"2025-06-09T22:49:13.000Z","size":145,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T21:33:48.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exoad.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-31T01:31:15.000Z","updated_at":"2025-06-09T22:49:17.000Z","dependencies_parsed_at":"2025-06-02T00:53:36.813Z","dependency_job_id":"baaacafb-a367-47eb-84a7-c954f2fc8c00","html_url":"https://github.com/exoad/software_rasterizer","commit_stats":null,"previous_names":["exoad/software_rasterizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exoad/software_rasterizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fsoftware_rasterizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fsoftware_rasterizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fsoftware_rasterizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fsoftware_rasterizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exoad","download_url":"https://codeload.github.com/exoad/software_rasterizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fsoftware_rasterizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T14:38:37.398Z","status":"ssl_error","status_checked_at":"2026-03-03T14:38:06.721Z","response_time":61,"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":[],"created_at":"2025-08-07T12:39:03.584Z","updated_at":"2026-03-03T15:04:12.250Z","avatar_url":"https://github.com/exoad.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\u003cimg src=\"./meta/logo.png\" width=86/\u003e\u003cbr/\u003esoftware_rasterizer\n\u003c/h1\u003e\n\n**Let your CPU cosplay as a GPU 💅!**\n\nThis was a simple hobby project made on the side with what I learned from resources online. It uses the CPU\nto perform the rasterization process, the magical process of turning 3D stuffs to be viewable on your 2D screen.\n\nCurrently, this rasterizer only has a builtin parser for loading Wavefront Object files, but you can definitely\npipe your own.\n\n## Chores\n\nThis project is not finished and should serves as just mainly inspiration and learning material for myself. There are some things\nthat I would like to work on within:\n\n- [ ] Fixing up the current triangulation method of using Fan Triangulation and improving it to work for concave polygons better.\n- [ ] Utilize the cglm graphics math library instead of my own (my math skills is questionable)\n- [ ] Move to rendering with basic STB files with Sokol and windowing and rendering to a window using SDL.\n- [ ] Implementing some kind of culling method with backface and frustum methods\n- [ ] Optimize the math currently used for projection and NDC calculations (which are wrong)\n\n## Building\n\nThis project uses a very simple [Makefile](./Makefile).\n\nBy default it compiles without an address sanitizer (because I am on Windows and the GCC MingW64 installation I have\ndoes not have a native ASAN port and I am too lazy):\n\n```bash\nmake re\n```\n\nOutputs a final executable in the root directory and other compiled objects are located in [`/obj`](./obj/)\n\n\u003e Running `make` also works, but it can be problematic for not cleaning up old compilation stuffs\n\nIf you have and can link with an address sanitizer build it with the `asan` target:\n\n```bash\nmake asan\n```\n\n## Resources\n\n1. [UT Austin CS354](https://www.cs.utexas.edu/~theshark/courses/cs354/lectures.html)\n2. [Paul Bourke Object Files](https://paulbourke.net/dataformats/obj/)\n3. [Cornell CS4620 View Explorer](https://www.cs.cornell.edu/courses/cs4620/2019fa/demos/view_explore/view_explore_ortho.html)\n4. [UAlberta ~ BMP File Format](https://www.ece.ualberta.ca/~elliott/ee552/studentAppNotes/2003_w/misc/bmp_file_format/bmp_file_format.htm)\n5. [The Base Mesh](https://www.thebasemesh.com/model-library)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexoad%2Fsoftware_rasterizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexoad%2Fsoftware_rasterizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexoad%2Fsoftware_rasterizer/lists"}