Objective c CCLiquid使我的屏幕变黑

Objective c CCLiquid使我的屏幕变黑,objective-c,cocos2d-iphone,Objective C,Cocos2d Iphone,我使用的是cocos2d iphone,最新的非测试版 最近我发现了这个:,我对我游戏中的一些水特效感兴趣 但是,当我在我的CCSprite上应用CCLiquid操作时,除了精灵本身之外的所有东西都被渲染为黑色。嗯,不完全是这样。当我增加动作的幅度时,我注意到它实际上是一个黑色背景,屏幕的大小直接在我的CCSprite下方生成(这样的背景也被“挥动”) 尽管这不是一个3D动作(至少没有3D后缀),我还是决定按照该页面上的提示在我的学员身上写下: [[CCDirector sharedDirect

我使用的是cocos2d iphone,最新的非测试版

最近我发现了这个:,我对我游戏中的一些水特效感兴趣

但是,当我在我的CCSprite上应用CCLiquid操作时,除了精灵本身之外的所有东西都被渲染为黑色。嗯,不完全是这样。当我增加动作的幅度时,我注意到它实际上是一个黑色背景,屏幕的大小直接在我的CCSprite下方生成(这样的背景也被“挥动”)

尽管这不是一个3D动作(至少没有3D后缀),我还是决定按照该页面上的提示在我的学员身上写下:

[[CCDirector sharedDirector] setDepthBufferFormat:kDepthBuffer16];
但无论如何都无法识别
kDepthBuffer16

有什么想法吗


编辑:值得一提的是,我的精灵正在使用cAnimate设置动画。

对于1.0.1版,这为我修复了它(静态图像,无动画)。这是在AppDelegate中(在我的案例中):


我用普通的香草雪碧也能得到同样的效果,没有动画。
- (void) applicationDidFinishLaunching:(UIApplication*)application
{
    // Init the window

    window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    if( ! [CCDirector setDirectorType:kCCDirectorTypeDisplayLink] ) {
        [CCDirector setDirectorType:kCCDirectorTypeDefault];
    }

    CCDirector *director = [CCDirector sharedDirector];

    // Init the View Controller

    viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
    viewController.wantsFullScreenLayout = YES;

    // Create the EAGLView manually

    EAGLView* glView = [EAGLView viewWithFrame:[window bounds]
                                   pixelFormat:kEAGLColorFormatRGBA8
                                   depthFormat:GL_DEPTH_COMPONENT16_OES
                            preserveBackbuffer:NO
                                    sharegroup:nil
                                 multiSampling:NO
                               numberOfSamples:0];


    // attach the openglView to the director

    [director setOpenGLView:glView];

    // ... etc here  

}