Files
42_INT_04_fdf/README.md
2024-01-16 13:03:57 +01:00

2.1 KiB

FDF - fil de fer (french for Wire)


This project is an introduction to 3D drawing. It takes a map file and render it with its height. It listen to keyboard event to apply transformations on it, such as translation, rotations, zoom, and change in altitude factor.

the input map is a simple text file that looks like this :

$> cat -e map_test.fdf
0  0  0  0  0$
0  0  0  0  0$
0 10  0  0  0$
0  0  0  0  0$
0  0  0  0  0$
$>

and the program converts it into a rectangular net, like a landscape with the height equal to the numbers :

example 3D of map before modification

we can modify the map to see a new 3D model :

$> cat -e map_test.fdf
0  0  0  0  0$
1  2  3  4  5$
0 10  8  0  0$
0  0  0  9  0$
0  0  0  0  0$
$>

example 3D of map after modifications

ressources


transformations :


zoom :

example 3D of map after modifications

turn :

example 3D of map after modifications example 3D of map after modifications

move :

example 3D of map after modifications

change height :

example 3D of map after modifications