Hi !
I’m working on a set for a Vjing performance and I’d like to draw my set in 3 windows :
The first one is my window with the GUI and the Set in the background, the second one is the set for the video projector, ans the last one is a Syphon window.
Here is how I proceeded with the Syphon Beta 3 (compatible with ofxMultiGLFWWindow) :
void ofApp::draw(){
// draw is called once on each window every frame
// the window index will increment
wIndex = glfw->getWindowIndex();
switch (wIndex) { // switch on window index
case 0:
set. draw();
mainOutputSyphonServer.publishScreen();
break;
case 1:
mClient.draw(0, 0);
break;
case 2:
mClient.draw(0, 0);
break;
}
}
So, my set is drawn on my first window, and the second and third windows are getting the Syphon video. Fps are at 40 (cool), but syphons windows are “Glitching”. Here is a video that I recorded : (Problem appears at 8 sec, and is really disappointing with 3D scenes)
[Syphon][1]
Then, I tried another method with Fbo, but each window render the set so I’m at 5 fps… :
void ofApp::draw(){
// draw is called once on each window every frame
// the window index will increment
wIndex = glfw->getWindowIndex();
switch (wIndex) { // switch on window index
case 0:
myfbo.draw(0,0);
break;
case 1:
myfbo.draw(0,0);
break;
case 2:
myfbo.draw(0,0);
break;
}
myfbo.begin();
ofClear(255,255,255, 0);
set.draw();
myfbo.end();
//fboPublish.publishFBO(&myfbo);
}
Does anybody know how can I have my 3 windows with a good frame rate and the same set ?
Thanks !
Cyril
[1]: https://vimeo.com/113659046