FdF (short for Fil de Fer, French for "wireframe") is a graphics project developed as part of the 42 School curriculum. It reads a .fdf
file containing elevation data and renders a 3D wireframe model of the landscape using .
The program parses a grid of height values from a .fdf
file and visualizes it as a 3D wireframe model. Each point's elevation influences its position in the 3D space, creating a relief map.
Each number represents a point in space:
• The horizontal position corresponds to its axis.
• The vertical position corresponds to its ordinate.
• The value corresponds to its altitude.
- Isometric projection rendering
- perspective projection rendering
- Dynamic zoom and pan controls
- Elevation scaling
- Color gradients based on elevation
- Keyboard controls for interaction
- A Unix-like operating system (Linux or macOS)
gcc
compilermake
utility (if you are welling to compile using the Makefile)- MiniLibX library ... if you dont have it yet you can follow this doc to install it: 42docs
git clone https://github.com/ErabaReta/fdf.git
cd fdf
make
Run the program with a .fdf file as an argument:
./fdf path/to/map.fdf
Sample maps are available in the test_maps/ directory.