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

查看:318
本文介绍了想在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

  • Blender

  • an iPhone
  • a MacBook
  • the iPhone SDK
  • Blender

我的知识库:


  • 我可以在各种3D程序中制作3D模型(我对3D Studio最熟悉Max,我曾经参加过课程,但我已经使用过其他课程了)

  • 多年前的程序编程常识(QuickBasic - 我老了!)

  • 初学者对面向对象编程的了解,包括简单的Java和C#教程(Head Start C#book和我妻子介绍的使用Java的OOP课程)

  • 我有设法显示一个3D纹理模型并使用C#中的教程旋转它(我不只是复制和粘贴,我基本上理解它是如何工作的)和XNA游戏开发库,在Windows上使用Visual Studio。

  • I can make 3D models in various 3D programs (I'm most comfortable with 3D Studio Max, which I once took a course on, but I've used others)
  • General knowledge of procedural programming from years ago (QuickBasic - I'm old!)
  • Beginner's knowledge of object-oriented programming from going through simple Java and C# tutorials (Head Start C# book and my wife's intro to OOP course that used Java)
  • I have managed to display a 3D textured model and spin it using a tutorial in C# I got off the net (I didn't just copy and paste, I understand basically how it works) and the XNA game development library, using Visual Studio on Windows.

我不知道的事情:


  • 很多关于Objective C

  • 关于OpenGL或OpenGL ES的任何内容,iPhone显然使用

  • 关于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.

对于您的特定项目,或许可以看一下这个答案指的是一个开源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天全站免登陆