maybites / NodeOSC

blender OSC addon to be used with nodes
GNU General Public License v3.0
123 stars 18 forks source link

Skeleton not move #32

Open DatanIMU opened 11 months ago

DatanIMU commented 11 months ago

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 commented 11 months ago

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?

maybites commented 11 months ago

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