FDF (Fil De Fer) is a 3D wireframe viewer project. The goal of this project is to represent a 3D object in a 2D space using a wireframe model. This project is part of the 42 curriculum and aims to help students understand the basics of computer graphics, coordinate systems, and transformations.
- Load and parse a map file containing height values.
- Render a 3D wireframe representation of the map.
- Support for different projections (isometric and parallel).
- Basic controls for rotating, zooming, and translating the view.
- GCC compiler
- Make
- X11 libraries (Xlib, Xext)
- MinilibX library
-
Clone the repository:
git clone https://github.com/yourusername/fdf.git cd fdf -
Install the required libraries:
sudo apt-get install gcc make xorg libxext-dev libbsd-dev
-
Compile the project:
make
-
Run the program with a map file:
./fdf maps/10-2.fdf
-
Use the following controls to interact with the wireframe:
- Arrow keys: Rotate the view
+/-: Zoom in/outW/S: Move up/downA/D: Move left/rightESC: Exit the program