๐งต FDF โ 3D Wireframe Renderer
FdF (Fil de Fer) is a 3D wireframe visualization project developed in C using the MiniLibX graphics library.
It reads a map file containing altitude values, converts them into 3D coordinates, and renders them as a rotating and zoomable isometric wireframe model.
This project introduced me to graphics programming, matrix transformations, event handling, and the fundamentals of rendering pipelines.
๐ Features
๐น 3D Projection Engine
Supports:
- Isometric projection
- Parallel projection
Transforms 3D coordinates (x, y, z) into 2D screen positions.
๐น Smooth Rendering
- Bresenham line-drawing algorithm
- Real-time updates
- Pixel-perfect precision
๐น Color Management
- Altitude-based color gradients
- Custom color mapping
- Smooth transitions
๐น Interactive Controls
Keyboard input for:
- Rotate X/Y/Z
- Zoom in/out
- Move model
- Adjust altitude depth
๐น Map File Parsing
Handles .fdf maps describing terrain or custom 3D grids.
๐ง What I Learned
- 3D to 2D projection mathematics
- Rotation matrices & scaling transforms
- Event loops and key hooks
- Efficient drawing algorithms
- Memory management in a graphics program
- MiniLibX internals and pixel buffers
๐ Repository
๐ GitHub: https://github.com/zmetreveli/FDF