Exemple #1
0
        private void motionBlurToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (pictureBox1.Image != null)
            {
                cashBack.Push(image);
            }
            Filters filter = new MotionBlurFilter();

            backgroundWorker1.RunWorkerAsync(filter);
        }
Exemple #2
0
 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;
 }
Exemple #3
0
        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;
        }
Exemple #4
0
 private static extern void Internal_setfilter(IntPtr thisPtr, MotionBlurFilter value);