Skip to content

goffauxs/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FdF

About

FdF is a project in which we convert a file with a grid of height values into a 3d wireframe using a simple graphics library called MiniLibX.

Installation

The program can be build with a simple make all

Examples

Simple example of functionality

The following is an example of a .fdf file we use as an input for our program:

0 0 1 2 3 4 5 6 7 8 9
0 0 0 1 2 3 4 5 6 7 8
0 0 0 0 1 2 3 4 5 6 7
0 0 0 0 0 1 2 3 4 5 6
0 0 0 0 0 0 1 2 3 4 5
0 0 0 0 0 0 0 1 2 3 4
0 0 0 0 0 0 0 0 1 2 3
0 0 0 0 0 0 0 0 0 1 2
0 0 0 0 0 0 0 0 0 0 1

which produces the following:

example (2)

Example of rotation, translation, zoom, flattening and perspective changes

fdf480

Example of map with custom colors

Screen Shot 2022-09-15 at 2 34 42 PM

Example with large map

Screen Shot 2022-09-15 at 2 38 15 PM