How can I make a 3-D cube from 6 images in my iPho

2019-04-16 07:48发布

I'm new to iPhone programming. I have 6 PNGs that represent all sides of my classroom from the inside. I would like to make them into a single 3-D cube that you would view from the inside, with the ability to look around this cube by moving your finger.

How would I go about implementing something like this? I found Core Animation's CATransform3D and a little about textures in OpenGL, but I'm not sure what to use for my case.

2条回答
迷人小祖宗
2楼-- · 2019-04-16 08:20

This is a pretty arbitrary question but I think I can help, Pangea software has some tools to help do this and some other information related to it:

http://www.pangeasoft.net/pano/index.html

The owner is a pretty nice guy and can probably help you out with some integration or source code.

查看更多
beautiful°
3楼-- · 2019-04-16 08:23

You're looking for something called a Skybox. The coding for this is well understood and you shouldn't have any difficulty finding example OpenGL code to use. Here is as good a place to start as any, but just Google 'OpenGL Skybox' for lots of examples.

查看更多
登录 后发表回答