diff --git a/README.md b/README.md index fff3630..1572982 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # FDF - fil de fer -this program is written in C +![example 3D of map after modifications](assets/fdf_loop_flying_tube.jpg) -this is an exercize to discover 3D drawing, keyboard events, and pixel images manipulation +**this is an exercize to discover 3D drawing, keyboard events, and pixel images manipulation** -what it does is to read a map, which is a simple text file like this one : +it reads a map, which is a simple text file like this : ``` 0 0 0 0 0 @@ -14,10 +14,32 @@ what it does is to read a map, which is a simple text file like this one : 0 0 0 0 0 ``` -and it will convert it into a rectangular net, like a landscape with the height equal to the numbers : +and it convert it into a rectangular net, like a landscape with the height equal to the numbers : ![example 3D of map before modification](assets/fdf_demo_1.jpg) -if we modify the map it will modify the 3D drawing +we can modify the map to change the 3D drawing : ![example 3D of map after modifications](assets/fdf_demo_2.jpg) + +then it listent to keyboards events to transform the 3D, like turning around, zooming... : + +**zoom :** + +![example 3D of map after modifications](assets/fdf_loop_zoom_element.jpg) + +**turn :** + +![example 3D of map after modifications](assets/fdf_loop_turn_left_pyramide.jpg) + +![example 3D of map after modifications](assets/fdf_loop_turn_down_pylone.jpg) + +**move :** + +![example 3D of map after modifications](assets/fdf_loop_move_left_tube.jpg) + +![example 3D of map after modifications](assets/fdf_loop_move_down_tube.jpg) + +**change height :** + +![example 3D of map after modifications](assets/fdf_loop_change_height.jpg)