Hi,
I'm developing an cloud reco application using OpenGL 1.1.
Because the sample code(VuforiaSamples-3-0-5_0) is for 2.0, so I modified CloudRecoViewController.mm and CloudRecoEAGLView.mm to make it adapt to OpenGL 1.1.
However, I found that the camera preview is ok but the scanning points and bar are always white.(the original OpenGL 2.0 code works fine)
1. It seems to bind wrong texture ID from the result of GPU frame capture in Xcode:
https://www.dropbox.com/s/2lsad1d6p12w8bo/white_scanning_point.png?dl=0
The texture #2 should be bound instead of a non-existence #8388609, so the scanning point is white.
https://www.dropbox.com/s/5zadpgef9o1k1as/white_scanning_bar.png?dl=0
The texture #3 should be bound instead of a non-existence #1629516399, so the scanning bar is white.
2. The render code:
- (void)renderFrameQCAR { [self setFramebuffer]; // Clear colour and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Render video background and retrieve tracking state QCAR::State state = QCAR::Renderer::getInstance().begin(); QCAR::Renderer::getInstance().drawVideoBackground(); QCAR::Renderer::getInstance().end(); [self presentFramebuffer]; if (state.getNumTrackableResults() > 0) { // we have a trackable so we stop the finder if it was on if ([viewController isVisualSearchOn]) { [viewController toggleVisualSearch]; } } else { // we have a no trackable so we retsrat the finder if not already started if (! [viewController isVisualSearchOn]) { [viewController toggleVisualSearch]; } } }
The complete code:
https://www.dropbox.com/s/617nyllgyolr35s/CloudRecoEAGLView.mm?dl=0
https://www.dropbox.com/s/3qw7cr0xvsusdjd/CloudRecoViewController.mm?dl=0
3. My development environment:
*Xcode 6.1.1
*iOS 8.1
*iPhone 6
*Vuforia 3.0.9
*OpenGL ES 1.1
Do you have any idea for this problem ?
Thanks