Dear Magic Leap team,
We encountered an issue with the projection matrix, for the virtual cameras, we receive from Magic Leap FrameInfo.
On one device it looks OK (3D models stick to the ground), on another device the model is about 30cm above the ground.
Comparing the projection matrices of both devices shows differences:
Magic Leap A, with good projection matrix
Projection matrix left
2.49784, 0, 0, 0
0, 2.04487, 0, 0
-0.00798269, -0.00335655, 0, -1
0, 0, 1, 0
Projection matrix right9
2.48666, 0, 0, 0
0, 2.04036, 0, 0
0.0121354, -0.0128078, 0, -1
0, 0, 1, 0
Magic Leap B, with incorrect projection matrix
Projection matrix left
2.49193, 0, 0, 0
0, 2.04364, 0, 0
-0.00595741, 0.00276984, 0, -1
0, 0, 1, 0
Projection matrix right
2.4886, 0, 0, 0
0, 2.0403, 0, 0
0.0103683, 0.00697562, 0, -1
0, 0, 1, 0
We are using this code for retrieving the projection matrix:
MLResult result = MLGraphicsBeginFrameEx( mGraphicsClient, &frame_params, &frame_info );
MLMat4f projectionMatrixLeft = frame_info.virtual_cameras[0].projection;
MLMat4f projectionMatrixRight = frame_info.virtual_cameras[1].projection;
Both devices using
ML2 OS version: 1.4.0-dev1
MLSDK version: 1.4.0-dev1
Host OS: macOS
Are we missing something? Why can the projection matrix be that different for two devices?
Thanks in advance,
Richard