This project is a simple 3D wireframe renderer that reads a map file and creates an isometric projection of the map. The map file contains information about the height and color of the points on the grid. The renderer uses the Bresenham's line algorithm to draw the lines between the points and uses mlx library to manage the window.
- gcc or any other C compiler
- make
- libmlx (the MiniLibX library)
- libft (a custom C library, included in the repository)
- Clone the repository:
git clone https://github.com/abbastoof/FDF.git
- Change to the project directory:
cd fdf
- Compile the project:
make
-
Run the program by providing the map file as an argument:
./fdf path/to/map/file
-
Use the following keys to control the view:
- Zoom:
+
and-
- Move: Arrow keys
- Adjust Z-axis:
w
ands
- Toggle projection (isometric/2D):
p
- Exit:
esc
- Zoom: