KatyaPrusakova / fdf

This project is about creating a simplified 3D graphic representation of a relief landscape.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FDF

This project is about creating a simplified graphic “wireframe” (“fils de fer” in french, hence the name of the project) representation of a relief landscape linking various points (x, y, z) via segments. The coordinates of this landscape are stored in a file passed as a parameter to your program.

Input

The given input map is a 2D grid of numbers, where each number corresponds to its altitude.

For example, giving the following text as input:

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

Results in this visualization:

42-parallel-view

Images

42-isometric-view 42-different-angle-view

Zoom in on different maps

Zoom-10-70 Zoom-view

Very good source for doing the project: https://github.com/qst0/ft_libgfx#getting-started-with-fractol-ft_fractal

About

This project is about creating a simplified 3D graphic representation of a relief landscape.


Languages

Language:C 89.2%Language:Roff 7.1%Language:Makefile 3.2%Language:Perl 0.4%