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

查看:118
本文介绍了将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是否以某种方式链接了,因为我没有进行手动链接。我该怎么办?

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插件未随iOS的ARToolKit一起提供,

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命令行工具(例如< a href = http://www.artoolkit.org/dist/3rdparty/openscenegraph/3.2.x/OpenSceneGraph-3.2.2%20OS%20X%2010.7%2B%20Installer.zip rel = nofollow> http: //www.artoolkit.org/dist/3rdparty/openscenegraph/3.2.x/OpenSceneGraph-3.2.2%20OS%20X%2010.7%2B%20Installer.zip 包括FBX插件,并在路径<$ c处提供osgconv $ c> / Applications / OpenSceneGraph / Applications / 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天全站免登陆