RSL
|
|
Listing 1
Surfaces that are not part of the named group(s) are ignored. A simple scene, listing 2, is used to illustrate the use of trace-sets for occlusion. |
|
Listing 2
|
|
Using trace-sets can be a little tricky. For example, listing 2, lines 19, 25 and 31,
specify an empty string ie. no group name. In effect, each object in the scene is
"telling" its occlusion shader to ignore the other surfaces. Hence, the all white
rendering of figure 1.
Surface "rt_occlusion" "subset" ["NAME_OF_OCCLUDERS "]
Sphere 1 -1 1 360
The next four listings and figures show the effects of a variety of subsets. |
|
Listing 3
|
|
|
Listing 4
|
|
|
Listing 5
|
|
|
Listing 6
|
|
© 2002- Malcolm Kesson. All rights reserved.