Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wires incorrectly drawn on top of pylons that should be in front #7675

Open
EratoNysiad opened this issue Jul 31, 2019 · 4 comments
Open

Wires incorrectly drawn on top of pylons that should be in front #7675

EratoNysiad opened this issue Jul 31, 2019 · 4 comments

Comments

@EratoNysiad
Copy link

@EratoNysiad EratoNysiad commented Jul 31, 2019

Version of OpenTTD

1.9.2

Expected result

When developing new graphics for catenary where the pylons overlap with the wires (see image below), I expect pylons that are visually in front of the wires, to be drawn over the wires, instead of having the wires drawn over the pylons.

Actual result

https://i.imgur.com/JQbOhQE.png The wires get drawn on top of the pylon that goes in front. Only seems to happen in the NW-SE direction.

Steps to reproduce

Either make new pylon graphics. Make them like bright purple or w/e and make them tall enough that the pylon graphics overlap with the wires.
Alternatively, load up a copy of Auztracks 4 and build the Main line very high speed (catenary) tracks, which should look like this: https://i.imgur.com/hxmeqCL.png If you look at the sprite of the pole itself you see that the top should be flat, however you can see that the wire has "chopped" off a piece of the pole.

@LordAro
Copy link
Member

@LordAro LordAro commented Jul 31, 2019

This sounds like it could be another instance of #119, as documented in known_bugs.txt
Bounding boxes should confirm - can you screenshot with them turned on?

@Eddi-z
Copy link
Contributor

@Eddi-z Eddi-z commented Jul 31, 2019

Seems like the pylon bounding boxes are not high enough for the sprite sorter to recognize them as relevant. you might try to make them taller, but that might collide with other things (stations, bridges, etc.)
Unbenannt, 1  Jan 1965#10
(also, the sloped catenary bounding box seems too wide)

@EratoNysiad
Copy link
Author

@EratoNysiad EratoNysiad commented Jul 31, 2019

image
It should be noted that it only draws them incorrectly in the NW-SE situation (left in this image), but I can't see a real difference between the two bounding-box wise. Making the bounding boxes taller might help. There is some space left before they start overlapping with the bounding box of tunnels and bridges, so that might be an idea.

@TrueBrain
Copy link
Member

@TrueBrain TrueBrain commented Jan 3, 2021

I am wondering if making them taller indeed solved the issue, and/or if this issue is still relevant?

Sorting anything in an isometric world is very difficult, and often there is no right answer. But we do our best :D So please let us know if this is still relevant :) Tnx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants