Page 39 of 67 FirstFirst ... 2935363738394041424349 ... LastLast
Results 381 to 390 of 670

Thread: The LaserBoy Thread

  1. #381
    Join Date
    Jul 2008
    Posts
    768

    Default

    Quote Originally Posted by james View Post
    This is what I am currently working on with LaserBoy.

    http://laserboy.org/convergence.mp4


    There are 4000 frames. Each frame is exactly the same line equation; a spiral made by 100 iterations around the unit circle and progressively linearly scaled from 0.0 to 1.0. The only difference between each frame is the number of vertices plotted along the line. It starts with 96 and ends with 303.

    This was rendered from the new version of LaserBoy Formatted ASCII Text.
    This is what it looks like in text:

    Code:
    math one_rotation          360.0
    math one_period            1.0
    math hues_shift_per_frame  3
    
    #    form       frames
    math lissajous  4000
    # amplitude   frequency   phase
      1.0         1.0         0.00
      1.0         1.0         90.0
    # duration    iterations
      100.00      96
    # amplitude   frequency   phase
      1.0         1.0         0.00
      1.0         1.0         90.0
    # duration    iterations
      100.00      303
    
    math cumulative_scale
    # from X Y Z
       0 0 0
    # to X Y Z
       1 1 1
    # acceleration
       0
    
    math render_form_span_hues 1.0
    It will probably take me just as long to document how the new text format works and how to use it as it has to write the code that reads and renders it.

    Would anyone be interested in getting a preview version of LaserBoy and experimenting with the new text format?

    That might be very helpful for me to write instructions. I already know how it works (I think).

    James.
    Reminds me of my QuickBasic days back in the 486 era, plotting parametric EQ's to bmp at high res with a limited number of calculated points- just a change of a given count vs count+1 resulted in a radically different rendering. Now, you've automated the process into an animation and then some. Awesome!

    I also like the fact that you're getting more into color modulation!

  2. #382
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Thanks Dean.

    You and I both have 40+ years of experience with rendering math into images.

    This stuff draws on every bit of that experience and then some!

    I've learned so much in these past few months.

    I hope others will check it out and learn how it works so they can express themselves in 3D color vectors!

    Like I said, I have a lot of work to do just documenting how this new text format works.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  3. #383
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    793

    Default

    Quote Originally Posted by dchammonds View Post
    just a change of a given count vs count+1 resulted in a radically different rendering.
    Ah, yes, the power of the increment!
    ________________________________
    Everything depends on everything else

  4. #384
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    It's a shame so many people seem to be so intimidated by a little math.

    Once you've spent some 40+ years relentlessly pursuing it, it's really no big deal.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  5. #385
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    793

    Default

    Quote Originally Posted by james View Post
    It's a shame so many people seem to be so intimidated by a little math.

    Once you've spent some 40+ years relentlessly pursuing it, it's really no big deal.
    So true. I did a little bit of math back in the 80's, as I said it reminded me of something. Everything new is old.

    Click image for larger version. 

