简体   繁体   中英

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.

I looked at some of the articles..

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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