Example #1
0
        public static ISampler CreateSampler(ParameterSet parameters, IFilm film, ICamera camera)
        {
            // Initialize common sampler parameters
            int xstart, xend, ystart, yend;
            film.GetSampleExtent (out xstart, out xend, out ystart, out yend);
            int nsamp = parameters.FindOneInt ("pixelsamples", 4);

            return new LowDiscrepancy (xstart, xend, ystart, yend, nsamp, camera.ShutterOpen, camera.ShutterClose);
        }
Example #2
0
 public SamplerRendererTask(Scene scene, IRenderer renderer, ICamera camera, ProgressReporter reporter, ISampler sampler, Sample sample, int tn, int tc)
 {
     Scene = scene;
     Camera = camera;
     Renderer = renderer;
     MainSampler = sampler;
     OrigSample = sample;
     TaskNumber = tn;
     TaskCount = tc;
     Reporter = reporter;
 }
Example #3
0
 public static ISampler CreateSampler(string name, ParameterSet parameters, IFilm film, ICamera camera)
 {
     SamplerPlugin plugin = new SamplerPlugin (name);
     return plugin.CreateSampler (parameters, film, camera);
 }
Example #4
0
 public static IRenderer CreateRenderer(string name, ISampler sampler, ICamera camera, ISurfaceIntegrator surfaceIntegrator, IVolumeIntegrator volumeIntegrator)
 {
     RendererPlugin plugin = new RendererPlugin (name);
     return plugin.CreateRenderer (sampler, camera, surfaceIntegrator, volumeIntegrator);
 }