Log in or register to post comments

Problem with drawing a textured rectangle

April 23, 2012 - 2:29am #1

I'm trying to draw a picture on detected marker, like FrameMarkers demo does. The picture is a textured rectangle. I have a problem with it: when I move camera a little bit farther from marker, it starts to... flicker, of sort. it's like corners of the rectangle are cut away, and the size of "cut" area varies from frame to frame:

http://i39.tinypic.com/20f6vig.jpg

I draw it as triangle strip on four vertices. What could be causing this problem?

Re: Problem with drawing a textured rectangle

April 23, 2012 - 11:50pm #3

It worked. Thank you!

Re: Problem with drawing a textured rectangle

April 23, 2012 - 1:36pm #2

You're running into the far clip plane. Look for the call to QCAR::Tool::getProjectionGL in ImageTargets.cpp (or QCARutils.mm for iOS). The numbers passed in are the near and far clipping planes. Try changing the second value to something bigger.

- Kim

Log in or register to post comments