Page 24 of 24 FirstFirst ... 142021222324
Results 576 to 593 of 593

Thread: The LSX tutorials thread!

  1. #576
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    425

    Default

    I don't have the program in front of me but in the animation event there is a tab called sparkle or twinkle. See if that is your desired effect. I use it for graphics when I am trying to make points flicker like stars in the sky.

    Quote Originally Posted by LightFox View Post
    One of the few things I am still missing is some kinda strobe effect. I`m doing it by now by drawing some rectangular signals in the intensity curves event. Wouldn`t it be nice to have a special event where to set a frequency and pulsewith for turning on and of the lasers ?
    Watching Lasers Since 1981

  2. #577
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,544,906

    Default

    why not use a square wave in the intensity effect?

    Quote Originally Posted by LightFox View Post
    One of the few things I am still missing is some kinda strobe effect. I`m doing it by now by drawing some rectangular signals in the intensity curves event. Wouldn`t it be nice to have a special event where to set a frequency and pulsewith for turning on and of the lasers ?
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  3. #578
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    425

    Default

    You might be able to use this expression in either the intensity event or in the color mod intensity. Which is also a square

    sqr2((etime*20*pi),0)*.5+.5

    I love that LSX has many ways to accomplish the same thing.

    Quote Originally Posted by swamidog View Post
    why not use a square wave in the intensity effect?
    Watching Lasers Since 1981

  4. #579
    Join Date
    Feb 2007
    Location
    Fort Mill, SC USA
    Posts
    888

    Default

    Quote Originally Posted by SaltyRobot View Post
    I love that LSX has many ways to accomplish the same thing.
    In that spirit, here are a couple other ways of accomplishing a strobe effect: First is to put a blank frame right after your chosen "on" frame that you want to strobe. Then in your animation event choose the on frame as the start and the blank frame as the last frame. Then change repeat animation to the number of times you want it to strobe.

    Another variation is to add multiple blank frames after the desired strobed on frame. This results in a strobe with a longer wait before it flashes again, rather than an even number of on and off cycles. This could also be accomplished by setting "picture animator" to "curve" and then defining a square wave-ish curve by selecting the curve button. You can manually adjust the on/off times any way you like this way.

    Finally, and similar to the above, you can use the Curve Intensity function and manually draw your wave and then set the number of repeats.

    LSX may not always be obvious, but there is almost nothing that you can't do with it (usually a dozen different ways), in my experience.

    -David
    "Help, help, I'm being repressed!"

  5. #580

    Default

    Thanks to you all. Surely, there is little which can`t be done with LSX this or that way. I now managed to get this strobe effect by my own, but wouldn`t it be nicer to have an explicit event which does all the brainwork for you ? The issue in most of this solutions is, when you change the duration of the Event in the timeline, the frequency of flashing will change proportionally. (Just a suggestion to drlava, if he intends to improve his program in (hopefully) next updates...)

  6. #581
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,544,906

    Default

    Quote Originally Posted by LightFox View Post
    Thanks to you all. Surely, there is little which can`t be done with LSX this or that way. I now managed to get this strobe effect by my own, but wouldn`t it be nicer to have an explicit event which does all the brainwork for you ? The issue in most of this solutions is, when you change the duration of the Event in the timeline, the frequency of flashing will change proportionally. (Just a suggestion to drlava, if he intends to improve his program in (hopefully) next updates...)
    there are updates and improvements being added all the time. please send an email to drlava (or a pm to me) describing exactly how the effect would work.
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  7. #582
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,544,906

    Default

    Quote Originally Posted by swamidog View Post
    there are updates and improvements being added all the time. please send an email to drlava (or a pm to me) describing exactly how the effect would work.
    here's the response from drlava on implementing the requested strobe effect. posting it here so others can learn.

    [00:02] <drlava> symmetry = 0;result = sqr2(Phase*Phase*2,symmetry)*0.5+0.5
    [00:02] <drlava> adjust symmetry above or below zero to change the duty cycle
    [00:02] <drlava> use this in an intensity event
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  8. #583
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,711

    Default

    Why does he do phase*phase*2? That would be etimeČ*8*piČ... the strobe frequency would go faster as the event progresses. If you want to use a constant strobe frequency use
    Code:
    frequency=10; 
    symmetry=0;
    result=sqr2(phase*frequency,symmetry)*0.5+0.5
    (if the event is one second long, the frequency value will be the actual frequency, otherwise the actual frequency will be frequency variable value / event duration)
    "We thought our liFe by aN allegory with a jOurney, with a pilgRimage, which haD a serious purpose at the end, the thing was to get to that end. Success, or whatever it is, or maybe heaven after your death. But we missed the point the whole way along. It was a musical thing and you were supposed to sing, or dance, while the music was being played."

  9. #584
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,544,906

    Default

    i hope you're not asking me... i didn't even know there was a symmetry function.

    Quote Originally Posted by colouredmirrorball View Post
    Why does he do phase*phase*2? That would be etimeČ*8*piČ... the strobe frequency would go faster as the event progresses. If you want to use a constant strobe frequency use
    Code:
    frequency=10; 
    symmetry=0;
    result=sqr2(phase*frequency,symmetry)*0.5+0.5
    (if the event is one second long, the frequency value will be the actual frequency, otherwise the actual frequency will be frequency variable value / event duration)
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  10. #585
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,711

    Default

    There is no symmetry function. The "=" operator assigns a value to a variable.

    Code:
    frequency = 10;
    symmetry = 0;
    This just assigns the value '10' to a variable called 'frequency' and the value '0' to the variable 'symmetry'. These variables are used in the last line:

    Code:
    result=sqr2(phase*frequency, symmetry)*0.5+0.5
    which is then equivalent to:

    Code:
    result=sqr2(phase*10, 0)*0.5+0.5
    It doesn't matter what you name them. As long as you don't overwrite LSX variables (x, y, z, idx, etime, time, phase and so on) you're free to name them as you want. There's no need to initialise variables and you don't even need to assign them if you want. Every variable is '0' by default. So, the "symmetry = 0" line is not necessary to make that expression work, if you remove it completely it won't change anything. There won't be an error on the last line because 'symmetry' is undefined, it would just assume its default value of 0. But of course that would not make it obvious that that is something you can play around with.
    "We thought our liFe by aN allegory with a jOurney, with a pilgRimage, which haD a serious purpose at the end, the thing was to get to that end. Success, or whatever it is, or maybe heaven after your death. But we missed the point the whole way along. It was a musical thing and you were supposed to sing, or dance, while the music was being played."

  11. #586
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,544,906

    Default

    and from our LSX discussion on the #photonlexicon irc channel:

    [10:13] <swamidog> cmb.. what's the "symmetry" function?
    [10:13] <swamidog> in lsx
    [10:13] <cmb___> the duty cycle of the square wave
    [10:13] <swamidog> oh ok
    [10:13] <cmb___> set symmetry=mousex
    [10:14] <dkumpula> hehee . . cmb said doody-cycle!
    [10:14] <swamidog> heheheeh
    [10:15] <cmb___> damn lsx and its oscillatory movements!


    Quote Originally Posted by colouredmirrorball View Post
    There is no symmetry function. The "=" operator assigns a value to a variable.

    Code:
    frequency = 10;
    symmetry = 0;
    This just assigns the value '10' to a variable called 'frequency' and the value '0' to the variable 'symmetry'. These variables are used in the last line:

    Code:
    result=sqr2(phase*frequency, symmetry)*0.5+0.5
    which is then equivalent to:

    Code:
    result=sqr2(phase*10, 0)*0.5+0.5
    It doesn't matter what you name them. As long as you don't overwrite LSX variables (x, y, z, idx, etime, time, phase and so on) you're free to name them as you want. There's no need to initialise variables and you don't even need to assign them if you want. Every variable is '0' by default. So, the "symmetry = 0" line is not necessary to make that expression work, if you remove it completely it won't change anything. There won't be an error on the last line because 'symmetry' is undefined, it would just assume its default value of 0. But of course that would not make it obvious that that is something you can play around with.
    suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.

  12. #587
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    425

    Default

    Still doesn't solve the OP desire to stretch the event and still maintain the same strobe frequency. I don't see how to accomplish what OP is asking either as one of the main "features" of LSX is stretching the events to speed up and slow down the action.

    Quote Originally Posted by LightFox View Post
    ... The issue in most of this solutions is, when you change the duration of the Event in the timeline, the frequency of flashing will change proportionally. (Just a suggestion to drlava, if he intends to improve his program in (hopefully) next updates...)
    Watching Lasers Since 1981

  13. #588
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,711

    Default

    Then use time instead of etime.

    Code:
    frequency=4;
    result=sqr2(2*pi*frequency*time*0.001,0)*0.5+0.5
    This makes the frequency completely independent of event length and playback speed. It will strobe even when the show is paused over the event. But the frequency is now the actual strobe frequency no matter what you do.
    "We thought our liFe by aN allegory with a jOurney, with a pilgRimage, which haD a serious purpose at the end, the thing was to get to that end. Success, or whatever it is, or maybe heaven after your death. But we missed the point the whole way along. It was a musical thing and you were supposed to sing, or dance, while the music was being played."

  14. #589

    Default

    sqr2(Phase*Phase*2,symmetry)*0.5+0.5
    This will do a nice trick, I surely will use it later.
    This makes the frequency completely independent of event length and playback speed. It will strobe even when the show is paused over the event. But the frequency is now the actual strobe frequency no matter what you do.
    Yes, that`s what I got in mind. Now wrap things all together in an event, and I will be totally happy.

  15. #590
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,711

    Default

    Just place an intensity event, set lower limit to 0, set type of animation to expression and paste those two lines into the expression box.
    "We thought our liFe by aN allegory with a jOurney, with a pilgRimage, which haD a serious purpose at the end, the thing was to get to that end. Success, or whatever it is, or maybe heaven after your death. But we missed the point the whole way along. It was a musical thing and you were supposed to sing, or dance, while the music was being played."

  16. #591
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    425

    Default

    Nicely done good sir.

    Quote Originally Posted by colouredmirrorball View Post
    Then use time instead of etime.

    Code:
    frequency=4;
    result=sqr2(2*pi*frequency*time*0.001,0)*0.5+0.5
    This makes the frequency completely independent of event length and playback speed. It will strobe even when the show is paused over the event. But the frequency is now the actual strobe frequency no matter what you do.
    Watching Lasers Since 1981

  17. #592
    Join Date
    Feb 2007
    Location
    Fort Mill, SC USA
    Posts
    888

    Default

    Quote Originally Posted by SaltyRobot View Post
    Nicely done good sir.
    +1 (and 15 characters)
    "Help, help, I'm being repressed!"

  18. #593

    Default

    Help! Since yesterday I have a terrible lagging preview window, looking more like a slideshow, no smooth movements any more.
    Update: Problem solved. I opened ILDSOS to look, if this will reproduce in its preview function. Now it works again in both apps.
    Last edited by LightFox; 03-19-2017 at 23:09.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •