Page 1 of 1

OSC PositionX Pixel Control ?

Posted: Thu Oct 19, 2017 16:29
by movebandit
Urgent help needed: how does the osc parameter for /layer1/video/positionx/values (Float 0.0 - 1.0) range (-16384.0 - 16384.0) has to look like ????
Need to have absolute Pixel position and no float. (resolution too low)
Tried to send:
/layer1/video/positionx/values ,f -336.0 to 3283.0
and
/layer1/video/positionx/range ,f -336.0 to 3283.0
Osc connection is working but no reaction of resolume...sending as integer is difficult...

Re: OSC PositionX Pixel Control ?

Posted: Thu Oct 19, 2017 17:04
by Oaktown
It requires a float 0.0 - 1.0, so you just need to normalize your value.

So, for instance, if your value is -383 and the range is from X=-16384 to x=16384 then the normalized value would be (16384-383)/16384*2=0.4883117676. This also means that f=0.5 would be the center of the range and X=0 and anything from f=0 to f<0.5 would be left of center and f>0.5 to 1 would be right of center.

Then you would send the following command: /layer1/video/positionx/values 0.4883117676

Does that make sense?

Re: OSC PositionX Pixel Control ?

Posted: Fri Oct 20, 2017 09:22
by Zoltán
With Resolume 6 you can send absolute values via OSC too.
For this you need to set the OSC message first argument to "a" for absolute, then the second argument should be the value you want to set to.
Currently this is a bit buggy: it works fine for positive values, but not for negative. We have a ticket for this.