Announcement

Collapse
No announcement yet.

[TUTORIAL] Super-easy VR body with arm IK and thumbstick locomotion [with download]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [TUTORIAL] Super-easy VR body with arm IK and thumbstick locomotion [with download]

    I usually don't cross-post my tutorials here, but I thought I will make an exception for this one since some of you asked about it. Here is a super-easy way to get yourself a full VR body, including arm inverse kinematic (requires motion controllers) and thumbstick based locomotion.

    It is based off the Third Person template which, surprisingly enough, already contains some VR related functionalities. I am developing with the Oculus, but it should work as is also with the Vive (in case of problems please let me know).

    Definitely it can still be improved, so happy to see what others are able to do using it as a starting point. Have fun!



    I recommend everyone to follow the tutorial, but in case you don't feel like doing so, here is the finished project: https://goo.gl/xRm3wn
    Last edited by vr_marco; 12-19-2017, 02:59 PM. Reason: Added link to downloadable project
    CTO | Head of VR Development - Visit us at http://humanxr.com
    My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

    #2
    Hi vr_marco,

    Thanks for this tutorial, looks really good and very easy!

    Currently, you are using thumbsticks to control the character - what if the player wants to move around in the "real world". Let's say I want to implement the full VR body to a game where the user moves around by teleporting and/or moving in the real world. Will this work with this vr body?

    Anyway, great work! Keep it up and thank you

    Comment


      #3
      Originally posted by GordonF View Post
      Hi vr_marco,

      Thanks for this tutorial, looks really good and very easy!

      Currently, you are using thumbsticks to control the character - what if the player wants to move around in the "real world". Let's say I want to implement the full VR body to a game where the user moves around by teleporting and/or moving in the real world. Will this work with this vr body?

      Anyway, great work! Keep it up and thank you
      Good question. Short answer is no. To keep it simple, currently this is designed like a seated experience. If you move in real world you will find yourself "out" of your virtual body and will have to re-center to get back into it.

      This said, it is possible to handle movements in real world by checking on Event Tick if the VR Camera is offset respect to a reference point on the Skeletal Mesh and then adjusting the VR Origin to re-align them. When doing so, one also needs to consider potential collisions with walls/props, which makes it more complicated but definitely not impossible.

      If you feel like it, you can give it a try and share back your results with the community.
      CTO | Head of VR Development - Visit us at http://humanxr.com
      My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

      Comment


        #4
        Originally posted by GordonF View Post
        Hi vr_marco,

        Thanks for this tutorial, looks really good and very easy!

        Currently, you are using thumbsticks to control the character - what if the player wants to move around in the "real world". Let's say I want to implement the full VR body to a game where the user moves around by teleporting and/or moving in the real world. Will this work with this vr body?

        Anyway, great work! Keep it up and thank you
        Check out this forum, https://forums.unrealengine.com/deve...pansion-plugin.

        It has what you want and the best part is its all replicated. Works really well with this tutorial.

        VR Expansion Plugin *Updated: 01/03/2018* 10/10/2016 - No longer OpenVR specific, if platform does not support OpenVR the plugin no longer compiles out the
        Checkout Project "TwinBlaster" my current game in progress.
        [FREE] - 2D ROPE! Find out more here!
        Forgive my username... It's an old game name and wrote it down as a habit.

        Comment


          #5
          Originally posted by SkeetonYu View Post

          Check out this forum, https://forums.unrealengine.com/deve...pansion-plugin.

          It has what you want and the best part is its all replicated. Works really well with this tutorial.
          Cool! Which one of Mordentrals' VR characters did you use for that, the VR Simple Character Actor? I was going to implement grabbing a weapon and firing it as next steps, did you already do that as well?
          CTO | Head of VR Development - Visit us at http://humanxr.com
          My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

          Comment


            #6
            Originally posted by vr_marco View Post

            Cool! Which one of Mordentrals' VR characters did you use for that, the VR Simple Character Actor? I was going to implement grabbing a weapon and firing it as next steps, did you already do that as well?
            I use VRCharacter. I haven't tried any object interaction yet but it is fun hugging friends in VR.
            Checkout Project "TwinBlaster" my current game in progress.
            [FREE] - 2D ROPE! Find out more here!
            Forgive my username... It's an old game name and wrote it down as a habit.

            Comment


              #7
              Ciao Marco, ho eseguito tutti i passaggi ma ho un piccolo problema. Ogni volta che mi sposto in una direzione fa uno scatto verso sinistra (appena muovo il thumbstick perché dopo è uniforme). Quale potrebbe essere il problema? Grazie infinite!!!

              Comment


                #8
                Originally posted by pullecalo View Post
                Ciao Marco, ho eseguito tutti i passaggi ma ho un piccolo problema. Ogni volta che mi sposto in una direzione fa uno scatto verso sinistra (appena muovo il thumbstick perché dopo è uniforme). Quale potrebbe essere il problema? Grazie infinite!!!
                Ti ho risposto su YouTube. Sembra un problema di collisioni.
                CTO | Head of VR Development - Visit us at http://humanxr.com
                My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

                Comment


                  #9
                  Is it possible to use the vr hands along with the IK third person character?

                  I'd love to be able to grab, point etc with the motion controller bp/ touch controllers..

                  Even choose to teleport the third person character.. from the VR perspective
                  Last edited by yung23athome; 12-28-2018, 01:18 PM.

                  Comment


                    #10
                    Might it be possible to edit the vr template to include IK arms and body coupled to the already existing vr hands ? Motion controller BP?

                    Comment


                      #11
                      Originally posted by yung23athome View Post
                      Is it possible to use the vr hands along with the IK third person character?

                      I'd love to be able to grab, point etc with the motion controller bp/ touch controllers..

                      Even choose to teleport the third person character.. from the VR perspective
                      it is easier to add animations to the hands of the full body. Look up additive animations in UE4.
                      CTO | Head of VR Development - Visit us at http://humanxr.com
                      My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

                      Comment


                        #12
                        hi you're tuto dont work for me, but why?? camera is not on my head in VR

                        Comment


                          #13
                          Originally posted by alan dax View Post
                          hi you're tuto dont work for me, but why?? camera is not on my head in VR
                          Did you parent the camera to the right bone?
                          Did you recenter in VR?
                          CTO | Head of VR Development - Visit us at http://humanxr.com
                          My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

                          Comment


                            #14
                            write here is better, yes fot head and who recenter VR ? i use oculus rift and touch

                            Comment


                              #15
                              i would like make elevator in VR but elevator don't work
                              Attached Files

                              Comment

                              Working...
                              X