Skip to content

JanWalsh91/FDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDF

FDF - making elevations maps more beautiful that ever

Covered concepts:

  • using a graphics library
  • handling windows and images
  • handling the user's keyboard and mouse inputs
  • line rasterization
  • creating a basic GUI
  • using matrices for rotations and other transormations!
  • creating an isometric porjection
  • working with RGB
  • banishing segfaults and memory leaks to the nether

FDF (Fil de fer, or wirefram) takes a file which may look like this:

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 3 3 0 0 3 3 0 0 0 3 3 3 3 3 0 0 0

0 0 3 3 0 0 3 3 0 0 0 0 0 0 0 3 3 0 0

0 0 3 3 0 0 3 3 0 0 0 0 0 0 0 3 3 0 0

0 0 3 3 3 3 3 3 0 0 0 0 3 3 3 3 0 0 0

0 0 0 3 3 3 3 3 0 0 0 3 3 0 0 0 0 0 0

0 0 0 0 0 0 3 3 0 0 0 3 3 0 0 0 0 0 0

0 0 0 0 0 0 3 3 0 0 0 3 3 3 3 3 3 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

Each number represents the height coordinate of a point at the 2D position in the table. Our task was to translate this into a visual height map. The map above produced the following output:

42 with instructions

Each number can also be followed by a color code, and additional color palettes are availble by hitting 'c'.

Elem1

You can rotate about each axis, translate and scale the map:

Rotations

Here are some more screenshots:

Mars Elevation Map Julia Factal

Should you have any questions or suggestions, feel free to send me an email at jwalsh@student.42.fr.

About

FDF - Wireframe elevation map (Fil De Fer)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors