从哪里开始 openGL ES 在 iPhone 中创建和旋转立方体? [英] Where to start openGL ES to create and rotate a cube in an iPhone?

查看:31
本文介绍了从哪里开始 openGL ES 在 iPhone 中创建和旋转立方体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Objevtive-C 和 Cocos2d 在 iPhone 上完成了一些应用程序,我想开始学习 3D.
我的第一个目标是制作一个非常简单的应用程序:
- 在屏幕中央显示一个 3D 立方体.
- 并在立方体周围移动相机
我想要一些非常简单的东西:没有纹理,没有背景.

I've done some apps on iPhone using Objevtive-C and Cocos2d, and I'd like to start learning 3D.
My first goal is to make a very simple app that:
- Displays a 3D cube in the center of the screen.
- And move the camera around the cube
I want something very simple: no texture, no background.

我应该从哪里开始做这个应用程序?我正在寻找一些教程或示例.
谢谢!

Where should I start to be able to do this app? I'm searching for some tutorials or exemples.
Thanks!

推荐答案

我创建了一个 OpenGL ES 示例应用程序 显示带纹理的立方体,并允许您使用触摸手势旋转它,这是我教授的 iPhone 开发课程的一部分.不过,我警告你,我在那个例子中没有完全正确地理解面孔,所以由你来纠正我的错误.该课程的笔记,包括关于 OpenGL ES 的讲座,以 VoodooPad 格式提供这里.

I created an OpenGL ES sample application that displays a textured cube, and lets you rotate it using touch gestures, as part of the class I teach on iPhone development. I warn you, though, I didn't quite get the faces right in that example, so it's up to you to correct my mistakes. The notes from that course, including the lecture on OpenGL ES, are available in VoodooPad format here.

对于更复杂的示例,您可以将源代码下载到我的 iPhone/iPad 应用程序 Molecules.

For a more complex example, you can download the source code to my iPhone / iPad application Molecules.

这篇关于从哪里开始 openGL ES 在 iPhone 中创建和旋转立方体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