RGB slider with XY pad color select?

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
User avatar
mumbles
Posts: 113
Joined: Thu Jul 16, 2015 4:39 am
Location: Central USA
Real Name: Justin

Does anyone know of a way to use XY pad to control the RGB colors when using a slider with RGB selected in widget properties?
By the way...Im running QLC+ 4.9.1 on OS X 10.10 if that helps
Attachments
Screen Shot 2015-08-26 at 3.49.02 PM.png
Screen_Shot_RGB&XYpad.png
OSX 10.10.5 QLC+ 4.9.1
Surface Pro4 Windows 10
Raspberry Pi B OLA 0.95
Raspberry Pi 2B QLC+

Swisson XMt-350
Chauvet RDM2Go
Enttec Pro Mk2
ultraDMX Micro
FTDI USB-RS485-WE-1800-BT XLR

Korg nanoKONTROL2
Korg nanoPAD2
plugz
Posts: 637
Joined: Sun Apr 12, 2015 6:30 pm
Real Name: David

Hi,

I don't understand what you want to do, can you elaborate ?
User avatar
mcallegari
Posts: 4827
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

XY pads are there to control XY positions, not colors. Basically it's a widget dedicated to moving heads.

At the moment to control colors you have Sliders+Click&Go or the Animation widget
User avatar
mumbles
Posts: 113
Joined: Thu Jul 16, 2015 4:39 am
Location: Central USA
Real Name: Justin

Id like to be able to use an XY pad to select a color without the need to click on the box of an RGB slider and selecting color from color pallet. The pic attached may help show a little better representation of what I'm trying to accomplish than the ones before.
Attachments
xypad.png
OSX 10.10.5 QLC+ 4.9.1
Surface Pro4 Windows 10
Raspberry Pi B OLA 0.95
Raspberry Pi 2B QLC+

Swisson XMt-350
Chauvet RDM2Go
Enttec Pro Mk2
ultraDMX Micro
FTDI USB-RS485-WE-1800-BT XLR

Korg nanoKONTROL2
Korg nanoPAD2
User avatar
mumbles
Posts: 113
Joined: Thu Jul 16, 2015 4:39 am
Location: Central USA
Real Name: Justin

Maybe a better question would be.. Could someone explain the algorithm that the color pallet uses? So I could patch standard sliders with limits or create a custom fixture profile using loopback patched to standard sliders to make this work. I under stand its not the norm for XY Pad. But I feel I could get this to work the way I want if I understood the algurethum used in color pallet when changing/ selecting colors.

any advice or links about the color algorithm would be appreciated.

thanks
OSX 10.10.5 QLC+ 4.9.1
Surface Pro4 Windows 10
Raspberry Pi B OLA 0.95
Raspberry Pi 2B QLC+

Swisson XMt-350
Chauvet RDM2Go
Enttec Pro Mk2
ultraDMX Micro
FTDI USB-RS485-WE-1800-BT XLR

Korg nanoKONTROL2
Korg nanoPAD2
User avatar
mcallegari
Posts: 4827
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

This is the palette generation code:
https://github.com/mcallegari/qlcplus/b ... nt.cpp#L60

I still don't understand what you want to do, except for saving just one mouse click.
plugz
Posts: 637
Joined: Sun Apr 12, 2015 6:30 pm
Real Name: David

With this, colors could be configured with 2 physical sliders.


Have you had a look at the animation widget ? You can have R/G/B knobs in it.
janosvitok
Posts: 1331
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Simply stated: in the graph: x = Hue, y = Lightness, with full saturation. See https://en.wikipedia.org/wiki/HSL_and_HSV

I guess what mumbles wants is to control hue with one slider and lightness with another.

Note to Massimo: maybe the code in question may be simplified using http://doc.qt.io/qt-4.8/qcolor.html#fromHsl
User avatar
mcallegari
Posts: 4827
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

plugz wrote:With this, colors could be configured with 2 physical sliders.
janosvitok wrote:Simply stated: in the graph: x = Hue, y = Lightness, with full saturation. See https://en.wikipedia.org/wiki/HSL_and_HSV
I guess what mumbles wants is to control hue with one slider and lightness with another.
Ok, but sliders controlled with an external controller are not discrete, so to go from let's say yellow to blue you have to go through green and cyan first.
I doubt this is useful during a live performance as all the intermediate colors will be shown to the audience.
Click & Go, on the other hand is discrete, if you use a mouse.
plugz wrote:Have you had a look at the animation widget ? You can have R/G/B knobs in it.
Similarly, he can use 3 sliders in level mode, but still they're not discrete. Plus you have to remember how to mix a RGB color with 3 components :)
janosvitok wrote:Note to Massimo: maybe the code in question may be simplified using http://doc.qt.io/qt-4.8/qcolor.html#fromHsl
I guess that's what a QLinearGradient does.
I already simplified the code after I implemented it in Javascript, with the Canvas element:
https://github.com/mcallegari/qlcplus/b ... ll.qml#L72
For now I prefer to keep the gradient calls, so both the code look very similar (and also the JS code can be finally ported to the web interface)
User avatar
mumbles
Posts: 113
Joined: Thu Jul 16, 2015 4:39 am
Location: Central USA
Real Name: Justin

Thanks everyone!

I appreciate the info.

Also Just to explain my use case a little. The reason Im determined to get this functioning is to create the most intuitive interface posable for the fallowing reasons..
1) It will allow mapping an inexpensive nanoPad's XY pad to change colors, trigger scenes and nanoKontrol for faders.
2) The interface has to be simple enough to use in an elementary school and allow children to design and run there on lighting shows. With supervision of course. But I want the students to have the ability to create, design and run as much of the show as posable on there own. Right now the school has all the fixtures they need but the lighting console is old and works intermittently.
3) I want them to be able get the benefits of software based lighting control without getting frustrated and loosing interest in trying to create new/more "advanced" scenes.
4) $0 budget to replace equipment.

use case 2 youth ministry same scenario as above different location, different people.
OSX 10.10.5 QLC+ 4.9.1
Surface Pro4 Windows 10
Raspberry Pi B OLA 0.95
Raspberry Pi 2B QLC+

Swisson XMt-350
Chauvet RDM2Go
Enttec Pro Mk2
ultraDMX Micro
FTDI USB-RS485-WE-1800-BT XLR

Korg nanoKONTROL2
Korg nanoPAD2
Post Reply