Welcome, Guest.
Username: Password: Remember me

TOPIC: Output depth map to file

Output depth map to file 2 months 1 week ago #1

Hi, tell me how to display the depth map is not on the screen and in the file.
The administrator has disabled public write access.

Output depth map to file 2 months 1 week ago #2

Just download the effect " DisplayDepth.fx " from Reshade's installer or from the official GitHub repository and, once in game, activate it.
The administrator has disabled public write access.

Output depth map to file 2 months 1 week ago #3

I need a depth map with great accuracy, if I take a screenshot, then I will get an accuracy of 8 bits. What should I add to the file DisplayDepth.fx to save the depth map to a file?
The administrator has disabled public write access.

Output depth map to file 2 months 1 week ago #4

IlYA wrote:
What should I add to the file DisplayDepth.fx to save the depth map to a file?

It is not possible for a shader to save an image.

The only way to save (screenshot) the depth buffer in it's native format is to add an image format to ReShade that can use more than 8 bits per channel (e.g. openEXR).
The administrator has disabled public write access.

Output depth map to file 2 months 1 week ago #5

Do I need to modify the ReShade project? I would be very grateful if you could help me with this. I don't know how to do it well enough.
The administrator has disabled public write access.

Output depth map to file 2 months 6 days ago #6

If we take OpenEXR as an example you would need to add that repo (and some of its dependencies) as a submodule to the ReShade Visual Studio project. Then you can use the OpenEXR API to save a screenshot (even as floating point). Unfortunately I can't help you with that as I have no extended knowledge of Visual Studio and ReShade (other than some GUI stuff).
The administrator has disabled public write access.