PDA

View Full Version : Animating engine pistons crank and con-rods


creyc
05-04-2005, 02:00 AM
I've been working on this simple part for way too long without much success to show for myself. Going in I thought no problem, use a bone here, bone there and fix all the parts onto them and it's all good.

I've spent enough time working with bones but for some reason I've never actually tried limiting a bones position completely to one axis, that is to say the Y axis. I need a way to constrain the tip of a bone so that the connected piston will only "slide" up and down in the sleeve and not jostle around from side to side. Is there an easy way to do this in Cinema R9?

I also tried my hand at solving this with the OHM mechanics plugins, which are an awesome set of free plugins if you don't have them but unfortunately don't have the ability to link part-to-part the accurate way bones do.
http://creyc.no-ip.com/images/pistons/correct.jpg
You can see in this picture the shape of the model, with the lowest bone representing the crank (mesh not visible), the next representing the connecting rod and finally the small bone for the piston itself. This is my problem bone as it should always stay in it's current X-Z position, only moving along the Y axis up and down as the lower bones affect it.

Erik Heyninck
05-04-2005, 06:03 AM
In his Maxon Cinema7 book (Peachpit press), Arndt von Koenigsmarck does this with expressions. Perhaps you can get a second hand copy somewhere as, meantime we're at C9?

ooo
05-04-2005, 06:45 AM
I cannot see the picture, but I know Lachlan has done a few really nice animations of engines. On his website there are also a few Xpresso tutorials in this area. So maybe you can find some answers there: http://www.today.plus.com/3d/tuts/

odo

base80
05-04-2005, 02:12 PM
I have a small tutorial online for a part of your problem.

Piston Tut (http://www.base80.com/index.php?page=piston)

But tha main part is simple trigonometry
Here is a sample file piston file (http://www.base80.com/Images1/xs-files/pistonSys0.5.c4d.zip) click on the to null and set the user data (or explore the xpresso to set as you wish)
It does this:
http://www.base80.com/Images1/xs-files/oli_4.gif

bek
05-04-2005, 07:10 PM
i dont have much to say! but i use that same piston file!!

here is the final animation hope you guys like it!

http://www.bek03.com/proclean.htm

cheers

C&C are always welcome!

Alchemist3D
05-05-2005, 05:21 AM
Here's tons of Xpresso-engine piston tuts:

http://www.3d-meier.de/tut6/XPresso0.html

If you don't read German, maybe you could Babelfish them.

- Mike

CGTalk Moderation
05-05-2005, 05:21 AM
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.