Skip to content

FdF is a short for 'fil de fer' which means wireframe model in french. The purpose of this project is to build a representation of a landscape in 3D.

Notifications You must be signed in to change notification settings

carologata/42-FdF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FdF

Status: finished

New knowledge:

  • Basic Computer Graphics

Description:

FdF is a short for 'fil de fer' which means wireframe model in french. The purpose of this project is to build a representation of a landscape in 3D. It is achieved using the Codam Graphical Library as it includes basic necessary tools to open a window, create images and deal with keyboard and mouse events. For more information access their repository https://github.com/codam-coding-college/MLX42.

How to compile:

# clone repository
git clone https://github.com/carologata/42-FdF.git

# enter thee folder
cd 42-FdF

# compile Mandatory using Makefile
make

# the result of compilation is the executable
./fdf

# compile Bonus using Makefile
make bonus

# the result of compilation is the executable
./fdf_bonus

# There are some available maps to test in the maps directory.
# You can open the 3D maps using the command below, for example
./fdf maps/42.fdf

When the window is opened, the landscape is in Isometric Perspective, but when using the executable ./fdf_bonus you are allowed to do some rotations, translations, zooms etc. See below some keyboard events:

  • Rotation in x

    • KEY A
    • KEY D
  • Rotation in y

    • KEY W
    • KEY S
  • Rotation in z

    • KEY K
    • KEY J
  • Translation in x

    • KEY RIGHT
    • KEY LEFT
  • Translation in y

    • KEY UP
    • KEY DOWN
  • Zoom

    • KEY KP ADD
    • KEY KP SUBTRACT
  • Increase or decrease the lanscape's height

    • KEY KP MULTIPLY
    • KEY KP DIVIDE
  • Views

    • KEY KP 1 (Isometric Perspective)
    • KEY KP 2 (Oblique Perspective)
  • Close the window ESC

Examples of 3D landscapes generated:

Screenshot from 2024-03-05 09-30-18

Screenshot from 2024-03-05 09-32-04

About

FdF is a short for 'fil de fer' which means wireframe model in french. The purpose of this project is to build a representation of a landscape in 3D.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published