sRGB and gamma correction in Java3d
Posted by jimzuber on Jun 18, 2018; 4:53pm
URL: https://forum.jogamp.org/sRGB-and-gamma-correction-in-Java3d-tp4038946.html
I see a number of references in the Java3d documentation that "Java 3D assumes that a linear (gamma-corrected) visual is used for all colors." I assume that this means that Java3d assumes that images loaded (i.e. textureloader) contain linear RGB and not sRGB. If that is the case, what I am not clear about is once all the texturing and/or blending occurs, does Java3d convert the linear RGB to sRGB prior to rendering it on a monitor. Most monitors assume sRGB imput data not linear RGB. If Java3d is displaying linear RGB to a monitor that assumes it is sRGB, the colors will be off.
Is my understanding above correct and if so, is there a way to gamma encode the linear RGB before Java3D renders it?
Any input would be helpful.
Jim