Write Z-Buffer to BMP

Started by
1 comment, last by Deep314 12 years, 6 months ago
Hi all.

Can i write z buffer to a file using DirectX9? Or somehow find its address in a memory?
Advertisement
Hi,

If you're already writing depth to a render target , then you can use one of the following functions to save it to file:

D3DXSaveTextureToFile()

http://msdn.microsoft.com/en-us/library/windows/desktop/bb205433(v=vs.85).aspx

D3DXSaveSurfaceToFile()

http://msdn.microsoft.com/en-us/library/windows/desktop/bb205431(v=vs.85).aspx
No. I still not write depth to texture :huh:. Im beginner in DirectX.

How can i render z-buffer to texture?
Can I do it without shaders?

This topic is closed to new replies.

Advertisement