Broxzier Posted May 5, 2017 Share Posted May 5, 2017 (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. 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: Interestingly random noise generates nice maps when you smooth them out: A river or something: And obviously the best map ever: Edited May 5, 2017 by Broxzier 4 Link to comment
imlegos Posted May 5, 2017 Share Posted May 5, 2017 I shall post some things I tested when I return home. Link to comment
BlazingEmpireHD Posted May 5, 2017 Share Posted May 5, 2017 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 Link to comment
SpiffyJack Posted May 6, 2017 Share Posted May 6, 2017 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 Link to comment
imlegos Posted May 6, 2017 Share Posted May 6, 2017 Anywhere's fine just need to open it with the file browser since the in-game browser doesn't play nice sometimes. Link to comment
Broxzier Posted May 6, 2017 Author Share Posted May 6, 2017 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 Link to comment
cascadia Posted May 7, 2017 Share Posted May 7, 2017 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. Link to comment
Broxzier Posted June 6, 2017 Author Share Posted June 6, 2017 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. 1 Link to comment
SpiffyJack Posted June 8, 2017 Share Posted June 8, 2017 (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? Island Fingers.sc6 Edited June 8, 2017 by SpiffyJack Link to comment
Broxzier Posted June 8, 2017 Author Share Posted June 8, 2017 (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 June 8, 2017 by Broxzier 2 Link to comment
SpiffyJack Posted June 8, 2017 Share Posted June 8, 2017 (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.. 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 June 8, 2017 by SpiffyJack Link to comment
SpiffyJack Posted June 9, 2017 Share Posted June 9, 2017 Scorpion Bay! Located somewhere in the Bermuda Triangle. Before and after a kick ass hurricane, or maybe alien visitors I would visit this place! if I knew where it was... Scorpion Bay 04.sc6 Scorpion Bay 05.sc6 4 Link to comment
SpiffyJack Posted June 10, 2017 Share Posted June 10, 2017 (edited) Devils Tower! Devils Tower 100x100.sc6 Edit: Current H=142 if I could get 280.. this would be close to scale. Edited June 10, 2017 by SpiffyJack 1 Link to comment
SpiffyJack Posted June 11, 2017 Share Posted June 11, 2017 (edited) I seem to be going bat shit crazy messing around with Heightmaps... Twisted Highway! H=50 and it actually slopes to sea level. My opinion: This could be an AMAZING map to work with. Possible WIP... Twisted Highway.sc6 Edited June 11, 2017 by SpiffyJack 1 Link to comment
BlazingEmpireHD Posted June 11, 2017 Share Posted June 11, 2017 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? Link to comment
SpiffyJack Posted June 11, 2017 Share Posted June 11, 2017 (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 June 11, 2017 by SpiffyJack 2 Link to comment
SpiffyJack Posted June 11, 2017 Share Posted June 11, 2017 Tiki Islands! just goofing around Tiki Islands.sc6 2 Link to comment
Broxzier Posted June 11, 2017 Author Share Posted June 11, 2017 @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 Link to comment
SpiffyJack Posted June 11, 2017 Share Posted June 11, 2017 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. I just like to keep different media separate. Link to comment
BlazingEmpireHD Posted June 12, 2017 Share Posted June 12, 2017 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. Link to comment
SpiffyJack Posted June 12, 2017 Share Posted June 12, 2017 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. Link to comment
BlazingEmpireHD Posted June 12, 2017 Share Posted June 12, 2017 I think so? I click the shortcut, and the game starts. lol, that's all I know. Link to comment
Broxzier Posted June 12, 2017 Author Share Posted June 12, 2017 The launcher would first open a window with a "Play" button, and which automatically updates the game. Make sure you're using that one. Link to comment
Wuis Posted June 12, 2017 Share Posted June 12, 2017 (edited) 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 June 12, 2017 by Wuis 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now