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


@Jimmg's weird.
He better do that.


« Last Edit: November 02, 2009, 12:57:29 AM by Squideey »

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

Not yet, but the next tiime I have some time I was going to implement brick conservation. I'd probably only have it choose from the cubes and their respective plates; nothing like 8x16. I might also rewrite it in PHP so people can just upload their images and download the resulting save file.

You win truce.
WOW!
No, seriously, you should release this.

Just wondering, would this work? If so, do it please.
http://ui07.gamespot.com/838/img015_2.jpg

Just wondering, would this work? If so, do it please.
http://ui07.gamespot.com/838/img015_2.jpg

You probably wouldn't be able to make out the design too well. Currently I'm having the program scale the images down (which, as I just realized, was a tad choppy, since I made a typo), because right now it only uses 4x Cubes and 4x4Fs - that is a lot of bricks. I'll be working on brick conservation soon + a PHP version so you guys can convert your own without fear of viruses or w/e.


do
it


You probably wouldn't be able to make out the design too well. Currently I'm having the program scale the images down (which, as I just realized, was a tad choppy, since I made a typo), because right now it only uses 4x Cubes and 4x4Fs - that is a lot of bricks. I'll be working on brick conservation soon + a PHP version so you guys can convert your own without fear of viruses or w/e.

In other news, brick conservation added. Seems to reduce brick count by 66% (EDIT: 50%, forgot plates :P) on the one I tested it with. I need to clean up a bit of the code, but when I get the chance, I'll reconvert any I've already done, and the picture ones I've ignored.



Oops, the heightmaps were losing a bit of precision on an original image that wasn't a multiple of 100. I fixed it, so when I get around to reconverting old ones, they (should) seem a bit smoother - or at least a bit more accurate.
« Last Edit: November 02, 2009, 02:33:46 PM by Truce »

Awesome.

Do one of Rick Astley in black and white.

That would be SUPER LOLz


No, seriously, you should release this.

Pfft, Truce doesn't release things.

I'm not sure how feasible it is, but an interesting idea might be to add the ability to color the landscape in a similar fashion.

For instance, the user could provide two input images: one black & white height map, and a color image ; both taken from the same perspective and of the same size. The B&W image just details the height of the terrain, but the color image details what hue should be used for each "pixel" of the generated build.

Perhaps an automated brown townysis of the color image could produce a "suggested" color pallet for the user to use in the map based on aproximations of the area colors occupy. Alternatively it could just draw approximations to the regular pallet.

The most important detail is, as you likely know, reducing the number of bricks used. If this can be done then far grander landscapes could be generated that would be much more useful.

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.
Change .jar to .zip(or just open the .jar with a ZIP utility)
Open class files with a Java decompiler(such as Cavaj)

For instance, the user could provide two input images: one black & white height map, and a color image ; both taken from the same perspective and of the same size. The B&W image just details the height of the terrain, but the color image details what hue should be used for each "pixel" of the generated build.

Perhaps an automated brown townysis of the color image could produce a "suggested" color pallet for the user to use in the map based on aproximations of the area colors occupy. Alternatively it could just draw approximations to the regular pallet.

It automatically converts it to grayscale if it isn't.

The most important detail is, as you likely know, reducing the number of bricks used. If this can be done then far grander landscapes could be generated that would be much more useful.

Already done.