Skip to content

salahadawi/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdf - Visualizing “iron wire” meshing in 3D.

The aim of this project was to take a file as input, and draw a 3D visualization into a graphic window based on that file.

As a bonus, this model can be rotated in 3D space.

42-3D-view

Features

  • Full 3D rotation

  • Camera movement

  • Altitude controls

  • Colors according to altitude

  • Zoom in/out

  • Idle animation

  • Parallel/Isometric projection

Relevant information, such as rotation degrees and instructions, can be toggled on-screen with the 'H' key.

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 Pyra-3D-view Earth-parallel-view

About

Visualizing “iron wire” meshing in 3D.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published