News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Half-Height Map Color Scale

Started by Drewthegreat87, March 04, 2016, 01:50:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Drewthegreat87

Hello all,

On the Simutrans maps page under creating maps (or whatever it's called...), they have a tutorial which gives out grey scale values for shading the map for conversion to .ppm then going into Simutrans. That scale is set up for the old double height system of terrain that has been superseded by the half-height version from I think version 120.0.0 (right/wrong?) and onward. I was curious if somebody already has figured a new scale taking half-height into consideration? If not, I'll give it a go in my spare time and post the findings here once I get them.

Thanks!

Spenk009

The maps are still read in the same way. It's just that now you can connect two height tiles difference with each other by means of a normal slope.

So the maps in half-heights are half their original height when loaded from the same image compared to old/full-height.

Magpie

 I've been playing with heightfileds maps to create color palette for half-height. The grey scale at tutorial at simutrans maps will give you map with two half-height steps for every color. ( It's even a little bit bugged - it create double jump (4 half height slopes) between: R=203 G=203 B=203 andR=213 G=213 B=213

-Simutrans from heightmap create map raging from -19 to 20 (if you set water level to -20 at the map settings.) This is probably intended to leave you some levels (-32 to 32) for your infrastructure?
-So, I tried my own greyscale going down by 5 points (to be easy). 255,255,255 – 250,250,250 – - etc . It works well. It'll give you lvl 20 at 255,255,255 paint, lowest dry ground at 45,45,45 and an additional 5 sea levels.
RGB:
255,255,255
250,250,250
245,245,245
240,240,240
235,235,235
230,230,230
225,225,225
220,220,220
215,215,215
210,210,210
205,205,205
200,200,200
195,195,195
190,190,190
185,185,185
180,180,180
175,175,175
170,170,170
165,165,165
160,160,160
155,155,155
150,150,150
145,145,145
140,140,140
135,135,135
130,130,130
125,125,125
120,120,120
115,115,115
110,110,110
105,105,105
100,100,100
95,95,95
90,90,90
85,85,85
80,80,80
75,75,75
70,70,70
65,65,65
60,60,60
55,55,55
50,50,50
45,45,45 -dry land with sea level -20
40,40,40
35,35,35
30,30,30
25,25,25
20,20,20
15,15,15 -deepest sea

Burcak

I tried use greyscale below and Some 5 points steps create two half-height steps. So, I add following color to greyscale and I have 1 half-height step for each color:
237,237,237
217,217,217
197,197,197
177,177,177
157,157,157
137,137,137
117,117,117
97,97,97
77,77,77

255,255,255 gives level 30 and grey 135,135,135 gives level 0. I tried greyscale onle to 75,75,75 which means level -15.