Rigging a bicycle chain

   2505   6   1
User Avatar
Member
22 posts
Joined: Dec. 2014
Offline
I am new to Houdini from Cinema 4D. What would be the best way to rig a bicycle chain for animation in Houdini.
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
You can transport points by adding time to their current curve position and use modulo to make them start at the beginning once they reach the end:

vector pos = set( (@pos_curr + time) % 1, 0, 0);

With uvsample() you get the new position based on interpolating their initial positions.

@P = uvsample(0, "P", "pos_curr", pos);

And make sure to post stuff like this in the correct forum section next time ; )
Edited by Konstantin Magnus - Feb. 11, 2018 09:48:00

Attachments:
bicycle_chain.hipnc (109.4 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
648 posts
Joined: July 2005
Offline
see attached.
rotation of gears is eyeballed; uses magic numbers

Attachments:
bikechain.hipnc (155.8 KB)

User Avatar
Member
22 posts
Joined: Dec. 2014
Offline
Thanks so much for the help. I have gotten so busy I haven't had a chance to look at them yet. I will try to look them over tonight, but I really appreciate your help.
User Avatar
Member
22 posts
Joined: Dec. 2014
Offline
Hey Both of these are great! Thanks very helpful!
Is there a tutorial that you know of that covers this type of project? I have so much to learn about Houdini and this is over my head right now.
User Avatar
Member
648 posts
Joined: July 2005
Offline
yeo:
https://www.sidefx.com/tutorials/how-to-create-a-bicycle-chain-or-tank-tracks-along-a-curve [www.sidefx.com]

don't think it covers animation though
User Avatar
Member
22 posts
Joined: Dec. 2014
Offline
Thanks! that will help me until I get to the animation, then I can look at your files.
  • Quick Links