1. Welcome to VRCat! Please note that this message board is not related to VRChat in any official manner. It is run entirely by the community, and moderated by the community. Any content present has not been reviewed by VRChat moderators or staff. Your use of these forums implies understanding of this message. Thanks!
    Dismiss Notice

Sit on the Floor / Chair anim override prefab

Discussion in 'Tutorials and Tools' started by Mr.Crane, Dec 11, 2017.

  1. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    I made this just to see how/if it works.
    Went to mixamo, downloaded the anim clip, applied it to a controller and that again to the chair.
    Here's the result, have a look if you want to sit on the ground...
    [​IMG]


    You can still move the arms in vr but not the fingers. Not yet, maybe someone can fix that.
     
    #1 Mr.Crane, Dec 11, 2017
    Last edited: Dec 15, 2017
    PhaxeNor and desunesu like this.
  2. Jazneo

    Jazneo Member

    Joined:
    Nov 18, 2017
    Messages:
    74
    Likes Received:
    69
    VRChat:
    Jazneo
    did you move any muscle in the finger? when make animation for chair? when move finger in animation will disable the finger gensture
     
    desunesu likes this.
  3. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    I just downloaded the animation from mixamo to see if it works. they have also poses that are not animated or just one frame. that may work. if not i'll have to delete the anim tracks for the hands in the animations.
     
  4. TheMrTorbi

    TheMrTorbi Member

    Joined:
    Dec 11, 2017
    Messages:
    13
    Likes Received:
    6
    VRChat:
    TheMrTorbi
    thank you!!!
     
    desunesu likes this.
  5. desunesu

    desunesu Member

    Joined:
    Nov 29, 2017
    Messages:
    127
    Likes Received:
    91
    VRChat:
    desunesu
    He did it ;D
     
  6. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    I deleted the key frames for the fingers, didn't help. Maybe if I delete the entire arm. Or maybe the IK system doesn't override the hands if there's custom stuff on seats.
     
    desunesu likes this.
  7. beaziibub

    beaziibub Member

    Joined:
    Dec 14, 2017
    Messages:
    12
    Likes Received:
    3
    VRChat:
    beaziibub
    Hi i would to use these seating possitions in my world. How do i appy these to a controller?
     
  8. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    If you have the animation and the controller it is just drag and drop.

    What I did was DL the anim from mixamo and import it as humanoid in Unity.
    Could be anything even MoCap if the resulting rig/anim is compatible with Unity.

    Then I made a copy of the anim clip in the prefab. (ctrl-d)

    I made a copy of the default (simple or sample) avatar controller.

    I went to the animator tab and applied the anim to the orange thingy in the controller
    and made a new transition from entry to the orange thingy.

    Now I did put the controller onto the chair. The rest is fine-tune the position in the scene....

    EDIT: If you dont want to get sick, DO NOT ROTATE A CHAIR PREFAB. At least not on X and Z... ^^
     
    #8 Mr.Crane, Dec 23, 2017
    Last edited: Dec 23, 2017
    desunesu likes this.
  9. beaziibub

    beaziibub Member

    Joined:
    Dec 14, 2017
    Messages:
    12
    Likes Received:
    3
    VRChat:
    beaziibub
    Ah thanx this worked great for me thank you
     
  10. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    I just realized that the fingers don't work on Mimi's car prefab, that also has a seat override animation.
    So it's not just me...
     
  11. Splinks

    Splinks Member

    Joined:
    Jan 31, 2018
    Messages:
    16
    Likes Received:
    14
    VRChat:
    Splinks
    @Mr.Crane have you by any chance had any further updates on cracking down on the hand gestures for the custom seat animations?

    I ended up making a few custom sitting animations of my own, mostly to make it where any character height can sit on a chair without clipping into it. Also did some custom dances and standing animations for future ideas.
     
  12. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    No and I doubt that it helps to disable all hand animation as suggested by jazneo.
     
  13. Lhun

    Lhun Member

    Joined:
    Jan 21, 2018
    Messages:
    112
    Likes Received:
    49
    VRChat:
    Lhun
    So, I've been playing with this a bit and there's lots in addition to what you can do here.
    take your chair, and apply a copy of customoverrideempty into it -

    If you want to override EVERYTHING someone's body does:
    Take the anim you want to replace a full and complete animation with and stick it in the "idle" animation. Done. This, I imagine, is how mmd dance world works.

    For sitting, go into AnimatorOverrideController on vrcstation, make sure you set to "Seated"
    VRCSDK > Examples > Sample Assets > Animation

    I think however, that you need to include the bits of avatarcontrollertemplate that control the hands. You could make a copy of avatarcontrollertemplate and replace just the one animation and things might work again, since that's what contains thumbsup, etc. My plan is to make collisions happen in my world that animate you into doing things, might be fun.
     
  14. VectorSix

    VectorSix New Member

    Joined:
    Oct 30, 2018
    Messages:
    7
    Likes Received:
    1
    VRChat:
    VectorSix
    Guess is not working anymore, this file actually corrupt my project.

    Thanks anyway!
     
  15. Splinks

    Splinks Member

    Joined:
    Jan 31, 2018
    Messages:
    16
    Likes Received:
    14
    VRChat:
    Splinks
    Mr.Crane and VectorSix like this.
  16. Mr.Crane

    Mr.Crane Member

    Joined:
    Nov 18, 2017
    Messages:
    151
    Likes Received:
    55
    Maybe it crashed because the SDK that was used for the prefab is outdated? If I find the old scene I should update the link...
     
    VectorSix likes this.
  17. VectorSix

    VectorSix New Member

    Joined:
    Oct 30, 2018
    Messages:
    7
    Likes Received:
    1
    VRChat:
    VectorSix
    Should be that! btw Great post!

    Working! Thank you! Im struggling a lot to get help In my current project. I still have a lot to learn! :D
     
    Mr.Crane likes this.