Animating a pendulum clock?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2011   #1
Animating a pendulum clock?

Hello!

I have a pendulum model I am animating and I have all of the gears working with xpresso but I can't quite figure out how to setup the 'verge' (part that the pendulum attaches to that articulates against the main 'escapement' gear) so that is just 'works'. I found an older thread on this forum with this person's C4D example, but I don't know the approach for the scripting:

http://www.youtube.com/watch?v=CkfVabBI6OE

I thought about trying dynamics with a hinge connector, but my setup only makes the parts fall in 3D space. There has to be a way with just Xpresso, but I'm stuck on how to apply a sine wave or equivalent to make the motion happen.

Any help would be greatly appreciated!

Thank you,

Ryan
 
Old 11 November 2011   #2
Ok, I've learned that the pendulum swings based on the 'escapement gear' rotation. So now I have attempted to rotate the pendulum based on the gear rotation. I have it rotating in one direction, just fine...BUT, how can I setup a teeter-totter action of the pendulum pivot so that after say, 18 degrees of rotation, then rotate in the opposite direction (then repeat)? I've played with range mapper nodes to no avail as well as the flip flop node, but given my limited xpresso knowledge I'm stuck at the moment.

Thanks!

Ryan
 
Old 11 November 2011   #3
Well, I found this link and it helped get me going.

http://www.today.plus.com/3d/tuts/walkthroughe3-pe.html

My solution is not 100% accurate, but it's close enough for now.
 
Old 11 November 2011   #4
Originally Posted by gdogfunk: I have a pendulum model I am animating and I have all of the gears working with xpresso but I can't quite figure out how to setup the 'verge' (part that the pendulum attaches to that articulates against the main 'escapement' gear) so that is just 'works'. I found an older thread on this forum with this person's C4D example, but I don't know the approach for the scripting:

It is not so easy, but also not so difficult.

http://www2.11moon.com/sample_files...10/governor.mp4
http://www2.11moon.com/sample_files...10/governor.zip

This XPresso rotate "Governor_gear" by Time value.

The gear has cyclic and irregular rotation which is caused by "Stopper ends".
Then I separated the rotation into 2 elements first, to avoid accumulation error.

1. Element A is contineous and regular rotation.
2. Element B is cyclic and irregular rotation generated in "Range Mapper" node.

And the gear is rotated with value A + B.
 
Old 11 November 2011   #5
Wow, thank you for taking the time to look at this. Your example is excellent! I shall attempt to apply it to my scene.

Thank you!

Ryan
 
Old 11 November 2011   #6
Another example with Dynamics.

http://www2.11moon.com/sample_files...or_dynamics.zip

It could work, but there are some of "Dynamics noise (error)" in gear rotation. And it may give bit cheep (or weak) feeling to viewers.
 
Old 11 November 2011   #7
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:00 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.