Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        private void Vitaboy_Load(object sender, EventArgs e)
        {
            Content.Init(@"C:\Program Files\Maxis\The Sims Online\TSOClient\", canvas.GraphicsDevice);

            var content = Content.Get();
            foreach (var binding in content.AvatarBindings.List()){
                bindingsList.Items.Add(binding);
            }

            foreach (var outfit in content.AvatarOutfits.List()){
                outfitList.Items.Add(outfit);
            }

            foreach (var animation in content.AvatarAnimations.List()){
                animationsList.Items.Add(animation);
            }

            _3D = new _3DLayer();
            Camera = new BasicCamera(canvas.GraphicsDevice, new Vector3(10.0f, 10.0f, 10.0f), new Vector3(5.0f, 5.0f, 5.0f), Vector3.Up);
            Scene = new _3DScene(canvas.GraphicsDevice, Camera);
            _3D.Add(Scene);
            canvas.Screen.Add(_3D);

            Animator = new Animator();
            Scene.Add(Animator);

            int y = 22;
        }