基于iOS的OpenGL ES编程

发布于 2024-11-09 06:27:07 字数 273 浏览 0 评论 0 原文

我需要找到学习 iPhone 版 openGL ES 的资源。

我已经看过 Brad Larson 的精彩视频,现在正在从苹果下载高级视频。

我对 iOS 编程了解很多,但对 OpenGL 一无所知,因此资源不假设我已经了解 openGL。

我想学习大部分 OpenGL 功能,但我的主要目标是能够根据触摸位置操作图像。更具体地说,我想创建跟随用户手指的水波纹效果。

我知道 StackFlow 上有很多方程可以实现这一点,但当我要了解如何使用它们时,我却迷失了方向。

I need to find resources for learning openGL ES for the iPhone.

I've already watched Brad Larson's awesome videos and I'm downloading the advanced videos from apple now.

I know a lot about iOS programming but am clueless on OpenGL, so resources that don't assume I already know openGL.

I want to learn a majority of the OpenGL capabilities, but my major goal is to be able to manipulate an image based on the touch locations. More specifically I want to create a water ripple effect that follows the users finger.

I know there are many equations on StackFlow that implement this, but I'm lost when it comes to finding out how to use them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

北方的巷 2024-11-16 06:27:07

我很欣赏视频中的客气话。这绝对让全班同学觉得这是值得做的。

您有两个学期的课程笔记吗?春季课程笔记可以在此处找到 HTML 格式( VoodooPad 格式此处)和秋季版本此处(VoodooPad 格式 此处)。 iTunes U 中的链接对于这些内容来说不是很明显,它们包含许多我认为有价值的 OpenGL ES 资源的链接,以及我在课程中展示的所有示例代码。

我喜欢斯坦福大学的多位讲​​师在 OpenGL ES 课程中所做的工作,作为 iPhone 应用程序开发课程的一部分 (也在 iTunes U 上)。他们提供了与我不同的 API 视角,而且我们都没有假设您了解 OpenGL。

正如 Bart 所建议的,Jeff LaMarche 的 "OpenGL ES from the Ground Up” 系列非常受欢迎是有原因的,他已经最近也发布了他关于 OpenGL ES 2.0 的书中未发布的章节

对于书籍,我强烈推荐 Philip Rideout 的 iPhone 3D 编程,其中介绍了所涉及的数学等基础知识,并采用了你会一直学到一些相当先进的技术。它也是为数不多的花费大量时间使用 OpenGL ES 2.0 的书籍之一。

然而,我建议学习 OpenGL ES 的最好方法不是花时间阅读书籍和文章,而是实际制定一个简单的项目并尝试实现它。找到可以完成您想要做的许多事情的示例应用程序,然后将它们分开。当您遇到困难时,请返回这些资源,您将更好地理解这些概念是如何组合在一起的。当我开始使用 OpenGL 的第一个应用程序时,我对 OpenGL 知之甚少,但我构建了小块和独立的原型,直到我知道足够的知识来拼凑出一些可行的东西。

就您而言,我会非常仔细地查看问题“我个人的建议是立即学习着色器),并在学习上述视频和阅读材料的同时尝试制作一个简单的功能性应用程序。

I appreciate the kind words on the videos. That definitely makes the class feel like it was worth doing.

Do you have the course notes for both semesters of the class? The spring session notes can be found here in HTML format (VoodooPad format here) and the fall ones here (VoodooPad format here). The links in iTunes U aren't very obvious for those, and they contain many links to OpenGL ES resources that I thought were valuable, as well as all the sample code I show off in the classes.

I like the job that various instructors at Stanford have done with their class sessions on OpenGL ES as part of their iPhone Application Development course (also on iTunes U). They provide a different perspective on the API than I do, and both of us come at it by not assuming that you know OpenGL.

As Bart suggests, Jeff LaMarche's "OpenGL ES from the Ground Up" series is extremely popular for good reason, and he's been posting unpublished chapters from his book on OpenGL ES 2.0 lately as well.

For books, I highly recommend Philip Rideout's iPhone 3D Programming, which introduces fundamentals like the math involved, and takes you all the way through to some fairly advanced techniques. It's also one of the few books to spend a significant amount of time with OpenGL ES 2.0.

However, the best thing that I suggest for learning OpenGL ES is not to spend your time reading books and articles but actually formulate a simple project and try to implement it. Find sample applications out there that do many of the things you want to, and pick them apart. Go back to these resources when you run into brick walls and you'll better understand how the concepts all fit together. I knew very little about OpenGL when I started out with my first application using it, but I built small pieces and standalone prototypes until I knew enough to piece together something that worked.

In your case, I'd look very carefully at the resources linked in the answers to the question "GLSL for simple water surface effects", which do exactly what you want. One implementation uses OpenGL ES 1.1, the other 2.0-style shaders. Pick a way that you want to go (my personal recommendation would be to learn shaders now) and try to make a crude, functional application while working through the above videos and reading material.

撩动你心 2024-11-16 06:27:07

您可能想看看这个: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html

这些教程似乎对初学者来说相对友好。

You might want to have a look at this: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html

These tutorials seem to be relatively beginner-friendly.

书间行客 2024-11-16 06:27:07

更具体地说,我想创建跟随用户手指的水波纹效果。

下面的代码正是这样做的: http://developer.apple.com/library/ios/#samplecode/GLCameraRipple/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011222

More specifically I want to create a water ripple effect that follows the users finger.

Here is code that does exactly that: http://developer.apple.com/library/ios/#samplecode/GLCameraRipple/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011222

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文