-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access alpha #18
Comments
The FreeFrame 1.5 spec defines an alpha parameter type:
That value appears in the FFGL trunk header, but not in the FFGL 1.6 branch header. (Also there's a conflict between that and |
I think I may have previously tried using FF_TYPE_ALPHA, which didn't work, but my memory is hazy! In any case, using type = 11 doesn't work. |
Same here; in Resolume Avenue and Arena, |
As far as I can see, there is no other mention of type=11 being reserved for Option type before we published our fork to Github. Judging by 56b3fa2, it wasn't properly implemented either until we pushed the FFGL2.0 spec. This makes chances of anyone using it right now pretty slim. All in all, it sounds like we should keep type=11 reserved for Alpha (to not break compatibility with VDMX and Magic), and change the type reserved for Option. Once we make that change, we can then make Resolume take type=11 as the fourth parameter of |
I would argue that we should keep 11 as option. Color picker based support for alpha should then use type 203 as suggested by spxl. |
It seems like this may have been an issue on the host side. I've updated the Gradient example and tested with Resolume 7.3.0 and there it works as intended. |
The new FF_TYPE_x defines in freeframe.h added by Resolume...
// Added by Resolume for HSB colors
#define FF_TYPE_HUE 200
#define FF_TYPE_SATURATION 201
#define FF_TYPE_BRIGHTNESS 202
..can be used to make Resolume use the v6 colour widget, which is neat.
However, it doesn't seem possible to access the value of the alpha slider that appears in the colour widget, which is not so neat.
Can we get/use an additional define for the alpha slider?
#define FF_TYPE_ALPHA 203
I have made a plugin that uses alpha values, and the current kludge is to have the hue, saturation, brightness sliders which result in the displaying v6 colour widget, only the alpha sliders don't do anything, and having a separate FF_TYPE_STANDARD slider for the alpha value. It works, but is confusing and ugly, especially as I have three colours to choose for the one plugin.
The text was updated successfully, but these errors were encountered: