Search Unity

[UNet] Network Animator transition stutters

Discussion in 'Animation' started by genaray, May 21, 2017.

  1. genaray

    genaray

    Joined:
    Feb 8, 2017
    Posts:
    191
    Im currently trying to make a little lan multiplayer game. I want to sync the animations of the players and i thought Network Animator would be the best way to do that. But theres one problem... for example, when the player starts walking the transition/crossing between the idle animation and the walking animation stutters. The main walking animation is smooth. Im using some blend trees in the Animator, thats pretty much all. I also have a Network Transform component attached to the Players. Its all working fine in singleplayer. The crossing/ transition stuttering only happens in the multiplayer mode.

    Does anyone know how to fix this ?
     
    Ishidres and Pony_in_love like this.
  2. genaray

    genaray

    Joined:
    Feb 8, 2017
    Posts:
    191
    Any ideas ?
     
  3. genaray

    genaray

    Joined:
    Feb 8, 2017
    Posts:
    191
    Heres an video that shows the stuttering/jittering very well.
     
    Ishidres likes this.
  4. Pony_in_love

    Pony_in_love

    Joined:
    Dec 3, 2015
    Posts:
    9
    I have same problem and I have no idea how to fix it p.p
    Unity, pls fix yourself!
     
  5. SkyDwarfProductions

    SkyDwarfProductions

    Joined:
    Jul 6, 2017
    Posts:
    1
    Lol man it's not unity. Whats happening is this. If you have a bool which can either be true or false with no middle it goes over fine but as soon as you have a smooth variable like a float going from 0 to 1 the network will not pick up the full range of numbers. In the same way, if you set the Network Transform Interpolate value to zero your movement will be choppy this is because of internet speed NOT UNITY. That's why they lerp gradual increasing or decreasing values. what you need to do is lerp the float value of your animator blend tree over the network and that should fix the problem.
     
  6. Yousset

    Yousset

    Joined:
    May 27, 2021
    Posts:
    2
    Thanks Man You Helped Me Alot