Share your height maps!
0

40 posts in this topic

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
4

Share this post


Link to post
Share on other sites

I shall post some things I tested when I return home.

0

Share this post


Link to post
Share on other sites

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....

1

Share this post


Link to post
Share on other sites
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.

1

Share this post


Link to post
Share on other sites

Anywhere's fine just need to open it with the file browser since the in-game browser doesn't play nice sometimes.

0

Share this post


Link to post
Share on other sites
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

2

Share this post


Link to post
Share on other sites
17 hours ago, Broxzier said:

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

 

You need to upload that to YouTube. 

0

Share this post


Link to post
Share on other sites

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

1

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

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
2

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

Scorpion Bay!

Located somewhere in the Bermuda Triangle. Before and after a kick ass hurricane, or maybe alien visitors :D 

I would visit this place! if I knew where it was...

593b2fec8ce41_ScorpionBay05.thumb.png.338e028f25e115878ac4047fbb5d0fe9.png593b30686f3f0_ScorpionBay04.thumb.png.6dc4bcdada8ba79816935ff0d0f08b9a.png

Scorpion Bay 04.sc6

Scorpion Bay 05.sc6

3

Share this post


Link to post
Share on other sites

Posted (edited)

Devils Tower! 

593c55d1a0ed9_DevilsTower100x100b.thumb.png.fcf28e45f0786ae370a7bfe9906f6600.png

Devils Tower 100x100.sc6

Edit:

Current H=142

if I could get 280.. this would be close to scale.

Edited by SpiffyJack
1

Share this post


Link to post
Share on other sites

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
1

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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
2

Share this post


Link to post
Share on other sites

@BlazingEmpireHD: The mapgen window will open your Documents/OpenRCT2 folder by default, so creating a folder and saving the height maps in there might be easiest for you.

2

Share this post


Link to post
Share on other sites
1 minute ago, Broxzier said:

@BlazingEmpireHD: The mapgen window will open your Documents/OpenRCT2 folder by default, so creating a folder and saving the height maps in there might be easiest for you.

Yup, what @Broxzier said too. :D 

I just like to keep different media separate.

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites
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. 

0

Share this post


Link to post
Share on other sites

I think so? I click the shortcut, and the game starts. lol, that's all I know. :P

0

Share this post


Link to post
Share on other sites

The launcher would first open a window with a "Play" button, and which automatically updates the game. Make sure you're using that one.

0

Share this post


Link to post
Share on other sites

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
1

Share this post


Link to post
Share on other sites

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
0