4.0 的 Vuforia VideoPlayback 示例? [英] Vuforia VideoPlayback example for 4.0?

查看:30
本文介绍了4.0 的 Vuforia VideoPlayback 示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人成功移植了 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.

  1. 按照此处的说明更改 C++ 库
  2. 删除构建文件夹中的 libQCAR.a 和头文件,并将其替换为 libVuforia.a 和头文件
  3. 更改构建目标以包含 arm64 和标准架构(您会看到)
  4. 使用 ObjectTarget 搜索/替换 ImageTracker 的所有实例
  5. 将 targetPositiveDimensions 从 Vec2F 更改为 Vec3F
  6. 从 Vuforia(在他们的网站上)获取一个应用程序密钥,查找 QCAR::setInitParameters,然后添加第二个参数,将该密钥作为字符串...

  1. follow the instructions here to change the C++ library
  2. remove your libQCAR.a and headers in your build folders and replace it with libVuforia.a and headers
  3. change your build targets to include arm64 and standard architectures (you'll see it)
  4. search/replace all instances of ImageTracker with ObjectTarget
  5. change targetPositiveDimensions from Vec2F to Vec3F
  6. 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屋!

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