Author Topic: Heightmap (.gif) => Save File (.bls)  (Read 13452 times)

I made a program in Java today that quite simply converts a .gif to a .bls. It assumes the .gif you put in is a heightmap, which is basically a grayscale image that represents terrain elevation. The .bls it outputs can be loaded in any server, and with any color set - it leaves it to Blockland's default code to match the colors (100% match with default colorset).

This isn't in modification discussion because:
A) I most likely will not publicly release this.
B) It's not made in Torque; it's made in Java.

Now, for the sample pictures (gotta love the grass):
Original heightmap I found off of Google
Screenshot of the build loaded in my server

Yes, since it's a save file, you can load it up, build stuff on it, then save it. It'd probably be best for giving a bit of background to a house you make, or even being used as a foundation for some sort of RPG.

Want one converted? Just post a link to a heightmap here. Next time I check this topic, I'll throw it into the converter and upload the .bls file. The reason I don't just post a link to the .jar file is because I know there's some precautions around code you can't easily view the source of.

Don't want one converted? Just let me have my moment, then.


Oh my god. That is sick.  :cookie: 's

Awesome.

Do one of Rick Astley in black and white.




this
http://firestorm.celtrenicdesigns.com/img/revenrock/terrain.png

This one came out awesome.

85449 bricks: http://willhostforfood.com/files4/7/4/6/7463129/Heightmap.bls
(Right-click > Save as, then just put it into your Blockland/saves/Slate folder.)

http://southport.jpl.nasa.gov/cdrom/sirced03/cdrom/DATA/MODS1TO5/MODULE04/IMAGES/DEATHVAL/PRESIRC/TOPOMAP1.GIF

56781 bricks: http://willhostforfood.com/files4/3/1/7/3174490/DeathValley.bls
(Right-click > Save as, then just put it into your Blockland/saves/Slate folder.)

Also, I didn't mention it before, but the program scales each image down to 100x100 (properly), and the height is from one to sixteen cubes - all this is to conserve bricks as much as possible. It's very spammy already, since it uses 4x cubes and 4x4f plates.


It pwns mad noobs.
And your all jealous of it.

Does this provide brick conservation, or does it build every tower of 4cubes by itself?