Skip to content
/ fdf Public

This project is about representing a landscape as a 3D object in which all surfaces are outlined in lines.

Notifications You must be signed in to change notification settings

ErabaReta/fdf

Repository files navigation

FdF – 3D Wireframe Landscape Renderer

FdF (short for Fil de Fer, French for "wireframe") is a graphics project developed as part of the 42 School curriculum. It reads a .fdf file containing elevation data and renders a 3D wireframe model of the landscape using isometric projection.

🖼️ Project Overview

The program parses a grid of height values from a .fdf file and visualizes it as a 3D wireframe model. Each point's elevation influences its position in the 3D space, creating a relief map.

Each number represents a point in space:

• The horizontal position corresponds to its axis.

• The vertical position corresponds to its ordinate.

• The value corresponds to its altitude.

🚀 Features

  • Isometric projection rendering
  • perspective projection rendering
  • Dynamic zoom and pan controls
  • Elevation scaling
  • Color gradients based on elevation
  • Keyboard controls for interaction

🛠️ Installation

Prerequisites

  • A Unix-like operating system (Linux or macOS)
  • gcc compiler
  • make utility (if you are welling to compile using the Makefile)
  • MiniLibX library ... if you dont have it yet you can follow this doc to install it: 42docs

Building the Project

git clone https://github.com/ErabaReta/fdf.git
cd fdf
make

📈 Usage

Run the program with a .fdf file as an argument:

./fdf path/to/map.fdf

Sample maps are available in the test_maps/ directory.

About

This project is about representing a landscape as a 3D object in which all surfaces are outlined in lines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published