Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Heightmap2bls
#1
Photo 
Generate high quality terrain from heightmaps!
[Image: img5.png?raw=true]

Heightmap2bls is an external python command line tool for generating .bls save files from 8-bit greyscale heightmap images.
It also supports automatically colorizing the map if a colored png is provided!
(If you want to use this tool, you need Python 3!)
Main features:
  • Generate maps from 2d images!
  • Use custom colorsets
  • Automatically color the map using the closest color
  • Arbitrarily rescale all 3 axis of the map (x, y, z)!
  • Optionally fill in vertical gaps
  • Perform basic brick optimization
  • Load custom brick files (defined in JSON)
  • Hotswap save files (kind of Cool )
  • Define the map's step (minimum height difference between layers)
  • Sit a map on the ground (if your heightmap doesn't have any pitch-black spots)
Sample command on windows:
Code:
python hm2bls.py -hm res/heightmap.png --bricks res/terrainBricks.json --gapfill --optimize  --ground -x 400 -y 400 -z 90
This will generate a bls save file using "heightmap.png" for elevation data, use a custom brick set file, fill in any vertical gaps, try optimize the brickcount where possible, set the map on the ground and rescale it to 400x400x90!
See the github page for full usage guidelines!

What it can do:
[Image: fuji2.png?raw=true]
[Image: grand_canyon9.png?raw=true]

[Image: lake_windermere1.png?raw=true]

[Image: torotoro7.png?raw=true]

(Includes Bonus brickpacks 4n8brickH and 4n8brickT in the res folder!)
Reply


Messages In This Thread
Heightmap2bls - by El Gringo - 01-19-2025, 08:10 PM
RE: Heightmap2bls - by Eagle517 - 01-20-2025, 12:14 PM
RE: Heightmap2bls - by El Gringo - 01-20-2025, 02:44 PM
RE: Heightmap2bls - by Quadroline - 01-21-2025, 12:07 AM
RE: Heightmap2bls - by Sp00n_exe - 01-28-2025, 10:19 AM