Nutcracker, new effect, snowstorm

Discussion in 'xLights (Nutcracker)' started by smeighan, Mar 26, 2012.

  1. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,055
    Likes Received:
    4
    Location:
    4217 Greenfinch Dr CO 80126
    There is a new effect for the Nutcracker software.


    Snowstorm tried to simulate snowflakes in blowing wind. For this effect, i keep track of every snowflake in an array. I then give a random value to a vector and remember the new direction. This may look like just the blinking pixels, the logix is very different. Try picking one snowflake and follow its path.


    You get prompted for the Maximum Snowflakes to start in the storm.




    _POST
    username f
    user_target ZZ_ZZ
    effect_class snowstorm
    effect_name SNOW1
    window_degrees 180
    seq_duration 5
    start_color #FF250D
    end_color #051EFF
    frame_delay 50
    maxSnowflakes 50
    submit Submit Form to create your effect
    [​IMG]


    Now lets try , say 300 snowflakes
    _POST
    username f
    user_target ZZ_ZZ
    effect_class snowstorm
    effect_name SNOW2
    window_degrees 180
    seq_duration 5
    start_color #FF250D
    end_color #051EFF
    frame_delay 50
    maxSnowflakes 300
    submit Submit Form to create your effect


    [​IMG]


    Lets tone down the effect by limiting to 150 pixels and a smaller color range
    _POST
    username f
    user_target ZZ_ZZ
    effect_class snowstorm
    effect_name SNOW3
    window_degrees 180
    seq_duration 5
    start_color #1E05FF
    end_color #00FF2A

    frame_delay 50
    maxSnowflakes 150
    submit Submit Form to create your effect




    [​IMG]


    enjoy
     
  2. fasteddy

    fasteddy I have C.L.A.P Global Moderator Generous Elf

    Joined:
    Apr 26, 2010
    Messages:
    6,471
    Likes Received:
    16
    Location:
    Albion Park NSW
    Find Me On:
    You are a machine ;) great work once again. When do you think you will have the matrix and the ray available for use.
     
  3. OP
    OP
    smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,055
    Likes Received:
    4
    Location:
    4217 Greenfinch Dr CO 80126

    This week for both.


    then i work on the lor errors found in the lms file
     
  4. OP
    OP
    smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,055
    Likes Received:
    4
    Location:
    4217 Greenfinch Dr CO 80126
    New option for snowstorm, trail_length.


    I was not satisfied with the look of this effect so i have added the ability to have the snowflakes fade away as they are blown around.


    Play with the number of snowflakes that you start with and the length of the trail. Increasing these numbers make the generation of the effect take a long time. i redid the logic fo this effect and it is now 5 times faster.


    start with an effect of 5 snowflakes and a trail_length of 2


    then try 20 snowflakes with a length of 20.


    as the other effects , you can pick the color range of the snowflakes.




    array_to_save
    username f
    user_target AA
    effect_class snowstorm
    effect_name SNOW1
    window_degrees 360
    seq_duration 5
    start_color #FF250D
    trail_length 11
    end_color #051EFF
    frame_delay 100
    maxSnowflakes 11
    submit Submit Form to create your effect
    OBJECT_NAME snowstorm


    [​IMG]






    array_to_save
    username f
    user_target AA
    effect_class snowstorm
    effect_name SNOW2
    window_degrees 180
    seq_duration 5
    start_color #FF1808
    trail_length 2
    end_color #FF03CD
    frame_delay 50
    maxSnowflakes 33
    submit Submit Form to create your effect
    OBJECT_NAME snowstorm


    [​IMG]




    array_to_save
    username f
    user_target AA
    effect_class snowstorm
    effect_name SNOW3
    window_degrees 180
    seq_duration 5
    start_color #1E05FF
    trail_length 22
    end_color #00FF2A
    frame_delay 100
    maxSnowflakes 11
    submit Submit Form to create your effect
    OBJECT_NAME snowstorm




    [​IMG]




    enjoy!
     

Share This Page