Log in or register to post comments

What drawVideoBackground() does?

November 10, 2015 - 2:08am #1

Hi,

On my renderFrameQCAR() loop, I tried to commented this line :

//QCAR::Renderer::getInstance().drawVideoBackground();

I expected my AR to work as usual except the video would not show. But instead of that, I get a black screen. All my overlays, images I were drawing on the open gl surface are not shown. Why is that? Is there a way to show the overlays without showing the video? 

It would be too difficult to explain why I need that, but trust me that would help me so much. Thanks a lot for your help!

What drawVideoBackground() does?

November 12, 2015 - 6:02am #2

After searching a bit, adding glViewPort made it work. So ig guess drawVideoBackground was calling glViewPort?

 

Something like this worked :

glViewport(0, 0, self.frame.size.width*[[UIScreen mainScreen] scale], self.frame.size.height*[[UIScreen mainScreen] scale]);

Log in or register to post comments