# Max Depth setting

**URL:** <https://forums.chaos.com/t/max-depth-setting/44213>\
**Category:** Issues\
**Created:** [February 13, 2013, 9:47pm UTC](https://forums.chaos.com/t/max-depth-setting/44213 "2013-02-13T21:47:59Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [February 15, 2013, 3:45pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/21 "2013-02-15T15:45:10Z")

</div>

Ah, duh on my part once again, I should really read your posts once, then another time, then a third time just to make sure I properly understand it 😄

Thanks again for the knowledge!

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [February 15, 2013, 3:47pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/22 "2013-02-15T15:47:15Z")

</div>

Don’t worry - we are here to help you 🙂  
Fell free to ask any questions that you need to clear for yourself.

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [February 15, 2013, 4:47pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/23 "2013-02-15T16:47:20Z")

</div>

Much appreciated Svetlozar, you’re a brilliant addition to the forum!

---

<div class="post-metadata">

**Author:** ![maxedesa](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maxedesa](https://forums.chaos.com/u/maxedesa)\
**Post date:** [March 5, 2013, 6:11pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/24 "2013-03-05T18:11:48Z")

</div>

I’m having a similar/related problem…

Max depth in the material settings reacts totally differently than the Global Switch. See the following images with notes.  
(For the simplification I’ve turned off reflection for the glass material.)

 ![refractionTest1.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/b/bee013e71282c8d782988af59a22a8cf26bef98d.jpeg)  
 ![refractionTest2.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/0/a04ba7b6a9b7a625c6ce5691c820c61a7d7ea0ea.jpeg)

---

<div class="post-metadata">

**Author:** ![MoonDoggie](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/moondoggie/32/68517_2.png) [@MoonDoggie](https://forums.chaos.com/u/MoonDoggie)\
**Post date:** [March 5, 2013, 6:46pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/25 "2013-03-05T18:46:07Z")

</div>

Caleb, you found my thread! I am still a bit fuzzy on this too.

I believe what we found out is that the “Max Depth” setting on the globals sets all materials to whatever you have set there (regardless if they actually need none at all). It is not a clamp in the sense that “you can go lower, but don’t exceed this value”, but it’s a “use this many bounces for all materials”. I believe is what we found out.

-Colin

---

<div class="post-metadata">

**Author:** ![maxedesa](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maxedesa](https://forums.chaos.com/u/maxedesa)\
**Post date:** [March 5, 2013, 6:56pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/26 "2013-03-05T18:56:46Z")

</div>

Pretty sure I understand what you are saying, but does that explain the images? Why should the global 25 make any difference in the image if the material is already set to 25?

---

<div class="post-metadata">

**Author:** ![MoonDoggie](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/moondoggie/32/68517_2.png) [@MoonDoggie](https://forums.chaos.com/u/MoonDoggie)\
**Post date:** [March 5, 2013, 8:52pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/27 "2013-03-05T20:52:23Z")

</div>

That is a good question. I’m still not 100% on the answer I got to this question honestly.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [March 6, 2013, 12:12am UTC](https://forums.chaos.com/t/max-depth-setting/44213/28 "2013-03-06T00:12:28Z")

</div>

What dont you understand about it? There is a global max depth setting which overrides all of your materials.

> [@Vray proxy bug](https://forums.chaos.com/t/vray-proxy-bug/40214/12):
>
> Pretty sure I understand what you are saying, but does that explain the images? Why should the global 25 make any difference in the image if the material is already set to 25?

Are you looking at those through a piece of glass which doesnt have the refraction depth set to 25? If you’ve got something with a value of 25 behind something with a value of 2, it will only use the 2.

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [March 6, 2013, 1:08pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/29 "2013-03-06T13:08:59Z")

</div>

> [@ivaylo.ivanov](#):
>
> I’m having a similar/related problem…
> 
> Max depth in the material settings reacts totally differently than the Global Switch. See the following images with notes.  
> (For the simplification I’ve turned off reflection for the glass material.)

[**Cubiclegangster**](http://www.chaosgroup.com/forums/vbulletin/member.php?82815-cubiclegangster) is right , something is wrong with the image with Global Max Depth OFF , if all materials refraction depth is 25 I would expect to see image similar to the second one.  
Is it possible to attach this scene ?

---

<div class="post-metadata">

**Author:** ![maxedesa](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maxedesa](https://forums.chaos.com/u/maxedesa)\
**Post date:** [March 7, 2013, 12:02am UTC](https://forums.chaos.com/t/max-depth-setting/44213/30 "2013-03-07T00:02:07Z")

</div>

Being a new day with a somewhat refreshed brain I’ve found what is likely to be the problem - the mirror behind it - had a reflection depth of 5. So I guess the glasses were turning black because they were reflecting back and forth with the mirror. I’ll attach the scene anyway, in case you want to see.

In attached scene I’m leaving mirror depth at 5 (which causes problems) and global depth unchecked (which, when checked, fixes it).

Caleb  
[maxDepthProblem.zip](https://forums.chaos.com/uploads/short-url/LLT7ieHgZ2pGTtaLo5402KRC72.zip) (6.23 MB)

---

<div class="post-metadata">

**Author:** ![alexyork](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/alexyork/32/271382_2.png) [@alexyork](https://forums.chaos.com/u/alexyork)\
**Post date:** [March 7, 2013, 11:08am UTC](https://forums.chaos.com/t/max-depth-setting/44213/31 "2013-03-07T11:08:15Z")

</div>

Right, so the result of this is that the Global Max Depth setting doesn’t really mean “maximum possible depth” - it actually forces everything to use the specified value. Is that right? In that case it should really be just called “Global Depth Override”.

Is this correct?

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 7, 2013, 11:16am UTC](https://forums.chaos.com/t/max-depth-setting/44213/32 "2013-03-07T11:16:52Z")

</div>

Alex - Correct.

---

<div class="post-metadata">

**Author:** ![alexyork](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/alexyork/32/271382_2.png) [@alexyork](https://forums.chaos.com/u/alexyork)\
**Post date:** [March 7, 2013, 11:22am UTC](https://forums.chaos.com/t/max-depth-setting/44213/33 "2013-03-07T11:22:07Z")

</div>

> [@22002 Max 2012 - Light leaks between objects](https://forums.chaos.com/t/22002-max-2012-light-leaks-between-objects/40751/8):
>
> Alex - Correct.

Thanks mate. I think we could start some kind of Sticky thread with these things noted down. I’m going to start collecting your posts in a handy file, I think…! Running through your DMC thread now. Extremely useful, thanks.

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 7, 2013, 11:25am UTC](https://forums.chaos.com/t/max-depth-setting/44213/34 "2013-03-07T11:25:09Z")

</div>

I’m a bit paranoid about it yet, there’s still a few bits like dof and motion blur that I’d like to talk to the chaos guys about more to make sure I’m not misleading anyone. The nice thing is the approach is in some ways procedural, so it’d be possible to script a lot of it. Vlado’s talking about some extra sample information passes too which’ll make things even clearer.

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [March 7, 2013, 2:25pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/35 "2013-03-07T14:25:40Z")

</div>

> [@V-Ray 1.5 for Rhino Beta](https://forums.chaos.com/t/v-ray-1-5-for-rhino-beta/39805/39):
>
> Right, so the result of this is that the Global Max Depth setting doesn’t really mean “maximum possible depth” - it actually forces everything to use the specified value. Is that right? In that case it should really be just called “Global Depth Override”.
> 
> Is this correct?

Yes - this is correct, and it is written in our help documentation - but for some reason most of the people think that this option clamps depth value not that it overrides them.

> **[Chaos: Industry-leading design and visualization software](https://www.chaos.com)**
>
> Chaos develops visualization technologies that empower artists & designers to create photorealistic imagery and animation across all creative industries

**Max depth - enables the user to limit globally the reflection/refraction depth. When this is unchecked, the depth is controlled locally by the materials/maps. When this option is checked, all materials and maps use the depth specified here.**

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 7, 2013, 2:27pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/36 "2013-03-07T14:27:53Z")

</div>

I think it’s the naming of the feature Svetlozar - “Max” depth would seem to indicate setting a limit of the maximum ray depth can go to, Something like “ray depth override” might make more sense when read as a parameter in the vray ui?

---

<div class="post-metadata">

**Author:** ![alexyork](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/alexyork/32/271382_2.png) [@alexyork](https://forums.chaos.com/u/alexyork)\
**Post date:** [March 7, 2013, 2:33pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/37 "2013-03-07T14:33:00Z")

</div>

> [@Single File EXR with Velocity Channel](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/8):
>
> I think it’s the naming of the feature Svetlozar - “Max” depth would seem to indicate setting a limit of the maximum ray depth can go to, Something like “ray depth override” might make more sense when read as a parameter in the vray ui?

Absolutely. It’s clear in the manual but the naming of this tool within Vray itself leads to confusion, as can be seen! I think it should be renamed.

---

<div class="post-metadata">

**Author:** ![mcnamex](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mcnamex](https://forums.chaos.com/u/mcnamex)\
**Post date:** [March 7, 2013, 2:55pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/38 "2013-03-07T14:55:48Z")

</div>

> [@Crash : use VRayDirt in displacement](https://forums.chaos.com/t/crash-use-vraydirt-in-displacement/40781/3):
>
> Absolutely. It’s clear in the manual but the naming of this tool within Vray itself leads to confusion, as can be seen! I think it should be renamed.

Definitely. I couldn’t agree more.

---

<div class="post-metadata">

**Author:** ![Brendan\_Coyle](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@Brendan\_Coyle](https://forums.chaos.com/u/Brendan_Coyle)\
**Post date:** [March 7, 2013, 3:13pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/39 "2013-03-07T15:13:17Z")

</div>

sorry I feel like I’m nit picking but this topic has been quite interesting to me

“enables the user to limit globally the reflection/refraction depth”

limit - “a point or level beyond which something does not or may not extend or pass”  
but the option is more of a hard set number.

I think that first line in the manual about max depth needs a bit of massaging to help better understand the option. Possibly, “enables the user to set a global reflection/refraction depth”

---

<div class="post-metadata">

**Author:** ![simmsimaging](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/simmsimaging/32/49287_2.png) [@simmsimaging](https://forums.chaos.com/u/simmsimaging)\
**Post date:** [March 7, 2013, 5:41pm UTC](https://forums.chaos.com/t/max-depth-setting/44213/40 "2013-03-07T17:41:42Z")

</div>

I agree it needs a change. I had no idea that it set the minumum as well as maximum until reading this thread. I think just removing the word “max” would help clarify that issue a lot.

[Previous page](https://forums.chaos.com/t/max-depth-setting/44213.md?page=1)

[Next page](https://forums.chaos.com/t/max-depth-setting/44213.md?page=3)
