Author |
Message |
RossoAms
Joined: 2023-10-03 14:07:30 Posts: 58
|

I notice that in Preferences-[Graphics][GPU/GL features] the settings in the field "Display gamma" don't make a difference in Linux in Cool VL Viewer v1.32.0.1. The "Exposure" slider in Preferences-[Graphics][Renderer settings] is what regulates brightness. Maybe the "Display gamma" has become a field that is no longer actually in use?
Cool VL Viewer v1.32.0.1, Dec 9 2023 13:27:02 (home compiled) RestrainedLove viewer v2.09.29.28 Release notes
CPU: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz (3092 MHz) Memory: 15972MB OS version: Linux-x86_64 v5.15.0-91-generic Memory manager: jemalloc v5.3.1-20231028 Graphics: NVIDIA GEFORCE GTX 1050 TI/PCIE/SSE2 OpenGL version: 4.6.0 NVIDIA 535.129.03 Detected VRAM: 4096MB J2C decoder: OpenJPEG: 1.4.0.635f Audio driver: FMOD Studio v2.02.19 (PulseAudio) Networking backend: libcurl 7.47.0/OpenSSL 1.0.2u/zlib 1.2.13.zlib-ng Browser plugin: Dullahan 1.13.1/CEF 120.0.1/Chromium 120.0.6099.35 Packets lost: 72/139115 (0.1%)
Built with: GCC v11.4.0 Compiler-generated maths: AVX.
Compile flags used for this build: -O3 -fno-delete-null-pointer-checks -fno-ipa-cp-clone -fno-align-labels -fno-align-loops -DNDEBUG -march=native -std=c++17 -fno-stack-protector -U_FORTIFY_SOURCE -fno-threadsafe-statics -fPIC -pipe -g -gdwarf-4 -fno-var-tracking-assignments -fexceptions -fno-strict-aliasing -fvisibility=hidden -fsigned-char -m64 -mfpmath=sse -fno-math-errno -fno-trapping-math -pthread -DLL_LINUX=1 -DLL_JEMALLOC=1 -DLL_FMOD=1 -DLL_OPENAL=1
|
2023-12-14 23:47:39 |
|
 |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5970
|
Display gamma works just fine, especially with NVIDIA (which I can test here, on four different PCs, with four different NVIDIA cards, from GTX 460 to RTX 3070).
Since you are using a self-compiled binary, your issue might be due to a bad SDL2 library (if you build against system libraries, instead of the pre-built ones)...
Retry with the official build, please, and do provide the logs (there may be more info about it in there) !
Another possibility would be with your desktop environment (compositor, especially) that would override the gamma setting (this is a system-wide setting, not a viewer-only one, since it affects your whole display).
|
2023-12-15 08:44:49 |
|
 |
RossoAms
Joined: 2023-10-03 14:07:30 Posts: 58
|
Thank you for looking into the matter. I replaced the viewer with the download version and uninstalled the brightness controller just to be sure. After a reboot and starting the Cool VL Viewer I could not get "display gamma" to work yet. I always use "exposure" so it does not impair usability in any way, but I was intrigued.
|
2023-12-15 10:52:16 |
|
 |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5970
|
Nothing in the log, and no clue on my side for what is going wrong on your system: but it is definitely not a viewer bug...
Note that the "Exposure" graphics setting is only available in PBR rendering mode, and on the condition that HDR tone mapping is active (for legacy environment settings, the toggle for HDR tone mapping auto-adjustment/override is the in World -> Environment sub-menu). But it has nothing to do with display gamma (which is a display driver setting impacting the whole system, not a shader parameter local to the viewer 3D rendering).
If display gamma does not work via SDL2 (for whatever system-configuration reason), you can get the same result (excepted that the gamma won't be set on viewer launch and reset on exit), by setting it via the NVIDIA graphics driver control panel ("GPU 0" scroll down list, <Monitor port> (e.g. "DP-0", "HDMI-1", etc) entry, "Color Correction" tab, "Gamma" slider).
|
2023-12-15 13:00:05 |
|
 |
ZaneZimer
Joined: 2016-06-19 21:33:37 Posts: 387 Location: Columbus area, OH, USA
|
I just gave gamma a try on my rig and admit, I don't see any change either. I have never needed it so never tried it. I'll poke around a bit but suspect my desktop or the NVIDIA controls might be overriding.
|
2023-12-15 13:58:21 |
|
 |
RossoAms
Joined: 2023-10-03 14:07:30 Posts: 58
|
I have a different Nvidia panel (picture attached) and made an application profile for The Cool VL Viewer with just the threaded optimizations set to "true". I will see if I can find anything in the Xorg settings.
|
2023-12-15 15:25:54 |
|
 |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5970
|
Do not do that, please (remove that profile): the cool_vl_viewer wrapper script takes care of setting the proper graphics driver parameters (see cool_vl_viewer.conf if you want to change them). Linux is not Windoze...  And the gamma is in the panel for the "DVI-D 0" entry, on your screen shot.
|
2023-12-15 16:58:38 |
|
 |
g0rd0ngrfr33mailgr
Joined: 2011-09-27 11:18:31 Posts: 232
|
On AMD (latest AMDGPU) the setting works fine.
|
2023-12-15 17:56:07 |
|
 |
RossoAms
Joined: 2023-10-03 14:07:30 Posts: 58
|
Okay I will remove the profile. But it was the first time I could think of an Nvidia profile that actually makes sense. 
|
2023-12-15 18:41:45 |
|
|