/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { chopper = Content.Load <Model>("Chopper"); //Matrix viewMatrix = Matrix.CreateLookAt(new Vector3(60, 80, -80), new Vector3(0, 0, 0), new Vector3(0, 1, 0)); //Matrix projectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, GraphicsDevice.Viewport.AspectRatio, 1.0f, 300.0f); //CameraComponent cc = new CameraComponent(entityId, viewMatrix, projectionMatrix); HeightMapBuilder heightMap = new HeightMapBuilder() .SetHeightMapTextureData(Content.Load <Texture2D>("US_Canyon"), Content.Load <Texture2D>("sand")) .SetHeights() .SetVertices() .InitNormal() .SetIndices() .SetEffects(graphics.GraphicsDevice) .Build(); CreateEntities(); cameraSystem.SetCameraView(); }