{"id":23397787,"url":"https://github.com/jack-mil/matlab-render-pipeline","last_synced_at":"2025-04-08T18:29:05.527Z","repository":{"id":242984947,"uuid":"809224321","full_name":"jack-mil/matlab-render-pipeline","owner":"jack-mil","description":"GPU Programming for 3D Graphics SU24","archived":false,"fork":false,"pushed_at":"2024-12-10T16:37:46.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T14:50:49.448Z","etag":null,"topics":["3d-graphics","demonstration","matlab","proof-of-concept","render-pipeline","shading","suzanne"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","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/jack-mil.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}},"created_at":"2024-06-02T04:22:43.000Z","updated_at":"2024-12-10T16:39:10.000Z","dependencies_parsed_at":"2025-02-14T14:53:51.412Z","dependency_job_id":null,"html_url":"https://github.com/jack-mil/matlab-render-pipeline","commit_stats":null,"previous_names":["jack-mil/matlab-rendering"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jack-mil%2Fmatlab-render-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jack-mil%2Fmatlab-render-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jack-mil%2Fmatlab-render-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jack-mil%2Fmatlab-render-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jack-mil","download_url":"https://codeload.github.com/jack-mil/matlab-render-pipeline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247901254,"owners_count":21015227,"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-graphics","demonstration","matlab","proof-of-concept","render-pipeline","shading","suzanne"],"created_at":"2024-12-22T08:36:25.232Z","updated_at":"2025-04-08T18:29:00.518Z","avatar_url":"https://github.com/jack-mil.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3D Rendering Pipeline in MATLAB\n\n### Features\n- Perspective or Orthographic projection (Right Handed Axis)\n- Full object transform (Scale, Rotation, Translation)\n- Freely position camera in 3D space\n- Configurable camera FOV and aspect ratio\n- Any number of point lights, with any color\n- Per vertex shading with Specular \u0026 Diffuse lighting passes (ambient optional)\n- Only 30 lines of code! Fully vectorized, no loops used\n\n## Images\n\n![specular \u0026 diffuse shading](images/sphere_phong.png)\n![multiple lights](images/sphere_studio.png)\n![hi-poly model](images/suzanne_studio.png)\n![colored backlighting](images/suzanne_backlit.png)\n![utah teapot](images/teapot_studio.png)\n![alt text](images/cube_backlit.png)\n![alt text](images/suzanne_ortho_colored_lights.png)\n![alt text](images/torus_orange.png)\n![alt text](images/torus.png)\n\n![alt text](images/spin.gif)\n\nAnimation made by rendering frames and encoding with ffmpeg and gifksi\n```bash\ngifski -r 30 --extra -Q100 -W728 --repeat 4 -o spin.gif frames/*.png\n\nffmpeg -framerate 30 -i 'frames/frame%03d.png' -pix_fmt yuv420p -c:v libx264 -preset veryslow -crf 18 -movflags +faststart -vf \"pad=ceil(iw/2)*2:ceil(ih/2)*2\" spin.mp4\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjack-mil%2Fmatlab-render-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjack-mil%2Fmatlab-render-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjack-mil%2Fmatlab-render-pipeline/lists"}