public OpenGLControl() { camera = new Camera(new Spherical(8f, (float)Math.PI / 4,(float) Math.PI / 2)); //camera = new GhostCamera(); //projMatrix = Matrix4.CreateOrthographicOffCenter(-10f, 10f, -10f, 10f, 0.0001f, 10000f); projMatrix = Matrix4.CreatePerspectiveFieldOfView(1f, this.Width / this.Height, 1f, 100f); zoomMatrix = camera.lookAt(); }
public OpenGLControl() { camera = new SphericalCamera(new Spherical(8, (float)Math.PI / 2, 0)); projMatrix = Matrix4.CreatePerspectiveFieldOfView(0.7f, this.Width / this.Height, 0.15f, 100f); zoomMatrix = camera.lookAt(); refreshTimer.Interval = 20; refreshTimer.Elapsed += new ElapsedEventHandler(refreshTimer_Elapsed); }