Rendering same context to 2 windows

glBeatriz's icon

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!

Hugobox's icon

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

dtr's icon

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

glBeatriz's icon

Very helpful, thanks Hugobox & dtr!!!

Following your advices I found this post with the solution:

dtr's icon

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