Heightmap2bls - Printable Version +- Blockland Fan Forums (https://forum.bcs.place) +-- Forum: Blockland Forums (https://forum.bcs.place/forumdisplay.php?fid=1) +--- Forum: Tools and Resources (https://forum.bcs.place/forumdisplay.php?fid=3) +--- Thread: Heightmap2bls (/showthread.php?tid=14) |
Heightmap2bls - El Gringo - 01-19-2025 Generate high quality terrain from heightmaps!
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:
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: (Includes Bonus brickpacks 4n8brickH and 4n8brickT in the res folder!)
RE: Heightmap2bls - Eagle517 - 01-20-2025 Looks great. Do you have any thoughts on including ModTer support in the future for smoother looking maps? It'd mainly be for vehicles to be able to drive around. RE: Heightmap2bls - El Gringo - 01-20-2025 (01-20-2025, 12:14 PM)Eagle517 Wrote: Looks great. Do you have any thoughts on including ModTer support in the future for smoother looking maps? It'd mainly be for vehicles to be able to drive around. I haven't really thought of adding it before, but I do like the idea and it'll definitely be one of the long-term goals for the tool. As it is right now, my priorities are cleaning up the code base (very messy as is), adjusting how it calculates brick coordinates (i made some wrong assumptions about how the game handles brick positions, only realized after watching Divark's video about schematic2bls) and adding a GUI to make the tool more accessible. Free time's a bit tight right now as I'm finishing up college and hopefully starting a job soon, but when I get the chance I'll work on the tool. Would also be cool to get some user feedback to make sure things are working as expected. RE: Heightmap2bls - Quadroline - 01-21-2025 This is an amazing job. Hoping to see more of your works here! RE: Heightmap2bls - Sp00n_exe - 01-28-2025 terrain is finally back |