Im using the latest version of cocos2dx v3 from github, for a week now a issue has occurred where layers do not always seem to be rendered in correct order, mostly labels and spine layers.
the spine animation appears to be behind the layer colour, adding Z orders to the addChild’s doesn’t seem to make a difference, removing the this->addChild(layerColor); the spine animation is displayed.
I found similar issue. But this only happens when I call “setZOrder” and “reorderChild” function.
Say there are 40 nodes on our layer, 20 nodes (T) on top of 20 other nodes (B). Sometime the B nodes appears on top of T nodes after I call “setZOrder” and then “reorderChild” function.
To “fix” the case, I add extra dummy nodes to group the nodes
Parent
|-T,T,T,T,B,B,B
to
Parent
|-Node1
|-T,T,T,T
|-Node2
|-B,B,B
Don’t think its the case in my scenario as only have the two nodes in a slash screen like this, the problem only seems to show itself with spine layers and label layers…
Doing the above made spine render in correct order, how ever not sure how to properly implement for the remaining textureAtlas->drawQuads();, any help appreciated