Author Topic: Pixel Direction for a window frame. In Xlights, controller...or both?  (Read 1710 times)

Offline szaske

  • Newbie
  • *
  • Posts: 38
    • View Profile
I have windows wrapped in pixel strips starting in the bottom left corner the lights go up the left side, then along the top edge left to right. That's string #1.  Then I have a 2nd string that also starts in the bottom left.  This string goes along the bottom edge of the window from left to right then up the right side of the window from bottom to top.  This is all controlled via a Sandevices controller. Since I wanted to pixels to be going in a complete circle for string #2 I set it to reversed in the Sandevices controller.

So my question to you is...how should I map this in Xlights?  Here's what I did; for the left and top edges, I simply drew those as I think most people would, I started the line at the bottom left and drew the line to the top left, and then drew the top edge line from left to right. That all makes sense.  But reversed lines are confusing to think about.  I ended up drawing them in the opposite direction.  The controller considers the top right line pixel to be pixel #1, so even though physically pixel #1 is in the bottom left, I added the lines in Xlights as Xlights would logically see them.  So for the right edge line I drew from top to bottom and for the bottom I drew it from right to left.

It seems to work in Xlights, but I've noticed some of my effects seem off...so I'm trying to determine if this might be the issue.  What's really confusing is that in the model settings there is a setting to "Set Pixel Direction"  What does that do?  If I already have the pixel string reversed on the controller won't setting the pixel direction undo that setting and mess up the pixel order?  How do you you all handle this?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Pixel Direction for a window frame. In Xlights, controller...or both?
« Reply #1 on: November 30, 2023, 09:58:03 AM »
For Single Line models its best to always keep the green square on the left or you'll end up getting confused when the model preview and house preview show effects moving opposite directions.