Here is what I've done:
1.Launch ImageTargets
2.focus a trackble, say the build-in chips image
3.close ImageTargets (press back button on my HTC desire)
4.Lanch ImageTargets again, but not focusing on chips image this time
And the first frame i saw is the last frame it captured(including the teapot) at step 3.
It's like a "ghost frame" and it's not supposed to appear, am I right?
How can it be??How to prevent ImageTarget from rendering that frame?:confused:
Ah, this looks like a bug, thanks for the report.
If you'd like a quick fix, you can delay rendering for a few frames by adding a counter and a check in the render method. This isn't ideal, but shouldn't be too expensive.
In ImageTargets.cpp, add a global frameCount variable:
Initialize it in onQCARInitializedNative:
Then check it in the renderFrame method, skipping rendering for the first few frames:
Not the prettiest fix, but hopefully this can hold you over while we look into the bug. Thanks!
- Kim