Quantcast
Viewing all articles
Browse latest Browse all 40524

ofBufferObject and async camera/video texture upload

hmm so to understand it right...the example ThreadedPixelBufferexample demonstrates how a texture (of the fbo) can be copied to another thread by the use of map and unmap of pibo.

However i dont understand why this stops working as soon as i draw the camera into the FBO like this

if (camera.isFrameNew()) {
	fbo.begin();
	ofClear(0, 255);
	ofSetColor(100);
	ofSetColor(255);
	camera.draw(0, 0);
	fbo.end();
}

when i do this it all stops working - is it because of the thing you mentioned with the video callback?

The thing is that i need to run the video input on a shader and then translate its fbo texture to this other thread doing quite expensive opencv stuff.

Is PBO the right choice here?

anyway any help would be nice!!

mio


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>