0 votes
asked in VRIK by

Hey,

Currently, I am trying to use VRIK to drive a full body avatar. I've been using your VRIK controller calibration script from your example scene and the script works as intended with some real time changes to arm/head positions to match up the limb positions.

I have two questions:

  • Do you have any recommendations for a more universal calibration cycle using the controller calibrations? I played around with the settings but it seems I would always need some real time dragging of limbs.
  • My scene includes a person stepping up onto a block in the scene. This block physically exists in the real world play space, I matched the size/position of the block using optitrack markers so it should be fairly accurate between the real world and the unity scene. The avatar seems to always glitch out when the person physically changes elevation from ground to the block for e.g. legs stay on the ground, waist position on the feet, head moves into the body, etc. Is there any offsets I can add or a script that you suggest to allow my avatar to transition from the ground to the elevated platform?

Kind regards,

Howe

1 Answer

0 votes
answered by (16.3k points)
Hey,

1. If you always need to make manual adjustments on top of the calibration, I'd recommend you to automate them, run a script after the calibration that adjusts the localPosition/Rotation of the IK targets or whatever it was you needed to adjust, like this:

// Run the calibration, then just call this:

ik.solver.leftLeg.target.localRotation = Quaternion.Euler(leftFootTargetLocalRot);

...with leftFootTargetLocalRot being the Rotation value of the left foot target Transform after you had manually rotated it to your liking.

About the stepping up onto a block, if that glitch happens, does it help if you move the root of the avatar up to the block level? Sorry, haven't seen this issue before, would it be possible for you to record a video of that glitch please?

Best,

Pärtel
commented by
Hey Pärtel,

Thanks for the response. I'll give the calibration script a shot thanks.

For the elevation, I have recorded a video (https://youtu.be/mcAFZMPc4no). I took abit longer calibrating the limb positions which seems to have improved the greatly improve the quality. Theres some glitches at 8s, 24s, and 42s. I found that calibrating the avatar on the platform stops these glitches but the transitioning still would have similar problems. Would there be anything I can do to improve this?

Kind regards,

Howe
commented by
A follow-up finding. After testing the processing of doing the calibrations on the elevated platform. It seems to not work anymore. It makes the avatar size much larger as seen at the start of https://youtu.be/KWw8GfrvmNE.

Kind regards,

Howe

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.

...