tuatec / TTToolbox

TTToolbox provides useful helper scripts to automate your character integration workflows in Unreal Engine
MIT License
107 stars 29 forks source link

ik rig constraint solver setup issue #10

Closed AchimTuran closed 2 years ago

AchimTuran commented 2 years ago

How i get this working ik bone [Tested not in Real Project] workinginIKRIG s

Download https://github.com/tuatec/TTToolbox/files/9116670/TTToolbox_v0.4_UE5.0.0_win64_4.zip plugin Add C++ Support made class of c++ Build Project Open Skeleton of Meta-human and create a Virtual bone Root only for avoid crash engine. Create Unweighted Bones Create Virtual Bone First Follow the Video for https://www.youtube.com/watch?v=8WnbbtxqCCw&list=PLslFX7TZAr89enRHIfJwUJJ_hJV8wX_8v&index=4 https://www.youtube.com/watch?v=DEpwDjWY2wI&list=PLslFX7TZAr89enRHIfJwUJJ_hJV8wX_8v&index=5

Create New IK Rig of Metahuman and create a New Bone Chain Delete The followed IK Bones chains Not delete Head Chain only IK bones chains be deleted canideletethis

_((ConstraintBone="root",ModifiedBone="ik_foot_root"), (ConstraintBone="foot_l",ModifiedBone="ik_foot_l"), (ConstraintBone="foot_r",ModifiedBone="ik_foot_r"), (ConstraintBone="root",ModifiedBone="ik_hand_root"), (ConstraintBone="hand_r",ModifiedBone="ik_hand_gun"), (ConstraintBone="hand_r",ModifiedBone="ik_hand_r"), (ConstraintBone="hand_l",ModifiedBone="ik_hand_l"), (ConstraintBone="ik_foot_l",ModifiedBone="VB ik_foot_l_Offset"), (ConstraintBone="ik_foot_r",ModifiedBone="VB ik_foot_r_Offset"), (ConstraintBone="ik_hand_gun",ModifiedBone="VB RHS_ik_hand_gun"), (ConstraintBone="ik_hand_gun",ModifiedBone="VB LHS_ik_hand_gun"), (ConstraintBone="hand_l",ModifiedBone="VB RHS_ik_hand_l"), (ConstraintBone="hand_r",ModifiedBone="VB LHS_ik_hand_r"), (ConstraintBone="calf_l",ModifiedBone="VB ik_knee_target_l"), (ConstraintBone="calf_r",ModifiedBone="VB ik_knee_target_r"), (ConstraintBone="root",ModifiedBone="VB Curves"), (ConstraintBone="ik_foot_l",ModifiedBone="VB foot_target_l"), (ConstraintBone="ik_foot_r",ModifiedBone="VB foot_targetr"))

Final Result

workinginIKRIG

AchimTuran commented 2 years ago

@lakkyhb Please let us use this issue to resolve your not working setup.

I don't like to mix feature development with issue reporting/analyzing and fixing.

AchimTuran commented 2 years ago

I do have the following questions:

  1. Did you follow this video? https://youtu.be/DEpwDjWY2wI that's how I setup the constraint solver.
  2. ik bone chains need to be deleted, as we handle them with the solver, this did not work?
  3. Did you close and reopen the ik rig asset? As we have seen in the video somehow Unreal Engine does not update the settings properly ...
AchimTuran commented 2 years ago

Open Skeleton of Meta-human and create a Virtual bone Root only for avoid crash engine. This step should not be needed anyore, as I reworked the code a little bit and made it more stable.

AchimTuran commented 2 years ago

It seems to be that the bone constraint string is not correct, see grafik

((ConstraintBone="root",ModifiedBone="ik_foot_root"),(ConstraintBone="foot_l",ModifiedBone="ik_foot_l"),(ConstraintBone="foot_r",ModifiedBone="ik_foot_r"),(ConstraintBone="root",ModifiedBone="ik_hand_root"),(ConstraintBone="hand_r",ModifiedBone="ik_hand_gun"),(ConstraintBone="hand_r",ModifiedBone="ik_hand_r"),(ConstraintBone="hand_l",ModifiedBone="ik_hand_l"),(ConstraintBone="ik_foot_l",ModifiedBone="VB ik_foot_l_Offset"),(ConstraintBone="ik_foot_r",ModifiedBone="VB ik_foot_r_Offset"),(ConstraintBone="ik_hand_gun",ModifiedBone="VB RHS_ik_hand_gun"),(ConstraintBone="ik_hand_gun",ModifiedBone="VB LHS_ik_hand_gun"),(ConstraintBone="Hand_L",ModifiedBone="VB RHS_ik_hand_l"),(ConstraintBone="hand_r",ModifiedBone="VB LHS_ik_hand_r"),(ConstraintBone="calf_l",ModifiedBone="VB ik_knee_target_l"),(ConstraintBone="calf_r",ModifiedBone="VB ik_knee_target_r"),(ConstraintBone="root",ModifiedBone="VB Curves"),(ConstraintBone="ik_foot_l",ModifiedBone="VB foot_target_l"),(ConstraintBone="ik_foot_r",ModifiedBone="VB foot_target_r"))
AchimTuran commented 2 years ago

For me the issue is solved. If you still have issues feel free to reopen and we can have a look at it again. 😉