Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 06-05-2006, 06:59 PM   #1
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default 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
I-Iybrid is offline   Reply With Quote
Old 06-05-2006, 07:36 PM   #2
skywola
Registered User
 
skywola's Avatar
 
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
skywola is offline   Reply With Quote
Old 06-05-2006, 08:07 PM   #3
vladimirjp
Subscriber
 
vladimirjp's Avatar
 
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
Thanks: 0
Thanked 4 Times in 3 Posts
Default

how about just keyframing the tire rotation.
__________________
Image dump
vladimirjp is offline   Reply With Quote
Old 07-05-2006, 02:38 AM   #4
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Thanks: 0
Thanked 18 Times in 18 Posts
Default

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
MattTheMan is offline   Reply With Quote
Old 07-05-2006, 05:58 AM   #5
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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
I-Iybrid is offline   Reply With Quote
Old 07-05-2006, 01:27 PM   #6
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Thanks: 0
Thanked 18 Times in 18 Posts
Default

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
MattTheMan is offline   Reply With Quote
Old 07-05-2006, 06:51 PM   #7
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Think the best thing to do would be to keyframe it at the point its still, like vlad said.
gster123 is offline   Reply With Quote
Old 08-05-2006, 02:08 AM   #8
twisteddragon33
Registered User
 
twisteddragon33's Avatar
 
Join Date: Apr 2003
Location: New York, USA
Posts: 1,945
Thanks: 0
Thanked 45 Times in 45 Posts
Default

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
twisteddragon33 is offline   Reply With Quote
Old 08-05-2006, 10:10 PM   #9
Davvey
Registered User
 
Davvey's Avatar
 
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


Davvey is offline   Reply With Quote
Old 11-05-2006, 04:02 PM   #10
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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
I-Iybrid is offline   Reply With Quote
Old 11-05-2006, 06:38 PM   #11
Davvey
Registered User
 
Davvey's Avatar
 
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
File Type: zip suspension_setup.zip (58.9 KB, 24 views)
__________________
Davvey


Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.


Davvey is offline   Reply With Quote
Old 11-05-2006, 07:16 PM   #12
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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
I-Iybrid is offline   Reply With Quote
Old 11-05-2006, 10:17 PM   #13
Davvey
Registered User
 
Davvey's Avatar
 
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
File Type: zip suspension_setup_rigged_5.0.zip (66.2 KB, 22 views)
__________________
Davvey


Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.


Davvey is offline   Reply With Quote
Old 27-05-2006, 12:52 PM   #14
Davvey
Registered User
 
Davvey's Avatar
 
Join Date: Mar 2004
Location: Wales, UK
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Set of scripts uploaded to site at following location. Please let me know any probs etc.

http://simplymaya.com/download_pages...tid=6&typeid=4
__________________
Davvey


Thought I saw light at the end of the tunnel

but it was just some Bxxxxxx with a torch.


Davvey is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.