我在哪里可以找到响应触摸的iPhone OpenGL ES示例? [英] Where can I find an iPhone OpenGL ES Example that responds to touch?

查看:144
本文介绍了我在哪里可以找到响应触摸的iPhone OpenGL ES示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找一个响应触摸的iPhone OpenGL ES示例。
理想情况下它会满足这些要求:

I would like to find an iPhone OpenGL ES Example that responds to touch. Ideally it would meet these requirements:


  • 在屏幕中央显示一个像立方体一样的3D对象

  • 将纹理映射到立方体表面

  • 拖动手指时应将相机移动到多维数据集

  • 应缩放通过捏合进出立方体的相机

  • 可选择在立方体后面有一个环绕相机背面的背景。(例如,这可能会产生立方体所在的效果)空间)

  • Displays a 3D object in the center of the screen like a cube
  • Maps a texture to the cube surfaces
  • Should move the camera around the cube as you drag your finger
  • Should zoom the camera in and out on the cube by pinching
  • Optionally has a background behind the cube that wraps around the back of the camera.(for example this could create the effect of the cube being in space)

有没有人看过一个或多个可以做这些的例子,或者至少用纹理渲染立方体?

Has anyone seen one or more examples that can do these or at least render the cube with the texture?

推荐答案

我的iPhone应用程序 Molecules 提供源代码 BSD许可证。它使用OpenGL ES渲染分子结构,使用单个触摸旋转结构,缩放手势进行缩放,同时移动两个手指以平移分子。不幸的是,它还没有使用纹理进行任何渲染。

My iPhone application Molecules has its source code available via a BSD license. It uses OpenGL ES to render a molecular structure, using single touches to rotate the structure, a pinch gesture for zooming, and simultaneous movement of two fingers for panning across the molecule. Unfortunately, it does not yet use textures for any of the rendering it does.

我记录了一些我从中学到的关于OpenGL ES的东西这里这里

I document some of the things I've learned about OpenGL ES from it here and here.

这篇关于我在哪里可以找到响应触摸的iPhone OpenGL ES示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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