Example #1
0
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            SaveStatus();

            _Velocity = new Vector3(0, 0, 0);
//            _Scene._Camera._FocusDepth = (float)_Scene._Camera._FocusDepth;
//            _Scene._Camera._ApertureSize = (float)_Scene._Camera._ApertureSize * _Scene._Camera._FocusDepth;
//            _Scene._Camera._FOV = (float)_Scene._Camera._FieldOfView;
//            _Scene._Camera._Spherical = (float)_Scene._Camera._Spherical;
//            _Scene._Camera._Stereographic = (float)_CameraOptions._Stereographic;

            StopPreview();

            FinalRender ownedWindow = new FinalRender(ref _Scene, ref _FinalRTOptions, ref _PostProcess);

            ownedWindow.Owner = Window.GetWindow(this);
            ownedWindow.ShowDialog();

            StartPreview();
        }
        public PostProcessSettings(ref PostProcess postProcess, FinalRender parent)
        {
            _PostProcess = postProcess;
            _Parent      = parent;
            DataContext  = this;

            _Iterations   = _PostProcess._Settings5x5._Iterations;
            _BoostPower   = _PostProcess._Settings5x5._BoostPower;
            _SourceWeight = _PostProcess._Settings5x5._SourceWeight;
            _TargetWeight = _PostProcess._Settings5x5._TargetWeight;

            _GWidth        = _PostProcess._SettingsFastGaussian._Width;
            _GBoostPower   = _PostProcess._SettingsFastGaussian._BoostPower;
            _GSourceWeight = _PostProcess._SettingsFastGaussian._SourceWeight;
            _GTargetWeight = _PostProcess._SettingsFastGaussian._TargetWeight;

            InitializeComponent();

            checkBox1.IsChecked = _PostProcess._Settings5x5._Enabled;
            checkBox2.IsChecked = _PostProcess._SettingsFastGaussian._Enabled;
            UpdateKernelUI();
        }
        public PostProcessSettings(ref PostProcess postProcess, FinalRender parent)
        {
            _PostProcess = postProcess;
            _Parent = parent;
            DataContext = this;

            _Iterations = _PostProcess._Settings5x5._Iterations;
            _BoostPower = _PostProcess._Settings5x5._BoostPower;
            _SourceWeight = _PostProcess._Settings5x5._SourceWeight;
            _TargetWeight = _PostProcess._Settings5x5._TargetWeight;

            _GWidth = _PostProcess._SettingsFastGaussian._Width;
            _GBoostPower = _PostProcess._SettingsFastGaussian._BoostPower;
            _GSourceWeight = _PostProcess._SettingsFastGaussian._SourceWeight;
            _GTargetWeight = _PostProcess._SettingsFastGaussian._TargetWeight;

            InitializeComponent();

            checkBox1.IsChecked = _PostProcess._Settings5x5._Enabled;
            checkBox2.IsChecked = _PostProcess._SettingsFastGaussian._Enabled;
            UpdateKernelUI();
        }
Example #4
0
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            SaveStatus(); 

            _Velocity = new Vector3(0, 0, 0);
            _Camera._FocusDepth = (float)_WootracerOptions._FocusDistance;
            _Camera._ApertureSize = (float)_WootracerOptions._ApertureSize;
            _Camera._FOV = (float)_WootracerOptions._FieldOfView;
            _Camera._Spherical = (float)_WootracerOptions._Spherical;
            _Camera._Stereographic = (float)_WootracerOptions._Stereographic;

            StopPreview();

            FinalRender ownedWindow = new FinalRender(ref _Scene, ref _Camera, ref _PostProcess);

            ownedWindow.Owner = Window.GetWindow(this);
            ownedWindow.ShowDialog();

            StartPreview();
        }