7.5 The DSM display driver
This display driver produces deep shadow maps. As explained in section 5.1 Shadows, DSMs support opacity, prefiltering and motion blur. It is suggested to use DSMs whenever possible.
"float tolerance" [0.01]
-
DSMs tend to grow quite large, unfortunatly. The display driver will try to compress them using an algorithm that will shrink file size without exceeding some specified error threshold. A value of `0' (that is, no error allowed) will produce huge DSMs and should never be used and a value of `1' will compress DSMs too much and results will be unsatisfactory. A typical good value is 0.05. If this parameter is not specified or set to -1, the display driver will choose an appropriate tolerance, which is the recommended action.
"string compressionlevel" ["1"]
- This option turns on an additional compression method which makes DSMs even smaller without sacrificing quality or performance. The default is "1" which enables some additional compression. "0" can be used to disable the additional compression.
"string mipmaping" ["on"]
- Disables or enables mipmapping for this deep shadow map. Mipmapping is enabled by default but one could save more than 25% of storage space by using raw DSMs. Be careful though, since mipmapped DSMs usually produce nicer results (especially when viewed from far away).
"string volumeinterpretation" ["discrete"]
-
Specifies whatever the deep shadow map will be used to compute shadows cast by solid objects or those cast by participating media (fog, clouds, smoke, etc). When rendering participating media shadows, one should specify
"continuous"
to this parameter. Default is `discrete'.
EXAMPLE
| # Write out a deep shadow map for partictipating media
Display "shadow.dsm" "dsm" "rgbaz"
"string volumeinterpretation" ["continuous"]
|
Do not run tdlmake
on files produced by this display driver, since they are already in the right format.
This document was generated
by Aghiles Kheffache on July, 31 2003
using texi2html
3Delight 1.0.0. Copyright 2000-2003 The 3Delight Team.
All Rights Reserved.