The International Simutrans Forum

Development => Bug Reports => Topic started by: An_dz on March 17, 2017, 01:58:24 AM

Title: Slope graphs don't render below sea level
Post by: An_dz on March 17, 2017, 01:58:24 AM
There's a graphical glitch with slopes below sea level, they simply disappear on the top of the screen. See attached screen.

Only tested on GDI version, but probably affects all versions.
Title: Re: Slope graphs don't render below sea level
Post by: Dwachs on March 17, 2017, 07:03:22 AM
Can you please upload a savegame? Do also flat tiles disappear?
Title: Re: Slope graphs don't render below sea level
Post by: prissi on March 17, 2017, 03:35:00 PM
This could be the same problem as with too high mountains (more than 14). How many levels below zero you are there?
Title: Re: Slope graphs don't render below sea level
Post by: An_dz on March 17, 2017, 06:15:15 PM
Yes, flat tiles also disappear, I did not notice before as it's easier to notice on slopes as the gaps are bigger.

In the screen I'm 3 levels below sea level, but with only one it's already reproducible.

Sometimes you may not notice because the terrain texture will 'paint' the glitch hole like in this pak192.comic screen.

And yes, seems to be related with the super high mountains glitch.
Title: Re: Slope graphs don't render below sea level
Post by: Ters on March 17, 2017, 07:58:57 PM
I've noticed that trees suddenly appear and disappear on the edges of the map as well, but my builds are getting quite old now.
Title: Re: Slope graphs don't render below sea level
Post by: An_dz on March 17, 2017, 09:30:47 PM
Quote from: Ters on March 17, 2017, 07:58:57 PM
I've noticed that trees suddenly appear and disappear on the edges of the map as well, but my builds are getting quite old now.
I could not reproduce that, and my build is very fresh :D
Title: Re: Slope graphs don't render below sea level
Post by: Ters on March 17, 2017, 11:30:34 PM
It does not happen to all trees, just 1% or so.
Title: Re: Slope graphs don't render below sea level
Post by: An_dz on March 18, 2017, 12:30:50 AM
Hum, do you have any tree that uses a graph bigger than the pakset size? pak96.comic has some clouds that have some glitches because they are bigger. (i believe they are 192px)
Title: Re: Slope graphs don't render below sea level
Post by: Ters on March 18, 2017, 06:42:34 AM
I don't know. It's just plain pak64. If that doesn't do things right, then how can we expect anything to do so. But it certainly is the widest trees.

My thought was that maybe Simutrans should include a bit extra around the edges when it decides what to draw.
Title: Re: Slope graphs don't render below sea level
Post by: Vladki on March 18, 2017, 07:59:29 AM
Could it be affecting only trees that are positioned close to the edge of tile, and overlap with other tile?

Sent from my ONEPLUS A3003 using Tapatalk

Title: Re: Slope graphs don't render below sea level
Post by: Leartin on March 18, 2017, 11:57:20 AM
In pak192.comic it can even happen on water level, including the ocean itself. Though just 2pixels high, so barely visible.
Title: Re: Slope graphs don't render below sea level
Post by: Ters on March 18, 2017, 12:42:03 PM
Quote from: Vladki on March 18, 2017, 07:59:29 AM
Could it be affecting only trees that are positioned close to the edge of tile, and overlap with other tile?

Probably.