问题描述
我需要使用CCTransitionPageTurn在我的应用程序之间的场景。
当我运行这个转换,我的运行场景看起来不错 - 它就像页面。
但是在后台我看到黑屏(在翻页动画期间),后来被新的场景替换。
我想在背景中看到新的场景(在动画期间),当我开始这个转换。
任何人都可以帮助我?
I need to use CCTransitionPageTurn in my app between scenes.When i run this transition, my running scene looks nice - it turns like page. but at the background i see black screen(during page turn animation), that is replaced later by new scene.And i want to see new scene in the background(during animation), when i start this transition.Can anybody help me?
推荐答案
在我注释掉这一行之后,所有工作都应该这样。
Oh, i found out the answer.All works as it should, after i commented out this line
// director.projection = kCCDirectorProjection2D;
//director.projection = kCCDirectorProjection2D;
也打开深度缓冲区并更改depthformat。
also i turned on depth buffer and changed depthformat.
这篇关于如何在CCTransitionPageTurn的场景之间删除黑屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!