private void motionBlurToolStripMenuItem_Click(object sender, EventArgs e) { if (pictureBox1.Image != null) { cashBack.Push(image); } Filters filter = new MotionBlurFilter(); backgroundWorker1.RunWorkerAsync(filter); }
public CameraMotionBlur() { filterType = MotionBlurFilter.Reconstruction; previewScale = Vector3.one; rotationScale = 1f; maxVelocity = 8f; minVelocity = 0.1f; velocityScale = 0.375f; softZDistance = 0.005f; velocityDownsample = 1; jitter = 0.05f; showVelocityScale = 1f; prevFrameForward = Vector3.forward; prevFrameRight = Vector3.right; prevFrameUp = Vector3.up; prevFramePos = Vector3.zero; }
public void start(QuantumModel model, int screenWidth, int screenHeight) { motionBlurFilter = new MotionBlurFilter((int)model.mapWidth, (int)model.mapHeight); mainImage = new Bitmap((int)model.mapWidth, (int)model.mapHeight); controllers.Add(new CheckWinCondition()); controllers.Add(new GeneralController(Keys.W, Keys.S, Keys.A, Keys.D, Team.green)); controllers.Add(new GeneralController(Keys.Up, Keys.Down, Keys.Left, Keys.Right, Team.blue)); controllers.Add(new DroneOrderingController(Team.green, Keys.Q, MouseButtons.Left)); controllers.Add(new DroneOrderingController(Team.blue, Keys.ShiftKey, MouseButtons.Right)); controllers.Add(new DroneController()); controllers.Add(new DrownRespawnerController()); controllers.Add(new DronsFighting()); controllers.Add(new OutpostConquestController()); controllers.Add(new GlobalRender()); this.model = model; deltaTimeCounter = new DeltaTimeCounter(); enabled = true; }
private static extern void Internal_setfilter(IntPtr thisPtr, MotionBlurFilter value);