Half of background image not respecting zorder


#1

Hey guys,

I’m seeing a weird problem when running on a device, but not on the simulator. It seems as if half of a texture from the bottom left corner to the upper right corner is always rendered in front of everything. To show a quick example I created a new project from the xcode template and simply resized the HelloWorld.png image to be 1024x768. When running on my iPhone 4s you can see everything above a line going from the bottom left of the screen to the top right of the screen is covered by the background image, but everything below that line is showing. You can also see half of the FPS counter in the bottom left is chopped off. Does anybody have any idea what is going on here? Am I doing something wrong?

Thanks for the help!

  • Rob


photo.PNG (300.6 KB)


#2

Think it is this problem:

http://www.cocos2d-x.org/news/24


#3

Good call, disabling depth testing in this case did the trick.

Thanks!

  • Rob