Ray Depth / Ray Bounce / Ray Recursion Limit

Ray Depth / Ray Bounce / Ray Recursion Limit


It’s a common parameter in most if not all software that is capable of raytracing, and a common consideration in minimising the rendering time of scenes. When you raytrace a scene, the software fires a set number of rays for calculating the light per pixel of your rendered scene. When a ray reaches the surface of an object, the natural behavour is for that light to bounce on to the next surface, and the next, and so on. In the natural world this happens all around us, and of course nothing is needing to be calculated to achieve it. It just happens. When 3D software simulates this, it is desirable to do this the least number of times possible while achieving the result you are aiming for. This is your Ray Depth or Ray recursion Limit. We can tell the software how many consecutive bounces to calculate for each ray before stopping.


For scenes containing little or no reflective and/or refractive materials, the limit can be kept quite low, 4 would suffice, maybe even lower. If you have glass or gem stones, metals such as chrome or gold, then the Ray Depth becomes much more critical.

[fancy_images width=”95″ height=”95″]
[image title=”0 Ray Bounces” alt=”0 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_01.jpg[/image]
[image title=”1 Ray Bounces” alt=”1 Ray Bounces]”http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_02.jpg[/image]
[image title=”2 Ray Bounces” alt=”2 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_03.jpg[/image]
[image title=”3 Ray Bounces” alt=”3 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_04.jpg[/image]
[image title=”4 Ray Bounces” alt=”4 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_05.jpg[/image]
[image title=”5 Ray Bounces” alt=”5 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_06.jpg[/image]
[image title=”6 Ray Bounces” alt=”6 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_07.jpg[/image]
[image title=”8 Ray Bounces” alt=”8 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_08.jpg[/image]
[image title=”16 Ray Bounces” alt=”16 Ray Bounces”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_09.jpg[/image]
[image title=”16 Ray Bounces + Indirect Ground Illumination” alt=”16 Ray Bounces + Indirect Ground Illumination”]http://www.scorpiocgi.co.uk/wp-content/uploads/2012/01/Demo_10.jpg[/image]

Looking at each image in turn, not surprisingly, calculating zero bounces means the objects in the scene effectively receive no light, and therefore render as black silhouettes. The first seven images have an extra ray bounce each time, so more detail is revealed in the reflections and refractions as each calculated ray can travel further through the scene. Images eight and nine have eight and sixteen bounces respectively, which even in this scene yields some gains, but not very much. Compared to six bounces eight does give a good benefit, but beyond eight the gains are minimal.

The final render just highlights the worth of Indirect Ground Illumination (also termed commonly as Caustics) when using reflective or refractive materials.

Although these examples are rendered with Keyshot the same principles apply with any software.

Leave a Reply