changing the jit.gl.model 3D object's color
Hi, I am working on my 3D work, and I don't know how to change the color of my model following by the music.
Basically, how it works is that I have peakamp, which will bang when the music hits the peak, and then I want to change the color of the object randomly, but I can only find the way that I set the color on jit.gl.model part (@color 1 1 1 1 stuff).
Is there a way for me to instantly change the color of the object?
Attributes in an object also work as messages: sending a message like color 0.25 .5 .66 1. (note the use of the decimal place to indicate you're working with floating-point values) to the jit.gl.model object will work as though you've typed that value into the box using the @-sign notation.
the post above is correct, but missing the caveat that jit.gl.model is a special gl object in that it loads state from an external file. if you want to override the color state you must set [ jit.gl.model @material_mode 0 ]
I have made three random number generator for RGB value, but then how can I put those three values into color ARGB message that is going into the git.gl.model object? I tried with pack $1 $2 $3 but don't know how to use them into my message object.
[pak color 1. 1. 1.] and connect float number boxes to the last 3 inputs.
example uses also texture