TurboCAD Forums

Plug-In Palace => Animation Lab => Topic started by: Vlad Veselov on May 25, 2017, 05:28:53 PM

Title: Spectrum
Post by: Vlad Veselov on May 25, 2017, 05:28:53 PM
There are several animation variants of 'Spectrum' model. See http://forums.turbocad.com/index.php/topic,20729.0.html
The e-pack of the 'Waves' sample is attached.

All GIFs are clickable.

Vlad



   Waves
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves.gif)


   Rock-n-roll
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/rock-n-roll_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/rock-n-roll.gif)


   Move down
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/movedown_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/movedown.gif)


   Flight over
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/fly_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/fly.gif)

Title: How it work
Post by: Vlad Veselov on May 25, 2017, 05:31:05 PM
The amplitude of the spectrum depends on the distance to the screen, so if the screen bends a little, then the spectrum will change accordingly.

   Screen bend
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_how_it_work0_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_how_it_work0.gif)

Then, we need a function that changes with time (frame). This function will set the spectrum amplitude at each point in time.

For example, let it be the amplitude frequency response function of some bandpass filter. See file Waves_2D_profile.TCW.

   AFRF created using CurveLab plug-in
   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/Waves_2D_profile_prev.png)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/Waves_2D_profile.png)

Let our function be similar to a sound signal (like a soundtrack fragment). See file Waves_Surface.TCW.

Surface data created using SurfaceLab plug-in
(https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_surface.gif)

Final result - our model operates according to a given law as a mechanical piano.

   (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_how_it_work_prev.gif)
 (https://cadexp.com/TurboCAD/Forum/Gallery/Spectrum/waves_how_it_work.gif)


Vlad
Title: Re: Spectrum
Post by: Tim Stewart on May 26, 2017, 02:38:54 AM
Vlad,

    thank you for posting.

Very interesting, and, much appreciated.  8)

Regards Tim
Title: Re: Spectrum
Post by: Andy H on May 26, 2017, 06:58:08 PM
Very nice work, thanks for posting Vlad.

I must admit, I haven't heard the names CurveLab and SurfaceLab in a very long while (since I had v8/v9), and looking on the SoftDev site - plug-ins whilst the links are not working, one of the descriptions says TCv6.5, now that's going back a quite few years.
 
Title: Re: Spectrum
Post by: Vlad Veselov on May 30, 2017, 05:10:28 PM
Very nice work, thanks for posting Vlad.

I must admit, I haven't heard the names CurveLab and SurfaceLab in a very long while (since I had v8/v9), and looking on the SoftDev site - plug-ins whilst the links are not working, one of the descriptions says TCv6.5, now that's going back a quite few years.

Andy,

Old versions CurveLab and SurfaceLab do not work for a long time. I rewrote a new version that works for all versions since version TCv19.
Now these plug-ins are part of the project CadExp Task Palette. I showed to a few people. I hope that I am going to provide an pre-alpha version of CadExp Task Palette  for discussion and testing.

CurveLab

The tool, which allows building 2D, 3D graphics (Line, Curve, DblLine, MultiLine, Extrude, 3D polyline) using the formulas defined by user. The equations can be defined in evident way y=y(x) as well as in parametric x=x(t), y(t), z(t). There is a possibility to build parametric sets of curves. The user can control the number of steps, raising of pen (PenUp), and also use if..else operators, etc., which in principle allows building any curve if there is an algorithm.

SurfaceLab

The tool, which allows building TC Surface graphics using the formulas defined by user. The equations can be defined in evident way z(x, y) as well as in parametric x=x(u, v), y(u, v), z(u, v). Also the user can control the surface smoothness.

See how it looks:
https://cadexp.com/TurboCAD/Forum/TaskPalette/CurveLab demo.avi (https://cadexp.com/TurboCAD/Forum/TaskPalette/CurveLab demo.avi)
https://cadexp.com/TurboCAD/Forum/TaskPalette/SurfaceLab demo.avi (https://cadexp.com/TurboCAD/Forum/TaskPalette/SurfaceLab demo.avi)

Vlad
Title: Re: Spectrum
Post by: murray dickinson on May 30, 2017, 07:26:24 PM
Surface Lab is interesting, the surface is a quad grid instead of the nurb surface that surface-by-law produces, is that right?   Is CurveLab output polyline, like the old ScriptsPack CurveLab?   
Title: Re: Spectrum
Post by: Vlad Veselov on May 31, 2017, 09:40:32 AM
Surface Lab is interesting, the surface is a quad grid instead of the nurb surface that surface-by-law produces, is that right?   Is CurveLab output polyline, like the old ScriptsPack CurveLab?
Yes. For example -  Waves_Surface.TCW (above).

CurveLab output polyline, like the old ScriptsPack CurveLab?
In fact, it can be any 2D/3D graphic with vertices.

See  ftp://tcbetaforum@ftp.softdev.spb.ru/TurboCAD_2017_demo_video/CurveLab output.avi (ftp://tcbetaforum@ftp.softdev.spb.ru/TurboCAD_2017_demo_video/CurveLab output.avi)
 user: tcbetaforum
Password: kTjrBc08

Vlad

Title: Re: Spectrum
Post by: Andy H on May 31, 2017, 01:07:57 PM
Really neat stuff, thanks for showing Vlad.

My main drawback is I'm not good with maths formulas  :-[ , but I can learn.   
Title: Re: Spectrum
Post by: Darryl W on June 03, 2019, 01:17:47 PM
Just flicking through these older animations and it just struck me that the method used by Vlad here could work for seawater waves for my boat animation. Vlad also mentions surfacelab but Ive never seen this plugin before. Is it still available?
Title: Re: Spectrum
Post by: Darryl W on June 04, 2019, 02:18:19 AM
Henry if you happen to read this topic can the wave format be done in Laws, I guess not animated though?