Closed ghost closed 6 years ago
Have you read and observed the note about calling bind() and unbind() in the comments for getTexture()?
That said, once you get past that, readToPixels() is unlikely to work, due to how the underlying texture is created.
To get pixels from a Syphon texture you generally have to draw it into an FBO and then download from the FBO's backing.
I am trying to wrap ofxSyphon texture to cvMat, that is my process:
but there are the error while I run this line: tex.readToPixels(pix); [ error ] ofPixels: format doesn't support channels [ error ] ofGLUtils: ofGetGLFormatFromPixelFormat(): unknown OF pixel format-1, returning GL_LUMINANCE
Anyone have the ideas?