Video as texture on audio reactive 3D shape
Hi, wondering if someone can help me with a project. I'm not sure if I'll be communicating this clearly, but here it goes. Basically I'm looking to get video on to a 3D shape and then animate the shape in reaction to audio using a matrix. My video on the 3D shape is fine when I just use audio through avg~ to control the motion using the amp values to modulate the scale of the shape, but when I use the matrix, it seems like the video is blown out. Is it an aspect or dimension problem that I'm not specifying properly? Patch is attached...
sorry, it's not clear to me from looking at you patch what the problem is you're trying to solve
Hmmm I think there may be a scaling issue between jitter and GL when I try an input the audio into the matrix? if you make the sphere solid you can see that the video is clear in the image but on the plane it is just light/colour blown out. does that make sense? sorry I’m learning. Does the video open in the patch I sent?
set @color 1 1 1 1 on your gl shape
Hmmm that didn’t seem to work...
i'd recommend you isolate and simplify the part of the patch that you are confused about and post here for more help. use factory media files where appropriate.
Ok, here is a simplified version. Basically the plane on the right is correct, but the one on the left is not. I have the plane on the left being audio-reactive through the matrix, while the other is just reacting to avg amplitude to scale the plane. I prefer how the matrix reacts to sound. But it seems as though the aspect ratio may be incorrect? It looks as though the video being used as the texture on the left side is blown out. It seems as though it is just a small lower section of the upper left quadrant of the plane. You can tell when the kid in the video on the right moves left in the clip. I can't seem to get the video to display properly. Thanks for the help!
you are not providing texture-coordinates for the gl.mesh, so it doesn't know how to display the texture. you can easily send the texture coords from the matrixoutput of the gridshape by sending gridshape -> jit.unpack 1 @offset 3 @jump 2 -> second inlet of jit.gl.mesh (texture coords are planes 3 and 4 from gridshape matrixoutput)
additionally set @color 1 1 1 1 on your gl.mesh.
It worked thanks! Really appreciate it!