Forums > Jitter

rendering videoplanes in a loop issue

February 2, 2014 | 2:03 pm

Hello,

I’m new to max msp and I’ve been struggling with getting my first VJing setup ready. I want to split video into multiple columns and rows which are defined with an integer. Each cell should have video resized and moved (using videoplane) to the appropriate position, so the output would be X columns and Y rows with the same input video.

I’m trying to create a loop with uzi patch, but the biggest issue is how to pack the dimensions of each video and position and send them to videoplane to render cells at appropriate positions and size.

Why does videoplane complains when I call it with:
jit.gl.videoplane win3 @scale $1 $1 $1 @position 0.2 0.4 0

$1 is a signal from a pack node (float type).

I’m attaching my current attempt :)

Any help is highly appreciated!

Attachments:
  1. test2

February 3, 2014 | 12:34 am

You’d better use the "copy compressed" feature of Max to share your patches.

Anyway, I see a couple of errors:
1st, you’re sending a float to a [pack i i i] object, hence rounding floats to integers. See patch below:
<code>

– Pasted Max Patch, click to expand. –

</code>

2nd, you’re setting attributes to objects the wrong way. See here:
<code>

– Pasted Max Patch, click to expand. –

</code>


Viewing 2 posts - 1 through 2 (of 2 total)