News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Larger vehicles, stops or depots under bridges get wrong clipping

Started by prissi, April 06, 2025, 11:07:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi


makie

Double height levels of the bridge?
Here the bridge pillars are painted over the tiles in the foreground.

Look is this the bug?
https://simutrans-forum.de/mybb/showthread.php?tid=9677&pid=121717#pid121717

prissi

No, the pillars are not clipped as they are ground. It is the artists responsability. I still need to find out what is directional clipped, as it only appears in full drawing mode (disabled in fast forward).

makie

I expressed myself imprecisely.
The bridge piers are painted over the tile in front of them.
The ground tile bevor, not the tile of the bridge.
Stop, normal, or fast has no effect.

Ok
I've been experimenting a bit.
The problem I noted only affects the ground tile. If you build a house on it, it is displayed correctly.

-----------------------------
These seem to be two different problems.

I haven't been able to reproduce clipping issues with long vehicles under bridges.

By the way:
Bridges on slopes with double height are no longer easy to build because you can't see the dh slope facing the player and therefore can't click on it in pak128.german.

Look at the step in the railway, this is the pillar of the bridge behind.

If i look at the station, it look like it clips just the wrong part. As if a "IF" just works the wrong way.

FLN

I'm not completely sure, this fully matches the thread's title, but maybe it's caused by the same clipping-bug.

Stations on bridges are displayed incorrectly over sloped ground.

Screenshot 2025-04-07 104849.png

  • Same is true for road bridges and bus stops.
  • N-S or E-W orientation makes no difference.
  • Does only happen on slopes at start and end of bridges.
  • Stations on double height bridges, with slopes on lower levels are not affected by them.

makie

@FLN Witch pak is it? Have you mix paks? It looks like mixed double with halve height slops.

Oh, really the position of station over slops is wrong for BackImage, it is ok for FrontImage.
This is new. That worked before 124.3.1 .

FLN

It's pak64, and in r11590 the station images were displayed correctly.

prissi

About the pak.german screeshots. An object on a tile will be always drawn over a ground tile. IN a first run, all ground tiles are drawn. In a second run, all object will be drawn, including pillars and ramp. Hence, ramps extending too much into the next tile will overlap that tile. That needs to be corrected by the artist.

However, the pillar system is very much broken. A new pillar type is very high on my todo list as this would enable all kinds of elevated ways.

makie

Quote from: prissi on April 08, 2025, 05:09:43 AMHowever, the pillar system is very much broken
I'm actually mostly happy with the bridge piers. Only the last one under the slope is superfluous. If that weren't drawn, the problem would be solved. The piers have to extend over the tile to be positioned correctly. They're centered on the tile border. Otherwise, they're not centered between the tracks.

prissi

The pillars are quite a hack and fail on no straight sloped terrain totally ...

The error with the wrong offsets of buildings on slopes is solved in r11680.

makie

Quote from: prissi on April 08, 2025, 12:18:29 PMThe pillars are quite a hack and fail on no straight sloped terrain totally ...
No, it works, if the pillar graphic is at the right position.
Just test pak128.german.
It works with deep V valley and with step in the ground. With single und with double slops.

Our bridges originally copied from pak128 and this were all faulty. It took a lot of work to correct them. But from my perspective, the program works well. What could be improved is if a pillar built every second tile, then they are often asymmetrical, which doesn't look good. The pillars should be built from both sides, spaced two apart. And, as mentioned, the last pillar, which is on the ramp, could be omitted.