Problem with RenderTexture and Nodes using global Z order

Problem with RenderTexture and Nodes using global Z order
0.0 0

#1

Hi,

I want to apply a blur shader to my whole scene.
Therefor I need to render my node hierarchy into a RenderTexture.
This works when I use local zOrders in my node hierarchy.
But in my game I use global zOrder. In this case the RenderTexture renders nothing.
Is this a known problem? Is there a workaround or am I doing something wrong?

I use

_renderTexture->begin();
_nodeHierarchy->visit();
_renderTexture->end();

to render my nodes into the RenderTexture.

I´m using cocos2d-x v3.13.1

Thanks in advance!


#2

I am having the same issue. any one ?


Layer in a Scene