DirectX Visualizer
3D Solutions
01 April 2009
24 of 26
©2005-2009 Philips Electronics Nederland B.V.
Application calling Clear(): Color=0xff000000
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application calling Clear(): Color=0xff000000
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x188FC620 (534x400)
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x188FC620 (534x400)
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x0056D160 (1600x1200)
Application setting rendertarget (index = 0): 0x188FCEC0 (534x400)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Application setting rendertarget (index = 0): 0x0056D160 (1600x1200)
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x0056D160 (1600x1200)
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Application calling Clear(): Stencil= 0
Application setting depth stencil surface: 0x00000000 (0x0)
Application setting rendertarget (index = 0): 0x0056D160 (1600x1200)
Application setting depth stencil surface: 0x0056D200 (1600x1200)
Didn't have depth buffer at time of Present()... getting depth buffer now
RetrieveDfromZbufferBinary getting depth from depth stencil 0x0056D200
Condition 0x01836AC8: reset, restarting with condition 1
Presenting...
Figure 9: Logged messages for a single frame
As we can see the depth buffer is retrieved at the very end of the frame, because
DepthTriggerCondition is currently not set. In our example the depth map displayed on the screen
was black and no increase in ZNearInterest was able to show any shades of grey. From this we need
to conclude that the depth information that we are looking for has already been cleared from the Z-
buffer.