Nutcracker: New effect, Pictures

Discussion in 'xLights (Nutcracker)' started by smeighan, Aug 16, 2012.

  1. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,055
    Likes Received:
    4
    Location:
    4217 Greenfinch Dr CO 80126
    A user contacted me with a problem he was having trying to layer a gif with the fire effect.


    Long story short
    1) Animated gifs cannot be used in layers, you should be using pictures
    2) Oops, i hadnt finished the Pictures effect class. It is now done
    3) I enhanced this effect so you can pick gif,png or jpg files
    4) Each picture can be moved up,down,left,right,none. None means your picture will be stationary
    5) New option for changing speed. I will retrofit most effects with speed. Speed=1 means each frame animation moves one pixel.
    speed=.5, animation is twice as slow, speed=3, 3 times faster. Start with 1.0 and then play


    So how does it work? Select the pictures class. Upload some images and then create effects.


    So, first i will show that i solved the original problem. I must give credit to user phar for coming up with the idea to use the pirate image to overlay the fire.


    Here is a fire effect on a matrix target
    [​IMG]


    Here is a static gif (direction=none). NOTE: gifs in the picture class are different than animated gifs in the gif class. Gifs are ok here as long as they are not animated

    Here is original gif
    [​IMG]
    and what it looks like when projected onto matrix[​IMG]


    and here is the layer between the two. Use the Skull and bones as a mask against the fire




    [​IMG]


    what about the speed and direction options?


    i will use this fractal for these tests:
    [​IMG]


    first test
    direction = left, speed=1
    [​IMG]


    second test
    direction=down, speed=1
    [​IMG]


    third test
    direction=down, speed=2
    [​IMG]


    enjoy pictures!


    sean
     
  2. angus40

    angus40 Senior Elf

    Joined:
    Dec 23, 2011
    Messages:
    535
    Likes Received:
    0
    Thanks for this Sean , I can see my volcano effect now .

    Richard
     
  3. OP
    OP
    smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,055
    Likes Received:
    4
    Location:
    4217 Greenfinch Dr CO 80126
    yep, layer fire with any gif that you have going up. set fire to be priority and you should have the effect you are looking for.


    post it whe u get it done, i would be curious
    thanks
     

Share This Page