Forums > Jitter

replicating a peak meter with gl objects

August 15, 2012 | 12:59 am

Hi

I’m trying to create something that would roughly look like the meter~ object in msp, a kind of meter that would receive numeric values from a touchOSC app I’ve created and rise/fall acordingly, with some sort of gradation as it rises (hence the peak meter as model)… I have some ideas, but I’m still fairly new to using gl objects other then videoplanes for mapping… so maybe some suggestions would help me out, is there a relatively easy way to automate/create this?

thanks for the help!


August 21, 2012 | 9:53 pm

Hi.
You could build the gradient texture (green, yellow, orange, red) in Photoshop or build it in Max as I did and map it to a jit.gl.videoplane or jit.gl.gridshape (plane). The trick here is the alpha channel of the texture. I use it to reveal only the intended portion…
But there would be lots of options, depending on the visual style you’re after…

– Pasted Max Patch, click to expand. –

August 22, 2012 | 1:26 pm

Thank you so much Pedro, this is exactly what I needed to get me started! From there I can take it pretty much where I want. plus I learned something new with gl objects which is always good.


Viewing 3 posts - 1 through 3 (of 3 total)