Skip to content
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

Remove color from Off value in Color Macro channel. #1016

Closed

Conversation

janosvitok
Copy link
Contributor

Otherwise the black color will override R/G/B values in 2d monitor.

I suspect other fixtures may have similar problem.
Maybe new test for fixture validator: Color channel must have value without color attached.

Otherwise the black color will override R/G/B values in 2d monitor
@mcallegari
Copy link
Owner

mcallegari commented Dec 3, 2017

I see the point, but how does this work in the real world ?
If a fixture has both color macros and RGB channels, which color will win ?
I guess the answer is "depends on the product", so it's not predictable.
I think in QLC+ 5 I checked if color macro color != black then it will win over RGB channels.
So basically it is possible to fix this in the C++ code rather than reviewing all the fixture definitions.

@mcallegari
Copy link
Owner

Fixed 91f1cf3
Now, since you implemented the strobing preview, can you explain why this is strobing ??

monitor_black_wheel.zip

@janosvitok
Copy link
Contributor Author

It depends on the fixture itself, or better said, on light source.

For RGB LED fixtures, color wheels are virtual, and they override the RGB value. For example GLP Volkslicht channel 5 - color macros has one value that means No Macro and you need to set this value in order to be able to use RGB channels (6,7,8). Any other value forces its color.

Fixtures with subtractive color mixing (e.g. halogen bulb + color wheels, the newer have white LED source + color wheels) the color subtracts from the white. That means black color should stop the light completely. In this case to pass the light unchanged "White" or "Open" is more appropriate.

I've implemented it in QLC+4 as follows:

https://github.com/mcallegari/qlcplus/blob/master/ui/src/monitor/monitorfixtureitem.cpp#L133
https://github.com/mcallegari/qlcplus/blob/master/ui/src/monitor/monitorfixtureitem.cpp#L334
When there was no color= tag in the capability, the light is unchanged.

When you ignore black color, I saw one fixture that had #000000 as "Blackout", that will not work with your version.

@janosvitok
Copy link
Contributor Author

janosvitok commented Dec 3, 2017

monitor_black_wheel.zip

I can't reproduce. Can you provide exact steps to reproduce? :^)

Edit: It was my fault: I had still edited fixture in ~/.qlcplus.

Strobing is caused by "strob" substring in "No strobing" capability.
https://github.com/mcallegari/qlcplus/blob/master/ui/src/monitor/monitorfixtureitem.cpp#L185

@janosvitok
Copy link
Contributor Author

Let's close this. Workaround is committed, and most problably this whole thing will go away with the new fixture format.

@janosvitok janosvitok closed this Feb 21, 2018
@janosvitok janosvitok deleted the fix-color-macro-channel branch April 6, 2018 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants