jakobwilm / slstudio

SLStudio -- Real Time Structured Light. A comprehensive software suite for capturing and reconstructing 3D scenes with a camera-projector pair.
Other
515 stars 194 forks source link

Gamma correction for second monitor setup? #61

Closed pedroarroyo closed 1 year ago

pedroarroyo commented 1 year ago

Hi,

Currently I seem to be having issues stemming from the nonlinearity of my projector output. I noticed that for the second monitor setup, there seems to be some gamma adjustment code that is commented out and not currently in use. Is this still the right approach or was there a reason this is not implemented?

// Adjust gamma to one // setGamma(1.0); }

void OpenGLContext::setGamma(float gamma) { // Adjust gamma // XF86VidModeGamma xf86Gamma = {gamma, gamma, gamma}; // XF86VidModeSetGamma(contextInfo->display, screenNum, &xf86Gamma); }

jakobwilm commented 1 year ago

Hi Pedro

I guess it is the right approach. Probably commented out due to compatibility issues.