GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rarakira/fdf: Creating a simplified 3D graphic representation of a relief landscape, 42 curriculum

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
includes
includes
 
 
libft
libft
 
 
minilibx_macos
minilibx_macos
 
 
preview
preview
 
 
test_maps
test_maps
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
draw_and_color.c
draw_and_color.c
 
 
draw_line.c
draw_line.c
 
 
draw_map.c
draw_map.c
 
 
draw_map_utils.c
draw_map_utils.c
 
 
exit_program.c
exit_program.c
 
 
free_memory.c
free_memory.c
 
 
init_map.c
init_map.c
 
 
init_map_utils.c
init_map_utils.c
 
 
main.c
main.c
 
 
map_rotation.c
map_rotation.c
 
 
register_hooks.c
register_hooks.c
 
 
register_hooks_utils.c
register_hooks_utils.c
 
 
t_point_list_fns.c
t_point_list_fns.c
 
 

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

21schoolcecole42fdffdf-42graphics

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.