Results 1 to 16 of 16
  1. #1
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060

    Car wheel animation

    Do doubt this question has been asked a million times before...

    I'm doing a car animation and I need to have the wheels turn in preportion to the speed that they (or some other child object, since the whole car is parented to a main mesh) move.

    Does the answer lie in drivers? If so, how do I use drivers?

    This whole subject is confusing. Thanks in advance.



  2. #2
    Member batFINGER's Avatar
    Join Date
    Jun 2007
    Location
    Lochiel NSW Australia
    Posts
    1,744
    Howdy,

    There was a thread on a rolling ball here http://blenderartists.org/forum/showthread.php?t=186654

    Since then, I've found a way write a script that gets run on a pseudo frame change event http://blenderartists.org/forum/show...t=#post1752470

    Putting the two together one could write a driver to calculate the rotation using the fcurves to calculate the distance travelled from the frame before. That way you can key in location and calculate the speed each frame by passing the framenumber and the name of the wheel via the driver.



  3. #3
    Member AnyMation's Avatar
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    482
    This may be more than you are looking for. :-)

    Enjoy!
    "Don't bother telling me what you believe... your words and actions reveal what you REALLY believe"

    www.DNApixels.com, Old Rocky meets his match = Avatar Source, Realistic Whale Shark with underwater caustics



  4. #4
    Member batFINGER's Avatar
    Join Date
    Jun 2007
    Location
    Lochiel NSW Australia
    Posts
    1,744
    The car autodrive system relies on the wheel-rotation script that in 2.4x is fired by the onframechange event, which is no longer available in 2.5x. Which version are we looking at?



  5. #5
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060
    I'm using 2.55
    I know that you don't have to use a script - I'm looking for that solution, so don't tell me about any scripts or anything, I know there is an IPO driver solution, I just don't know how to do it



  6. #6
    Member AnyMation's Avatar
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    482
    This is one of Roubal's very early non-script versions. (Same guy who later did the Jeep with tracks in the sand)

    I hope all the functionality is in Blender 2.5. It should be, as I don't think he is using anything out of the ordinary.
    "Don't bother telling me what you believe... your words and actions reveal what you REALLY believe"

    www.DNApixels.com, Old Rocky meets his match = Avatar Source, Realistic Whale Shark with underwater caustics



  7. #7
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060
    I actually have that one... my problem is the one part about adding a driver to make the wheels turn in preportion to the speed



  8. #8
    Member
    Join Date
    Jun 2004
    Location
    Vancouver, Canada
    Posts
    2,221
    in 2.5, You can setup a constraint system that rotates the wheel that is proportional to the movement of the car, like this: http://mikepan.com/files/BMW3v2.blend



  9. #9
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060
    Thanks you mpan3!! man its so simple....



  10. #10
    Member Re-tep's Avatar
    Join Date
    Nov 2010
    Location
    Hungary
    Posts
    68
    fantastic modeling, ,lighting and compositing!



  11. #11
    Member AnyMation's Avatar
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    482
    Hi Mike,

    Thanks for this. Would it be possible to use your method for both the X and the Y axis (world/global space)? I notice that, at the moment your setup only works for the global X-axis.

    I tried adding another axis, but I did not succeed...
    "Don't bother telling me what you believe... your words and actions reveal what you REALLY believe"

    www.DNApixels.com, Old Rocky meets his match = Avatar Source, Realistic Whale Shark with underwater caustics



  12. #12
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060
    Same here... that method only works when traveling in a straight line



  13. #13
    Member batFINGER's Avatar
    Join Date
    Jun 2007
    Location
    Lochiel NSW Australia
    Posts
    1,744
    If you "drive" your car along a path using a curve modifier or follow path where the travel on the curve is mapped to a particular direction then the method works fine.

    Rather than use the straight out constraint i have used a driver, which for all extents and purposes does the same thing .. but allows me to fiddle with "overspin" for burnouts or "underspin" for braking.

    Cheers for the method Mike.



  14. #14
    Member gregzaal's Avatar
    Join Date
    Jun 2010
    Location
    Johannesburg
    Posts
    2,060
    @batFINGER See that's what I would like, but I just do not know how to use drivers in 2.5



  15. #15
    Member batFINGER's Avatar
    Join Date
    Jun 2007
    Location
    Lochiel NSW Australia
    Posts
    1,744
    Here is a sample of using the location to rotation transform using drivers. I stripped this out of another file so some of the objects in there aren't required. This method has been very useful to me as i had been keying in a velocity.

    Merry Xmas.



  16. #16



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •