Author Topic: [r7856] Planes go invisible when flying over tunnel entrances and bridges  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacethingy

I've been noticing planes vanishing for a while now; I've only just realised that its when they fly over tunnel entrances and bridges:


It makes the plane stay invisible until it changes direction (especially see the lowest plane in the video).
Life is like a new Simutrans transformer:

You only get one of them, and you can't have it on a slope.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4251
  • Total likes: 177
  • Helpful: 149
  • Languages: EN, DE, AT
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #1 on: February 04, 2017, 09:25:44 AM »
Here is a patch. It is quite a hack. Should I submit this?

Parsley, sage, rosemary, and maggikraut.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8823
  • Total likes: 323
  • Helpful: 229
  • Languages: De,EN,JP
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #2 on: February 04, 2017, 01:23:43 PM »
You are the expert. When I last touched that code, the image was simply set to empty for a vehicle in a tunnel.

Offline Yona-TYT


Offline TurfIt

Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #4 on: February 04, 2017, 07:35:46 PM »
Isn't almost the entirety of the rendering code now a 'hack' of special cases trying to minimize the artifacts.  ;D  Whatever works...

Would the save_cr and toggle function not make more sense in simgraph along with the rest of the clipping stuff?
For multithreaded performance, save_cr needs padding to get any writes by different threads off the same cacheline. Same as was done with the clips[] struct.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4251
  • Total likes: 177
  • Helpful: 149
  • Languages: EN, DE, AT
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #5 on: February 07, 2017, 06:54:26 PM »
Thanks for the comment. I put this into simgraph. The airplane bugs should be fixed in r8070. I tried to cleanup the code and the macro definitions.
Parsley, sage, rosemary, and maggikraut.