fglsn / fdf

This project is about creating a simplified 3D graphic representation of a relief landscape. It is written from scratch in C and the only allowed library is minilibx graphic library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fdf

This project is about creating a simplified 3D 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 the program.
 Map example

The project is written from scratch in C and the only allowed library is minilibx graphic library.

General description

 Description

Instructions

To compile this program run makefile from the root of repository: make

To run the program execute either make map0 or ./fdf maps/42.fdf

NB: Various test maps are located in the maps folder. Libft library not included to this repository, but might be found on my GitHub
and plased into libft folder here in the root.

The minilibx window should pop up and you'll see a projection of a chosen map:
 Initial position

For terminating the progrem press ESC or use close button on a window.

To change altitude press > or < keys (US layout)  Changed altitude

Press + or - to change size of projection (or use mouse scroll / touchpad gestures)
 Changed size

You can move a projection using arrow keys or drag it with a mouse.

Rotate with keys 3 and 4  Changed angle

To change the projection type press o (for original) or i (for isometric) key  Projection type

Here's an example of a bigger map (mars.fdf)  Mars projection

About

This project is about creating a simplified 3D graphic representation of a relief landscape. It is written from scratch in C and the only allowed library is minilibx graphic library.


Languages

Language:C 93.9%Language:Makefile 6.1%