Pryme8
October 17, 2023, 9:55pm
1
So for some reason nine patch images clear out any context behind them, This makes things really weird when trying to add a dynamic border to a background.
Left is normal, right is nine patch.
I have tried all sorts of settings to get this to work. It used to not be like this so I’m not sure what changed?
sebavan
October 17, 2023, 10:14pm
2
It is due to your change nine patch overlap fix (#12464) · BabylonJS/Babylon.js@b28528f · GitHub
cc @carolhmj and @Deltakosh for what the expected behavior is ? I guess we should not clear the background ?
Pryme8
October 17, 2023, 10:19pm
3
Dang, I never thought about that and totally forgot about making that fix. Yeah we should probably not be clearing it then it seems.
Makes sense to not clear the bg, and it seems “wasteful” anyway since we’re going to draw over it anyway
Pryme8
October 18, 2023, 3:57pm
6
The problem is that causes artifacts. Which I remember now is why we were clearing it.
Im working on a fix now.
Got it.
Pryme8
October 18, 2023, 4:09pm
7
BabylonJS:master
← Pryme8:p5-ninepatch-clear-fix
opened 10:34PM - 17 Oct 23 UTC
I still need to test this, but here is the draft PR.
That moment you discover a bug, then your buddy looks up git blame and it turns out its on you… o_O…
I feel like I’m losing my mind these days, woooosaaaaa.
1 Like