I am using cocos2d-iphone, the latest non-beta.
I recently found this: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:effects , and I was interested in CCLiquid or CCWaves for some water effects in my game.
However, when I apply the CCLiquid action on my CCSprite, everything except the sprite itself turns black. Well, not quite. When I increased the amplitude of the action, I noticed that this is actually a black background, the screen size created directly under my CCSprite (and such a background also “waved”).
Despite the fact that this is not a 3D action (at least not a single 3D suffix), I decided to follow the prompt on this page and put this in my delegate:
[[CCDirector sharedDirector] setDepthBufferFormat:kDepthBuffer16];
But kDepthBuffer16 is not recognized anyway.
Any ideas?
Edit: Something worth mentioning is that my sprite is animating with CCAnimate.
source share