This is a 21 School/Ecole 42 Project
Fdf is a program that creates simplified 3D graphic representation of a relief landscape using MiniLibX library. Subject can be found here.
FDF is short for ’fil de fer’ in French which means ’wireframe model’.
- Create a basic computer graphics project
- Learn about mapping
- Drawing lines in 3D using maths
- Implement axis rotation, zoom and transmittion
Run the following commands in Terminal:
# to build
> make
# to run
> ./fdf test_maps/pentenegpos.fdf
The 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.
To close window press esc
.
Use [+]
& [-]
to zoom in and out
Use [1]
& [2]
to rotate on x-axis
Use [3]
& [4]
to rotate on y-axis
Use [5]
& [6]
to rotate on z-axis
Press [↑]
to move upwards
Press [↓]
to move downwards
Press [←]
to move left
Press [→]
to move right