Example #1
0
        /// <summary>
        /// Setup the 3D world
        /// </summary>
        protected void Init3DWorld()
        {
            //Camera, default to a random position, when we load the lot it will change
            var cameraPosition = new Vector3(0, 0, 0);
            var cameraTarget   = new Vector3(0, 0, 0);

            Camera = new OrthographicCamera(GameFacade.GraphicsDevice, cameraPosition, cameraTarget, Vector3.Up);
            //We have to squish the output vertically a bit so that tiles are twice as wide as they are tall.
            Camera.AspectRatioMultiplier = 0.96f;//0.95567f;
            RenderState.Camera           = Camera;

            Scene3D = new House3DScene(RenderState);
        }
Example #2
0
        /// <summary>
        /// Setup the 3D world
        /// </summary>
        protected void Init3DWorld()
        {
            //Camera, default to a random position, when we load the lot it will change
            var cameraPosition = new Vector3(0,0,0);
            var cameraTarget = new Vector3(0,0,0);
            Camera = new OrthographicCamera(GameFacade.GraphicsDevice, cameraPosition, cameraTarget, Vector3.Up);
            //We have to squish the output vertically a bit so that tiles are twice as wide as they are tall.
            Camera.AspectRatioMultiplier = 0.96f;//0.95567f;
            RenderState.Camera = Camera;

            Scene3D = new House3DScene(RenderState);
        }