Skip to content
/ fdf Public

Isometric projection of 3D maps as wireframe using 42's MiniLibX.

License

Notifications You must be signed in to change notification settings

jwikiera/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDF

screenshot1

FDF is short for ’fil de fer’ in French which means ’wireframe model’. It is a School 42 project that consists of representing a map of points in isometric projection, rendered as a wireframe. The only given information are the heights of the points.

The GitHub repo containing the source and Linux and MacOS builds is available here.

The assignment subject can be found here.

I have rewritten the project in JavaScript. It is entirely contained in the web/fdf.html file and also hosted on wikiera.ch/fdf.html.

Building

The project builds on MacOS Catalina 10.15.7 and Artix Linux 6.0.12. Other configurations were not tested.

MacOS prerequisites: Xcode.

Linux prerequisites: The X server, clang.

Then run make inside of the repository.

Running

./fdf target_map.fdf

You can find example maps from test_maps.

Navigation:

  • Use the Left and Right arrow keys to rotate the model around its respective y axis.
  • Use the Up and Down arrow keys to rotate the model around its respective x axis.
  • Use the A and D arrow keys to rotate the model around its respective z axis.
  • Use the + and - keys to zoom in or out.
  • Use the P key to toggle between an orthogonal and perspective projection.
  • Use the W and S keys to increase or decrease the field of view in perspective projection mode.
  • Use the Numpad Arrows to translate the model.

Note: in the perspective projection, zoom out if the model intersects with the screen, in order to view it entirely.

License

This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE.

screenshot2 screenshot3

About

Isometric projection of 3D maps as wireframe using 42's MiniLibX.

Resources

License

Stars

Watchers

Forks

Packages

No packages published