Something straightforward for Amorous April with only a day left @_@
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is: Phi = sin(sqrt(g/L)*t) >g = acceleration due to gravity (9.81 m/s^2) >L = length of pendulum >t = current time (i.e. seconds since start of swing) > sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then: Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
I could gaze at this adorable, cute little girly for hours!! XDD
Who is the real one getting hypnotied here, anyway, her or us?? Just look at her.. cute, sweet, innocent face and those eyes slowly moving back and forth.... *droool*
PomPom said: Something straightforward for Amorous April with only a day left @_@
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is: Phi = sin(sqrt(g/L)*t) >g = acceleration due to gravity (9.81 m/s^2) >L = length of pendulum >t = current time (i.e. seconds since start of swing) > sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then: Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
Hope someone finds it useful!
Math warning? surely it can't be that ba-nevermindbyecyalaternope
PomPom said: Something straightforward for Amorous April with only a day left @_@
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is: Phi = sin(sqrt(g/L)*t) >g = acceleration due to gravity (9.81 m/s^2) >L = length of pendulum >t = current time (i.e. seconds since start of swing) > sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then: Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
Hope someone finds it useful!
Looks great Pom!
We need to make next month Math May. Manips must use a math equation and full working out must be shown XD
Fuck yeah sin waves. I use so much trigonometry in my animations. Trigonometry can be sexy :-P
let me get this straight, a gif has only 256 colors which doesnt really make it look good, that what I meant with "for a gif", since it would probably look better with the full color set and less dithering and stuff...
>> #55016
Score: 0 (vote Up)
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is:
Phi = sin(sqrt(g/L)*t)
>g = acceleration due to gravity (9.81 m/s^2)
>L = length of pendulum
>t = current time (i.e. seconds since start of swing)
> sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then:
Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
You can see what the calculation looks like <<puu.sh/hvGLb/62b5d4c237.png|here.>>
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
Hope someone finds it useful!
>> #55020
Score: 0 (vote Up)
Also this is WAY SMOOTH, you rule PomPom~
>> #55021
Score: 0 (vote Up)
I could gaze at this adorable, cute little girly for hours!! XDD
Who is the real one getting hypnotied here, anyway, her or us?? Just look at her.. cute, sweet, innocent face and those eyes slowly moving back and forth.... *droool*
>> #55064
Score: 0 (vote Up)
Something straightforward for Amorous April with only a day left @_@
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is:
Phi = sin(sqrt(g/L)*t)
>g = acceleration due to gravity (9.81 m/s^2)
>L = length of pendulum
>t = current time (i.e. seconds since start of swing)
> sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then:
Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
You can see what the calculation looks like <<puu.sh/hvGLb/62b5d4c237.png|here.>>
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
Hope someone finds it useful!
Math warning? surely it can't be that ba-nevermindbyecyalaternope
>> #55084
Score: 0 (vote Up)
Something straightforward for Amorous April with only a day left @_@
Hope you guys like it! I used a different pendulum equation I had worked out this time, so it's a bit smoother.
For those interested (math warning!):
Generally, the position of the pendulum is given as a ratio, "Phi". This ratio is the current position angle over the highest angle. Generally the value falls between -1 and 1.
The specific equation is:
Phi = sin(sqrt(g/L)*t)
>g = acceleration due to gravity (9.81 m/s^2)
>L = length of pendulum
>t = current time (i.e. seconds since start of swing)
> sin and sqrt are the sine and square root functions, respectively
Since we don't really have a set idea of how long the pendulum is, I set L to 1 meter (that's a pretty long length even for this image, but it gives a nice time step to vary later). The square root of 9.81/1 is about the same as pi, or roughly 3.14.
My simplified equation is then:
Phi = sin(3.14*t)
Then I set a time step of about 0.1 seconds. Smaller time steps give smoother animations, and the one above uses a 0.05 second time step.
In Excel, I made a column of values from 0 to 2 seconds, stepping 0.1 seconds each time. In the cells in the next column, I put =SIN(3.14*t), where "t" is the corresponding time step. It should calculate values that go from 0 up to 1 then back down towards -1, then back up to 0.
Finally, I set a target maximum angle. I like 15 degrees, although it's easily varied to what suits your needs. I made a third column where I just multiplied the value "Phi" that was calculated for each time step by the maximum angle. I also graphed it to show just how the angle changes over those two seconds.
You can see what the calculation looks like <<puu.sh/hvGLb/62b5d4c237.png|here.>>
Now that you have this list, you can take the numbers in your third column and use those as the specific angles to rotate your pendulum from the center by each frame. Then, you can mess around with the frames per second (in GIMP, when exporting a gif it'll give you a dialog where you can set the delay for all frames) to get the speed you want. The standard delay is 100 ms, so it runs at about 10 frames per second. I set this one to 50 ms, or 20 frames per second, because I used a time step of 0.05 seconds for a bit smoother look.
Hope someone finds it useful!
Looks great Pom!
We need to make next month Math May. Manips must use a math equation and full working out must be shown XD
Fuck yeah sin waves. I use so much trigonometry in my animations. Trigonometry can be sexy :-P
>> #55088
Score: 0 (vote Up)
its hard........
>> #55100
Score: 0 (vote Up)
Math
:D
>> #55111
Score: 0 (vote Up)
>> #55138
Score: 0 (vote Up)
doesnt look bad, for a GIF...
Understatement of the year right there.
I can not stop looking at it.
>> #67719
Score: 0 (vote Up)