Sign in to follow this  
Deep314

Write Z-Buffer to BMP

Recommended Posts

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()

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

D3DXSaveSurfaceToFile()

[url="http://msdn.microsoft.com/en-us/library/windows/desktop/bb205431(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/windows/desktop/bb205431(v=vs.85).aspx[/url]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this