Esempio n. 1
0
        public DressModel CreateDress(DressTypes aDressType, string XAMLFile, string GeometryID = GeometryIDStr, string MaterialID = MaterialIDStr, string TransformID = TransformIDStr, string SceneID = SceneIDStr)
        {
            DressModel aDress = new DressModel(XAMLFile);

            aDress.DressType = aDressType;
            VFRWindow.Resources.MergedDictionaries.Add(aDress.DressResource);
            aDress.CreateModel(GeometryID, MaterialID, TransformID, SceneID);
            aDress.SetCamera(new Point3D(0, 3.1, 3.5), 25);
            Dresses.Add(aDressType, aDress);
            return(aDress);
        }
Esempio n. 2
0
        private void KinectVFR_OnKinectRotateEvent(double aValue)
        {
            if (CurrentDress <= DressTypes.Naked)
            {
                return;
            }
            DressModel aDress = DressGroup1.Dresses[CurrentDress];

            aDress.SetCamera(aDress.DressCamera.Position, aDress.DressCamera.FieldOfView);
            aDress.Rotate(aValue);
        }
Esempio n. 3
0
        private void KinectVFR_OnKinectTranslateEvent(Point3D NewPosition)
        {
            if (CurrentDress <= DressTypes.Naked)
            {
                return;
            }
            DressModel aDress = DressGroup1.Dresses[CurrentDress];

            aDress.Margin = new Thickness(NewPosition.X - aDress.Width / 2, NewPosition.Y,
                                          VideoStreamGrid.Width - NewPosition.X - 10 - aDress.Width / 2,
                                          VideoStreamGrid.Height - NewPosition.Y - aDress.Height);
        }
Esempio n. 4
0
        public void CreateDressCollection()
        {
            DressModel aDress = CreateDress(DressTypes.Floral24, CurPath + "\\Dresses\\Floral24.xaml");

            aDress.Height         = 326;
            aDress.DressSizeRatio = aDress.Height / aDress.Width;
            aDress.SetCamera(new Point3D(0, 2.77, 1.7), 39);

            aDress = CreateDress(DressTypes.Floral27, CurPath + "\\Dresses\\Floral27.xaml");
            aDress.SetCamera(new Point3D(0, 3.02, 1.6), 39);

            aDress = CreateDress(DressTypes.Floral30, CurPath + "\\Dresses\\Floral30.xaml");
            aDress.SetCamera(new Point3D(0, 3.09, 1.55), 39);

            aDress = CreateDress(DressTypes.Floral33, CurPath + "\\Dresses\\Floral33.xaml");
            aDress.SetCamera(new Point3D(0, 3.05, 1.54), 39);

            aDress = CreateDress(DressTypes.Floral79, CurPath + "\\Dresses\\Floral79.xaml");
            aDress.SetCamera(new Point3D(0, 3.33, 1.12), 39);
            aDress.ScaleFactor = 1.1f;
        }