The International Simutrans Forum

 

Author Topic: Various drawing errors  (Read 2527 times)

0 Members and 1 Guest are viewing this topic.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Various drawing errors
« on: July 19, 2011, 04:45:51 AM »
These have been present for some time, but I have never gotten around to reporting them earlier. I'm not sure if they are all caused by the same bug, or if they are unrelated, but they seem similar.

Image 1 shows a train being drawn on top of the tunnel entrance it is about to enter. I have only seen this happen when train enters a tunnel at this angle.

Image 2 shows what appears to be the pillars showing through the bridge.

Image 3 shows a lock being clipped by the sloping tile to the north.

I have also seen railroad cars being visible through the neighbouring car, which is lower down on the screen, when the train is making a turn. Unfortunately, this does not happen all the time and I have no screenshot.

Screenshots are taken with revision 4698, mingw, SDL, 32-bit.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4897
  • Languages: EN, DE, AT
Re: Various drawing errors
« Reply #1 on: July 19, 2011, 07:02:24 AM »
(1) should be fixed in r4702. The fix could have provoked other glitches. Please check & report back.

(2) hard to fix: either by modifying the pillar graphics or fiddling with the display routines

(3) ways do not have different back and front images. This would fix this issue...

Edit: patch for (2) attached. It prevents everything to shine through bridges (trees, houses etc). But these things reappear when turing on sliced underground view :D
« Last Edit: July 19, 2011, 07:36:51 AM by Dwachs »

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: Various drawing errors
« Reply #2 on: July 19, 2011, 02:43:50 PM »
I noticed the glitch in the attached screenshot when testing r4702. I'm not sure if it's new or if it has been there for a while.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4897
  • Languages: EN, DE, AT
Re: Various drawing errors
« Reply #3 on: July 19, 2011, 03:59:46 PM »
New.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: Various drawing errors
« Reply #4 on: July 21, 2011, 04:24:33 PM »
Pedestrians are sometimes visible through vehicles, but that's a minor annoyance. When I noticed it, both were one the upper left side of the tile.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: Various drawing errors
« Reply #5 on: August 26, 2011, 09:10:14 PM »
I just noticed another glitch, which may or may not be related to the pedestrians above.

I have a road going in direction 10 crossing a double tracked rail heading in direction 5. When a southbound train passes the crossing (on the western track), the barrier behind the train (to its right/west) shines through the last wagon. For northbound trains on the eastern track, the barrier to the left/west shines through.

Crossings between a road with direction 5 and rail with direction 10 have not yielded the same problem.

My simutrans is currently built from revision 4785, pak64 from revision 525. The subversion server appears to be down or otherwise unreachable, so I have not been able to see if there have been any recent related fixes.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10818
  • Languages: De,EN,JP
Re: Various drawing errors
« Reply #6 on: August 27, 2011, 08:58:29 PM »
Two out of three developers are in holidays, thus there is just no activity.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4897
  • Languages: EN, DE, AT
Re: Various drawing errors
« Reply #7 on: August 31, 2011, 01:29:40 PM »
I have a road going in direction 10 crossing a double tracked rail heading in direction 5. When a southbound train passes the crossing (on the western track), the barrier behind the train (to its right/west) shines through the last wagon. For northbound trains on the eastern track, the barrier to the left/west shines through.
Imho this is hard to fix. Stuff in the left/east or right/west corner can be behind and in front of vehicles at the same tile, this cannot be resolved correctly, as all non-moving stuff on a tile has to be either behind or in front of vehicles. Hope this makes sense

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: Various drawing errors
« Reply #8 on: August 31, 2011, 05:49:47 PM »
What you write makes sense, but why does it only affect the last wagon in a southbound (towards lower left) train and the first in a northbound (towards upper right) train?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4897
  • Languages: EN, DE, AT
Re: Various drawing errors
« Reply #9 on: August 31, 2011, 06:19:44 PM »
It seems to me that this happens with the opened crossing only, when the last wagon left the crossing.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: Various drawing errors
« Reply #10 on: August 31, 2011, 07:30:56 PM »
Yes. Looks like that is it. But does that mean that the wagon is no longer on the tile with the crossing? If it has left the tile, then this looks like the inverse situation from what started this thread.