Videoplane 7680 x 1080 - 4 videos (1920 x 1080) + texture overlayed 7680 x 1080

MH's icon

Hello all

I have a Videoplane on a window of 7680 x 1080 - I have 4 videos (1920 x 1080) + texture made with gridshape and mesh 7680 x 1080 that I need to overlay on top of the 4 videos on ONE videoplane. Should I use td.rota.jxs or there is a more performant way?

MH's icon

Really nobody has an answer ?

Andro's icon

Each 1920 x 1080 video should go to its own videoplane. Use the position of each videoplane to put them next to each other. To lay them over each other. Depth enable 0 blend enable 1.

Andro's icon

If your still stuck just post a patch with the edit>copy compressed option.

MH's icon

Hello Andro

Thanks for your answer.
The thing is that I have yes 4 separate video side by side to form a 7680 x 1080
Then I want to apply a particle gl.mesh over that video using slab and shaders.
The particle gl.mesh can be rendered at nay size but to cover 7680 x 1080
The idea is to move around the particles on the whole 7680 x 1080 blended on the 4 videos.

So I would like to slab the gl.mesh over ONE videoplane made of 4 videos.

Dont know if that is more clear ?
Here's a sketch

sketches-4videos2particles-over-1videoplane.jpg
jpg
Andrew Benson's icon

This is a great job for jit.gl.node @capture 1. You can arrange your videoplanes in whatever composition you wish, and then capture to a texture of a desired size and send that along elsewhere.

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

MH's icon

Thanks Andrew

Here's what I have ... I would really appreciate if you could tell me what is wrong with I am doing. It's another way of doing what you did and I believe it should work ... but I get nothing! And ... I have no clue why but my patch works in Max7 and not Max6.
Same with your patch Andrew ???
In Max6 I see only a dark brown render on the window. And Andrew's patch is white.
So maybe that why I'm banging my head over the wall since 3 days ? I need to work in Max6 unfortunately for this project.

Max Patch
Copy patch and select New From Clipboard in Max.
Max Patch
Copy patch and select New From Clipboard in Max.
My patchAndrew's modified patch

MH's icon

Please read the previous comment that re-edited.

Andrew Benson's icon

Connecting the capture node to all of the texture objects fixes it for me in Max 6

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

MH's icon

Hello Andrew

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

Yes that works for me too :-)
I added another module in gl.node
What if I need to mix another patch ending with a videoplane ... is that the right way ? I see the dark brown slab ... I want it transparent. Not sure this video on the third gl.node is visible also. This is my basis for a larger structure. Many patchs ending with videoplanes (previously gridshapes) that I call to fade in on top of FINAL videoplane.

MH's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Sorry this patch works better ... but I still see the dark brown "slab" of the second node
Maybe set everything @blend_enable 1 ?

MH's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Almost there ... just need a little push

Andrew Benson's icon

I'm not sure what you are referring to when you say "dark brown slab" but it sounds like you want to composite the one videoplane cross-faded over the other, and have the background stay transparent. For that I would set depth_enable 0 and blend_enable 1 and use the color alpha value to blend them. No need to do a capture node pass on that other videoplane unless you have specific compositing effects you want to do. With depth_enable off, you can also use the @layer attribute to enforce draw order for the videoplanes, which I find essential when compositing multiple images. Let me know if any of that helps. It can be tricky to wrap your head around the hierarchical rendering stuff, but it's so worth it for applications where you are compositing and outputting several elements.

MH's icon

"dark brown slab" the unrendered area

here's an image

Screen-Shot-2015-02-27-at-12.48.34.png
png
MH's icon

Where should I set "@depth_enable 0 @blend_enable 1 @layer 2"

I have tried on the second gl.node and it's videoplane (in YELLOW in the patch attached)

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

Those are the things I am having the most problems with ... yes wrapping my head around hierarchy and the multitudes of possible parameters. Much thanks for your help !

Andrew Benson's icon

I see what you're getting at. The trick that will give you what you want in this case is setting the erase_color of the jit.gl.node to 0. 0. 0. 0. That will render the background as transparent, so your alpha-blending jit.gl.pix code will work better. It seems like this is closer to what you are getting at. I added in a "mix_amount" parameter and cleaned up the gen code just a touch as well.

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

MH's icon

Ahhhhh I love you ....

Thanks Andrew exactly what I need ! :-)