Results 1 to 4 of 4

Thread: Reading DX 9 Depth Buffer (?)

  1. #1

    Reading DX 9 Depth Buffer (?)

    Is it possible to read the depth buffer in DX 9? If so, which interface and method should I use? And how is the data stored in the buffer?

    Regards!
    -Marco

  2. #2

    Reading DX 9 Depth Buffer (?)

    Look at IDirect3DDevice9::GetDepthStencilSurface. It allows you to get the depth/stencil surface as a IDirect3DSurface9 object. Then use the GetDesc method of the surface to retrieve the format of the data.

  3. #3

  4. #4

    Reading DX 9 Depth Buffer (?)

    Forget about it.
    In theory you can try to create D16_LOCKABLE depth buffer, but reading from it will be hardly effectively (from speed point).
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •