Skip to content

ailopez-o/42Barcelona-FdF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDF

A simplified 3D graphic representation of a relief landscape.

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit


To pull files ↙️

git clone --recursive https://github.com/ailopez-o/42Barcelona-FdF.git

To compile the program ↙️

$ make

To load you have to launch the program with a valid map as parameter 🗺️

$ ./fdf map.fdf

Controles 🕹

TECLA ACCION
Mouse (Right Clicked) X/Y axis Rotation
Mouse (Left Clicked) Traslation
Mouse Scroll Zomm In/Out
Arrows X/Y axis Rotation. Cmd cliked +90ª
Q / W Z axis Rotation. Cmd cliked +90ª
+ / - Z axis divisor
L Lines ON /OFF
D Dots ON /OFF
X Extra Wired ON /OFF
G GEO view ON /OFF
H On GEO view Shadow side ON /OFF
I ISOMETRIC view
P PARALEL view
S Make the magic happends
B / Cmd+B Blendig + / -
1 Terrain Color Scheme
2 White & Black Color Scheme
3 Black & White Color Scheme
4 Earth Color Scheme
ESC ❌ Cierra la ventana

To-Do

  • Centering Zoom

Documentación

3d Transformations:

http://di002.edv.uniovi.es/~rr/Tema2.pdf

https://www.cs.buap.mx/~iolmos/graficacion/5_Transformaciones_geometricas_3D.pdf

https://github.com/qst0/ft_libgfx#the-graphics-branch

https://www.scratchapixel.com/index.php?redirect

https://web.archive.org/web/20150225192611/http://www.arcsynthesis.org/gltut/index.html

http://inside.mines.edu/fs_home/gmurray/ArbitraryAxisRotation/

General

https://qst0.github.io/ft_libgfx/

Minilbx

https://gontjarow.github.io/MiniLibX/mlx-tutorial-create-image.html

https://harm-smits.github.io/42docs/

Color gradients

https://dev.to/freerangepixels/a-probably-terrible-way-to-render-gradients-1p3n

Cube Rotations

https://www.youtube.com/watch?v=p4Iz0XJY-Qk

Ortographic Pryection

http://learnwebgl.brown37.net/08_projections/projections_ortho.html

3D Matrix calculator

https://www.mathforengineers.com/math-calculators/3D-point-rotation-calculator.html#google_vignette

Map Generator

https://github.com/jgigault/42MapGenerator