Hi! What i need is to get what happen behind my window and send it via Syphon. I tried using ofxScreenGrab, ofxTransparentWindow and, of course, ofxSyphon. When i try to see my Syphon signal in Syphon Client app, i have some strange behaviour.
When i launch my app i see the right thinks on the Syphon output, but the strange thing is that when i click on a window of finder or at some app (for example Skype), they disappear.
Any idea about this behaviour?
The code is not long, so i post here:
ofxSyphonServer outputSyphonTexture;
ofxTransparentWindow transparent;
ofxScreenGrab grabber;
//--------------------------------------------------------------
void ofApp::setup(){
ofEnableAlphaBlending();
ofSetFrameRate(60);
transparent.afterMainSetup(ofxTransparentWindow::NORMAL);
grabber.setup(ofGetWidth(), ofGetHeight(), false);
}
//--------------------------------------------------------------
void ofApp::update(){
transparent.update();
grabber.grabScreen(ofGetWindowPositionX(), ofGetWindowPositionY());
}
//--------------------------------------------------------------
void ofApp::draw(){
ofTexture tex = grabber.getTextureReference();
outputSyphonTexture.publishTexture(&tex);
}