How to export a file with the format R8G8B8A8_UNORM_SRGB

Hi,

I would like to know which export option (photoshop) should I choose so that the file is compatible with the format: R8G8B8A8_UNORM_SRGB ?

2 Likes

Update: The answer below is outdated. Texture Tools Exporter 2024.1.1 now allows you to force _SRGB or non-_SRGB formats! You can find the setting for this at the bottom of the settings pane, under “Export Transfer Function”. For more information, please see post 4 below, or Color conversion exceptions using nvtt export - #5 by nbickford !


Hi @F4ll0ut! I believe the closest you can currently get is by selecting 8.8.8.8 BGRA:

and by enabling “DDS:Use DXT10 Header” at the bottom here:

image

This will output an uncompressed DDS file using the B8G8R8A8_UNORM DXGI format - roughly similar to R8G8B8A8_UNORM_SRGB, but the channels are in a different order, and the GPU does not automatically convert colors to linear.

(Without “Use DXT10 Header”, it’ll output an uncompressed DDS file that uses bitmasks; this should be compatible with apps that use DDS readers from before DirectX 10 was released.)

Is there a specific app you’re trying to use this file with, if I can ask?

Thanks!

Thanks for your answer. It’s for a texture for the game Starfield that just came out.

Hi @F4ll0ut! Sorry to revive this old thread, but we had a quick update on this.

We released NVIDIA Texture Tools Exporter 2024.1.1 today, which adds support for writing uncompressed textures in RGBA8 format (previously, we supported BGRA8 but not RGBA8)!

If you check “DDS: Use DXT10 Header” and set “Export Transfer Function” to “Override: sRGB” at the bottom of the settings pane, the DDS file will use the DXT10 header with the DXGI_FORMAT_R8G8B8A8_UNORM_SRGBformat:

image

image

Hope this helps!