# Better DOF and adaptive sampling...

**URL:** <https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272>\
**Category:** Requests\
**Created:** [September 26, 2013, 3:44pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272 "2013-09-26T15:44:02Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![cecofuli](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cecofuli/32/27814_2.png) [@cecofuli](https://forums.chaos.com/u/cecofuli)\
**Post date:** [September 26, 2013, 3:44pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/1 "2013-09-26T15:44:02Z")

</div>

Hello,  
I know, it’s on the “TO DO” list, but I want to show you my test:

3500 px + 4 PC in DR (yes, **4 PC** ) + **12 hours** + **8 PTS** = everything was very clean (textures, area shadows, GI) but look at the noise on the DOF =(

 ![DOF.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/1/9/19ee1a903ca19dfd11331adcba26801547623b0c.jpeg)

---

<div class="post-metadata">

**Author:** ![Polymax\_1](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Polymax\_1](https://forums.chaos.com/u/Polymax_1)\
**Post date:** [September 26, 2013, 5:12pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/2 "2013-09-26T17:12:16Z")

</div>

try set MSI to 400

---

<div class="post-metadata">

**Author:** ![cecofuli](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cecofuli/32/27814_2.png) [@cecofuli](https://forums.chaos.com/u/cecofuli)\
**Post date:** [September 26, 2013, 5:15pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/3 "2013-09-26T17:15:14Z")

</div>

Thanks for the suggestion. I’ll try. But, with one PC it was about 44 hours of rendering. So, I think it’s a big Corona problem.

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 26, 2013, 5:17pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/4 "2013-09-26T17:17:11Z")

</div>

> [@Polymax](#):
>
> try set MSI to 400

And how could this help?

---

<div class="post-metadata">

**Author:** ![cecofuli](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cecofuli/32/27814_2.png) [@cecofuli](https://forums.chaos.com/u/cecofuli)\
**Post date:** [September 26, 2013, 5:20pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/5 "2013-09-26T17:20:12Z")

</div>

The DOF isn’t so strong in this scene. The main problem is the DOF where we have reflective objects and strong highlights.  
In this case, the lamp is in clear glass.

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 26, 2013, 5:36pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/6 "2013-09-26T17:36:30Z")

</div>

Just for test, I would try selecting this region and rendering this with buckets - give it a small amount of PTS - like 2 and a crazy amount of initial samples like 500 or more.

---

<div class="post-metadata">

**Author:** ![Polymax\_1](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Polymax\_1](https://forums.chaos.com/u/Polymax_1)\
**Post date:** [September 26, 2013, 9:21pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/7 "2013-09-26T21:21:01Z")

</div>

> [@maru](#):
>
> > [@Polymax](#):
> >
> > try set MSI to 400
> 
> And how could this help?

This less clamp the samples.

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 27, 2013, 9:36am UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/8 "2013-09-27T09:36:40Z")

</div>

> [@Polymax](#):
>
> > [@maru](#):
> >
> > > [@Polymax](#):
> > >
> > > try set MSI to 400
> > 
> > And how could this help?
> 
> This less clamp the samples.

And produces more noise?

---

<div class="post-metadata">

**Author:** ![cecofuli](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cecofuli/32/27814_2.png) [@cecofuli](https://forums.chaos.com/u/cecofuli)\
**Post date:** [September 28, 2013, 2:41pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/9 "2013-09-28T14:41:26Z")

</div>

Ok, my test:

(_) As you can see, first test was with CROP option. Both, bucket and progressive, gave me the same result.  
(_) Well, with Progressive + PTS = 2 + 45 min, I obtain a clean DOF in 45 min (652 passes). Maybe, after 300-400 was enough.  
(\*) I render at full resolution + same settings (PTS = 2). In 10 hours I had 122 passes! For 600, I need 50 hours!  
The problem is: with 122 passes everything was clean except the DOF (very noisy)

CONCLUSION: in all my projects, I would like to use real 3D DOF. But, always, I’ve problem with noise =(

 ![0024_DOF.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/1/c/1c9cc86247c46b5a5a3408d38dea4fe07c653dce.jpeg)

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 28, 2013, 6:04pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/10 "2013-09-28T18:04:13Z")

</div>

I may be wrong but I think your major mistake here is setting LSM to 16. Direct lighting is not the part of your image that will refine slowest. So with your settings lots of samples will be devoted to direct lighting at the cost of rendering time. Leave LSM at default 2 or even lower it to 1. I hope this will give you some speed improvement.

For me adaptivity is only usable in bucket mode, I’d suggest turning it off when progressive rendering.

So: set LSM to 1, switch to bucket mode, set PTS to 2 or 4, and buckets to something like 500-10-0,02 (but I think it should render in 2-3 passes). If it’s still noisy you could try setting PTS or initial samples in buckets to some higher values but I still don’t promise any success. 😉

You can also try experimenting with different random samplers but I’m not sure how they work.

---

<div class="post-metadata">

**Author:** ![cecofuli](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cecofuli/32/27814_2.png) [@cecofuli](https://forums.chaos.com/u/cecofuli)\
**Post date:** [September 29, 2013, 4:49pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/12 "2013-09-29T16:49:03Z")

</div>

Unfortunately, I don’t have too much time to do a new test, but I think with low LSM nothing change. I did some very fast render, with small crop. With the same time (2 minutes) the noise in the hard region still here…

---

<div class="post-metadata">

**Author:** ![rafpug](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rafpug](https://forums.chaos.com/u/rafpug)\
**Post date:** [September 29, 2013, 7:01pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/13 "2013-09-29T19:01:48Z")

</div>

Hello cecofuli

…Adaptive 3 - 15 - 0,02

This value **15** corresponds to the method Bucket ?

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 29, 2013, 7:17pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/14 "2013-09-29T19:17:48Z")

</div>

No… He wrote PROGRESSIVE right over it. You can’t set bucket passes to more than 10…

---

<div class="post-metadata">

**Author:** ![rafpug](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rafpug](https://forums.chaos.com/u/rafpug)\
**Post date:** [September 29, 2013, 8:08pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/15 "2013-09-29T20:08:48Z")

</div>

Hi maru

yes,  
and the value 15 corresponds to what?

I read Adaptivity, perhaps it is a new parameter of the build?

---

<div class="post-metadata">

**Author:** ![maru](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/maru/32/15975_2.png) [@maru](https://forums.chaos.com/u/maru)\
**Post date:** [September 30, 2013, 8:25am UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/16 "2013-09-30T08:25:55Z")

</div>

Yes, new adaptivity features are available in daily builds. You can read about them here:  
[http://forum.corona-renderer.com/index.php/topic,1126.0.html](http://forum.corona-renderer.com/index.php/topic,1126.0.html)

---

<div class="post-metadata">

**Author:** ![rafpug](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rafpug](https://forums.chaos.com/u/rafpug)\
**Post date:** [September 30, 2013, 7:47pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/17 "2013-09-30T19:47:08Z")

</div>

> [@maru](#):
>
> Yes, new adaptivity features are available in daily builds. You can read about them here:  
> [Render Adaptive sampling? - Corona for 3ds Max :: Requests - Chaos Forum](http://forum.corona-renderer.com/index.php/topic,1126.0.html)

Thanks maru …

---

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [November 13, 2013, 4:48pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/18 "2013-11-13T16:48:15Z")

</div>

Duplicate thread: [DOF: VRay vs Corona and Corona DOF improvements - Corona for 3ds Max :: Requests - Chaos Forum](http://forum.corona-renderer.com/index.php/topic,1448.0.html)

---

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [April 7, 2016, 9:03pm UTC](https://forums.chaos.com/t/better-dof-and-adaptive-sampling/126272/19 "2016-04-07T21:03:37Z")

</div>

done
