I’m working on a PixelMapping app in Cinder to control DMX lights.
I’ve got a Syphon Client taking Textures in from VDMX, that all works great. I’m having trouble getting the Texture into a format where I can read the RGB values of each pixel, though.
I added this function to the syphonClient class:
ci::gl::Texture* syphonClient::getCurrentTexture()
{
return mTex;
}
is this a reasonable way to get the texture? It seems to be working in that I can bind it, read the texture and write it to the screen, and then unbind it – but converting it to a Surface (ie dumping it to the cpu so I can read the RGB values) results in an empty object.
Would it be better/worse to draw the syphonClient’s texture into an FBO instead of using a getter?