jit.world help

allaboutd's icon

Trying Max 7 now and using jit.world. The goal is to have 6 different videos playing sync'ed.
I started creating the patch with 2 jit.world objects, but only one of the 2 videos shows the image. Both play (at least the sound) but only one shows image.
What am I doing wrong?
Thanks!

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

`

2-worlds.maxpat
Max Patch
Rob Ramirez's icon

short answer, send "shared 1" to each jit.world object.

long answer, the playlist objects are actually outputting opengl textures when connected to jit.world, in order to increase playback performance. however when you use two jit.world contexts without explicitly specifying context name, and providing that context name as the drawto attribute for the corresponding jit.playlist, they get implicitly added to the same world context, and therefore won't draw on the second world context without enabling @shared.

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

longer answer, unless you intend to draw to separate displays, you probably don't want to use two jit.world contexts, but instead use something like jit.gl.videoplane to position and scale the videos in a single jit.world window.

Liang's icon

just update to Max7 and learn the different between jit.world and jit.window

mattyo's icon

Just remember that jit.world is the same as jit.gl.render+jit.window+qmetro+a couple of other things. Each instance of jit.world creates its own drawing context.

\M