1. New to Christmas lighting? Get started with the AusChristmasLighting 101 Manual:
    auschristmaslighting.com/wiki/AusChristmasLighting-101

Nutcracker: Enhancement Picture class, resize both X & Y axis

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

  1. smeighan

    smeighan Dedicated Elf

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

    Np, bring on all comments it only makes the effect better.


    left and right do seem backward.


    I have just released a new Pictures class.
    1) Now i resize your images in both x and y directions
    2) I doubled the size of file you can upload , was 512K, now 1024Kb
    3) If you have 180 degree window, i auto scale to $maxStrands * (window_size/360).
    This means if you have 32 strands and 360 degrees, i autosize to 32 pixels wide. If you use the exact saqme target but have 180 degrees, i assume re-size image 16 pixels wide.


    Here is image i started with
    Penguins.jpg 1024x768 image size
    [​IMG]


    First i use a 16x100 matrix where wach string is folded into two strands. This means this matrix will be 32x50. On matrix i will be using window_degrees = 360
    Effect Settings
    username f
    user_target AA_MATRIX
    effect_class pictures
    effect_name PENGUIN_MATRIX_360
    window_degrees 360
    frame_delay 100
    file1 Penguins.jpg
    direction left
    speed .5
    seq_duration 5
    fade_in 0
    fade_out 0
    submit Submit Form to create your effect
    OBJECT_NAME picture


    [​IMG]


    Next i will switch target to 16x100 mega tree. Remember, my effects are target agnostic so i will just resubmit the same effect


    Effect Settings
    username f
    user_target A
    effect_class pictures
    effect_name PENGUIN_MTREE_360
    window_degrees 360
    frame_delay 100
    file1 Penguins.jpg
    direction left
    speed .5
    seq_duration 5
    fade_in 0
    fade_out 0
    submit Submit Form to create your effect
    OBJECT_NAME picture
    [​IMG]


    This next is 180 degree window. This is NOT what i would expect it to do. only front half of the tree should show, and it should slide across front half.
    [​IMG]


    Finally, a 180 degree view on a matrix. Again, it should slide through half of the strands. It did resize image to half the strands (good), it just is sliding through whole width in the animated gif.
    Effect Settings
    username f
    user_target AA_MATRIX
    effect_class pictures
    effect_name PENGUIN_MATRIX_180
    window_degrees 180
    frame_delay 100
    file1 Penguins.jpg
    direction left
    speed .5
    seq_duration 5
    fade_in 0
    fade_out 0
    submit Submit Form to create your effect
    OBJECT_NAME picture


    [​IMG]
     

Share This Page