Skip to content

Mohcine-Ghalmi/FDF

Repository files navigation

FdF

FdF is a simple 3D height-map renderer project. It enables the rendering of models, where the color of each point is determined by its relative height within the map. The project includes features like model rotation, camera control for zoom and translation, as well as support for color gradients.

Screenshot from 2023-09-16 05-32-03

Features

Current Features

  • Simple file format definition using an array of space-separated integers.
  • keys: ↑/↓/←/→ transitions
  • keys: +/- zoom
  • keys: 4/6 3D rotations
  • keys: 8/2 move the z axis
  • key: z top view
3D View Top View
3d Top
Z_UP Z_DOWN
z_up z_down

Compatibility

  • MacOs
  • Linux
  • Win11

Compiling and Running

  1. Compile the executable by running make. The resulting executable will be generated.
  2. Run the program using ./fdf [map], where [map] should be replaced with the path to the map file you wish to visualize.
  3. A set of sample maps can be found in the maps directory. Notably, maps/42.fdf is a popular choice for testing.

Conclusion

FdF is a straightforward 3D height-map renderer that allows users to visualize and interact with models. It offers rotation, camera control, color gradients, and various planned features to enhance the experience further. By compiling and running the program, you can explore the provided sample maps and create your own height-map visualizations.

That's the spirit!
bmth misfits

Screenshot from 2023-09-16 05-45-08

Screenshot from 2023-09-18 04-21-22

Screenshot from 2023-09-16 05-36-36

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published