Exemplo n.º 1
0
 public House3DScene(HouseRenderState state)
 {
     this.RenderState = state;
     this.Camera = (OrthographicCamera)state.Camera;
     this.Components = new List<House3DComponent>();
 }
Exemplo n.º 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);
        }