Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skeleton not move #32

Open
DatanIMU opened this issue Dec 2, 2023 · 2 comments
Open

Skeleton not move #32

DatanIMU opened this issue Dec 2, 2023 · 2 comments

Comments

@DatanIMU
Copy link

DatanIMU commented Dec 2, 2023

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 DatanIMU closed this as completed Dec 2, 2023
@DatanIMU DatanIMU reopened this Dec 5, 2023
@DatanIMU
Copy link
Author

DatanIMU commented Dec 5, 2023

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
Copy link
Owner

maybites commented Dec 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants