I am working on a project using Augmented Reality, and using Artoolkit plus to obtain my Camera Projection Matrix (an OpenGL 4x4 matrix) the problem is that I dont know how to aplly it, I have already tried :
Hi, I want to create application with augmented reality too, and I've tried apply the camera matrix from openGl to the jME camera, but I don't has approach nothing.
In the initGame I try :
// this is the openGL matrix of 16 doubles
double matrix = arEngine.getCameraTransformMatrix();
// I apply the matrix values to a Matrix4f. called trans.
float fov = (float) Math.toDegrees(Math.atan(1 / matrix) * 2);
cam.setFrustumPerspective(fov, aspect, (float) 1, 1000);
I try It, but this has not worked.
@uipe. How do you apply the projection matrix to a jME camera??