Skip to content

whyh/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdf

Basic height-map rendering engine

Converts a given heigth map to image.
fdf_42

Available projections iso iso 2:1 top view side view

Use numbers 1 2 3 4 to change the projection type
projections

Few cool features

To move map hold left cntrl , then pick and move the top left corner of the map with right mouse button move
To zoom in/out hold left cntrl and use the mouse wheel
zoom
To increase relative altitude hold left cmnd and use the mouse wheel
altitude
To reverse the altitude press R
reverse_altitude
Hold H to view the help menu
help_bar

How to use

Install the mlx (mini lib x), which is only compatible with MacOS 10.12 and later version

Run the program with file that specifies map, as a first argument ./fdf maps/pyramide.fdf

Optionally, you can specify two colors for the linear gradient, by passing them as a second argument in rgb format
./fdf maps/pyraide.fdf 255000255~001225099. The second argument consists of two colors specified by RBG value of red then blue and green, each varying from 0 up to 255 (just like RRRGGGBBB) with~ in-between

About

Basic height-map rendering engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published