Hi guys, finally found the answer for this "problem", following this instrucctions in the thread of vuforia forum: https://developer.vuforia.com/forum/android/integrating-jpct-ae-vuforia
credits to: ashunkhs and AlessandroB
This is based on the wiki entry thats integrate Vuforia and JPCT
*
I copy the solution:
First:
i did it another way also as declared in https://developer.vuforia.com/resources/dev-guide/getting-camera-position
// In the java files where we configured the camera
// in the function where we received the inverted Matrix (if you followed the example the function is updateModelviewMatrix)
//
Hope this helps, thanks!
credits to: ashunkhs and AlessandroB
This is based on the wiki entry thats integrate Vuforia and JPCT
*
I copy the solution:
First:
i did it another way also as declared in https://developer.vuforia.com/resources/dev-guide/getting-camera-position
// In the java files where we configured the camera
// in the function where we received the inverted Matrix (if you followed the example the function is updateModelviewMatrix)
//
Code Select
float cam_right_x = currentMatrix[0];
float cam_right_y = currentMatrix[1];
float cam_right_z = currentMatrix[2];
float cam_up_x = -currentMatrix[4];
float cam_up_y = -currentMatrix[5];
float cam_up_z = -currentMatrix[6];
float cam_dir_x = currentMatrix[8];
float cam_dir_y = currentMatrix[9];
float cam_dir_z = currentMatrix[10];
float cam_x = currentMatrix[12];
float cam_y = currentMatrix[13];
float cam_z = currentMatrix[14];
cam.setOrientation(new SimpleVector(cam_dir_x,cam_dir_y,cam_dir_z),new SimpleVector(-cam_right_x,-cam_right_y,-cam_right_z));
cam.setPosition(cam_x,cam_y,cam_z);
Hope this helps, thanks!