DirectX Visualizer
3D Solutions
01 April 2009
©2005-2009 Philips Electronics Nederland B.V.
15 of 26
6.9
6.9
6.9
6.9
Discardable depth stencils
Discardable depth stencils are depth stencils that lose their data as soon as they are no longer the
active depth stencil. These depth stencils are not compatible with the Visualizer and a warning will be
written to the log if the application is using them.
RetrieveDfromZbufferBinary getting depth from depth stencil 0x001E9E40
Detected multisample type 1 for depth buffer; using intermediate depth stencil for
depth extraction
WARNING: StretchRect failed with error 'INVALIDCALL' when trying to downsample the
multisampled depth stencil.
The application probably created the depth stencil as discardable.
Either turn off multisampling or set RefuseDiscardableDepthStencils=1 in the
configuration file.
Condition 0x0161AC00: reset, restarting with condition 1
Figure 4: log file fragment including warning
It is usually a better option to turn off multisampling than it is to use RefuseDiscardableDepthStencils
in the configuration file. The latter can have a very large and non-constant negative effect on
performance.
6.10
6.10
6.10
6.10
Depth tuning help
When the EnableDepthTuningHelp option is set to 1 the Visualizer will give certain depth values in the
depth map a different color to help you tune both the range of interest (6.11) as well as the
FarNearRatio value (6.12). To see the depth map, either switch to the depth-only mode using the 3D
toggle key (6.13) or run the application on a regular 2D display.
Option name
Option name
Option name
Option name
Possible values
Possible values
Possible values
Possible values
Default value
Default value
Default value
Default value
Description
Description
Description
Description
EnableDepthTuningHelp 0 or 1
0
Whether to use the special colors in the depth
map for certain disparity values (1) or not (0).
Colors are assigned to four depth values. Enabling these colors does not affect the depth values used
by the display.
Disparity
Disparity
Disparity
Disparity
Color
Color
Color
Color
Description
Description
Description
Description
255
red
Disparity value for objects that are furthest in front of the display (ZNearInterest)
191
purple Disparity value half-way between closest objects and the display plane
128
green
Disparity value for objects on the display plane (just like everything on a 2D display)
64
cyan
Disparity value half-way between furthest objects and the display plane