Name:	Stars-001a-L016a.jpg 
Views:	1 
Size:	2.13 MB 
ID:	57306

    Keep up the outstanding work!
    ________________________________
    Everything depends on everything else

  6. #386
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Very nice!

    .......................
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  7. #387
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    793

    Default

    Quote Originally Posted by james View Post
    Very nice!

    .......................
    Thanks.
    The big difference between yours and mine is that yours is true animation while my color modulated "swirls" were generated by an HP mini-mainframe on a hires vector color display and shot as a time-lapse with a 35mm camera at a university. We couldn't do that kind of linear color mod with lasers back then, just RYGB TTL with A/O's, but the general transfer function was developed on my Apple IIe and color enhanced (for fun...and to dream) on the mini. We did a series of 4,5,6 and 8 point "swirls" with incremental degrees of swirl. With the IIe and laser I could do monochromatic or two color variants using single or dual color laser scanners w/on-off blanking. They were always among my favorite effects. I'm working on incorporating 7 color (RGB combinations) TTL modulation in my old Apple IIe FP Basic program. ...just for fun.
    Last edited by lasermaster1977; 11-22-2020 at 09:15.
    ________________________________
    Everything depends on everything else

  8. #388
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Here's a short one:

    https://laserboy.org/thing.mp4

    Code:
    math one_rotation                  360.0
    math one_period                    1.0
    math iterations                    40000
    math frames                        300
    math normalize_frames_individually 0
    math normalize_frames_with_origin  0
    
    
    #----------------------------------------------
    # https://en.wikipedia.org/wiki/Lissajous_curve
    #     form      frames
    math lissajous  -1
    #     amplitude   frequency   phase
          1.0         1.0         0.00
          1.0         1.0         90.0
    #     duration    iterations
          2000.00      -1
    #     amplitude   frequency   phase
          1.0         1.0         0.00
          1.0         1.0         90.0
    #     duration    iterations
          2000.00     -1
    #----------------------------------------------
    #    form          frames
    math pendulums_xy  -1
    #     x(t) = P1(t)
    #     y(t) = P2(t)
    #     amplitude   frequency   phase   damping   offset
          0.50        7.00        0.00    0.00      0.7
          0.50        7.00        0.00    0.00      0.7
    #     duration    iterations
          1.0         -1
    #     _amplitude  _frequency  _phase  _damping  _offset
          0.50        7.00        0.00    0.00      0.7
          0.50        7.00        0.00    0.00      0.7
    #     _duration   _iterations
          15.0        -1
    math compound_scale
    #----------------------------------------------
    math cumulative_rotates
    #    fulcrum
    #    X        Y        Z
         -2.50    0.00     0.00
    #    rotation * math one_period
    #    X        Y        Z
         0.00     0.00     1.00
    #    acceleration
         0.0
    #    fulcrum
    #    X        Y        Z
         -2.50    0.00     0.00
    #    rotation * math one_period
    #    X        Y        Z
         0.00     0.00     11.00
    #    acceleration
         0.0
    #----------------------------------------------
    math cumulative_rotate
    #    fulcrum
    #    X        Y        Z
         -7.00    0.00     0.00
    #    rotation * math one_period
    #    X        Y        Z
         0.00     0.00     1.00
    #    acceleration
         0.0
    #----------------------------------------------
    math pendulum_xyz
    #     x(t) = P1(t)
    #     y(t) = P2(t)
    #     z(t) = P3(t)
    #     amplitude  frequency  phase  damping  offset
          0.5        2.0        0.0    0.00     1.0
          0.5        3.0        120.0  0.00     1.0
          0.5        5.0        0.0    0.00     1.0
    #     duration  iterations
          1.0       -1
    math compound_rgb
    math render_form
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  9. #389
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I just made this today.

    http://laserboy.org/super_loopy.mp4

    Code:
    ##################################################
    #   This file was written by James Lehman.
    #   creator of LaserBoy,
    #
    #   the free, multiplatform laser display
    #   application that reads this format.
    #
    #   <james@akrobiz.com>
    #   Extra Stimulus Inc., Akron, Ohio USA
    #   http://laserboy.org/
    #
    #   ASCII format version: LaserBoy-txt-12-14-2020
    #
    #################################################
    
    
    math one_rotation                  360.0
    math one_period                    1.0
    math iterations                    50000
    math frames                        400
    math still_frames                  400
    
    #     form
    math  lissajou
    #     amplitude   frequency   phase
          1.0         1.0         90.0
          1.0         1.0         0.00
    #     duration    iterations
          1000        -1
    
    
    math move
    # displacement X   Y   Z
                   0   2.5 0
    
    
    math cumulative_rotate
    # fulcrum X Y Z
              0 0 0
    # rotation in periods
    #         X Y Z
              0 0 1
    # rotation acceleration
              0
    
    
    math rotates
    # from fulcrum X Y Z
                   0 0 0
    # to   fulcrum X Y Z
                   0 0 0
    # fulcrum acceleration
                   0
    # from rotation in periods
    #              X Y Z
                   0 0 0
    # to   rotation in periods
    #              X Y Z
                   0 0 2
    # rotation acceleration
                   0
    
    
    math cumulative_rotate
    # fulcrum X Y Z
              0 6 0
    # rotation in periods
    #         X Y Z
              3 0 0
    # rotation acceleration
              0
    
    
    math color_frames_span_hues 12
    math render_frames
    
    
    #################################################
    #################################################
    This is actually an animated 3D object. I just rotated it a bit to get this 2D view of it.
    Last edited by james; 12-14-2020 at 18:23.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  10. #390
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I just replaced my LaserBoy_pendulum class with the new LaserBoy_oscillator class!

    The pendulum was based only on the sin function, so it could only make circular arcs.

    Now I have a class that has amplitude, frequency, phase, duty_cycle, damping and offset.

    It gives me values based on time for sin, ramp and square waves!

    Plus it has a sin_level, ramp_level and square_level so these waves can be mixed and still maintain a consistent amplitude.

    I have worked oscillators into all the places where the pendulum class was used before in the text math rendering stuff.

    I still have some work to do, but this video is just one oscillator on the y axis.

    https:laserboy.org/oscillator.mp4
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

Posting Permissions

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