Using webcam data as texture for jit.gl.mesh ??

Kevin Ortegano's icon

Hi, I'm working on this project, relatively new to Max and have been racking my brain about how to do this.

What I want the patch to do: It takes audio input from ~ezadc and morphs a primitive shape. I want the texture to be taken from data coming from my webcam (the luma I think, not sure what's best). Not the realtime input of the webcam and instead streaming frames so it doesn't use as much processing power and run slow..? I also think the laggy stream of frames would make an interesting effect. Here's what I have so far... right now the texture is a mood machine.

Anyone have any ideas how to achieve this?

`@erase_color 0. 0. 0. 0.5

response.maxpat
Max Patch