Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Is there a way to shorten/Lengthen Bones during animation?  (Read 8714 times)

Familyman

  • Newbie
  • *
  • Posts: 22
    • View Profile

he is what I have, A large tank style cannon.
He is what I want it to do, when firing I want it two sharfts of the cannon to recoil into each other.
I have tried palying around with bones and angels but can not get the affect I want,
So is there a way to shorten and lengthen bones during animation, I have tried to editing a sequence starting with a bode long and making that a keyframe and then 20 frames later changing the length of the boneand making that a keyframe but that doesn't work.

Logged

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #1 on: May 19, 2008, 09:12:30 am »

It's not possible to change the bones length during animation.

However, there is an easy way to create telescopic movements. You said you had tried playing with bones and angles and you wasn't succesful... Try this tutorial, it should work:
http://www.geocities.com/lanceart/article02.html

I would also try morph targets, it should work perfectly for a movement like this...
Logged

Familyman

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #2 on: May 19, 2008, 09:18:43 am »

I think I just figured it out, but I will check the tutorial maybe try morhing, thanks.
Logged

RudySchneider

  • Sr. Member
  • ****
  • Posts: 449
  • There are no problems, only opportunities
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #3 on: May 19, 2008, 10:44:32 am »

Familyman ---
WHY are you using bones for animating this?  I suppose there may be something to be gained from using bone weights to alter the actual shapes of the barrel sections in a cartoony way, but there's no need for bones at all, from what I can tell.

You've got two sections of the barrel that actually move --- the middle section and the muzzle section.  Simply parent the middle section to the base section, and parent the muzzle section to the middle section.  This way, the middle and muzzle sections will "track" any motion the base and/or middle sections make, respectively.  Then, since it's primarily linear (rather than rotational) motion you need, you can keyframe along the appropriate (X-, Y-, or Z-) axis for the middle and/or muzzle sections.

I rarely, if EVER, use bones for any of the animations I've created (which, if you're interested, you can se at www.rudyschneider.com).  Bones are primarily meant for objects with organic qualities, where the object surfaces must change shape --- such as the folding and/or twisting of skin when a character moves its head up and down, and left and right.  As Kubajzz, pointed out, another way to do this is with morph targets.  The only possible down-side I can think of for your application would be controlling the "tracking" of the morphs.

By the way, guns (or cannons) don't actually recoil in this fashion.  In general, the entire length of the barrel, through which the projectile travels, cannot change in shape between the firing chamber and the muzzle.  Instead, the barrel is usually suspended on a sliding mechanism fitted with springs and/or hydraulic shocks, which absorb a portion of the energy from the projectile as it accelerates through the barrel.
« Last Edit: May 19, 2008, 10:50:09 am by RudySchneider »
Logged
G

Familyman

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #4 on: May 19, 2008, 01:19:06 pm »

coming from a military family you don't need to tell me how a Gun or Cannon recoils, but thanks.
As for the whole parent tracking thing, that is a very interesting method, I might try it, thanks for the idea.
And the animation I am working on isn't meant to be real, just look good.
 :)
Logged

RudySchneider

  • Sr. Member
  • ****
  • Posts: 449
  • There are no problems, only opportunities
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #5 on: May 19, 2008, 02:32:09 pm »

Here's a quick GIF animation I threw together to illustrate my point.  It's a bit slow, but that's what I get for FREE AVI-to-GIF conversion software...
« Last Edit: May 19, 2008, 02:50:27 pm by RudySchneider »
Logged
G

mcheccyb

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #6 on: May 21, 2008, 12:17:25 pm »

use www.zamzar.com to convert your files. no programs involved, completely free.
Logged

Olias

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Is there a way to shorten/Lengthen Bones during animation?
« Reply #7 on: May 28, 2008, 03:25:09 pm »

Yes, I would definately go the route RudySchneider pointed out for this animation.  Even if you could get the bones to animate, it's so much easier with the parenting and movement keys.
Logged