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


-snip-

Woo!

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.


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

Already done.

I'm saying you could improve it by allowing the user to define what color bricks are used; not just using generic brown and green.

As for reducing the # of bricks used, I'm sure there will always be more ways to improve it further.



Cleaned up the code a bit; somehow it's now only half the size and saves even more bricks, but I didn't think I changed anything. Instead of resizing image to 200x200, I have it make the larger of the two dimensions 200 and scale the other one properly (so 500x250 => 200x100).

Double post; apparently I left out a variable assignment in the resizing, so it broke.





Looks like I fixed it though :P

host a server now, let us walk and dig into his face >:D

Holy crap Truce

You won so hard

http://gpwiki.org/images/2/2e/Heightmap.JPG
It's crap sites like this that ruin the internet.
Ok, so I have to copy the link and paste it.


what is this???

It's a program that generates insanely brick-efficient cubescapes from heightmaps. These generated builds are exported as a save file, so that you can load the file on any server you go to.

Heightmaps are basically just grayscale images that represent elevation levels - the more white in an area, the higher its elevation. Therefore, black areas have low elevation.

The screenshot I posted was an awkward angle of one of these cubescapes. Remember, this wasn't designed as another image2brick. This one was designed for creatin terrains.

This is fresh to death, right here.

Here's an example of what the program was intended for:
(This thing is a massive 800x800 studs, and just barely over 60k bricks.)





EDIT: Top-right corner of the original image is the left-hand side in the screenshot.
« Last Edit: November 05, 2009, 10:11:31 PM by Truce »