Output depth map to file

More
1 year 8 months ago #1 by IlYA
Output depth map to file was created by IlYA
Hi, tell me how to display the depth map is not on the screen and in the file.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #2 by Duran.te
Replied by Duran.te on topic Output depth map to file
Just download the effect " DisplayDepth.fx " from Reshade's installer or from the official GitHub repository and, once in game, activate it.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #3 by IlYA
Replied by IlYA on topic Output depth map to file
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?

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #4 by Daodan
Replied by Daodan on topic Output depth map to file

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

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #5 by IlYA
Replied by IlYA on topic Output depth map to file
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.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #6 by Daodan
Replied by Daodan on topic Output depth map to file
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).

Please Log in or Create an account to join the conversation.

More
2 months 6 days ago #7 by sahupooja10
Replied by sahupooja10 on topic Output depth map to file
I would like to know if you had any luck with the mentioned problem statement. I also have to do the same. It shall be great if you could help.

Please Log in or Create an account to join the conversation.