Author Topic: Tree Model - Rotation Error  (Read 1682 times)

Offline bwinter

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • First Show 2016
Tree Model - Rotation Error
« on: December 20, 2020, 11:00:14 PM »
Using the most recent xLights on a Mac, it doesn?t appear that I?m fully able to rotate a tree 360.

When I model a single-stranded, spiel tree, it only appears to actually rotate 180 (instead of the 360 as entered).

Seems this was something I was able to do before (to properly map the starting-point of my spiral to mirror the actual prop).  Has something changed here, or is there something else I need to do to get the full360 rotation?
« Last Edit: December 21, 2020, 05:03:14 PM by bwinter »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Tree Model?Rotation Error
« Reply #1 on: December 21, 2020, 05:40:19 AM »
There are more than one rotation features so its not clear which one you are using.  There are rotation fields for every model and then there's the rotation of the starting point for the tree model.  I'm assuming you mean the second.  I just don't get the desire for 360 degrees because that puts it back where it started.  360 degrees equals 0 degrees of rotation.

Offline bwinter

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • First Show 2016
Tree Model?Rotation Error
« Reply #2 on: December 21, 2020, 07:48:32 AM »
Correct. rotation for the starting point of the tree (2nd example). The field labeled Rotation under the tree model.

I obviously don?t need it to rotate 360 to the starting position.  But I do need to rotate 270, to align my model with my props.

Right now, setting the Rotation field to 180 only moves the model 90.  I could also accomplish what I need, if the value could accept a negative number.
« Last Edit: December 21, 2020, 07:50:03 AM by bwinter »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Tree Model?Rotation Error
« Reply #3 on: December 21, 2020, 10:46:23 AM »
Ok I'll try to remember to investigate later.  Not at home right now.  It would help to see a screenshot of the main model parameters to duplicate it.

Offline bwinter

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • First Show 2016
Re: Tree Model?Rotation Error
« Reply #4 on: December 21, 2020, 02:26:16 PM »
On my set-up, Rotation=0, puts the 'starting point' at the very front.  180 moves the 'starting point' to the left side (90 degrees), and 360 moves the 'starting point' to the very back (180 from the front).  I need my starting point on the right side...which I can't get to.


Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: Tree Model - Rotation Error
« Reply #5 on: December 21, 2020, 07:26:42 PM »
Rotation will only impact per preview render buffers. The default always assumes it starts at the back ... not doing so will be the root of endless frustration.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Tree Model - Rotation Error
« Reply #6 on: December 21, 2020, 07:53:43 PM »
Ok I used your settings and I'm not seeing a problem.  With Rotation=0 the first pixel is on the ground in the back.  I'm able to enter 270 and then the first pixel is shown on the right.  If I enter 90 first pixel is on the left.

Offline bwinter

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • First Show 2016
Re: Tree Model - Rotation Error
« Reply #7 on: December 22, 2020, 11:52:18 AM »
Seems that DEGREES and ROTATION are both rotating the spiral in the same manner (not sure if there is any difference between the two, that applies to my model).  But by playing with both of them, I was able to spin it around to where I wanted.  Odd that I haven't touched these models in several years, but at least seem to have it working now.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Tree Model - Rotation Error
« Reply #8 on: December 22, 2020, 12:23:13 PM »
Well from memory I thought Degrees was just how far around the tree wraps so yes if you limit your tree to 180 then you won't be able to rotate past that point.

Offline bwinter

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • First Show 2016
Re: Tree Model - Rotation Error
« Reply #9 on: December 22, 2020, 12:53:09 PM »
No clue what a DEGREE=1 would be for a spiral tree, but I it didn't appear to affect the model (so I could never figure out what it was doing).  However, I now see that it was limiting the rotation.

Setting DEGREE=360 didn't change anything in the appearance, but it allowed me to rotate back to where I needed it.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Tree Model - Rotation Error
« Reply #10 on: December 23, 2020, 02:41:18 AM »
Yeah we default it to 360.  If you enter like 16 strings with spiral wraps it will be easier to see what happens when you change the degrees parameter.