Skip to content
/ fdf Public

A simple 3D height-map renderer. You can rotate models, color is defined by relative height in the map.

Notifications You must be signed in to change notification settings

Fr3ud/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdf

A simple 3D height-map renderer. You can rotate models, color is defined by relative height in the map.

What is fdf?

fdf (which stand for "fil de fer" in French or Wire frame) is the first graphic project in UNIT Factory (42) using minilibx (Minilibx is a very basic graphical library writting in C used in UNIT Factory (42)).

The program take a map as arguments which content different number as their height and render it in 3D. Mandatory part is just rendering and expose hook. All the other features are bonus.

Features:

  • Rotation X Y Z
  • Color gradients
  • Height modification
  • Onscreen telemetry
  • Window autosized from the map size
  • Map zoom according to the map size

Compiling and running:

Run make. An executable will compile. Currently only tested on OS X.

Run it with ./fdf [map]. A bunch of sample maps are provided in the maps directory.

Example (./fdf maps/42.fdf ):

0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0 10 10  0  0 10 10  0  0  0 10 10 10 10 10  0  0  0
0  0 10 10  0  0 10 10  0  0  0  0  0  0  0 10 10  0  0
0  0 10 10  0  0 10 10  0  0  0  0  0  0  0 10 10  0  0
0  0 10 10 10 10 10 10  0  0  0  0 10 10 10 10  0  0  0
0  0  0 10 10 10 10 10  0  0  0 10 10  0  0  0  0  0  0
0  0  0  0  0  0 10 10  0  0  0 10 10  0  0  0  0  0  0
0  0  0  0  0  0 10 10  0  0  0 10 10 10 10 10 10  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0

fdf

About

A simple 3D height-map renderer. You can rotate models, color is defined by relative height in the map.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published