Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: kyy921 on June 17, 2012, 12:15:14 PM
-
some time I wanne use slider to control object hsv color
but in playmaker, we can only use rgb color....
had anybody create some action to do this??
-
I fact what i need, is , can we combine a hsv color,or rgb color, with a vector, or three float,??
like i often do in vvvv.
-
Hi,
I don't think there is such converter, even in Unity, there is one in the unity Editor, but that won't work during runt time.
Playmaker does have a fsmColor variable, but it's rgb based.
there is a javascript snippet that could be ported to a playmaker action.
http://schinckel.net/2012/01/10/hsv-to-rgb-in-javascript/ (http://schinckel.net/2012/01/10/hsv-to-rgb-in-javascript/)
Do you have scripting experience? else, I can built it.
Bye,
Jean
-
I can not coding..
really thank you!
-
Hi,
can you give this action a test. I am not sure what kind of signature you need for the HSV, so could you provide a set of conversion examples so that I can find the range of the HSV values you are looking for?
[EDIT: fixed error]
thanks,
Jean
-
I just try this action , its what I want!
great!
:) really thank you,
only one problem, i find the H value has come problem, if its larger than 180,or 240. the color change well have a gap, and not smooth,
-
Hi,
eh eh:) the source I used for this had a bug on case 3, which corresponds to the 180-240 angle range of the hue.
So this is fixed now, simply re download the script. Thanks for spotting this. I have contacted him as well.
Bye,
Jean
-
A big thank you!
-
Hi,
No problem. the guy is going to update the page and gist, so thanks to you as well: Internet is now more accurate than ever ;)
bye,
Jean