Panning a tiled video back and forth?

Dec 15, 2008 at 5:41pm

Panning a tiled video back and forth?

I have a video that tiles seamlessly ie. the left and right edges match up.

I’d like to scroll the video from side to side, tiled – as the video scrolls off the screen to the right, it scrolls back on from the left.

Ideally I’d like to modify this scrolling speed.

I can kind of see how to do it using jit.matrix and some kind of ramp to keep it scrolling, but is there a better approach, possibly using some of the OpenGL acceleration?

I imagine you could send two copies of the video to jit.gl.textures and have them appear on the same jit.window, and position the textures appropriately?

Any thoughts?

#41361
Dec 15, 2008 at 7:25pm

look into jit.rota, specifically the x_offset and y_offset commands. Use boundmodes 2 or 4 (2 for plain repeat, 4 for mirrored). Easy to control the rate using a counter, line, pattr, etc.

No need for GL for this, but there’s tons you could do there as well with textured gridshapes, videoplanes, etc… especially if you want to move beyond a normal flat video display.

#147208
Dec 16, 2008 at 10:06am

Or check out jit.scanoffset mode 1 then use a line, counter or
whatever to control the offset.

JK

#147209

You must be logged in to reply to this topic.