Vuforia VideoPlayback example for 4.0?

元气小坏坏 提交于 2020-01-16 04:06:05

问题


Has anyone successfully ported Vuforia's 3.x VideoPlayback sample code to run under the new 4.0 libraries?


回答1:


Ok this wasn't as hard as I thought.

  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, "my license key");

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.



来源:https://stackoverflow.com/questions/28562352/vuforia-videoplayback-example-for-4-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!