Announcement

Collapse
No announcement yet.

VR IK Body - Support

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

    #46
    I've noticed working with my own model, that the wrist twists around the like a balloon animal balloon. Is the rotation of the forearm weighted in rotation at all?

    Comment


      #47
      Originally posted by YuriNK View Post
      Hmm, it must be something simple. Can you show your skeleton bones hierarchy and output log?
      This are the bones hierarchy of our skeleton and the output log. I think that the warning about the iktranslator in the log is the key but i cant find why its giving it.
      Attached Files

      Comment


        #48
        Originally posted by Xperiencia View Post
        This are the bones hierarchy of our skeleton and the output log. I think that the warning about the iktranslator in the log is the key but i cant find why its giving it.
        Look like log is incomplete: I don't see warnings here. Are you sure it was warning, not error? There could be a few possible errors and only one warning if the plugin uses first actor's skeletal mesh component instead of specified, but invalid ControlledSkeletalMesh in Initialize(...) call.

        1) If you set master component for head mesh in the player pawn's construct script, try to turn it off.
        2) Make sure you apply anim blueprint to body mesh, not head.
        3) Check if returned PoseSnapshot variable IsValid.
        4) Can you show components hierarchy in the player pawn blueprint?
        Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
        Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
        And random stuff at Youtube

        Comment


          #49
          Originally posted by YuriNK View Post
          Look like log is incomplete: I don't see warnings here. Are you sure it was warning, not error? There could be a few possible errors and only one warning if the plugin uses first actor's skeletal mesh component instead of specified, but invalid ControlledSkeletalMesh in Initialize(...) call.

          1) If you set master component for head mesh in the player pawn's construct script, try to turn it off.
          2) Make sure you apply anim blueprint to body mesh, not head.
          3) Check if returned PoseSnapshot variable IsValid.
          4) Can you show components hierarchy in the player pawn blueprint?
          1) I tried with it turned off and the behavior of the pawn is the same
          2) I checked it again and its ok
          3) It seems like in the anim blueprint the variable isValid of PoseSnapshot is always false
          4)

          Attached Files

          Comment


            #50
            Originally posted by Xperiencia View Post

            1) I tried with it turned off and the behavior of the pawn is the same
            2) I checked it again and its ok
            3) It seems like in the anim blueprint the variable isValid of PoseSnapshot is always false
            4)
            What exactly warning message to you see in log? Try to remove head mesh at all. if Posesnapshot is invalid after calibration, I think it tries to use head mesh instead of body mesh for some unknown reason.
            Last edited by YuriNK; 01-08-2018, 06:58 AM.
            Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
            Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
            And random stuff at Youtube

            Comment


              #51
              Originally posted by majieric View Post
              I've noticed working with my own model, that the wrist twists around the like a balloon animal balloon. Is the rotation of the forearm weighted in rotation at all?
              Twist bones aren't animated, they don't rotate by default. But you can manually add twists rotation. Here is an examle for one bone. unfortunately, I can't test it right now.
              1) in InitializeAnimation in the anim blueprint: https://pp.userapi.com/c841429/v8414...1TByDQsflU.jpg
              2) in UpdateAnimation (every tick): https://pp.userapi.com/c841429/v8414...N37V6GWT0w.jpg
              3) https://pp.userapi.com/c841429/v8414...AMkIH3_fM4.jpg
              4) https://pp.userapi.com/c841429/v8414...zhQNP62GoE.jpg
              Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
              Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
              And random stuff at Youtube

              Comment


                #52
                Originally posted by YuriNK View Post

                What exactly warning message to you see in log? Try to remove head mesh at all.
                I tried removing the head and it continues doing the same thing.

                also this is the warning, it only appears when i launch the project:
                LogScript: Warning: Accessed None trying to read property IKTranslator
                SK_MannequinTPOSE_Skeleton_AnimBlueprint_C /Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel.VRPawn_507.SM_Body.SK_MannequinTPOSE_Skeleton_AnimBlueprint_C_0
                Function /Game/test/UE4_Mannequin/SK_MannequinTPOSE_Skeleton_AnimBlueprint.SK_MannequinTPOSE_Skeleton_AnimBlueprint_C:ExecuteUbergraph_SK_MannequinTPOSE_Skeleton_AnimBlueprint:0292

                For what i've seen the isValid node with "Try get pawn owner" in the anim blueprint is going invalid all the time

                Comment


                  #53
                  Originally posted by Xperiencia View Post
                  For what i've seen the isValid node with "Try get pawn owner" in the anim blueprint is going invalid all the time
                  Oh, it's really werid. Are you sure yo changed anim blueprint watching from Preview object to active player pawn after launch?
                  Idea No 1: have you tried to import your skeletal mesh to my demo project and use it instead of Mannequin?
                  Idea No 2: upload your test project to dropbox or google drive and send me (ykasczc@gmail.com) a link for in-place debugging
                  Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
                  Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
                  And random stuff at Youtube

                  Comment


                    #54
                    Originally posted by YuriNK View Post
                    Oh, it's really werid. Are you sure yo changed anim blueprint watching from Preview object to active player pawn after launch?
                    Idea No 1: have you tried to import your skeletal mesh to my demo project and use it instead of Mannequin?
                    Idea No 2: upload your test project to dropbox or google drive and send me (ykasczc@gmail.com) a link for in-place debugging
                    I tried with your demo project and it works fine. Now i will send you an email with a link to the project so you can debug it. And thanks for all the attention you are giving, we really apreciate it.

                    Comment


                      #55
                      Was hoping you might be able to help, when I import the player mesh (without head) and use that in the motioncontroller, the arms and body are not detected, just the body rotates as I turn but it is 90 degrees turned to the side. If I rotate it in the viewport it still aligns incorrectly as well.

                      I've adjusted the bones in the translator setup to use the bone names of the headless mesh and followed through the video tutorial a couple of times so am pretty sure I've set it up correctly.

                      Any ideas? See log errors below

                      Thanks.


                      xampleMap_C' with ClassGeneratedBy '/Game/ThirdPersonBP/Maps/ThirdPersonExampleMap.ThirdPersonExampleMap:PersistentLevel.ThirdPersonExampleMap'
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogScript: Warning: Accessed None trying to read property IKTranslator
                      man1Head_Skeleton_AnimBlueprint_C /Engine/Transient.World_4:PersistentLevel.MotionControllerPawn_C_0.SM_Body.man1Head_Skeleton_AnimBlueprint_C_3
                      Function /Game/football/playerMan/man1Head_Skeleton_AnimBlueprint.man1Head_Skeleton_AnimBlueprint_C:ExecuteUbergraph_man1Head_Skeleton_AnimBlueprint:018F
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogSkinnedMeshComp: Warning: GetBoneTransform : ParentBoneIndex(0) out of range of MasterPoseComponent->SpaceBases for SM_Head
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Component isn't ready.
                      LogVRIKSkeletalMeshTranslator: Error: [GetLastPose]: Comp
                      Last edited by Yummy-Vegetables; 01-09-2018, 07:05 AM.

                      Comment


                        #56
                        Originally posted by Yummy-Vegetables View Post
                        Was hoping you might be able to help, when I import the player mesh (without head) and use that in the motioncontroller, the arms and body are not detected, just the body rotates as I turn but it is 90 degrees turned to the side. If I rotate it in the viewport it still aligns incorrectly as well.

                        I've adjusted the bones in the translator setup to use the bone names of the headless mesh and followed through the video tutorial a couple of times so am pretty sure I've set it up correctly.

                        Any ideas? See log errors below
                        Hi,

                        Make sure that body's skeletal mesh component in the player object located at the scene (not just in the blueprint) has proper anim blueprint.

                        And can you also make a screenshots of player pawn blueprint (viewport, components hierarchy, VRIKBody and VRIKTranslator settings) and bones hierarchy in the skeletal mesh?
                        Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
                        Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
                        And random stuff at Youtube

                        Comment


                          #57
                          I redid the configuration from the start as I think there's an editor bug as the anim BP was not being run (breakpoints and print to screens were not run) even though it was specified in the Viewport.

                          Ok so now I have the arms and body moving but the legs are distorted and angled up into the body. The translation of bones is correct. Suggestions?

                          Another thing Iam finding the arms don't straighten out they are always bent no matter how far I extend the hands away from the body in the T pose
                          Attached Files
                          Last edited by Yummy-Vegetables; 01-09-2018, 11:12 AM.

                          Comment


                            #58
                            Originally posted by Yummy-Vegetables View Post
                            Ok so now I have the arms and body moving but the legs are distorted and angled up into the body. The translation of bones is correct. Suggestions?

                            Another thing Iam finding the arms don't straighten out they are always bent no matter how far I extend the hands away from the body in the T pose
                            I think I know what cause the problem, but I need to make some changes in the plugin's code to fix it. Just for a case can you send a screenshot with bones orientation (like here, but for your skeletal mesh: https://pp.userapi.com/c840620/v8406...y6YGq4NEWw.jpg).

                            For now you can use this temporary solution:
                            Anim blueprint event graph: https://pp.userapi.com/c840620/v8406..._m0ZC4ukuU.jpg
                            Anim blueprint anim graph: https://pp.userapi.com/c840620/v8406...VWi2hAlcQo.jpg

                            Hands are always bent, yes. I can't predict ribcage and shoulders rotation accurate enough without additional tracking devices. At the other hand, plugin must keep hand palms exactly in a position of motion controllers. So I slightly overscale hands to make sure palms always can reach controller's location despite some error in ribcage position and rotation. This screenshot from an early version of the plugin demonstrates it well: https://pp.userapi.com/c840335/v8403...6ANdWEqNg8.jpg
                            Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
                            Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
                            And random stuff at Youtube

                            Comment


                              #59
                              Originally posted by Major Mints
                              Would it be possible to have the pawn respond to uneven terrain and have a gravity component. if so what is a good way to go about this?
                              The plugin can detect the ground beneath, see https://youtu.be/Vmyi0jQinh4?t=2m7s after 2:00. You can simply use default CharacterMovement component with gravity enabled. The plugin will detect when ground is too far (i.e. player is falling/jumping).

                              Settings:
                              Stand-alone mocap app for Vive Trackers: vrmocapstudio.com
                              Marketplace: Vive Mocap Kit / Fingers Solver / VR IK Body Solver / Subtitles to LipSync / Dialogue System with Character Animation
                              And random stuff at Youtube

                              Comment


                                #60
                                Thanks for replying, I'll try out the workaround in a bit. Heres the screen prints requested:

                                Attached Files

                                Comment

                                Working...
                                X