I use QCAR libairie to create an AR scene. During rendering i save the background as a texture (the camera rendering) and the projection matrix and the trackable modelview matrix.
When i recreate the scene without the AR, just an simple OpenGL scene. I apply the saved projection matrix and the saved modelview matrix to the scene. But the rendering appears to be height scale down.
I just want to create a scene with the AR, save it and reload it to edit the mesh with the background texture.
Do you know how i can get the correct projection and modelview matrix from the QCAR matrix to get the correct rendering in a GL scene?
I get the projection matrix like :
const QCAR::CameraCalibration& cameraCalibration = QCAR::CameraDevice::getInstance().getCameraCalibration(); QCAR::Tool::getProjectionGL(cameraCalibration, 100.0f, 1000.0f)
and the model view matrix like:
const QCAR::TrackableResult* result = mState.getTrackableResult(numTrack); matrix = QCAR::Tool::convertPose2GLMatrix(result->getPose());
Thank you for your help