Skip to content
/ 2_FdF Public

A 42 project introducing graphical programming by rendering a 3D wireframe terrain in a window. It teaches how to use a minimal graphics library to draw and transform points in 2D and 3D space.

Notifications You must be signed in to change notification settings

qbnt/2_FdF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4495d79 · Mar 25, 2025
Jun 23, 2023
Aug 18, 2023
Jun 22, 2023
Apr 25, 2023
Jul 31, 2023
Mar 25, 2025
Mar 25, 2023

Repository files navigation

FdF

Description

Le projet FdF (Fil de Fer) consiste à développer un programme en C capable de représenter en 3D une carte en fil de fer à partir d'un fichier contenant une grille de valeurs de hauteur. L'objectif est d'apprendre les bases de la programmation graphique avec la bibliothèque MiniLibX.

Fonctionnalités

  • Lecture et analyse de fichiers .fdf contenant des données de terrain
  • Génération d'une représentation 3D en fil de fer du terrain
  • Manipulation interactive de la vue : rotation, zoom, translation
  • Gestion des couleurs selon l'altitude

Prérequis

  • Système d'exploitation : Linux ou macOS
  • Compilateur C conforme à la norme C99
  • Bibliothèque MiniLibX installée

Installation

  1. Cloner le dépôt :
git clone https://github.com/qbnt/2_FdF.git
cd 2_FdF
  1. Compiler le projet :
make

Utilisation

  • Lancer le programme :
./fdf [chemin_du_fichier.fdf]

🗺️ Map Format

The map file is a plain text file where each line represents a row of elevation values (optionally with colors), e.g.:

0 0 0 0
0 1 1 0
0 0 0 0

Exemples de fichiers .fdf disponibles dans le dossier maps.

  • Contrôles :
    • Flèches directionnelles : déplacer la vue
    • + / - : zoom avant/arrière
    • W / S : rotation axe X
    • A / D : rotation axe Y
    • Q / E : rotation axe Z
    • ESC : quitter

Ressources Utiles

Licence

Projet sous licence MIT. Voir le fichier LICENSE.

About

A 42 project introducing graphical programming by rendering a 3D wireframe terrain in a window. It teaches how to use a minimal graphics library to draw and transform points in 2D and 3D space.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published