{"id":21523648,"url":"https://github.com/agvangrigoryan/fdf","last_synced_at":"2025-03-17T17:44:55.493Z","repository":{"id":229291303,"uuid":"772083343","full_name":"AgvanGrigoryan/FdF","owner":"AgvanGrigoryan","description":"This project is about representing a landscape as a 3D object in which all surfaces are outlined in lines.","archived":false,"fork":false,"pushed_at":"2024-03-28T12:15:36.000Z","size":575,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T05:09:51.386Z","etag":null,"topics":["42yerevan","algorithms","c","fdf-42","graphics","mlx"],"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/AgvanGrigoryan.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-03-14T14:01:01.000Z","updated_at":"2025-01-22T06:03:13.000Z","dependencies_parsed_at":"2024-03-28T13:36:08.990Z","dependency_job_id":null,"html_url":"https://github.com/AgvanGrigoryan/FdF","commit_stats":null,"previous_names":["agvangrigoryan/fdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgvanGrigoryan%2FFdF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgvanGrigoryan%2FFdF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgvanGrigoryan%2FFdF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgvanGrigoryan%2FFdF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgvanGrigoryan","download_url":"https://codeload.github.com/AgvanGrigoryan/FdF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244081831,"owners_count":20395162,"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":["42yerevan","algorithms","c","fdf-42","graphics","mlx"],"created_at":"2024-11-24T01:18:58.119Z","updated_at":"2025-03-17T17:44:55.474Z","avatar_url":"https://github.com/AgvanGrigoryan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fdf\n\nFdf is a program that creates simplified 3D graphic representation of a relief landscape using [MiniLibX](https://harm-smits.github.io/42docs/libs/minilibx/introduction.html) library. Subject can be found [here](https://cdn.intra.42.fr/pdf/pdf/47326/en.subject.pdf).\n\nFDF is short for ’fil de fer’ in French which means ’wireframe model’.\n\n## Project goals\n\n* Create a basic computer graphics project\n* Learn about mapping\n* Drawing lines in 3D using maths\n* Implement axis rotation, zoom and transmittion\n\n![Map Rotation](preview/fdf-rotate.gif)\n\n\nhttps://github.com/AgvanGrigoryan/FdF/assets/101641443/8d39155b-e198-41e6-9631-6e2e5947c798\n\n\n## To compile and run\nRun the following commands in Terminal:\n```shell\n# to build\n\u003e make\n\n# to run\n\u003e ./fdf test_maps/julia.fdf\n```\n\nThe program accepts a map in `.fdf` file as argument. Those files can be found at `test_maps/` folder. Those include lines of numbers separated by spaces (sometimes with HEX colour codes) representing height of the points on map.\n\nTo close window press `esc`.\n\n## Scene control\n\nUse `[+]` \u0026 `[-]` to zoom in and out\n\nUse `[a]` \u0026 `[d]` to rotate on x-axis\n\nUse `[s]` \u0026 `[w]` to rotate on y-axis\n\nUse `[scroll up]` \u0026 `[scroll down]` to rotate on z-axis\n\nPress `[↑]` to move upwards\n\nPress `[↓]` to move downwards\n\nPress `[←]` to move left\n\nPress `[→]` to move right\n\n## Additionally, you can control the scene using the buttons on the screen \n\n\u003cimg width=\"150\" alt=\"Screen Shot 2024-03-24 at 4 52 39 PM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/30a86f3b-b7c7-4c41-81db-647471eaceb2\"\u003e\n\n## Render examples\n\u003cimg width=\"1998\" alt=\"Screen Shot 2024-03-23 at 11 07 14 AM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/5ec68623-1972-4377-a9ed-b401c7b9e66a\"\u003e\n\u003cimg width=\"1999\" alt=\"Screen Shot 2024-03-23 at 11 17 07 AM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/38fad0c4-a1ef-4e52-8556-e3619a03b00f\"\u003e\n\u003cimg width=\"2000\" alt=\"Screen Shot 2024-03-24 at 5 09 25 PM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/fdab6fa4-9cc0-4001-ba2b-f0ee12bb4b82\"\u003e\n\u003cimg width=\"2000\" alt=\"Screen Shot 2024-03-24 at 5 05 00 PM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/8e0f39ee-9f5c-4299-a319-2cdf922b111c\"\u003e\n\u003cimg width=\"2000\" alt=\"Screen Shot 2024-03-24 at 5 03 45 PM\" src=\"https://github.com/AgvanGrigoryan/FdF/assets/101641443/c3d3c1d1-75ef-48dd-a6f8-255287295101\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagvangrigoryan%2Ffdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagvangrigoryan%2Ffdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagvangrigoryan%2Ffdf/lists"}