想要在 iPhone 上显示 3D 模型:如何开始? [英] Want to display a 3D model on the iPhone: how to get started?

查看:13
本文介绍了想要在 iPhone 上显示 3D 模型:如何开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 iPhone 上显示和旋转单个 3D 模型,最好是带纹理的.不必放大和缩小,或有背景,或任何东西.

I want to display and rotate a single 3D model, preferably textured, on the iPhone. Doesn't have to zoom in and out, or have a background, or anything.

我有以下几点:

  • 一部 iPhone
  • 一台 MacBook
  • iPhone SDK
  • 搅拌机

我的知识库:

  • 我可以在各种 3D 程序中制作 3D 模型(我最喜欢使用 3D Studio Max,我曾经参加过课程,但我使用过其他程序)
  • 多年前的过程编程常识(QuickBasic - 我老了!)
  • 通过简单的 Java 和 C# 教程(Head Start C# 书和我妻子的使用 Java 的 OOP 课程介绍)获得面向对象编程的初学者知识
  • 我已经成功地展示了一个 3D 纹理模型,并使用 C# 教程旋转它(我不只是复制和粘贴,我基本上了解它的工作原理)和 XNA 游戏开发库,使用Windows 上的 Visual Studio.

我不知道的:

  • 更多关于目标 C
  • 有关 iPhone 显然使用的 OpenGL 或 OpenGL ES 的任何信息
  • 关于 XCode 的一切

我的主要问题是我不知道从哪里开始!我发现的所有 iPhone 书籍似乎都是关于创建 GUI 应用程序,而不是 OpenGL 应用程序.我找到了一本 OpenGL 书,但我不知道有多少(如果有的话)适用于 iPhone 开发.而且我发现 Objective C 语法有些混乱,有奇怪的嵌套方法命名、没有意义的id"之类的东西,以及我必须进行手动内存管理的可怕想法.

My main problem is that I don't know where to start! All the iPhone books I found seem to be about creating GUI applications, not OpenGL apps. I found an OpenGL book but I don't know how much, if any, applies to iPhone development. And I find the Objective C syntax somewhat confusing, with the weird nested method naming, things like "id" that don't make sense, and the scary thought that I have to do manual memory management.

从哪里开始最好?我找不到任何此类事情的教程,但也许我的 Google-Fu 很弱.或者我应该从学习Objective C开始?我知道像 Aaron Hillgrass 之类的书,但我也读到它们已经过时,并且大部分示例代码在 iPhone SDK 上不起作用,而且它似乎面向模型-视图-控制器范式,而后者并不适用似乎适合 3D 应用.

Where is the best place to start? I couldn't find any tutorials for this sort of thing, but maybe my Google-Fu is weak. Or maybe I should start with learning Objective C? I know of books like Aaron Hillgrass', but I've also read that they are outdated and much of the sample code doesn't work on the iPhone SDK, plus it seems geared towards the Model-View-Controller paradigm which doesn't seem that suited for 3D apps.

基本上,我对我的第一步应该是什么感到困惑.

Basically I'm confused about what my first steps should be.

推荐答案

你可能应该从一些更简单的 iphone 应用程序/教程开始,只是为了在 obj-c 和 xcode 等方面站稳脚跟.

You should probably start with some simpler iphone apps/tutorials, just to get your footing on obj-c and xcode etc.

为此,我推荐实用程序员的 iphone 书,它有足够的信息可以开始使用(我从不了解 xcode、obj-c、iphone 或 mac 的情况下开始,很快就开始使用它,主要使用这个).不过我应该补充一点,我有相当好的 C/C++ 和 Java 背景.

For that, I recommend the pragmatic programmer's iphone book, which has enough information to get started (I started with no knowledge of xcode, obj-c, iphone or mac and got to a working app fairly fast, using mainly this). However I should add that I come from a fairly good background in C/C++ and Java.

对于您的特定项目,不妨看看 this答案是指一个开源 3D 应用程序,您可以查看并从中获取提示.

For your particular project, perhaps take a look at this answer which refers to an open source 3D app that you can look at and get tips from.

这篇关于想要在 iPhone 上显示 3D 模型:如何开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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