Author Topic: Precedence of effects applied to individual or global models?  (Read 1192 times)

Offline danj

  • Hero Member
  • *****
  • Posts: 895
    • View Profile
I was just wondering  if there is a "how to" video that explains what takes precedence between "global effects" (e.g. those applied to a model that consists of several individual models--for example a grouping of arches) and "individual effects" (e.g., individual arches).  I have looked around a bit and I haven't found any vids that describe how this is supposed to work.  As an example, I have been trying to figure out how to go from "on" effects to a global butterfly effect applied to an "arches" model; where I was tying to apply the butterfly effect to each arch sequentially but have it applied to the arches as a grouped model.  It seems like I have seen this explained by Sean or Gil but I am not finding anything..   Thanks.

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Precedence of effects applied to individual or global models?
« Reply #1 on: May 09, 2015, 11:55:06 PM »
I don't know the answer but I do know that the effects are rendered either top to bottom or bottom to top.  You'll just have to move one of the models higher or lower to find out.   Now I'm curious and going to find out.
Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Precedence of effects applied to individual or global models?
« Reply #2 on: May 10, 2015, 12:02:41 AM »
That didn't take long to figure out.  It appears the rendering is done top to bottom, so the lower-most model's effects will overwrite previous effects if the channels contained in the model are also channels contained in other models.

I have a ball on top of my my megatree and those 2 make up a model group.
That same megatree is a stand alone model.

In the sequence editor like this:

Tree+Ball     | Butterfly     |
Tree             | Bars           |

The playback will be bars on the tree and butterfly on the ball.  Hope that helps.


Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Precedence of effects applied to individual or global models?
« Reply #3 on: May 10, 2015, 06:49:11 AM »

This would be the order:

First thing to consider is the "order" of the models in your sequence.   We start at the first and move down.   Thus, a whole house model or group at the top would be rendered before stuff below it. This is pretty much to be somewhat compatible with V3 where we went left to right.

Within a "render unit" (either a model or model group which is converted internally to a whole house model), starting with 4.0.29, the order is:
Bottom layer going up apllying the various blend modes
Then any strand effects are rendered and blended onto it
Then any Node effects are rendered and blended onto it

Finally, the data layers have some capabilities as well, but I'm not too sure.   That's a Gil question.
Daniel Kulp
Framingham, MA

Offline danj

  • Hero Member
  • *****
  • Posts: 895
    • View Profile
Re: Precedence of effects applied to individual or global models?
« Reply #4 on: May 10, 2015, 09:16:44 AM »
Thanks so much for the responses.   I will play around with this tonight.   I thought I remembered that there was a precedence in order, but when I moved stuff around it didn't seem to make any difference...  I will make very specific moves tonight and see what happens.  I appreciate your responses.

By the way, I am using xlights to sequence my AC minitrees in this new sequence.   Piece of cake.
« Last Edit: May 10, 2015, 09:19:19 AM by danj »