Jump to content

Share your height maps!


Recommended Posts

Posted (edited)

Hello everyone!

Not so long ago a height map loader has been merged into the project, which is now both present in the stable (0.0.7) and development branch. A height map is usually a greyscale image where each pixel represents the average height of the area on the map, where black is low and white is high. The loader reads those images, and turns them into a map.

The height map loader can be accessed only in the Scenario Editor, and can be found in the Map Generation window.

W7dLl4X.pngP5tA9NO.png

After you have selected your height map, the map will be generated already, and the greyed-out options will now be accessible.

Here are some height maps that I used for testing (and for fun).

United Kingdom:
UGh105w.png
4YwMWh1.png

Interestingly random noise generates nice maps when you smooth them out:
wI7HeIG.png

A river or something:
mvCazw5.png

And obviously the best map ever:
txlr7li.png

Edited by Broxzier
  • Like 4
Posted

I have yet to try these out. As you know, I'm a scenario maker, so this will be helpful. Also, did I mention this is so freaking cool!?

If I can figure out how to use it correctly, I'ma bout to produce some awesome stuff. Is there any place where I'd place a greyscale(?) image?

 

Also, @Broxzier that last image kind of looks like your avatar. Oh wait....

  • Like 1
Posted
2 hours ago, BlazingEmpireHD said:

 

 

Also, @Broxzier that last image kind of looks like your avatar. Oh wait....

Looks like the reverse Topo from the last time you posted your avatar. @Broxzier... BAD ASS MAN!!!! My head just went to Alice in Wonderland mode!!  

I'm gonna go bat sh!t crazy playing with this one!!

 

THANK YOU.

  • Like 1
Posted
10 hours ago, BlazingEmpireHD said:

If I can figure out how to use it correctly, I'm about to produce some awesome stuff. Is there any place where I'd place a greyscale(?) image?

Google image search is where I found most of mine. You can also make them yourself with an image editor, even Paint can do. Draw some shapes, fill them, blur the edges, add some noise, distort the blurred areas...

Here's a quick video of how to make a random height map in Photoshop: http://www.broxzier.com/files/ShareX/heightmap.mp4

  • Like 2
  • 5 weeks later...
Posted

I just came across a height map that I've used for a different program. The first file is too big for RCT2, so it will be cut off, or you can cut out the part you're interested in, and the second is reduced to only 240x240 pixels.

scene2.png

scene2.smaller.png

  • Like 1
Posted (edited)

Island Fingers.

I'm separating the grey scale to tile height ratio. It seems that every 20 pts in grey scale separates tile heights... still working on the formula. 

EDIT:

@Broxzier I think you know what i'm trying to do... you have any input on this?

 

593998db83763_Abstract01.png.8454a57aafc620030cef88e4c2cab8d3.png593998f186bc7_2017-06-0811-33-57.thumb.png.d57997c78432e20f69e435a659ee6789.png

Island Fingers.sc6

Edited by SpiffyJack
Posted (edited)
2 hours ago, SpiffyJack said:

I'm separating the grey scale to tile height ratio. It seems that every 20 pts in grey scale separates tile heights... still working on the formula.

Not sure what you mean by this. You mean that the value 0-19 have one height, then 20-39 are one step higher? These values are not set, the height will be calculated based on the input. The lowest value a greyscale pixel can have is 0, and the highest is 255. In case you set the low and high value to 0 and 100, the height will be exactly 100/255th of this, rounded down to the correct tile height, since they go with steps of two.

2 hours ago, SpiffyJack said:

I think you know what i'm trying to do... you have any input on this?

Not sure what you're asking.

Edit: since you mentioned formula, the formula for calculating the height is something like this: Height = (P - min) / (max - min) * (high - low) + low, where:

  • P = the pixel value (value between 0 and 255, inclusive), read from the (possibly smoothed) heightmap
  • min = 0, or the lowest pixel value in the height map when "Normalize" it enabled
  • max = 255, or the highest pixel value in the height map when "Normalize" is enabled
  • high = the setting from the window
  • low = also the setting from the window

Then after the height is calculated, it rounds it down to the nearest even number. If "Smooth tiles" is enabled, it picks the best possible slope by comparing it with the height of its neighbouring tiles.

Edited by Broxzier
  • Like 2
Posted (edited)
33 minutes ago, Broxzier said:

Not sure what you mean by this. You mean that the value 0-19 have one height, then 20-39 are one step higher? These values are not set, the height will be calculated based on the input. The lowest value a greyscale pixel can have is 0, and the highest is 255. In case you set the low and high value to 0 and 100, the height will be exactly 100/255th of this, rounded down to the correct tile height, since they go with steps of two.

Not sure what you're asking.

 

You answered my question better than I asked it. So know i'm thinking I can limit a greyscale pallet to 100 shades (or 50 due to steps of two) and get pretty close to knowing exactly where tiles will rise and fall. 

For instance: If you work off an origin of height (black), each grey can be a specific height allowing you to carve an entire map as detailed like a road map if you wanted.. :D  I have noted too many grey's can be noisy. vs. working with a simple pallet and having more control.

edit: I only base my 0-19 .. 20-39 etc so i can see the different shades

Edited by SpiffyJack
Posted (edited)

I seem to be going bat shit crazy messing around with Heightmaps... :D 

Twisted Highway!

H=50 and it actually slopes to sea level.

My opinion: This could be an AMAZING map to work with.

593c9d1e1fc34_TwistedHighways.thumb.png.09bcb262862aa4fd7a0bb9100296fba0.png

 

Possible WIP...

593cc092b4863_2017-06-1020-58-50.thumb.png.1f5faa55a08abcdffec73170fe91df95.png

Twisted Highway.sc6

Edited by SpiffyJack
  • Like 1
Posted (edited)
49 minutes ago, BlazingEmpireHD said:

Question: If I find greyscale images to make a scenario out of it, where would I put the image? Or, is there something else I can do?

I just made a 'Heightmap folder' and keep all my grey scales in there. Once the image is imported, its never used again unless you decide to re-import it. 

EDIT: Color also works, but can be very unpredictable as to the results. 

Edited by SpiffyJack
  • Like 2
Posted

Thank you both! I'd try out these ideas, but OpenRCT2 won't run for me. I doubt it's a game glitch, but I've tried at least ten times to get past the first loading screen (white box in black box) and it just freezes and does not respond.

It may or may not be my computer, so, I'm not going to worry about it.

Posted
34 minutes ago, BlazingEmpireHD said:

Thank you both! I'd try out these ideas, but OpenRCT2 won't run for me. I doubt it's a game glitch, but I've tried at least ten times to get past the first loading screen (white box in black box) and it just freezes and does not respond.

It may or may not be my computer, so, I'm not going to worry about it.

Just curious, are you using the Launcher to execute the game with the latest build? Hopefully yes, if not, try that. 

Posted (edited)

europe.png.c3247c0e6f1462e1049e5dd8ba1bc78a.png593e9ef08a513_2017-06-1216-01-52.thumb.png.52c1cd1a8e755ec91052c1ef19c38d2e.png

Europe! I probably won't actually make a heightmap because I never really learned Photoshop and I'm probably not interested in it enough to do so, but it's a cool function.

Edited by Wuis
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...