Clipping not working well with layers (DEF-2148)

#1

Normally I try to keep any gui scene grouped with a couple of layers (usually just gfx and text to lower the number of drawcalls).
This work fine and render in a correct order.

Problem is that when I add any kind of clipping node it always gets rendered underneath anything that belongs to a layer.
It works fine if not using layers in the scene.

Eg. having a background for a ui popup works fine with layers (gfx and text).
Adding some kind of scrolling text in that screen using a clipping node will draw all that underneath the background.

I try to put that clipping node anywhere in the structure tree and also trying to assign it all the different layers but no result. It just doesnt get rendered on top of any node belonging to a layer. Is this intentional? A bug?

0 Likes

#2

Appearently I have already reported this among other people …

DEF-2148

So solution right now is: Dont use layers at all if using clipping :frowning:

1 Like

#3

Any news?

0 Likes

#4

Yes, actually. The ticket was brought to the surface by a team at King right before Easter. Me or @AGulev will investigate and figure out what works and what doesn’t and then we’ll see what can be done to fix it.

3 Likes