News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

[r7856] Planes go invisible when flying over tunnel entrances and bridges

Started by Spacethingy, August 12, 2016, 12:37:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

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 Simutrans transformer:

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

Dwachs

Here is a patch. It is quite a hack. Should I submit this?

Parsley, sage, rosemary, and maggikraut.

prissi

You are the expert. When I last touched that code, the image was simply set to empty for a vehicle in a tunnel.


TurfIt

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.

Dwachs

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.