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
Motion_effect.mov
Run the following commands in Terminal:
# to build
> make
# to run
> ./fdf test_maps/julia.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 [a]
& [d]
to rotate on x-axis
Use [s]
& [w]
to rotate on y-axis
Use [scroll up]
& [scroll down]
to rotate on z-axis
Press [↑]
to move upwards
Press [↓]
to move downwards
Press [←]
to move left
Press [→]
to move right