Issues with Unity Plug-In - angles translating incorrectly
Posted: Mon Nov 27, 2017 3:54 am
We are attempting to stream skeleton data from Motive (1.5.0) to Unity (5.4.5p5) using the Unity Plugin (1.0.1).
To get it working, we found that we needed to modify OptitrackSkeletonAnimator.cs, in the CacheBoneNameMap method to change the connector in the bone names from underbars to dashes. (Example: changed assetName + "_Hip" to assetName + "_Hip".)
With that change the Ethan character in Unity appears to be moving the correct joints, but the angles are wrong. For example, dropping arms from a t-pose in Motive will become an upward curl in Unity.
Has anyone had similar issues? Any suggestions for where we can start to look for a correction?
To get it working, we found that we needed to modify OptitrackSkeletonAnimator.cs, in the CacheBoneNameMap method to change the connector in the bone names from underbars to dashes. (Example: changed assetName + "_Hip" to assetName + "_Hip".)
With that change the Ethan character in Unity appears to be moving the correct joints, but the angles are wrong. For example, dropping arms from a t-pose in Motive will become an upward curl in Unity.
Has anyone had similar issues? Any suggestions for where we can start to look for a correction?