Skip to content
/ fdf Public

Creating a simplified 3D graphic representation of a relief landscape, 42 curriculum

Notifications You must be signed in to change notification settings

rarakira/fdf

Repository files navigation

This is a 21 School/Ecole 42 Project

Fdf

Fdf is a program that creates simplified 3D graphic representation of a relief landscape using MiniLibX library. Subject can be found here.

FDF is short for ’fil de fer’ in French which means ’wireframe model’.

Project goals

  • Create a basic computer graphics project
  • Learn about mapping
  • Drawing lines in 3D using maths
  • Implement axis rotation, zoom and transmittion

Map Rotation

To compile and run

Run the following commands in Terminal:

# to build
> make

# to run
> ./fdf test_maps/pentenegpos.fdf

The program accepts a map in .fdf file as argument. Those files can be found at test_maps/ folder. Those include lines of numbers separated by spaces (sometimes with HEX colour codes) representing height of the points on map.

To close window press esc.

Scene control

Use [+] & [-] to zoom in and out

Use [1] & [2] to rotate on x-axis

Use [3] & [4] to rotate on y-axis

Use [5] & [6] to rotate on z-axis

Press [↑] to move upwards

Press [↓] to move downwards

Press [←] to move left

Press [→] to move right

Reneder examples

42 map Coloured map Map Closer Closest

About

Creating a simplified 3D graphic representation of a relief landscape, 42 curriculum

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published