[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4 Using dsm2tif to Visualize DSMs

dsm2tif is an utility to convert 3Delight's propriatary deep shadow map files into viewable TIFF files. A DSM contains visibility informations for any given depth in a scene, so one single 2D image (eg. a TIFF) cannot describe all the information provided by a DSM; that is why command line parameters are provided to specify at which depth the evaluation will occur.

`-z depth'
Specifies a relative depth at which the deep shadow map will be evaluated. "Relative" meaning that each pixel in the image will be evaluated at its own depth, computed as follows: (pZmax-pZmin) * depth + pZmin. pZmin and pZmax being the depths of the closest and the furtherst features present in the pixel. `-z 1' is the default, which shows the amount of light that passes through to infinity at each pixel;
`-Z depth'
Specifies an absolute depth (range: [0..1]) to evaluate the deep shadow map. "Absolute" meaning that all pixels in the output image will be evaluated at the same depth, computed as follows: (Zmax-Zmin) * depth + Zmin. Zmin and Zmax being the depths of the closest and the furtherst features in the DSM;
`-bias n'
Specifies a shadow bias for deep shadow map evaluation. This is needed to avoid self-occlusion problems. If the produced TIFF contains noisy areas, consider increasing this parameter. Default is 0.015;
`-opacity'
By default, dsm2tif will assign a "visibility" value to each pixel in the output TIFF, specifying this option will assign "opacity" values to each pixel (opacity = 1-visiblity). This means that dark areas in the image indicate that light passes through unnocluded;
`-mipmap n'
This options specifies which mipmap level will be converted. Note that mipmapping can be diseabled by an option given to the display driver (see section 7.5 The DSM display driver);
`-8'
`-16'
`-32'
`-float'
Choose data format for the output TIFF. Default is 8 bits per channel;
`-lzw'
`-deflate'
`-packbits'
`-logluv'
Selects a compression scheme. Default is `lzw'. `-logluv' is only supported with `-float' data type;
`-v'
Prints version and copyright informations;
`-h'
Shows help text.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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.