Orbit Camera rendering error

Orbit Camera rendering error
0.0 0


I am experiencing an odd behaviour when using CCOrbitCamera or CCCamera::setEyeXYZ(). Apparently the z-order is ignored since 2.1beta3-x-2.1.0, 2.1beta3-x-2.1.1 shows the same problems.

Expected results: sprites drawn over another (see attachment, last image)
Affected platforms: tested on Android and Linux
Device: Samsung Pocket S5300
Affected versions: 2.1beta3-x-2.1.0, 2.1beta3-x-2.1.1

upload.png (250.2 KB)


I found out that this is due to enabling depth test in CCDirector::setGLDefaultValues as since 2.1beta3-x-2.1.0 depth test is enabled by default.

I have disabled depth test for my project after initialisation, which works fine for me.