protected override void Initialise() { //draw targets usually need a camera. Camera3D camera = new Camera3D(); //look at the sphere, which will be at 0,0,0. Look from 0,0,4 camera.LookAt(Vector3.Zero, new Vector3(0, 0, 4), Vector3.UnitY); //create the draw target. drawToScreen = new DrawTargetScreen(this, camera); drawToScreen.ClearBuffer.ClearColour = Color.CornflowerBlue; //create the sphere at 0,0,0 SphereDrawer sphere = new SphereDrawer(Vector3.Zero); //add it to be drawn to the screen drawToScreen.Add(sphere); }
protected override void Initialise() { var camera = new Camera3D(); //look at the sphere, which will be at 0,0,0. Look from 0,0,4. camera.LookAt(Vector3.Zero, new Vector3(0, 0, 4), Vector3.UnitY); //create the draw target. drawToScreen = new DrawTargetScreen(camera); drawToScreen.ClearBuffer.ClearColour = Color.CornflowerBlue; //create the sphere at 0,0,0 var sphere = new SphereDrawer(Vector3.Zero); //add it to be drawn to the screen drawToScreen.Add(sphere); }