adding video background to gl object in jit.pwindow

chrislaw's icon

hey, has anyone any idea how to do this. I'm trying to add a video background to a opengl object in a jit.pwindow. Any help would be appreciated, thanks

1364.Picture_3.png
png
Rob Ramirez's icon

i assume you mean texturing 3D objects with a movie?
pretty simple, create a named texture, send a matrix to that texture, and set the @texture attribute of the 3D object. basic example below.

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

in the future, please provide the text of your patcher, not an image.
see this post:
https://cycling74.com/forums/common-max-arcana

chrislaw's icon

thanks. no i meant load a background video. you need a jit.gl.videoplane object to achieve this i found out,

medinnersready's icon

Hey Guys,

Any takers on this one? I'm trying to do the same type of thing and have a separate post to that effect. Surely someone can help with this???? Hmmmm? Please?

Thanks

medinnersready's icon

Hi Chris,

Did you get a reply on this from anyone - I'm looking for more or less the same answer?

Thanx

glBeatriz's icon

@medinnersready maybe you could try posting a patch first? then the community can see at which point you are now

medinnersready's icon

Hi Bea...

I have posted a patch with a more definitive explanation of what I'd like to do as a different topic. I only asked here as well to try and expand my options of getting a solution. This is the link from the address bar if this works.....

Maybe you could have a look and see what you think?

Thanks

medinnersready's icon

Hi Chris...

If you follow the thread of my query above you may find the answer you seek. Beatriz, MIB, Scatlogic & Llumen were extremely helpful on this so if this answers your query a nod to those people wouldn't go amiss.

All the best

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

You can easily play a movie or any other matrix in the background of all your gl stuff by using the draw_pixels message to jit.gl.render.
Here's a quick and dirty example: