Pattern Animation

This project is the continuous version of the ST. Colorazation works.

Since i was interested in making musicbar in the ST.Colorazation,
i thought it would be very fun to create fake wave form that is produced by applitude.

Here is how Sin wave works.

which describes a wavelike function of time ( t ) with :

peak deviation from center = A (aka amplitude )
angular frequency ¥ø, ( radians per second)
phase = ¥è

 

After this formula can be used in the i could make sin wave like this:
if ( t >= sin ( s * $frequency) )* $amplitude



Since Sin Wave has very uniform wave, it was very not interesting.
so i tryed to find a way to produce interesting wave form just by using sin wave.

i added some parameters to the shader to give some more flexiblity.

 

surface waves(float Kfb = 1,

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡phase = 0.1,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡posamp = 0.5,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡splace = 0.5,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡freq = 50;)

{

color surfcolor = (0.0,0.0,0.0);

if(t < ((sin((s+phase)*freq)*posamp)+splace))
{
surfcolor = color(0.4,1.0,1.0);
}

if(t < (((sin((s+phase)*freq)*posamp)+splace))-0.05)
{
surfcolor = color(0.0,0.0,0.0);
}


After i made parameter and gave it little more interesting than before,
i wanted to make the wave have random value for each wave.
but when i tryed to make that, the random value have applied to every single micro polygon
so it broke the wave and resulted micro polygod with color all over the place.

i had to find new way to solve this problem.

now i solve the way by adding many sin wave formula to each other to creat multiple different sin wave.
it could be also controllabe, therefore i could assign value to each wave to create look as if i had random value.


 


here is the script for this wave.sl.

the movie file for the multi_wave:

after the it was done, i had full control and the wave looked very nice.
i used this shader to create mTV network ID.
Even though there were so many polys that was animated with the shaders,
it rendered very fast and efficiently.

 

 

 

 

 

All CopyRight Reserved 2009 @ mrgentle.net