在 iOS 应用程序中使用 3D 对象
我如何将 Maya 中的 3D 对象添加到 iOS 应用程序中?现在,在它变得太复杂之前,我只想添加它,触摸还没有响应。有这方面的教程吗?谢谢!
编辑:不一定非得是 Maya。我可以学习如何使用另一个程序。
How would I go about adding a 3D object from Maya into an iOS app? For now, before it gets too complicated, I just want to add it in, no response to touch yet. Is there a tutorial about this? Thanks!
Edit: It doesn't necessarily have to be Maya. I can learn how to use another program.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Molecules 是一款出色的开源 iOS 应用程序,它使用 OpenGL ES 渲染具有良好触摸交互效果的 3D 对象。也许这将是一个很好的起点。
Molecules is a great open source iOS app that uses OpenGL ES to render 3D objects that have nice touch interaction. Maybe that would be a good starting point.
转到 Xcode 并启动 OpenGL-ES 项目。
将您的 Maya 模型导出为 *.obj(Wavefront) 格式并使用 Jeff Lamarches obj-loader 创建 c 头文件,您可以将其包含到您的 iPhone 项目中!
Go to Xcode and start an OpenGL-ES Project.
Export your maya-model to *.obj(Wavefront)-format and use Jeff Lamarches obj-loader to create c-header files that you can include into your iPhone project!
有关渲染 3D 网格的更现代的示例,请查看此库。它配备了 OBJ 解析器,因此如果您可以将几何图形导出为 OBJ 文件,则可以使用 iOS 上的库进行渲染并与之交互。这是该库实际运行的短视频。
For a more modern example of rendering 3D meshes, check out this library. It comes with an OBJ parser, so if you can export your geometry as an OBJ file, you can render and interact with it using the library on iOS. Here's a short video of the library in action.