This post has child posts. Child posts are often subsequent pages of a doujinshi, or minor variations of the parent post.


animated animated_gif ayase_aragaki black_hair blue_eyes blush claria coin dazed empty_eyes female_only femsub heart long_hair maledom manip open_mouth oreimo pendulum pompom_(manipper) text

14 comments (0 hidden)

PomPom
>> #55016
Posted on 2015-04-30 03:16:26
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!

JamesF
>> #55020
Posted on 2015-04-30 03:30:01
Score: 0 (vote Up)
Does anyone else have a little heart skip when you hover over a high quality thumbnail and you see 'animated gif'?

Also this is WAY SMOOTH, you rule PomPom~

KarmaX
>> #55021
Posted on 2015-04-30 03:32:37
Score: 0 (vote Up)
AwwwwWWWwwww

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*

pokefannafekop
>> #55064
Posted on 2015-04-30 06:50:10
Score: 0 (vote Up)
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.

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

EdgeOfTheMoon
>> #55084
Posted on 2015-04-30 09:04:23
Score: 0 (vote Up)
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.

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


KarmaX
>> #55088
Posted on 2015-04-30 09:20:34
Score: 0 (vote Up)
maaaaaaaaaaath

its hard........

Mr_Face
>> #55100
Posted on 2015-04-30 12:05:59
Score: 0 (vote Up)
PomPom said:
Math


:D

LolLord
>> #55111
Posted on 2015-04-30 17:04:08
Score: 0 (vote Up)
doesnt look bad, for a GIF...

NamesAreForTheWeak
>> #55138
Posted on 2015-04-30 20:39:51
Score: 0 (vote Up)
LolLord said:
doesnt look bad, for a GIF...


Understatement of the year right there.

I can not stop looking at it.

LolLord
>> #67719
Posted on 2015-08-22 20:39:01
Score: 0 (vote Up)
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...

1 2 > >>