Page 2 of 3

Re: Ground Tiles And Transitions

Posted: 29 May 2012 08:19
by robo
The track grade for railroadtracks is usually not very steep, only 2%-4%.
http://modeltrains.about.com/od/layoutc ... grades.htm
This is one reason why it's so difficult to play with landscape in games, even in 3D.
I wouldn't mind to play with a flat landscape similar to Industry Giant2, but it should be possible to build bridges and tunnels for road and railroad crossings.

Re: Ground Tiles And Transitions

Posted: 30 May 2012 11:36
by Pyoro
Multiple height levels are imo always a nice feature, mainly because it allows building one kind of infrastructure bellow/above another and not only with bridges/tunnels. But I can see how this could be a problem to properly display in a straight top-down view game :?

Maybe an approach similar to Dwarf Fortress would work?
Image
Instead of a realistic top-down view you always only see the one z-level you're currently building on. So instead of seeing the "top" of a mountain, you actually see inside and can comfortably build tunnels and whatnot (those "triangles" mark slopes). For z-levels below I'd properly cover them in some light "fog" effect or something. You wouldn't really need to worry about shading or anything and could use all terrain types on one z-level and (if this is desired) you could for example allow building one z-level "above" just as on the ground, with roads/rails automatically being 'converted' to bridges ...
As for transitions; well, maybe some predefined "slope up" "slope down" track pieces with a certain length or something.

Not sure how this would turn out in game like this, of course. Works fine for DFII, but then again this is a different type of game ;)

Re: Ground Tiles And Transitions

Posted: 02 Jun 2012 13:09
by smallfly
robo wrote:The track grade for railroadtracks is usually not very steep, only 2%-4%.
I am currently planning track slopes of 1/6 (increase height by one block while moving over 6 tiles). This is still much too steep but will look much more realistic than transport tycoon slopes.
robo wrote:it should be possible to build bridges and tunnels for road and railroad crossings.
both will be possible.
Pyoro wrote:Instead of a realistic top-down view you always only see the one z-level you're currently building on. So instead of seeing the "top" of a mountain, you actually see inside and can comfortably build tunnels and whatnot (those "triangles" mark slopes). For z-levels below I'd properly cover them in some light "fog" effect or something.
a "just show z-level x" option will be implemented. levels below the selected z level will be drawn with a foggy effect.

Re: Ground Tiles And Transitions

Posted: 03 Jun 2012 19:51
by smallfly
since i want to code the 2d version like the isometric version i will change the terrain height logic. (currently the tile heights are saved; in future the tile corner heights are saved)
preview.jpg
preview.jpg (7.33 KiB) Viewed 15941 times

Re: Ground Tiles And Transitions

Posted: 04 Jun 2012 19:52
by smallfly
I changed the ground style. Now the borders are slopes:
2012-06-04T21-49-31_preview.jpg
2012-06-04T21-49-31_preview.jpg (11.91 KiB) Viewed 15908 times
(for zoomed out version see www.p1sim.org)

Re: Ground Tiles And Transitions

Posted: 05 Jun 2012 13:04
by smallfly
2012-06-05T15-03-25_previe.jpg
2012-06-05T15-03-25_previe.jpg (11.89 KiB) Viewed 15871 times
(larger version attached)

Re: Ground Tiles And Transitions

