Log in or register to post comments

How to modify the clipping planes

August 29, 2014 - 4:04am #1

Hi

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 

https://developer.vuforia.com/forum/qcar-api/when-i-zoom-out-3d-object-disappear

 

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? 

 

Cheers

 

How to modify the clipping planes

September 5, 2014 - 12:04am #2

Hi,

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