Forums > Jitter

I need help with my videoplanes

June 4, 2013 | 2:51 am

Hello,

 

I have a question and I can’t find the answer anywhere.

I created a jit.window in which multiple videoplanes are placed. 13 videoplanes fill up the whole screen. These 13 videoplanes are all seperate video’s that will play when activated. (These 13 videoplanes are the first screen you will see in the projection)

My idea was to built in the function that you activate 4 other video’s (that are supposed to be below these 13 videoplanes) which are all 4 fullscreen and need to be activated when the user holds its hand in front of one of the small (13) videoplanes. (the interaction i got covered using the Kinect and Synapse)

in short: first you see the 13 videoplanes (together fullscreen), the other 4 fullscreen video’s need to be below these video’s. When activated they need to fade in or appear seperatly on top of the 13 videoplanes. When deactivated they need to dissapear below the 13 videoplanes again.

I hope someone could help me with this issue.

In the attachment i added the patch. (I’m new to MAX so I apologize for the spaghetti)

If what I mean isn’t completely clear, I can explain it a bit more when needed!

Thanks in advance.

 


June 4, 2013 | 3:09 am

Hi there, I only have a very basic knowledge of Jitter but I think that using so many video planes is making things very hard. Isn’t it possible to just make everything go to 1 video plane and send everything as textures with varying opacity settings?

I’m sure you can scale and position each texture/videoplane to the right position. Plus you can alter the ALPHA channel data for each of the 13 textures.
This would also use way less CPU :) I hope some advanced user can point you in the right direction.

Good luck

 


June 4, 2013 | 5:10 am

Andro has an approach you could explore. If you are not experienced with Jitter, I recommend you do the Jitter tutorials. They are very excellent and will teach you what you need. And, you can steal the code :-)

Take a look at Jitter Tutorial 9, 13, 14, 29


June 5, 2013 | 4:18 am

Hi Strangebird, check this excellent patch from rob (forum link http://cycling74.com/forums/topic/copying-a-texture-to-a-portion-of-another-texture-on-the-gpu/) has everything you need to make everything happen on one videoplane :)

 


June 6, 2013 | 3:05 am

Thankyou for your answers.

Andro, I made the patch a lot smaller. The 13 videoplanes are now combined in 1 videoplane. So now I only have 5-7 videoplanes. This works for me.

Only thing, MAX only can use .mov files (but some of my files are 100 mb, I don’t know if this is a problem or not?)

 

And one more thing, not so related to these topics.

My kinect is sending both x and y coordinates to MAX. Does anyone have a patch in which both x and y coordinates are send to activate the video. (now I can only get the video to react to one of them, so if x = 200 the video is activated. But I need it actiavted when x = 200 and y = 100).

Thanks for your help guys.


June 6, 2013 | 10:43 am

This seems to work… but I’m a true beginner with [if], [sprintf] and the likes, not being a programmer at all.

<code>

– Pasted Max Patch, click to expand. –

</code>


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