NodeOSC icon indicating copy to clipboard operation
NodeOSC copied to clipboard

Skeleton not move

Open DatanIMU opened this issue 2 years ago • 2 comments

11111

I use QUATERNION to work with NodeOSC, but the skeleton not moving. Could you help me check it?

below is my code: vmcClient.Send("/VMC/Ext/Bone/mode", "RightUpperLeg", "QUATERNION"); vmcClient.Send("/VMC/Ext/Bone/mode", "RightLowerLeg", "QUATERNION"); vmcClient.Send("/VMC/Ext/Bone/mode", "RightFoot", "QUATERNION");

vmcClient.Send("/VMC/Ext/Bone/Pos", "RightUpperLeg", 0.0f, 0.0f, 0.0f, vmcAnimator.udpRoration[(int)vmcBone.RightUpperLeg].x, vmcAnimator.udpRoration[(int)vmcBone.RightUpperLeg].y, vmcAnimator.udpRoration[(int)vmcBone.RightUpperLeg].z, vmcAnimator.udpRoration[(int)vmcBone.RightUpperLeg].w); vmcClient.Send("/VMC/Ext/Bone/Pos", "RightLowerLeg", 0.0f, 0.0f, 0.0f, vmcAnimator.udpRoration[(int)vmcBone.RightLowerLeg].x, vmcAnimator.udpRoration[(int)vmcBone.RightLowerLeg].y, vmcAnimator.udpRoration[(int)vmcBone.RightLowerLeg].z, vmcAnimator.udpRoration[(int)vmcBone.RightLowerLeg].w); vmcClient.Send("/VMC/Ext/Bone/Pos", "RightFoot", 0.0f, 0.0f, 0.0f, vmcAnimator.udpRoration[(int)vmcBone.RightFoot].x, vmcAnimator.udpRoration[(int)vmcBone.RightFoot].y, vmcAnimator.udpRoration[(int)vmcBone.RightFoot].z, vmcAnimator.udpRoration[(int)vmcBone.RightFoot].w);

DatanIMU avatar Dec 02 '23 11:12 DatanIMU

1212png

"/VMC/Ext/Root/Pos", 0.0f, 0.0f, 0.0f, -qHips.x, qHips.y, -qHips.z, -qHips.w

qHips is in unity‘s coordinate.

When I change qHips, the avatar move Very strange.

Could you give me one hand?

DatanIMU avatar Dec 05 '23 12:12 DatanIMU

The individual bones local orientation is probably different than what your mocap system assumes.

maybites avatar Dec 05 '23 12:12 maybites