Skip to content

luna7111/Fil-de-Fer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FdF

FdF is a project inside the 42 Common core. It consists on the development of a topographic map visualizer using pure C and the (very limited) MiniLibX graphic library.

image

Files

FdF maps should be described in a plain text file where any point in the map is written as a number, separated with spaces in a grid.

For example this map:

image

Should look something like:

image

And the color of a point is described in hexadecimal, separated with a comma next to the point.

The map described as:

image

Should look like:

image

Features

The program is able to render maps, rotate them around X Y and Z axis, toggle between an Axonometric/Isometric perspective and parallel perspective, zoom in and out and translate the rendered image in the screen x and y axis.

Usage

To use the program just run it in a terminal using the map file path as an argument:

./fdf maps/luna/brazil.fdf

Controls

Zoom in and out with the scroll wheel, rotate each axis with X, Y and Z keys, toggle the perspective with the P key, transpose the rendered image with the arrow keys.

About

Topographic map visualizer.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages