replicating a peak meter with gl objects

Aug 15, 2012 at 12:59am

replicating a peak meter with gl objects

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!

#63977
Aug 21, 2012 at 9:53pm

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. –
#230691
Aug 22, 2012 at 1:26pm

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.

#230692

You must be logged in to reply to this topic.