Hi,
I use my own rendering engine with Vuforia, and I'm trying to use the pose matrix but I get some issues :
According to the page : https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained
I understand that the
Tool.convertPose2GLMatrix(result.getPose())
returns me a ModelView matrix.
Is this good ?
If yes, I remove from this matrix my own View matrix :
Matrix4 matrix = new Matrix4(matbuf); // remove the view matrix, to get only the model matrix matrix.set(camera.view.cpy().inv().mul(matrix));
Then, I get the model matrix I can apply to the model to move/rotate it without having to move my camera.
The translation I get is always out of the camera's view, I don't understand where is the issue...
Please, any advice would be very appreciated !
Thanks.
Hi,
what about using the Modelview matrix "as is" in your engine ?
Not sure how your custom engine handles this, but perhaps worth checking these artiles:
https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained
https://developer.vuforia.com/resources/dev-guide/positioning-3d-content
https://developer.vuforia.com/resources/dev-guide/getting-camera-position