Пример #1
0
        private void TriggerPreview()
        {
//            _Scale = getPreviewResolution();
            _Scene._Shadows = getShadowsEnabled();
            _SimpleLighting = getSimpleLighting();
            _Scale          = 1.0f;

            // reset the renderer
            if (_ImageRenderer != null)
            {
                _ImageRenderer.TransferLatest(false);
                _ImageRenderer.Stop();
            }

            _ImageRenderer = new ImageRenderer(image1, BuildXML(true), (int)image1.Width, (int)image1.Height, true);
            _ImageRenderer.SetFixedExposure(true);//!_WootracerOptions._AutoExposure);
            _ImageRenderer.SetExposureValue((float)_WootracerOptions._Exposure);
            _ImageRenderer.Render();
        }
Пример #2
0
        private void Preview(bool preview)
        {
//            _ImageRenderer.Stop();
            _ImageRenderer.SetFixedExposure(true);//!_WootracerOptions._AutoExposure);
            _ImageRenderer.SetExposureValue((float)_WootracerOptions._Exposure);
            if (!preview)
            {
                _ImageRenderer = new ImageRenderer(image1, BuildXML(false), 480, 270, false);
                _ImageRenderer.Render();
                _ImageRenderer = new ImageRenderer(image1, BuildXML(false), (int)((float)480 * _Scale), (int)((float)270 * _Scale), false);
            }
            else
            {
                _ImageRenderer.Render();
            }
            if (_WootracerOptions._AutoExposure)
            {
//                _WootracerOptions._Exposure = _ImageRenderer._MaxValue;
            }
        }
Пример #3
0
        private void TriggerPreview()
        {
//            _Scale = getPreviewResolution();
            _Scene._Shadows = getShadowsEnabled();
            _SimpleLighting = getSimpleLighting();
            _Scale = 1.0f;

            // reset the renderer
            if (_ImageRenderer != null)
            {
                _ImageRenderer.TransferLatest(false);
                _ImageRenderer.Stop();
            }

            _ImageRenderer = new ImageRenderer(image1, BuildXML(true), (int)image1.Width, (int)image1.Height, true);
            _ImageRenderer.SetFixedExposure(true);//!_WootracerOptions._AutoExposure);
            _ImageRenderer.SetExposureValue((float)_WootracerOptions._Exposure);
            _ImageRenderer.Render();
        }