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 jit.windows with the same gl context name, anybody can give me any clue about how to achieve this?

Thanks in advance!

#58974
Sep 22, 2011 at 4:00pm

Using jit.gl.asyncread, you get a copy of your GL feed.

#211852
Sep 22, 2011 at 7:36pm

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

#211853
Sep 22, 2011 at 11:01pm

Very helpful, thanks Hugobox & dtr!!!

Following your advices I found this post with the solution:

http://cycling74.com/forums/topic.php?id=33902

#211854
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!): http://cycling74.com/2010/9/13/jitter-recipes-book-3/

#211855

You must be logged in to reply to this topic.