FDF is a 42 School project that creates a simplified 3D graphic representation of a relief landscape. This project introduces concepts of graphics programming, including how to position points in space, connect them with segments, and observe the scene from different viewpoints.
FDF is compatible with:
- MacOS
- Linux
- Render a 3D map from a 2D representation.
- Zooming: Zoom in and out for different perspectives.
- Translation: Shift the map in all directions.
- Multiple Views: Switch between predefined viewing angles.
- Movement: Navigate through the 3D space.
- Color Gradient: Altitude-based color representation.
- Install the required dependencies:
sudo apt-get update -y sudo apt-get install build-essential -y sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev -y
- Clone the repository:
git clone https://github.com/jesuismarie/FdF.git
- Compile the program:
make
- Run FDF with a map from test_maps:
./fdf maps/[map-name.fdf]
- Clone the repository:
git clone https://github.com/jesuismarie/FdF.git
- Compile the program:
make
- Run FDF with a map from test_maps:
./fdf maps/[map-name.fdf]
- Arrow Keys: Move the map.
- +/-: Zoom in and out.
- T: Top view.
- I: Isometric view.
- P: Horizontal view.
- A/D: Rotate the map.
- W/S: Z-axis translation.