Author Topic: How do I "unpatch" a single color on a single pixel?  (Read 3099 times)

Offline deonb

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
How do I "unpatch" a single color on a single pixel?
« on: November 09, 2016, 08:12:20 AM »
So let's say I have a matrix and one of the pixels somewhere in the middle has its green LED out.

I can still send blue & red to the pixel (which I want to do), and if green is sent to the pixel it turns black, which is also fine and not that noticeable.

However, when I send white to it, it will turn pink, which is very noticeable.


How do I tell xlights not to try and send White to it (or any color that mixes in Green)?

In Vixen I would unpatch the Green color breakdown to that one pixel - what is the equivalent in xLights?


Failing the ability to unpatch one color - how do I turn a pixel off completely?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #1 on: November 09, 2016, 08:14:34 AM »
Only one way I can think of is to create a single channel model, point it to that channel, place it at the bottom of the model list so it renders last, and drop an Off effect across the duration of the sequence.

Offline deonb

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #2 on: November 09, 2016, 08:38:01 AM »
Only one way I can think of is to create a single channel model, point it to that channel, place it at the bottom of the model list so it renders last, and drop an Off effect across the duration of the sequence.

Ok. That will have to turn it completely dark, but good to know.

Actually, come to think of it .fseq is like the easiest file format in the world. I can just post-process it with a small app to zero out the pixel when the bad channel gets lit. That way I don't have to mess with my sequences.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #3 on: November 09, 2016, 09:16:21 AM »
Only one way I can think of is to create a single channel model, point it to that channel, place it at the bottom of the model list so it renders last, and drop an Off effect across the duration of the sequence.

Ok. That will have to turn it completely dark, but good to know.

Actually, come to think of it .fseq is like the easiest file format in the world. I can just post-process it with a small app to zero out the pixel when the bad channel gets lit. That way I don't have to mess with my sequences.

No I said Single Channel model so it would only black out one channel not all 3 channels of the node.  Just create a Single Channel model that is mapped to the green channel.

Offline deonb

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #4 on: November 09, 2016, 10:52:42 AM »
No I said Single Channel model so it would only black out one channel not all 3 channels of the node.  Just create a Single Channel model that is mapped to the green channel.

That doesn't help though. I don't need to black out the green - it's already blacked out by the fact that the green LED is broken.

What I need to do is black out Red / Blue IFF green is being mixed in as well (e.g. if the output color is White or Yellow). If green is not being displayed, then Red / Blue output works fine.

I've tried doing the setup as you described above and it only blacks out the actual green channel. If it's trying to display Yellow in this setup, I get Red instead of Black.

But this technique works fine for blacking out the pixel completely if I do all 3 channels.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #5 on: November 09, 2016, 02:58:33 PM »
Ok fine but when you said in Vixen you would unpatch the green color that sure sounded like it would end up with a zero for that channel.

Offline deonb

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #6 on: November 10, 2016, 08:34:51 AM »
Ok fine but when you said in Vixen you would unpatch the green color that sure sounded like it would end up with a zero for that channel.

It's actually smart enough to know if a pixel doesn't have all three colors patched to it and you require an unpatched one to output a particular color, that it can't send the other 2 colors either.

So it just leaves the pixel black. Sort of like going into a RG or GB or RB mode and only outputting colors that can be made up with the remaining LEDs.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #7 on: November 10, 2016, 08:51:40 AM »
I have a pixel on my roof that has one of the 3 leds burnt out.  I'm the only one that notices.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #8 on: November 10, 2016, 08:56:49 AM »
So I guess to close this out the answer is you can't do that.  If you want enter a Github issue for it.  With how xLights works the best way I could imagine to handle this would be having a way to enter a bad pixel/channel map.  Not sure when someone would want to focus on working on a feature to handle bad hardware though.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #9 on: November 10, 2016, 09:03:35 AM »

IF I were to implement this in xLights (big IF), it would likely be a modification the dimming curve dialog for the panel where there is a separate dimming curve for each color.  Basically, if the "green" dimming curve is 0% the entire way, have an optional checkbox to have it zero out the others if there is a green component or similar.   

Really, when I wrote the dimming curves, I had thought about trying to allow some sort of pluggable functions or similar in there that the user could write something.   However, the dimming curves are on a critical performance path so setting up a scripting engine and running a script or whatever would have killed the performance so I never pursued it. 
Daniel Kulp
Framingham, MA

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #10 on: November 10, 2016, 09:30:20 AM »

Actually, that wouldn't work either as the dimming curve is for the entire model.   
Daniel Kulp
Framingham, MA

Offline Phrog30

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #11 on: November 10, 2016, 09:40:51 AM »
So I'll be the one to ask, why not just replace the bad pixel?

Sent from my Pixel using Tapatalk


Offline deonb

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #12 on: November 10, 2016, 10:02:28 AM »
So I'll be the one to ask, why not just replace the bad pixel?

I need two consecutive rain free days before I can get up and change pixels, otherwise my boom lift gets stuck in the mud. I should really upgrade to a 4WD, but it is what it is right now. That means the light may be out for days or sometimes weeks before I can get back to it.

Gilrock's suggestion allows me to disable the pixel completely though, which is basically 90% there. Still allowing colors over the other 2 channels when it works is just a bonus.

It's actually not always better doing this - it looks terrible with e.g. a butterfly effect, since the light will flicker on and off constantly as gradients pass over it - which is worse than just staying off completely.

But with something like Logan's Star Wars sequence last year it worked beautifully.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: How do I "unpatch" a single color on a single pixel?
« Reply #13 on: November 12, 2016, 07:46:32 AM »

Another thought:  are you using FPP to run the show?   Do you have any ranges of channels anywhere in the fseq file that don't have any props assigned?   If so, you could remap 3 channels of "blank data" onto the three channels of that pixel within FPP and not have to touch anything in xLights and re-render and then remember to undo all of that when you fix it. 

Daniel Kulp
Framingham, MA