Exemple #1
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("DynamicBoneCount", true, out subEle);
            subEle.Value = DynamicBoneCount.ToString();

            WriteUnused1XML(ele, master);

            ele.TryPathTo("FeedbackEnabled", true, out subEle);
            subEle.Value = FeedbackEnabled.ToString();

            ele.TryPathTo("FootIKEnabled", true, out subEle);
            subEle.Value = FootIKEnabled.ToString();

            ele.TryPathTo("LookIKEnabled", true, out subEle);
            subEle.Value = LookIKEnabled.ToString();

            ele.TryPathTo("GrabIKEnabled", true, out subEle);
            subEle.Value = GrabIKEnabled.ToString();

            ele.TryPathTo("PoseMatching", true, out subEle);
            subEle.Value = PoseMatching.ToString();

            WriteUnused2XML(ele, master);
        }
Exemple #2
0
        public PoseMatchingPage()
        {
            InitializeComponent();

            _sensor = KinectSensor.GetDefault();

            if (_sensor != null)
            {
                _sensor.Open();

                _reader = _sensor.OpenMultiSourceFrameReader(FrameSourceTypes.Color | FrameSourceTypes.Depth | FrameSourceTypes.Infrared | FrameSourceTypes.Body);
                _reader.MultiSourceFrameArrived += Reader_MultiSourceFrameArrived;

                _matching = new PoseMatching
                {
                    CheckHead     = false,
                    CheckLegLeft  = false,
                    CheckLegRight = false,
                    CheckArmLeft  = true,
                    CheckArmRight = true,
                    CheckSpine    = false
                };

                _mode = ViewMode.Capture;
            }
        }