Posted: 10 Jun 2012 20:13
by smallfly
2012-06-10T22-05-21_preview.jpg
2012-06-10T22-05-21_preview.jpg (18.05 KiB) Viewed 15737 times

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 08:50
by Hazzard
Nice mountains! The shallow water to deep water transition is a little abrupt though, I think the water would work really well if it became darker the deeper it was, as Loconoob suggested.

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 10:06
by Pyoro
Looks greats :) Snow sort of reminds me of chalk stone mountains - but that's probably just me and not something to worry about. ^^

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 12:13
by smallfly
Hazzard wrote:The shallow water to deep water transition is a little abrupt though
This problem is known and being discussed [img=http://slick.javaunlimited.net/viewtopi ... 505d231362]here[/img].
Hazzard wrote:I think the water would work really well if it became darker the deeper it was, as Loconoob suggested.
Yeah. That would look cool. I will implement this height-dependend brightness feature for the water tiles.
Pyoro wrote:Snow sort of reminds me of chalk stone mountains
Good point. Here is a new suggestion for the snow level:
2012-06-11T14-07-47_preview.jpg
2012-06-11T14-07-47_preview.jpg (16.58 KiB) Viewed 15698 times
(larger version attached)

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 12:36
by smallfly
dynamic shading of the height levels is something that costs performance. perhaps i just switch off the corner shadows of deep water and deepest water level like show in the picture.
2012-06-11T14-35-09_preview.jpg
2012-06-11T14-35-09_preview.jpg (9.39 KiB) Viewed 15694 times
(larger version attached)

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 12:41
by smallfly
... which brings us to a mini map view like this:
2012-06-11T14-40-50_preview.png
2012-06-11T14-40-50_preview.png (56.67 KiB) Viewed 15693 times
(larger version attached)

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 13:50
by oberhümer
The shallow water still looks out of place, perhaps use a brighter shade of the blue the rest of the sea is colored, and/or reduce the contrast between the different levels.

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 14:03
by smallfly
oberhümer wrote:The shallow water still looks out of place, perhaps use a brighter shade of the blue the rest of the sea is colored, and/or reduce the contrast between the different levels.
2012-06-11T16-01-44_preview.png
2012-06-11T16-01-44_preview.png (29.79 KiB) Viewed 15687 times
(larger version attached)

satisfied?

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 14:05
by oberhümer
That's definitely better.

Re: Ground Tiles And Transitions

Posted: 11 Jun 2012 14:06
by smallfly
bringing us to this minimap view:
2012-06-11T16-05-00_preview.png
2012-06-11T16-05-00_preview.png (67.02 KiB) Viewed 15685 times
(larger version attached)

Re: Ground Tiles And Transitions

Posted: 12 Jun 2012 00:01
by Hazzard
That's quite nice.

Re: Ground Tiles And Transitions

Posted: 12 Jun 2012 18:06
by smallfly
I added a less contrast shadow style for water tiles, since in reality its quite hard to see the underwater terrain. But I would like to view it since its quite helpful when building bridges and routing your ships.

Note: Bridge pillars can only be built on water tiles with a max depth of 1 block. Big ships need a depth of min. 2 blocks. Small ships need a depth of min. 1 block.
2012-06-12T19-20-15_preview.png
2012-06-12T19-20-15_preview.png (43.9 KiB) Viewed 15624 times
Click for full view

Re: Ground Tiles And Transitions

Posted: 12 Jun 2012 18:15
by LocoMH
But you can always raise earth underwater (if your bank account lets you ;) )?

Re: Ground Tiles And Transitions

Posted: 12 Jun 2012 18:52
by smallfly
LocoMH wrote:But you can always raise earth underwater (if your bank account lets you ;) )?
Yes, you can. But its not the bank account that limits you. In P1SIM all terrain modifications are associated with construction vehicles that drive to the tile that has to be changed and start digging and moving earth masses. Thus you need to have a certain number of construction vehicles available at the moment. The more you send to the construction site, the faster the earth works go on.

Underwater digging is more complicated than normal earth-works:
underwater.png
underwater.png (154.61 KiB) Viewed 15602 times
(image source: http://www.sterk-spezialtiefbau.de/leis ... ushub.html)

Looking at the picture it is easily understandable, that you can dig from 0 (beach) to -1 (shallow water) and from -1 to -2 (deep water). But you won't get deeper with this method. Fortunately in P1SIM there is no reason to dig deeper than -2 since the biggest ships are "happy" with -2 :)