Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 06-05-2006 , 05:59 PM

Simply Maya OG
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438

Animating a car...

Ok, heres what I got. I have a car modeled, and Ive mad it so that when the car moves, the tires rotate with the car accordingly. I want to make the car do a burnout, then peel out. The tires are grouped with the car body, so that when the car moves, the tired do too. Any one have any idea how I would go about rotating the tires really fast while the car is sitting still, then have the car peel out? Any help is appreciated.

- Hybrid

# 2 06-05-2006 , 06:36 PM

Registered User
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224
answer = one word - - Mel

Create a function to rotate the tires fast, then have an if - then statement to revert them to normal rotation when the car has reached a certain point . .

"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche

# 3 06-05-2006 , 07:07 PM

Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
how about just keyframing the tire rotation.

# 4 07-05-2006 , 01:38 AM

Registered User
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
or at least having some expression to convert foreward distance traveled by the car into rotation (no hassle keyframing if you have to do a lot of start-stop)

but keyframing would work fine if the car is going kinda the same speed the entire time.

Live the life you love, love the life you live

# 5 07-05-2006 , 04:58 AM

Simply Maya OG
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Skywola - I have no idea how to use/create MEL's. I know Visual Basic uses if - then statements, and I know the basics of VB. Is MEL based off VB, or its own language, or what?

Vlad - Id prefer not to keyframe the rotation. I also noticed that the rotate Z field of the tires is oranged/pinked out. Will that throw off the rotation of the tire when the car is moving? Or could I just make it so that once the tires stop spinning as the car is sitting still, make them go back to 0 degrees, and it should pick up normally and rotate, right?

Matt - I already have it so that when the car moves, the tires rotate according to how far the car has traveled. I did it by using Set Driven Keys. I dont have to keyframe anything to get the tires rotating. Im trying to get the tires to rotate when the car is sitting still, without messing up the SDK.

- Hybrid

# 6 07-05-2006 , 12:27 PM

Registered User
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
I see.

Oh, and MEL is based off of C++ or Java, but VB would help you learn it (I really can't stand how MEL is formatted, language structure-wise. I much prefer c++)

Live the life you love, love the life you live

# 7 07-05-2006 , 05:51 PM

Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Think the best thing to do would be to keyframe it at the point its still, like vlad said.

# 8 08-05-2006 , 01:08 AM

Registered User
Join Date: Apr 2003
Location: New York, USA
Posts: 1,945
yeah im having the same problem with my part of the animation. I was thinking of keyframing the spinning of the tires and i was just going to keyframe all of the tire movements. Since i plan on having my car skid sideways at a section the sdk wouldnt work...

When you come over next time well test out some stuff. But im gunna go with vlad on this.

________________________
AIM: SublimeDragon33
Catch me if i'm on. Always up for a chat.
e-mail: sublimedragon33@gmail.com

# 9 08-05-2006 , 09:10 PM

Registered User
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Hi

The bestway to do this would be to connect the translation calc to the wheel rotation via some utility nodes.

Use a condition node to allow option of different input/output conditions i.e set ouput to be color true if vehicle tx, tz is changing and output color false to be a fixed or adjustable value which can be set using a custom attriubute via a mulipy/divide node.

Davvey

Davvey

Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.

# 10 11-05-2006 , 03:02 PM

Simply Maya OG
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Davvey, that is exactly what I need to do. I understand what you mean about it, but I have NO idea how to go about doing it. Any help, please? Ive never messed with an utility node before. Thanx

- Hybrid

# 11 11-05-2006 , 05:38 PM

Registered User
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Hi
I have attached a maya scene file with a simple vehicle rigged with a set up using utility nodes.

The rig is not completed but if you look in the hypergraph you should see how the nodes have been connected. If you want I can try and knock up a mel script to do something like this, but the translation/rotation has not been fully tested so I am not sure if it works in all directions as required. The sphere acts as a rig controller.

The way to do this is if you have an expression that works print it out and then use utility nodes to mimic the expressions formulas.

Attached Files
suspension_setup.zip (58.9 KB, 376 views)

Davvey

Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.

# 12 11-05-2006 , 06:16 PM

Simply Maya OG
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
The attached file errors when it opens. Did it not upload fully or something? If you want to go ahead and make a MEL script for it, I can play with the translation settings and try to get it working. I just have no idea where to start the whole thing. Thanx for the help. I appreciate it.

- Hybrid

# 13 11-05-2006 , 09:17 PM

Registered User
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Hi
This is a version for Maya 5.0 also it has been rigged for suspension control again using utility nodes. Try this version and let me know.

P.S will do mel script to follopw.

Attached Files
suspension_setup_rigged_5.0.zip (66.2 KB, 382 views)

Davvey

Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.

# 14 27-05-2006 , 11:52 AM

Registered User
Join Date: Mar 2004
Location: Wales, UK
Posts: 6

Davvey

Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

1

1

1

0

0

VFX News

On 2022-07-18 14:30:13

On 2022-07-18 14:17:59

On 2022-07-15 13:14:36

On 2022-05-13 13:52:25

On 2022-05-02 20:24:13

On 2022-04-13 16:02:13