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: about 1 month 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T18:21:19.000Z (10 months ago)
- Last Synced: 2024-11-14T01:36:03.812Z (3 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
Sample maps are located in the directory `test_maps` in project path.