Welcome to my FdF, a beautiful wireframe map renderer written in C. This project visualizes 3D landscapes from simple map files, transforming raw height data into interactive, artistic wireframe views. Designed with performance and style in mind, FdF brings mathematical maps to life!
- 3D Wireframe Rendering: Generates stunning isometric wireframes from
.fdfmap files. - Customizable UI: Interactive menus and controls for a smooth user experience.
- Multiple Map Support: Includes several sample maps to explore (
maps/directory). - Fast Performance: Optimized drawing routines and FPS tracking.
- Colorful Visualization: Supports color-coded maps and artistic overlays.
FdF/
├── main.c # Entry point
├── Makefile # Build automation
├── include/ # Headers and libraries (libft, ft_printf, get_next_line, minilibx)
├── src/ # Source code (renderer, UI, parser, controls, aux)
├── maps/ # Example .fdf map files
└── ...
- src/: Core modules for rendering, parsing, UI, controls, and math.
- include/: Utility libraries (custom printf, GNL, MLX).
- maps/: Example heightmaps (try
pyra.fdf,plat.fdf, etc.).
-
Clone the repo:
git clone https://github.com/Denionline/FdF.git cd FdF -
Build:
make
-
Run with a map:
./fdf maps/pyra.fdf
Each map file is a grid of integers (optionally with colors), representing height values. Example from maps/pyra.fdf:
0 0 0 ... 0
-1 -1 -1 ... 1
...
- Explore the UI menu for interactive options.
- Keyboard events and actions are handled in the
controls/modules.
- C — Core language
- MiniLibX — Graphics library for rendering
- libft, ft_printf, get_next_line — Custom utility libraries
maps/plat.fdf— Flat terrainmaps/pyra.fdf— Pyramidmaps/10-2.fdf,maps/50-4.fdf,maps/100-6.fdf,maps/10-70.fdf— Various landscapes
Made with ❤️ by Denionline Student at 42 Porto
Results may be incomplete due to response limits. For a full list of files and features, view the code on GitHub.
