Rendering same context to 2 windows

Sep 21, 2011 at 4:57pm

Rendering same context to 2 windows

I will be performing soon in a place where I won’t be able to see the screen on which I am projecting my video. I would need to have a window in my patch which allows me to see the video I am improvising, while still sending the video out to the beamer.

Since it is not possible to have 2 with the same gl context name, anybody can give me any clue about how to achieve this?

Thanks in advance!

Sep 22, 2011 at 4:00pm

Using, you get a copy of your GL feed.

Sep 22, 2011 at 7:36pm

or render the scene to a texture and have a 2nd shared render context for the 2nd window

Sep 22, 2011 at 11:01pm

Very helpful, thanks Hugobox & dtr!!!

Following your advices I found this post with the solution:

Sep 23, 2011 at 7:42am

yes there s a bunch of different approaches to be found in the forum. also, Andrew Benson has an example in his jitter recipes (a must for anyone delving into the jitter GL realm!):


You must be logged in to reply to this topic.