HI Shlomo,
I've updated two functions from OpenNI.net sample called "UserTracker.net", I've placed them below;
void skeletonCapbility_CalibrationEnd(ProductionNode node, uint id, bool success)
{
if (success)
{
this.skeletonCapbility.StartTracking(id);
this.joints.Add(id, new Dictionary<SkeletonJoint, SkeletonJointPosition>());
// Save Data For Each User
if (!skeletonCapbility.IsCalibrationData(id))
skeletonCapbility.SaveCalibrationData(id, id);
}
else
{
this.poseDetectionCapability.StartPoseDetection(calibPose, id);
}
}
void userGenerator_NewUser(ProductionNode node, uint id)
{
// Load Calibration Data if any exists
if (skeletonCapbility.IsCalibrationData(id))
{
skeletonCapbility.LoadCalibrationData(id, id);
this.skeletonCapbility.StartTracking(id);
this.joints.Add(id, new Dictionary<SkeletonJoint, SkeletonJointPosition>());
}
else
this.poseDetectionCapability.StartPoseDetection(this.calibPose, id);
}
Not sure if I'm doing it right but I don't think it really did a whole lot to be honest.... Can't wait for Microsoft's official SDK with user profiles activated by facial recognition, BOOM!
Regards,
Mark.