Casting and Visibility Options

 
 
 

Every object's visibility property controls how the object reacts to reflection, transparency and/or refraction rays. For each of these ray types, the visibility property includes two parameters:

The next three sections provide example of how toggling these parameters for each ray type can affect the objects in your scene. For information about setting these options, see Setting Casting and Visibility Options.

Reflection Casting and Visibility

If an object is a reflection caster, it can cast reflection rays that sample the scene. Surrounding objects are reflected in its surface, provided that they are visible to reflection rays. Of course some amount of reflectivity must be defined in the object's material for this to work (see Reflectivity for details).

     

In this example, the silver sphere is a reflection caster. The other objects are visible to reflection rays, so they appear reflected in the sphere's surface.

Turning the silver sphere's ReflectionCaster parameter off makes the sphere unable to cast reflection rays, and so nothing is reflected in its surface.

Turning off the ReflectionVisible parameter for the blue sphere makes it invisible to reflection rays cast by the silver sphere, and it no longer appears reflected in the silver sphere's surface (although its shadow does).

Transparency Casting and Visibility

If an object is a transparency caster, it can cast transparency rays that sample the scene. Surrounding objects are can be seen through its surface, provided that they are visible to transparency rays. Of course some amount of transparency must be defined in the object's material for this to work (see Transparency for details).

If a transparent object has an index of refraction value that is not equal to one (in other words, some refraction is defined), its transparency casting and visibility options have no effect. Instead, you need to can adjust its refraction casting and visibility options (see Refraction Casting and Visibility).

     

In this example, the silver sphere is a transparency caster. The other objects are visible to transparency rays, so they are visible through the sphere's surface.

Turning the silver sphere's TransparencyCaster parameter off makes the sphere unable to cast transparency rays, and so nothing is visible through its surface.

Turning off the TransparencyVisible parameter for the jack and the red sphere makes them invisible to transparency rays cast by the silver sphere, and they are no longer visible through the silver sphere's surface (although their shadows are).

Refraction Casting and Visibility

If a transparent object has an index of refraction value that is not equal to one (in other words, some refraction is defined), its transparency casting and visibility options have no effect. Instead, you need to can adjust its refraction casting and visibility options.

When an object is a refraction caster, it can cast refraction rays that sample the scene. Surrounding objects are can be seen through its surface — properly distorted according to the index of refraction — provided that they are visible to refraction rays. For this to work, some amount of transparency must be defined in the object's material and the object's index of refraction must set to a value other than 1 (see Transparency for details).

     

In this example, the silver sphere is a refraction caster. The other objects are visible to refraction rays, so they are visible through the sphere's surface.

Turning the silver sphere's RefractionCaster parameter off makes the sphere unable to cast refraction rays, and so nothing is visible through its surface.

Turning off the RefractionVisible parameter for the jack and the red sphere makes them invisible to refraction rays cast by the silver sphere, and they are no longer visible through the silver sphere's surface (although their shadows are).

Ray Visibility and Shadows

Even if you make an object invisible to a particular ray type (reflection, transparency or refraction), the object can still cast a shadow, which may be visible in reflective surfaces, or through transparent objects. To prevent an object from casting a shadow, you can turn off its Shadow Caster visibility parameter. This is described in Shadow Casters and Receivers.

   

Even though the jack and the red sphere are invisible to transparency rays, they still cast shadows onto the floor, which is visible to transparency rays. Those shadows are visible through the sliver sphere.

Turning off the ShadowCaster parameter for the jack and the red sphere prevents them from casting shadows onto the floor, so no trace of either object is visible through the silver sphere.

Setting Casting and Visibility Options

By default, every object is both a caster of, and visible to reflection, transparency, and refraction rays. If necessary, you can deactivate any of these parameters to control the scenes reflections, transparency and/or refraction more precisely.

Toggling reflection casting/visibility is useful when you're rendering a scene in multiple passes. For example, you might specify which reflections appear in each pass. Or, to speed up rendering, you could prevent foreground objects from reflecting very distant objects by making the distant objects' invisible to reflection rays.

To toggle reflection casting and/or receiving

  1. Select the object whose reflection casting and/or receiving you wish to toggle, and open an explorer (press 8).

  2. Expand the object's hierarchy and click its visibility node to open the object's Visibility property editor.

  3. On the Rendering tab, toggle the object's Caster and/or Visible parameters for Reflection, Transparency, and/or Refraction.

Partitioning Reflection, Refraction, and Transparency Casters and Receivers

If your scene contains a lot of objects, casting and visibility can be difficult to manage on a per-object basis. In complex scenes, it's easier to create partitions for objects and use overrides to control reflection, transparency and refraction casting and visibility for all of the objects in the partition. This process is described in Overriding Rendering Visibility for Objects in Partitions.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License