Page 1 of 1

[0.16.27] Inserter behind pole draws in front of it

Posted: Sat Mar 03, 2018 10:14 pm
by Zeblote
Image

Re: [0.16.27] Inserter behind pole draws in front of it

Posted: Sat Mar 03, 2018 11:59 pm
by malventano
Any idea why this ended up in 'Won't fix'? Seems like a pretty obvious bug.

Re: [0.16.27] Inserter behind pole draws in front of it

Posted: Sun Mar 04, 2018 12:08 am
by posila
It is limitation of 2D sprite-based engine. We want inserter hand to be drawn over machines when dropping to them and sadly that means it is drawn also over power-pole like this.

Re: [0.16.27] Inserter behind pole draws in front of it

Posted: Sun Mar 04, 2018 1:30 am
by Zeblote
posila wrote:It is limitation of 2D sprite-based engine. We want inserter hand to be drawn over machines when dropping to them and sadly that means it is drawn also over power-pole like this.
It seems like most of these issues could be fixed by sorting sprites based on their y coordinate before batching. Is there a reason why you aren't doing this / why that wouldn't work?

Re: [0.16.27] Inserter behind pole draws in front of it

Posted: Sun Mar 04, 2018 1:41 am
by Rseding91
Zeblote wrote:
posila wrote:It is limitation of 2D sprite-based engine. We want inserter hand to be drawn over machines when dropping to them and sadly that means it is drawn also over power-pole like this.
It seems like most of these issues could be fixed by sorting sprites based on their y coordinate before batching. Is there a reason why you aren't doing this / why that wouldn't work?
We already do. But as he said: the inserter should be over machines when it tries to drop into them which means it should still be on top even when the Y position would put it under and so it does this for electric poles.

It's non-solvable without having a z-layer per pixel rendered which isn't going to happen with sprite based rendering.

Re: [0.16.27] Inserter behind pole draws in front of it

Posted: Mon Jun 08, 2020 2:11 pm
by ickputzdirwech
This is a duplicate of 28783.