Open MehranRastegarSani opened 4 weeks ago
Hi, please let us know if you wish to use the tracking values directly, or if you want to use rotations in a preexisting scene.
For retargeting scene or for a retargeted character, navigate to RetargetingLayer.cs
and delete all "Body Section To Position" entries for upper body characters or "Full Body Section To Position" entries for full body characters. Navigate to the same component's Retargeting Processors, and turn down the weights for those entries as they correct based on positions. Furthermore, under the "Rig" of the character turn down the "Weight" of FullBodyDeformationConstraint
as well.
Please let us know if those instructions help or if you are looking to use the tracking values directly.
Thank you so much for the instructions. I will try them and let you know. In part of my project, I also need to compare the arm position ( wrist, elbow and shoulder) with a pre-captured animated avatar. So, I think It would be very beneficial if I could directly access the tracking value. Could you please explain how I can access the tracking value?
Each class that inherits from OVRSkeleton.cs
whether that is OVRCustomSkeleton.cs
or RetargetingLayer.cs
, has a public Bones
array that can be indexed by BoneId
. You can access it via FullBody_LeftHandWrist
for instance to access that OVRBone
's Tranform
field to easily access world space values.
You can also access OVRBody
's GetSkeletonPoseData
(which OVRSkeleton
uses) in case you want values closer to what the tracker provides, however you have to do some conversion as you can see in OVRSkeleton
's UpdateSkeleton
function. For instance, it relies on FromFlippedZVector3f
and FromFlippedZQuatf
, and those values are local to the skeleton that they belong to.
Hi, Thanks for your great contribution.
I want to know if it is possible to use this SDK to update only the avatar rotation based on the user. I want to update the avatar position based on another object, not based on the user's position. To do this, I need to disable tracking and updating positions while using this SDK. Could you please guide me on how I can do this?