I need help with my videoplanes
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.
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.
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
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 :)
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.
This seems to work… but I’m a true beginner with [if], [sprintf] and the likes, not being a programmer at all.
----------begin_max5_patcher---------- 493.3oc0UFrSiCCDF9bxSgkEhScQwNDZJRbf2BVsBgbRbaMahSjiCzcQ7ti8 3XZKMHxVHqDWhzLdz3+4alw4ov.bV8FdKFcI5WnffmBCB.WVGA81A3J1l7RV KDFNutphK03Ytyz7MZv+O8djcUBYIWCgS15rtS68F06coZUFXel2in.RVc18 +fF6y3xZoVxp3vQWqDrR+IMLc9Zgb0cJdt1UEwQIlrgVbt8KYg8K0jezs6jr VwegjQnmEY89bXn8yrOIBt4KGAjiBAz3T.AjoCAR9iFAd.AZX+FIPhA4.cPN PNrpIK93p1kA8eZ3tRFies5FBHT2zPBvhT5TPjrNstV9OLALPkO+cKuLlb0X JQZ7bew4KwuttqXI5DAAc0UlLGgN8TiE0ZQLV50bIBT4mp2mLUs9T2Z.IdR1 F5px3psajJiv0b0cbIKqju659HlKnGRkyOBpHrOPMlAmTXhg3FYRh9NxG5Tx m9AnigOPL3Rg7s+hEtGq+8gVacmJ2Kv9FOZ6MUva0BISKLuyrMF6ykHxqAsV TTvk6xzBQqEy.tFt6MV4.W0Gomj8hYJkCcrz4+ibRFgblejpwMIwZZdfqZ6S IHDyh180Jq4Ey.SgzYBKOXE+AgOdXwAyTlIbsY7tS4VS1jdANzdOOG9BPEcS QB -----------end_max5_patcher-----------
Forums > Jitter