This project is about creating a simplified 3D graphic representation of a relief landscape linking various points (x, y, z) via segments, using miniLibX and math libraries.
The coordinates of landscape are stored in a file passed as a parameter to program. Here is an example:
Each number corresponds to a point in space:
- The horizontal position corresponds to its axis.
- The vertical position corresponds to its ordinate.
- The value corresponds to its altitude.
For compile use make
at the project directory and for run ./fdf [map_name]
Action | Key |
---|---|
Move up | Arrow Up |
Move down | Arrow Down |
Move left | Arrow Left |
Move right | Arrow Right |
Zoom | + / โ |
Rotate X | Q / A |
Rotate Y | W / S |
Rotate Z | E / D |
Isometric Projection | I |
Paralel Projection | P |
Exit | ESC |