4
在some cocos2d-iphone documentation,有人告诉我,把这个无法设置深度缓冲区?
// IMPORTANT: Call this function at the very beginning, before running your 1st scene
// Create a depth buffer of 24 bits
// These means that openGL z-order will be taken into account
[[CCDirector sharedDirector] setDepthBufferFormat:kDepthBuffer16];
为了让我在游戏中的行动与一些3D效果。但是,由于某些原因,Xcode不识别setDepthBufferFormat
和kDepthBuffer16
。有任何想法吗?
啊。谢谢。顺便说一下,你知道为什么当我运行3D动作时,背景会变黑吗? – Voldemort
可能是因为缺少深度缓冲区。您可能还必须启用深度测试:[[CCDirector sharedDirector] setDepthTest:YES]; – LearnCocos2D