jit.gl.texture transparancy/opacity changes

Luke Jaekel's icon

Hi,

I'm doing a Max patch as part of a unit in my degree. My idea is to create interesting visuals based on audio input from a DJ controller. I have expanded on this idea further by assigning certain controls on the DJ controller through MIDI to affect the visual output of a grid shape. I'm assigning 3 main fx cues on the controller to the grid shape and they should all do different things. I've managed to get the first fx cue to work which is changing the colour of the grid shape when I turn the fx dial on the controller. I'm at a stage now where I want to do 2 other possible fx changes.

I am thinking of using a video and then pixellating it using the vizzie patchroutr object and then add it as part of a texture to the grid shape. I want to link this to the filter dial on my controller and I only want this texture to appear when the dial is in use, however, I want it to appear/disappear smoothly depending on how much the dial is turned. Is there a way to change the alpha channel of the texture and link this to a dial? and can I work in float numbers to make it appear/disappear smoothly?

It's a long one but many thanks in advance :)

Here's the patch if you need more context

The patchroutr object is at the bottom of the patch so if you guys have any ideas feel free to use what is already there :)

3.maxpat
Max Patch

Paul Zayer's icon

Hi Luke,I am too new to be of help answering your question, but was curious to see how you are using alpha channels, as I am trying to educate myself about this part of Max.
The max pat file you provided is a text file and does not open in max. Did you intend this? I have not run into this before. Do you know how to convert the plain text into a format that I can copy and past into Max?
And did you ever get a response from anyone else about your question? I did not see any on the forum.
Looks like you are up to something really interesting!
Thanks and all the best,
Paul

Luke Jaekel's icon

You can open the text file, select & copy everything in the file, then go to 'max -> file -> new from clipboard'. This should load the patch. I've included the updated version of the patch in this comment. No one has replied but I managed to figure out a way around it; it wasn't exactly how I wanted it though. I spent weeks looking and eventually I just came up with a new idea that worked. The alpha stuff is contained in VFX 2 and VFX 3. You might have to load your own video in VFX 2 so just feel free to load one of the max videos.

Best,
Luke

Visualiser Project.maxpat
Max Patch
Epilepsy Warning (don't want to get sued)

Luke Jaekel's icon

Also, I'm not sure why it opens in a new tab. If it does just hit cmd/ctrl + a and it'll select all the text, then press cmd/ctrl + c and open in max as 'new from clipboard'. This seems to work fine for me. Hope this helps.

Luke