RIB
|
Introduction
Shadows in real life are considered to be an integral part of
scene - a natural outcome of the interplay of light and objects. Before the
introduction of raytracing with release 11 of Pixar's prman, shadows were
treated as additional elements that had to be prerendered (shadow
pass) before the final render (beauty pass).
cannot be used to render shadows, each of them has a counter-part,
that can cast shadows. For example, instead of using a basic spot light in a scene, such as |
LightSource "spotlight" 1 "intensity" 50 "from" [1 5 0] "to" [0 0 0] its shadow casting equivalent could be used ie. LightSource "shadowspot" 1 "intensity" 50 "from" [1 5 0] "to" [0 0 0] "shadowname" ["spot1.tx"] |
Shadow casting is not an automatic attribute of every light source
because the renderer is required to perform additional calculations in
order to determine the effects of a shadow. This slows
the rendering process and often it is not necessary for every light
in a scene to cast a shadow.
|
Prman
When using Pixar's mtor or Rfm Pro plugin with Maya, the rendering of depth-mapped
shadows ie. shadow pass/beauty pass, can be fully automated. For the purposes of
production, such automation is desirable. However, for the purposes of comprehension
it is far better to deal directly with rib files. This tutorial assumes the
reader is using the Cutter text editor to create their rib files. The reader can
use Pixar's prman renderer, if they are lucky enough to have access to it, or they
can use another commercial or free RenderMan complient renderer. |
Listing 1
|
Listing 2
|
Figures 7 and 8 |
||
"samples" 16 "width" 16 |
"samples" 64 "width" 16 |
Other ConsiderationsSeveral of the parameters of the shadowspot shader can be adjusted without the necessity of generating a fresh shadow pass. The parameters shown in blue can be altered without rendering a new shadow map. However, if the parameters shown in red are adjusted then a new shadow rib file must be generated and rendered. LightSource "shadowspot" 1 "intensity" 30.0 "lightcolor" [1 1 1] "from" [1 5 0] "to" [0 0 0] "coneangle" 0.523599 "conedeltaangle" 0.087266 "beamdistribution" 2.0 "shadowname" ["spot1.tx"] "samples" 16.0 "width" 1.0 Cutter is limited in its ability to generate shadow rib files - currently only the shadowspot shader is supported. |
© 2002- Malcolm Kesson. All rights reserved.