Store Depth Buffer in Alpha Channel of Screenshots

  • Matt Gore
  • Topic Author
More
4 years 1 month ago #1 by Matt Gore Store Depth Buffer in Alpha Channel of Screenshots was created by Matt Gore
Hi crosire,

Screenshots are currently saved as 32 bit images (R8G8B8A8), however, the alpha channel is unnecessary and just always white. So could we get the option to store the depth buffer in the unused alpha channel? The result itself wouldn't look very interesting but it is useful for later editing to have the additional depth information.

Thx!

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

  • crosire
More
4 years 1 month ago #2 by crosire Replied by crosire on topic Store Depth Buffer in Alpha Channel of Screenshots
Compressing depth data into 8 bits is not really all that useful. Especially since it would be raw, non-linearized depth data (which is not normalized and therefore does not even fit into the range). And since it is raw, it can be formatted very differently from the color data (e.g. upside down, reversed, ...). So I don't think this would work well.

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

  • 3DJ
More
1 year 2 months ago #3 by 3DJ Replied by 3DJ on topic Store Depth Buffer in Alpha Channel of Screenshots
SuperDepth3D can read and reinterpret the depth buffer to generate 2 views, one for each eye, for stereoscopic 3D.
I think saving the RGB image alongside depth would be a lot better than saving the 2 generated views, in case there's a better depth buffer-based stereoization in the future, plus some fancy effects in image editing software .
I just read that an option to disable the alpha channel was added a while ago, but it would be nice to implement embedding the depth buffer, which I think newer iPhones do since they have a depth camera, tho perhaps using an image format that explicitly supports depth buffer like JXL, AVIF or HEIC , which might allow saving the full depth data/metadata without being constrained to an 8-bit channel.

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

  • 3DJ
More
1 year 1 month ago #4 by 3DJ Replied by 3DJ on topic Store Depth Buffer in Alpha Channel of Screenshots
Update: I found an addon that can export the image + depth buffer (and even normal map):
framedsc.com/ReshadeGuides/depthguide.htm
github.com/murchalloo/reshade-addons
Haven't tested it yet, but here's an example of what we can do with it 🗿

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

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.