How to use jPCT with Vuforia SDK?

冷暖自知 提交于 2019-12-12 16:23:42

问题


Can someone give an overview of mixing Jpct and Qualcomm Vuforia SDK? Is it a good idea to use Java rendering engine with Vuforia?


回答1:


Basically, the whole roll of QCAR is to compute the transformation matrix of a deformed predefined target image. It gives you two important 4x4 matrices which you can use with OpenGL to superimpose your graphics.

  • ModelView matrix
  • Projection matrix

if you are familiar with OpenGL, these two are enough for rendering purpose. But if you want to use a rendering engine like jPCT, use ModelView matrix with camera and extract FOV from Projection matrix. Take a look at the ImageTarget sample app and you will understand which part of the code you have to change.

Not to mention, you should also comment out the unnecessary rendering codes from native codes. Since jPCT is Java-based, you need to pass matrices from native codes to Java which is a JNI task. Otherwise, you may use a C++ based engine like Ogre3D or OpenFramework to be able to render in native code.

Come back and ask more if you face problem.



来源:https://stackoverflow.com/questions/13122131/how-to-use-jpct-with-vuforia-sdk

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