Skip to content

isubasinghe/HeightMapGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeightMapGenerator

A simple height map generator.

TODO

  • Allow merging of heightmaps.
  • Implement a function to get a stream of heightmaps based on the previous heightmap, this can be done through the merging talked about above.
  • Should be able to save memory by using the png24 format instead of png32, furthermore we could exclude using grid_t and directly using the png24/32 buffer instead.

COMPILING

gcc -c *.c && gcc *.o -o [binary file name]

USAGE

  • [binary file name] [output file name] [width] [height [blur radius] [blur iterations] [seed]

Example of 2D heightmap

Example of 3D terrain

These can be blurred more or less, depending on your desired "flatness"

Releases

No releases published

Packages

No packages published