简体   繁体   English

我希望我的cocos2d游戏的背景是iphone相机的视图。 我怎么做?

[英]I want background of my cocos2d game to be the view of the camera of iphone. How do i do that?

I am making a game with augmented reality in it. 我正在用增强现实制作游戏。 So, i want to have the camera view as the background of the game. 所以,我希望将相机视图作为游戏的背景。 However, I am finding some difficulties in doing this. 但是,我发现这样做有些困难。

I tried doing it using the UIImagePickerController but then when i do that, all i get is the camera view and the game elements disappear. 我尝试使用UIImagePickerController进行,但是当我这样做时,我得到的只是相机视图,游戏元素消失了。

I looked at some of the articles.. 我看了一些文章..

http://www.cocos2d-iphone.org/forum/topic/1752 http://www.cocos2d-iphone.org/forum/topic/1752

http://www.cocos2d-iphone.org/forum/topic/711 http://www.cocos2d-iphone.org/forum/topic/711

but i didnt get any proper answer and it only confused me more. 但我没有得到任何正确的答案,只是让我更加困惑。

Can anyone help? 有人可以帮忙吗? Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM