HelmutG wrote:
digitalsummer07 wrote:
I would like my model to appear in a standing position with the feet stepping on the ground, 'cause everytime I load the program it happened to be the half of the model's body only displayed. Is it something that can be easily fixed?
Yes. The models position is determined by the pelvis body of the ragdoll. If you don't have any Kinect data yet, then the pelvis body is probably positioned at position 0 = on the floor. You have to position the pelvis body manually until Kinect data arrives.
digitalsummer07 wrote:
Another concern though, I already have my model manipulate the user's action but it seems that the shoulders not rasing to the extent, eventhough in the skeleton displayed on the right portion of the program the shoulders together with the hands were extend upwards my model only moves his forearms, and hands but not reaching the same level as compared to the skeleton.
Visualize the skeleton of the model and compare it to the Kinect skeleton (which is already visualized). If the model skeleton is different from the Kinect skeleton, then you might have to apply a scale to either the Kinect skeleton or your model's skeleton. Maybe it helps to attach the "Marionette joints" to other parts of the skeleton. Or maybe you need to tweak the joint settings (e.g. MaxForce).
If your skeleton is very, very different from the Kinect skeleton, then it might be better to map the Kinect skeleton to the model skeleton using the SkeletonMapper class (see skeleton mapping sample in the CharacterAnimationSample solution).
Thanks again for the reply..
You said that I need to position the pelvis body manually to position the model above the ground. I thought of replacing this value instead of 0 to other values:
var newPose = new Pose(_kinectSkeletonPose.GetBonePoseAbsolute(0).Translation) * new Pose(_ragdollSkeletonPose.Skeleton.GetBindPoseRelative(1).Rotation.Inverse);
Am I on the right track on this?
Also, how can I set the position of the model joints on the center so that it won't overlap to the kinect joints?
Also, the lower joints like the knees, leg joints doesn't go along with the skeleton as well. How can the marionette approach help?
Thanks a bunch :)