[0.16.27] Inserter behind pole draws in front of it
Posted: Sat Mar 03, 2018 10:14 pm
www.factorio.com
https://forums.factorio.com/
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?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.
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.Zeblote wrote: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?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.