Author Topic: Slope graphs don't render below sea level  (Read 488 times)

0 Members and 1 Guest are viewing this topic.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2508
  • Total likes: 264
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Slope graphs don't render below sea level
« 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4128
  • Total likes: 129
  • Helpful: 147
  • Languages: EN, DE, AT
Re: Slope graphs don't render below sea level
« Reply #1 on: March 17, 2017, 07:03:22 AM »
Can you please upload a savegame? Do also flat tiles disappear?
Parsley, sage, rosemary, and maggikraut.

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 8665
  • Total likes: 288
  • Helpful: 227
  • Languages: De,EN,JP
Re: Slope graphs don't render below sea level
« Reply #2 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?

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2508
  • Total likes: 264
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Slope graphs don't render below sea level
« Reply #3 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4511
  • Total likes: 155
  • Helpful: 106
  • Languages: EN, NO
Re: Slope graphs don't render below sea level
« Reply #4 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.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2508
  • Total likes: 264
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Slope graphs don't render below sea level
« Reply #5 on: March 17, 2017, 09:30:47 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

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4511
  • Total likes: 155
  • Helpful: 106
  • Languages: EN, NO
Re: Slope graphs don't render below sea level
« Reply #6 on: March 17, 2017, 11:30:34 PM »
It does not happen to all trees, just 1% or so.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2508
  • Total likes: 264
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Slope graphs don't render below sea level
« Reply #7 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)

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4511
  • Total likes: 155
  • Helpful: 106
  • Languages: EN, NO
Re: Slope graphs don't render below sea level
« Reply #8 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.

Offline Vladki

Re: Slope graphs don't render below sea level
« Reply #9 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?




Offline Leartin

Re: Slope graphs don't render below sea level
« Reply #10 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4511
  • Total likes: 155
  • Helpful: 106
  • Languages: EN, NO
Re: Slope graphs don't render below sea level
« Reply #11 on: March 18, 2017, 12:42:03 PM »
Could it be affecting only trees that are positioned close to the edge of tile, and overlap with other tile?

Probably.