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

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

问题描述


我做了一些应用程序在iPhone上使用Objevtive-C和cocos2d的,我想要开始学习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.

应该从哪里开始能够做到这一点的应用程序?我在寻找一些教程或exemples。
谢谢!

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.

有关更复杂的例子,你可以下载源$ C ​​$ C,我的iPhone / iPad应用分子

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

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

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