wkjarosz / hdrview

A simple research-oriented image viewer with an emphasis on examining and comparing high-dynamic range (HDR) images, and including minimalistic editing and tonemapping capabilities.
Other
279 stars 11 forks source link

proper color management (at least for EXR) #111

Closed wkjarosz closed 1 year ago

wkjarosz commented 1 year ago

nanogui (at least with metal backend) seems to use sRGB/Rec. 709 primaries and whitepoint (D65), but can display on wide gamut monitors which use the Display P3 colorspace by using RGB values < 0 and > 1.

OpenEXR also by default uses the sRGB/Rec. 709 primaries and whitepoint.

If an OpenEXR file specifies different chromaticities and whitepoint, convert the pixel values (either directly upon load, or only during display in the fragment shader) by multiplying by a file-RGB-to-sRGB matrix.

Some useful resources: