如何使用jPCT与Vuforia SDK? [英] How to use jPCT with Vuforia SDK?
问题描述
有人可以给混合Jpct和高通Vuforia SDK的概况?它是使用Java渲染引擎,Vuforia一个好主意?
Can someone give an overview of mixing Jpct and Qualcomm Vuforia SDK? Is it a good idea to use Java rendering engine with Vuforia?
推荐答案
基本上,QCAR的整个辊子是计算变形predefined目标图像的变换矩阵。它给你,你可以使用OpenGL使用叠加图形两个重要的4X4矩阵。
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
如果你熟悉的OpenGL,这两个都够渲染目的。但是,如果你想使用像一个渲染引擎的 jPCT ,请使用相机并提取模型视图矩阵的 FOV从投影矩阵。看看在ImageTarget示例应用程序,你会明白code你要改的哪一部分。
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.
更何况,你也应该从本地codeS注释掉不必要的渲染codeS。由于jPCT是基于Java的,你需要从本地codeS到Java这是一个JNI任务传递矩阵。否则,您可以使用一个基于C ++的引擎一样的 OGRE3D 或 OpenFramework 的能在本土code来呈现。
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.
这篇关于如何使用jPCT与Vuforia SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!