Skip to content

Yonaim/FdF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDF - Wireframe 3D Model Viewer

FDF ("Fil de Fer") is a program that reads a map file and visualizes it as a wireframe 3D model. The name "FDF" is derived from the French phrase "Fil de Fer," meaning "wireframe model."

Screenshots

Demo

The first two images are object manipulations, and the last two are camera manipulations, which can rotate and translate respectively.

object

camera

Features

  • 3D Wireframe Visualization: Reads map files and generates interactive wireframe models.
  • Interactive Controls: Independently manipulate object and camera position, zoom, rotation, and elevation.
  • Orthogonal Projection: Offers orthogonal projections without perspective distortion.

Controls

It's also written in the manual, which you can view by pressing the 'F1' button.

Control Action
Mouse Scroll Zoom in / Zoom out
+, - Adjust object elevation
TAB Switch between OBJECT and CAMERA modes
ALT Toggle Axis display ON/OFF
W, A, S, D, Z, X Adjust Position (Object/Camera independently)
I, O, K, L, <, > Adjust Rotation (Object/Camera independently)
R Reset all transformations
KEY 1~8 Switch between various isometric views
NUMPAD 1~9 Switch between general predefined views
F1 Toggle manual menu

Libraries Used

  • libft (custom):

    • A personal C library providing common utility functions such as string manipulation, memory management, and linked lists. Developed for reuse across multiple projects.
  • MiniLibX (mlx):

    • A graphical library provided by École 42 for simple graphics rendering, window management, and event handling.

Installation

Clone the repository and compile using the provided Makefile:

git clone https://github.com/Yonaim/FdF.git
cd FdF
make

Usage

Run the executable with a valid map file:

./fdf [map_file]

Example:

./fdf maps/42.fdf

About

A simple wireframe 3D model viewer (Rasterization)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors