Log in or register to post comments

Video playback "falls through" the tracker

November 19, 2015 - 12:34am #1

Let me start by saying I do not know OpenGL ES very well so any code in my iOS app (Objective-C++) to perform the rendering has been left as it was from the advanced samples video playback code.

I am experiencing strange behaviour when tracking an image and playing back video overlaid on the tracker; the playback works perfectly fine when the tracker is held away from the camera, but when coming closer, the video disappears as if it has fallen through the tracker.  I suspect this is impossible as the video is not a 3D space although it depends if the Open GL rendering creates a surfuce onto which it renders and the Z axis is set too low?

Anyway, I can see from the console the tracker is being tracked and can even still hear the audio from the video so the playback is continuing even the the video is not visible.

Could someone please point me in the right direction as to where I may be able to fix this?  I was hoping there would be a Z value to translate the video "up" a bit but that is clearly wishful thinking.

Any pointers or tips would be much appreciated - Thank you in advance!

Video playback "falls through" the tracker

November 24, 2015 - 2:54am #2

Hi I figured out what was wrong!

It turns out the near plane value was set too high for the getProjectionGL(cameraCalibration, nearPlane, farPlane) method in the QCAR::Tool namespace which was causing the rendering to simply stop when the tracker got too close to the camera.

This was amended from 2.0f to 0.5f and the tracker can now come much closer to the camera without losing the video which is important for our implementation as the user is likely to hold the tracker in one hand and the smartphone in the other.  This makes it much more usable.

Thanks for your interest, hope this helps others with the same apparent issue.

Log in or register to post comments