How do you clone jit.window ??

abthomas's icon

Hi guys,

I need to create an exact copy of my jit.window. I push one out to a projector screen but need one on my laptop screen to monitor what's going on.

Any ideas?

Thanks

David Butler's icon

Create another jit.window object and send the same data to it.

Luke Woodbury's icon

Fine for matrix stuff, but what about GL? Can you write to two different windows?

David Butler's icon

As far as I know, you'd have to duplicate your rendering objects. Put everything into a sub-patch and make a copy rendering to a different named destination. There may be a better way though, I am not sure.

Of course, a simpler way to solve this particular dilemma would perhaps be to just mirror the two displays in system settings, as long as you didn't need to be able to see any other controls or information on the laptop screen.

Rob Ramirez's icon

for opengl you can use a shared_context.
one way is to capture your scene to a gl.texture (using gl.sketch can help with this), then create two gl.videoplanes, one on the main context and one on the shared context. pass your capture texture to both videoplanes.

Max Patch
Copy patch and select New From Clipboard in Max.

here is a basic example:

Luke Woodbury's icon

Oooh cheers!

abthomas's icon

Thanks guys, this has been very helpful. Here's a link to what i've been doing.

David Butler's icon

Thanks for the trick!