{"id":20258859,"url":"https://github.com/andreie91/opengl_application","last_synced_at":"2026-05-10T03:02:43.784Z","repository":{"id":221670137,"uuid":"755033695","full_name":"AndreiE91/OpenGL_Application","owner":"AndreiE91","description":"An OpenGL application displaying rendering of a scene, camera interpolation uzing Bézier curves, object shadows, ambient lighting and more.","archived":false,"fork":false,"pushed_at":"2024-02-10T15:31:25.000Z","size":44343,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T18:44:38.017Z","etag":null,"topics":["cpp","graphics","matrix","objects","opengl","scene","shaders"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiE91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-09T09:50:15.000Z","updated_at":"2024-11-23T18:50:29.000Z","dependencies_parsed_at":"2024-11-14T11:22:09.047Z","dependency_job_id":null,"html_url":"https://github.com/AndreiE91/OpenGL_Application","commit_stats":null,"previous_names":["andreie91/opengl_application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiE91/OpenGL_Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FOpenGL_Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FOpenGL_Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FOpenGL_Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FOpenGL_Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiE91","download_url":"https://codeload.github.com/AndreiE91/OpenGL_Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FOpenGL_Application/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266774780,"owners_count":23982247,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp","graphics","matrix","objects","opengl","scene","shaders"],"created_at":"2024-11-14T11:11:58.945Z","updated_at":"2026-05-10T03:02:43.694Z","avatar_url":"https://github.com/AndreiE91.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interactive OpenGL Environment\n\n## Overview\n\nThe goal of this project is to create an interactive OpenGL environment where users can navigate through a virtual scene, viewing objects from any desired angle, and manipulating various parameters such as fog and light angles.\n\n![Scene Preview](presentation/screenshot_top.png)\n![GIF 1](presentation/gif1.gif)\n\n## Features\n\n- **Interactive Navigation**: Users can navigate the scene using keyboard controls (WASD, arrow keys) and mouse input to move the camera in 3D space and change its orientation.\n- **Lighting Control**: Ambient light direction can be adjusted using the L and J keys, while a central light generates shadows for objects in its vicinity.\n- **Parameter Manipulation**: Users can increase or decrease fog intensity (F and G keys), reveal shadow computation map (M key), and trigger automatic camera movement along Bezier curves (B key).\n- **Speed Control**: Holding LSHIFT enables a \"sprint\" mode, greatly increasing camera navigation speed.\n- **Threaded Animation**: Separate thread controls camera movement along spline-based curves.\n\n![Screenshot 1](presentation/screenshot1.png)\n![GIF 2](presentation/gif2.gif)\n\n## Scene Description\n\nThe virtual scene includes:\n- Farm area with hills and terrain variation.\n- Mountains acting as borders.\n- Rocky hill, rocks, trees, and fences with cows.\n- Dynamic lighting and shading effects.\n\n![Screenshot 2](presentation/screenshot2.png)\n![GIF 3](presentation/gif3.gif)\n\n\n## Code Overview\n\n1. **Model Loading and Rendering**: Utilizes custom Model3D class to load and render level, trees, and skybox.\n2. **Shaders and Uniforms**: Defines shaders for different objects and passes necessary parameters via uniforms.\n3. **Depth Maps and Shadow Mapping**: Generates depth map texture to create shadows.\n4. **Scene Rendering**: Renders the scene using appropriate shaders and applies shadows using light-space transformation matrix.\n5. **Skybox Rendering**: Renders the skybox using a cubemap shader.\n6. **User Input Handling**: Captures keyboard and mouse input for camera movement and parameter adjustments.\n7. **Threaded Animation**: Controls camera movement along spline-based curves using a separate thread.\n\n![Screenshot 3](presentation/screenshot3.png)\n\n## User Manual\n\n- **WASD**: Move camera in X and Z axes.\n- **LCTRL/SPACEBAR**: Move camera in Y axis.\n- **LSHIFT**: Hold for increased movement speed.\n- **Arrow Keys**: Adjust camera orientation.\n- **F/G**: Increase/Decrease fog intensity.\n- **J/L**: Rotate ambient light direction.\n- **M**: Reveal shadow computation map.\n- **B**: Trigger Bezier curve camera movement.\n- **Mouse**: Look around the scene.\n\n![GIF fog](presentation/gif_fog.gif)\n\n![GIF lightdir](presentation/gif_lightdir.gif)\n\n## Cloning\n\nTo get a local copy of this project up and running on your machine, simply clone this repository using Git:\n\n```sh\ngit clone https://github.com/AndreiE91/OpenGL_Application.git\ncd OpenGL_Application\n```\n\nOpen and build the project in Visual Studio afterwards.\n\n![Screenshot 4](presentation/screenshot4.png)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreie91%2Fopengl_application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreie91%2Fopengl_application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreie91%2Fopengl_application/lists"}