コード例 #1
0
ファイル: UISim.cs プロジェクト: Blayer98/Project-Dollhouse
        public UISim()
        {
            Camera = new BasicCamera(GameFacade.GraphicsDevice, new Vector3(0.0f, 7.0f, -17.0f), Vector3.Zero, Vector3.Up);
            Scene = new _3DScene(GameFacade.Game.GraphicsDevice, Camera);
            Scene.ID = "UISim";

            GameFacade.Game.GraphicsDevice.DeviceReset += new EventHandler(GraphicsDevice_DeviceReset);

            Avatar = new AdultSimAvatar();
            Avatar.Scene = Scene;
            Avatar.Scale = new Vector3(0.45f);
            Scene.Add(Avatar);

            GameFacade.Scenes.AddExternal(Scene);

            //SimRender = new SimRenderer();
            //SimRender.ID = "SimRender";

            //SimScene = new ThreeDScene();
            //SimScene.ID = "SimScene";
            //SimScene.Camera =
            //SimScene.Add(SimRender);
            //GameFacade.Scenes.AddScene(SimScene); //Why the %&(¤%( was this commented out? LET STAY!!

            ///** Default settings **/
            //SimRender.Scale = new Vector3(0.45f);
            ////SimRender.RotationX = (float)MathUtils.DegreeToRadian(5);
            ////SimRender.RotationX = (float)MathUtils.DegreeToRadian(RotationStartAngle);
            ////
            ////var scene = new TSOClient.ThreeD.ThreeDScene();
            ////scene.Add(a);
            //GameFacade.Scenes.AddExternalScene(SimScene);
        }
コード例 #2
0
        public VMAvatar()
            : base(Content.Get().WorldObjects.Get(TEMPLATE_PERSON))
        {
            WorldUI = new AvatarComponent();

            Avatar = new AdultSimAvatar();
            Avatar.Head = Content.Get().AvatarOutfits.Get("mah108_apallo.oft");
            Avatar.Body = Content.Get().AvatarOutfits.Get("mab011_lsexy.oft");

            WorldUI.Avatar = Avatar;
        }
コード例 #3
0
ファイル: UISim.cs プロジェクト: sector-c/Project-Dollhouse
        public UISim()
        {
            Camera = new BasicCamera(GameFacade.GraphicsDevice, new Vector3(0.0f, 7.0f, -17.0f), Vector3.Zero, Vector3.Up);
            Scene = new _3DScene(GameFacade.Game.GraphicsDevice, Camera);
            Scene.ID = "UISim";

            GameFacade.Game.GraphicsDevice.DeviceReset += new EventHandler(GraphicsDevice_DeviceReset);

            Avatar = new AdultSimAvatar();
            Avatar.Scene = Scene;
            Avatar.Scale = new Vector3(0.45f);
            Scene.Add(Avatar);

            GameFacade.Scenes.AddExternal(Scene);
        }
コード例 #4
0
ファイル: Vitaboy.cs プロジェクト: Blayer98/Project-Dollhouse
        private void outfitLoadBtn_Click(object sender, EventArgs e)
        {
            var outfit = ((IContentReference<Outfit>)outfitList.SelectedItem).Get();
            if (outfit == null) { return; }

            if (Avatar == null)
            {
                Avatar = new AdultSimAvatar();
            }
            var content = Content.Get();
            if (outfit.Region == 0)
            {
                /** Head **/
                Avatar.Head = outfit;
            }
            else
            {
                Avatar.Body = outfit;
            }
            SetPreview(Avatar);
        }