{"id":21203727,"url":"https://github.com/bl33h/3dmodelsflatshading","last_synced_at":"2025-09-10T20:34:38.954Z","repository":{"id":189261866,"uuid":"679923789","full_name":"bl33h/3dModelsFlatShading","owner":"bl33h","description":"It is a C++ graphics application that loads and renders 3D models with flat shading using SDL and OpenGL","archived":false,"fork":false,"pushed_at":"2023-11-22T23:06:08.000Z","size":449,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T15:15:29.182Z","etag":null,"topics":["3d","cmake","cpp","glm","make","obj-files","sdl2","spaceship","tbb","wsl"],"latest_commit_sha":null,"homepage":"","language":"C++","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/bl33h.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}},"created_at":"2023-08-17T23:56:31.000Z","updated_at":"2023-09-16T09:06:32.000Z","dependencies_parsed_at":"2023-11-09T13:06:37.521Z","dependency_job_id":"b3a0c5ef-3d29-4f2b-aa88-b66e99d75593","html_url":"https://github.com/bl33h/3dModelsFlatShading","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"6c2aa76ac430114bc37a9dc04fa799674e732ea0"},"previous_names":["bl33h/3dmodelsflatshading"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2F3dModelsFlatShading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2F3dModelsFlatShading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2F3dModelsFlatShading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2F3dModelsFlatShading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl33h","download_url":"https://codeload.github.com/bl33h/3dModelsFlatShading/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658177,"owners_count":20326464,"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","cmake","cpp","glm","make","obj-files","sdl2","spaceship","tbb","wsl"],"created_at":"2024-11-20T20:26:26.131Z","updated_at":"2025-03-14T22:44:31.169Z","avatar_url":"https://github.com/bl33h.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3dModelsFlatShading\n\nThe code represents a program for loading and rendering a 3D model using SDL (Simple DirectMedia Layer) and OpenGL.\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExbDZ4bWZyNjZucjlsYnN5amRndGtuejJvaDN5Mmpsbm5sMjdjNDJheSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/k6pTwJ5WerJqYjKLWd/giphy.gif\" alt=\"pic\" width=\"500\"\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#Files\"\u003eFiles\u003c/a\u003e •\n  \u003ca href=\"#Features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#how-to-use\"\u003eHow To Use\u003c/a\u003e\n\u003c/p\u003e\n\n## Files\n\n- **configure.sh**: A shell script to set up the project dependencies and environment.\n- **build.sh**: A shell script to build the project using CMake.\n- **run.sh**: A shell script to execute the compiled graphics application.\n- **clean.sh**: A shell script to clean up build artifacts and generated files.\n- **src**: A directory containing the source code files for the graphics application.\n  - **barycentric.cpp**: Implementation of functions related to barycentric coordinates calculation.\n  - **border.cpp**: Implementation of functions for drawing lines.\n  - **border.h**: Header file declaring functions for drawing lines.\n  - **colors.h**: Header file defining color structures and operations.\n  - **fragment.h**: Header file defining fragment and shader-related structures.\n  - **framebuffer.cpp**: Implementation of functions for handling the frame buffer.\n  - **framebuffer.h**: Header file declaring functions and data structures for managing the frame buffer.\n  - **print.h**: Header file containing functions for printing various data types.\n  - **shaders.h**: Header file defining fragment and vertex shader functions.\n  - **trianglefill.cpp**: Implementation of functions for loading 3D models.\n  - **trianglefill.h**: Header file declaring functions and data structures for loading 3D models.\n  - **triangles.h**: Header file declaring functions and structures related to triangle rendering.\n\n## Features\n\nThe main features of the graphics application include:\n\n- Loading and rendering 3D models.\n- Flat shading of the 3D models.\n- Use of barycentric coordinates for triangle rendering.\n\n## How To Use\n\nTo clone and run this application, you'll need [WSL (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/install) and the following tools installed on it: [Git](https://git-scm.com), [C++ compiler](https://www.fdi.ucm.es/profesor/luis/fp/devtools/mingw.html), [CMake](https://cmake.org/download/), [Make](https://linuxhint.com/install-make-ubuntu/), [glm](https://sourceforge.net/projects/glm.mirror/), [tbb](https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb.html), and [SDL2](https://www.oreilly.com/library/view/rust-programming-by/9781788390637/386c15eb-41b2-41b4-bd65-154a750a58d8.xhtml). From your command line:\n\n```bash\n# Clone this repository\n$ git clone https://github.com/bl33h/3dModelsFlatShading\n\n# Open the project\n$ cd 3dModelsFlatShading\n\n# Give execution permissions\n$ chmod +x configure.sh\n$ chmod +x build.sh\n$ chmod +x run.sh\n\n# Run the app\n$ ./run.sh\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2F3dmodelsflatshading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl33h%2F3dmodelsflatshading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2F3dmodelsflatshading/lists"}