Log in or register to post comments

How to modify the clipping planes

August 29, 2014 - 4:04am #1


I want to know how is it possible to change the far clipping plane for the projection matrix. The projected content gets clipped if i move 30cm away (i am not losing track of the target).


I searched in the forum and came across this 



But i tried using setARProjection inside renderFrameQCAR with no luck. (I am using the ImageTarget source as my base and i am developing for iOS)


Can any one help me in pointing the proper use of the method? And if that is not the correct way, maybe direct me to the right one to achieve what i need? 




How to modify the clipping planes

September 5, 2014 - 12:04am #2


in the current Vuforia samples, if you go to the file SampleApplicationSession.m, you will find these lines:

const QCAR::CameraCalibration& cameraCalibration = QCAR::CameraDevice::getInstance().getCameraCalibration();
_projectionMatrix = QCAR::Tool::getProjectionGL(cameraCalibration, 2.0f, 5000.0f);

You can replace the 2.0f and 5000.0f (near and far planes) with the values that you need.


Log in or register to post comments