4.0 的 Vuforia VideoPlayback 示例? [英] Vuforia VideoPlayback example for 4.0?
问题描述
是否有人成功移植了 Vuforia 的 3.x VideoPlayback 示例代码以在新的 4.0 库下运行?
Has anyone successfully ported Vuforia's 3.x VideoPlayback sample code to run under the new 4.0 libraries?
推荐答案
好吧,这并没有我想象的那么难.
Ok this wasn't as hard as I thought.
- 按照此处的说明更改 C++ 库
- 删除构建文件夹中的 libQCAR.a 和头文件,并将其替换为 libVuforia.a 和头文件
- 更改构建目标以包含 arm64 和标准架构(您会看到)
- 使用 ObjectTarget 搜索/替换 ImageTracker 的所有实例
- 将 targetPositiveDimensions 从 Vec2F 更改为 Vec3F
从 Vuforia(在他们的网站上)获取一个应用程序密钥,查找 QCAR::setInitParameters,然后添加第二个参数,将该密钥作为字符串...
- follow the instructions here to change the C++ library
- remove your libQCAR.a and headers in your build folders and replace it with libVuforia.a and headers
- change your build targets to include arm64 and standard architectures (you'll see it)
- search/replace all instances of ImageTracker with ObjectTarget
- change targetPositiveDimensions from Vec2F to Vec3F
get an app key from Vuforia (on their web site), look for QCAR::setInitParameters, and add a second parameter with that key as a string...
QCAR::setInitParameters(mQCARInitFlags, "我的许可证密钥");
QCAR::setInitParameters(mQCARInitFlags, "my license key");
我有一些挥之不去的问题,但大部分都可以解决.启动跟踪器所需的时间比旧版本长得多,AFAICT.
I have a few lingering issues, but most of it is working. The time needed to start up the tracker is much longer than older versions, AFAICT.
这篇关于4.0 的 Vuforia VideoPlayback 示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!