在iOS本机应用程序中将FBX文件与3D模型一起使用 [英] Use FBX file with 3D model in iOS native app

查看:71
本文介绍了在iOS本机应用程序中将FBX文件与3D模型一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在本机Objective-C/Swift应用程序的屏幕之一中显示交互式3D模型(客户端提供的FBX文件很少).

I have a requirement to display an interactive 3D model (the client supplies few FBX files) in one of the screens in a native Objective-C/Swift app.

我知道可以使用Unity/Cocos3D,但是整个应用程序必须基于Unity/Cocos3D.在我的情况下,该应用程序必须是本机的,并且只有一个屏幕(选项卡栏控制器中的一个选项卡)应该集成用户可以移动/旋转等的3D模型.

I know that there's a possibility to work with Unity/Cocos3D but then the entire app will have to be Unity/Cocos3D based. In my case the app has to be native and only one screen (one of the tabs in the tab bar controller) should integrate the 3D model that the user can move/rotate etc.

谢谢.

推荐答案

FBX SDK在iOS上可用,我写了一个小教程来演示如何使用它

The FBX SDK is available on iOS and I wrote a little tutorial to demo how to use it here. However, the FBX SDK does contain a viewport/canvas for displaying FBX file on any OS. For displaying FBX you would need to create your own view. There is couple of solutions you can use here:

  1. 无需编程,您可以使用"FBX评论".该工具是免费的,旨在显示FBX,DAE,OBJ等文件.
  2. 您可以像我 iOS SceneKit库比实现自己的视图更好.
  1. without programming, you can use the 'FBX Review'. This tools is free and designed to display FBX, DAE, OBJ, ... files
  2. you can implement your own viewport/view such as an obj view like I did here, but it would probably need to be rewritten. I wrote it overnight for a hack, so it needs to be optimized.
  3. you use the iOS SceneKit library which would be a better approach than implementing your own view.

这篇关于在iOS本机应用程序中将FBX文件与3D模型一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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