Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdellahbellakrim/fdf
Drawing a 3D representation of the landscape
https://github.com/abdellahbellakrim/fdf
3d c graphics low-level-programming maths mlx42 parsing
Last synced: 1 day ago
JSON representation
Drawing a 3D representation of the landscape
- Host: GitHub
- URL: https://github.com/abdellahbellakrim/fdf
- Owner: AbdellahBellakrim
- Created: 2022-02-12T00:15:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T18:21:19.000Z (7 months ago)
- Last Synced: 2024-04-25T19:34:38.945Z (7 months ago)
- Topics: 3d, c, graphics, low-level-programming, maths, mlx42, parsing
- Language: C
- Homepage:
- Size: 6.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Fdf is a small project for drawing a 3D representation of the landscape.
From task:
>The representation in 3D of a landscape is a critical aspect of modern mapping. For
>example, in these times of spatial exploration, to have a 3D representation of Mars is a
>prerequisite condition to its conquest. As another example, comparing various 3D representations of an area of high tectonic activity will allow you to better understand these
>phenomenon and their evolution, and as a result be better prepared.The target platform of the project is MacOS, but linux is also supported.
For Linux support read ```minilibx/man/man1/mlx.1``` and edit Makefile to X-Window support.
Use `make` for making a binary-file.
Use `./fdf *map_path*` to run the Fdf.
"Map" is a text file representing a height map with a top view.
For example, the map
```
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 10 10 0 0 10 10 0 0 0 10 10 10 10 10 0 0 0
0 0 10 10 0 0 10 10 0 0 0 0 0 0 0 10 10 0 0
0 0 10 10 0 0 10 10 0 0 0 0 0 0 0 10 10 0 0
0 0 10 10 10 10 10 10 0 0 0 0 10 10 10 10 0 0 0
0 0 0 10 10 10 10 10 0 0 0 10 10 0 0 0 0 0 0
0 0 0 0 0 0 10 10 0 0 0 10 10 0 0 0 0 0 0
0 0 0 0 0 0 10 10 0 0 0 10 10 10 10 10 10 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
```
will represented as![screenshot of sample](https://github.com/heybellakrim/fdf/blob/d3d20fceba1e3935ed3fef5bb3d7daaf2cc750c7/Screen%20Shot%202022-02-27%20at%209.07.56%20PM.png)
![screenshot of sample](https://github.com/heybellakrim/fdf/blob/38c68d20a1ccaab7332877a1a5bfeb2e067535f7/Screen%20Shot%202022-03-03%20at%206.10.02%20PM.png)Sample maps are located in the directory `test_maps` in project path.