Search Unity

Animation - The same old question with no answers

Discussion in 'Multiplayer' started by Jakesie, Apr 4, 2013.

  1. Jakesie

    Jakesie

    Joined:
    Sep 26, 2012
    Posts:
    64
    Hi there,
    I am searching and trying several tutorials and scripts and stuff for more than 3 weeks now, and it all comes back to one thing:
    Most of the people cannot get a first or third person character to animate over network. Yes, I get it to move, but not to animate while moving. This is a bit concerning to me, because a fair quantity of games are FPS or similar.

    I came to the conclusion using RPC for animations is the best way, but again - no tutorial showing one the ropes. Maybe I am missing something?

    If someone would like to help me out, I will really appreciate it - and I am sure MANY other users too?

    Best regards,

    Jakes
     
  2. fholm

    fholm

    Joined:
    Aug 20, 2011
    Posts:
    2,052
    RPCs is not the way to synchronize animation, the way animations should be synced is by sending control data (a few bits most of the time), which is matched to the current local interpolation time on each client, and then use this to drive animations.
     
  3. Jakesie

    Jakesie

    Joined:
    Sep 26, 2012
    Posts:
    64
    Thanks, I am leaning ;)
    Ok where do I start to get info or documentation? Right now it sounds like greek to me :(
     
  4. fholm

    fholm

    Joined:
    Aug 20, 2011
    Posts:
    2,052
    There aren't really that many good resources, I learned most of the stuff by reading the Quake World and Quake 3 source code.
     
  5. Jakesie

    Jakesie

    Joined:
    Sep 26, 2012
    Posts:
    64
    My point exactly. But I will keep on searching. I know there is some examples and tutorials in the asset store, but my limited funds ( I do it for fun) cannot afford that luxury :(
     
  6. fholm

    fholm

    Joined:
    Aug 20, 2011
    Posts:
    2,052
    The resources I know are these:
    1. Gaffer On Games: http://gafferongames.com/
    2. Source Engine Networking: https://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking
    3. Tribes Networking Model: http://www.pingz.com/wordpress/wp-content/uploads/2009/11/tribes_networking_model.pdf
    4. Id Software open source code: https://github.com/id-Software
    5. I shot you first networking: http://www.gdcvault.com/play/1014345/I-Shot-You-First-Networking
    None of them explain how to do animation sync tho, except if you read some of the Id Software source code.
     
  7. Jakesie

    Jakesie

    Joined:
    Sep 26, 2012
    Posts:
    64
    Thanks! :D Will study them as good as I can!

    Appreciate the help!