将 FBX 导入 ARToolKit [英] Import FBX to ARToolKit

查看:44
本文介绍了将 FBX 导入 ARToolKit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在导入 FBX 模型时遇到问题.我已经用 Unity 完成了,所以我知道模型可以很好地导出,但我也应该使用本机代码.我收到错误:

I have problem about importing the FBX model. I have done it with Unity so I know the model exported well but I should do with the native code as well. I am getting error:

2015-06-02 15:20:21.721 ARAppNFTOSG[746:481003] Error: unsupported model file
type (fbx). Ignoring.

我正在名为 ARAppNFTOSG 的 AR 示例上尝试它.我将model.dat更改为:

I am trying it on the AR example named ARAppNFTOSG. I changed the model.dat as:

1

OSG/Geralt/watcher.FBX
0.0 0.0 0.0
0.0 1.0 0.0 0.0
10.0 10.0 10.0
MARKER 1

我查看了 OSG 论坛,发现我应该安装 FBX SDK,我安装了 2013.3 和 2014.1.还要添加以下行:

I looked at the OSG forums and found that I should install FBX SDK which I installed the 2013.3 and 2014.1. Also add the line:

 USE_OSGPLUGIN(fbx)

到 osgplugins.h我不确定我安装的 FBX SDK 是否以某种方式链接,因为我没有进行手动链接.我该怎么办?顺便说一下,我使用的是 mac.

to the osgplugins.h I am not sure FBX SDK that I installed linked somehow because I didn't do manual linking. What should I do? I am using mac by the way.

推荐答案

OSG 的 FBX 插件没有随 ARToolKit for iOS 提供,我不确定它甚至可以为 iOS 构建.

The FBX plugin for OSG is not supplied with ARToolKit for iOS, and I'm not sure it can even be built for iOS.

最好的选择是在 OS X 或 Windows 上安装 OSG 时使用 osgconv 命令行工具(例如 http://www.artoolkit.org/dist/3rdparty/openscenegraph/3.2.x/OpenSceneGraph-3.2.2%20OS%20X%2010.7%2B%20Installer.zip 包含 FBX 插件并在路径 /Applications/OpenSceneGraph/Applications/osgconv) 处提供 osgconv 以从 FBX 转换为支持的 OSG 格式,例如.osgb 并在运行时加载.

The best option is to use the osgconv command-line tool from an installation of OSG on OS X or Windows (e.g. http://www.artoolkit.org/dist/3rdparty/openscenegraph/3.2.x/OpenSceneGraph-3.2.2%20OS%20X%2010.7%2B%20Installer.zip includes FBX plugin and supplies osgconv at path /Applications/OpenSceneGraph/Applications/osgconv) to convert from FBX to a supported OSG format, e.g. .osgb and load that at runtime.

这篇关于将 FBX 导入 ARToolKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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