Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Custom animation bouncing/warping?

Discussion in 'Modeling & Animation' started by HerrDave, Jan 16, 2015.

  1. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    1) For some reason when I make a custom animation, the model decides to bounce up and down between frames, instead of moving from one to the next.

    2) Also, when I try to turn a wheel in a circle, it ends up warping into an oval at 45 degrees, and a flat disk at 90. thus making turning the wheel impossible.

    3) When I have 'Herr Dave' turn his head, it warps diagonally, as if he was a rubber ball that'd been stepped on during the animation.
     
  2. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    try using mdlvis if you arent
     
  3. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    'Tis what I'm using, good sir
     
  4. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    when ive tried animating with it i never get any unexpected results.. for your first problem it sounds like you are moving the model's skeleton up and down. but i dont know, since i have no idea what you are doing and i dont think anyone else does either try to be more precise if you want more help
     
  5. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    Err-- right then.

    You know how when animating, the model is supposed to move from pose to pose, yes? Well in-between the poses which I had set, the model bounces up and down, or moves strangely even though there aren't any poses in-between (blue lines)

    As for the wheels, I had bound two separate wheels to the same bone and attempted to have the bone rotate vertically, in doing so the attached vertexes on either side decide to stretch and flatten.
     
  6. Hayate

    Hayate

    Joined:
    Oct 20, 2010
    Messages:
    2,517
    Resources:
    66
    Models:
    51
    Icons:
    14
    Spells:
    1
    Resources:
    66
    Show me In skype XD
     
  7. JesusHipster

    JesusHipster

    Joined:
    Sep 19, 2011
    Messages:
    2,032
    Resources:
    55
    Models:
    48
    Icons:
    7
    Resources:
    55
    Make animations linear and animate only afterwards.
     
  8. NhazUl

    NhazUl

    Joined:
    Aug 13, 2007
    Messages:
    1,453
    Resources:
    8
    Models:
    7
    Maps:
    1
    Resources:
    8
    It's not very clear to what exactly you are referring, but it sounds like one of these 3 cases to me. If I'm wrong, please excuse me:

    1) have set an incorrect rotation (they are described by quaternions which are really tricky and I avoid scripting rotations manually for the most part, as said, use MdlVis instead to set rotations by touching the model, not scripting.)

    2) have some vertices attached to more than 1 bone, in which case their movements are superimposed and cause such aberrations.

    3) If you have a linearly interpolated rotation to an angle larger that 180°, it will occur at the other angle.

    Let's say you have a model of a turret that turns from north (default) to the east, south and finally southwest. The model will, however, select the shorter way and simply rotate from north through west through southwest. To avoid that, split it in two rotations: north to southeast, then southeast to southwest.
     
  9. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    You've solved the problem with the wheel stretching and flattening on solution #2, thank ye very much good sir!

    Now the only thing jamming my model-works machine is custom animations 'bouncing/twitching' in-between pose frames (with no frames in-between)
     
  10. NhazUl

    NhazUl

    Joined:
    Aug 13, 2007
    Messages:
    1,453
    Resources:
    8
    Models:
    7
    Maps:
    1
    Resources:
    8
    Why don't you upload it here so we could have a look at it? I know this ca be tricky, but still.
     
  11. Fingolfin

    Fingolfin

    Joined:
    Jan 11, 2009
    Messages:
    3,253
    Resources:
    154
    Models:
    144
    Icons:
    1
    Packs:
    4
    Skins:
    2
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    154
    The reason the model is bouncing up and down is an interpolation issue. Try adding an extra frame inbetween the two frames it jumps between. Also, with rotation, try to never rotate a bone more than 90 degrees between two frames, again, for interpolation reasons.
     
  12. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    @NhazUl - I would upload it, were it a normal model, but this is a very special request and the person who requested it doesn't want it up prior to its full completion, even if it hinders its development *facedesk*

    (Also I havn't the foggiest idea how to upload models in this section)

    @Fingolfin - I tried adding a frame where the model goes to its unwanted pose, but rather than fixing it, it ends up doing exactly what it did when broke.

    It starts its broken movement, snaps to the pose I gave it for that single frame, and snaps back to its unwanted pose and moves onto the next custom frame.
     
  13. Fingolfin

    Fingolfin

    Joined:
    Jan 11, 2009
    Messages:
    3,253
    Resources:
    154
    Models:
    144
    Icons:
    1
    Packs:
    4
    Skins:
    2
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    154
    Do you know what kind of key controllers you are using? The ones supported by wc3 are Beizer, Linear, TCB (for rotation), and Smooth (for rotation). Probably some i'm forgetting.
     
  14. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    I have absolutely no idea which key controllers I'm using. I haven't touched it from what it was set to by default from the download.
     
  15. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    Ludicrously late followup, which one of them would you recommend I use to solve this bouncing/twitching problem?
     
  16. GhostThruster

    GhostThruster

    Joined:
    Jul 24, 2009
    Messages:
    4,848
    Resources:
    34
    Models:
    7
    Icons:
    21
    Packs:
    1
    Skins:
    1
    Maps:
    3
    Spells:
    1
    Resources:
    34
    did you notice jesushipster's post?
     
  17. PROXY

    PROXY

    Joined:
    Dec 8, 2008
    Messages:
    3,528
    Resources:
    69
    Models:
    68
    Packs:
    1
    Resources:
    69
    I'm quite sure that is what causing you the problem, I talked to him about that too and it seems JesusHipster always did it right when we worked together.
     
  18. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    I did notice, but the frames aren't changing.

    I am going to copy and paste each of the frames with the 'linear' box checked, if this fixes it, you all get +rep for this, as Wrath of the Kaiser can get back on track!
     
  19. NhazUl

    NhazUl

    Joined:
    Aug 13, 2007
    Messages:
    1,453
    Resources:
    8
    Models:
    7
    Maps:
    1
    Resources:
    8
    If it doesn't work, then some of the Hermite/Bezier rotations are buggy and the bug is conserved when switching to linear interpolation. In this case you may have to script the rotation manually. To do this, you must use quaternions for the description of the angles. To calculate them from Euler angles (normal angles in degrees on x, y, z) you can use converters such as this one.
     
  20. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    1,095
    Resources:
    165
    Models:
    137
    Icons:
    20
    Skins:
    8
    Resources:
    165
    Alas, after having changed all from Hermite/Bezier to Linear, the bump & bob still remains.

    Being a rather unintelligent individual, I have failed to grasp your instructions, sir NhazUl.

    Having now gone back on my word, I shall now post the model.

    http://www.hiveworkshop.com/forums/pastebin.php?id=9243u6

    Long hours of reconstructing it from another game, and it has become my 'testing' model of sorts.

    Attack - 1 is the animation that bumps and jitters.