News:

All posts discussing pricing or where to buy TurboCAD will be deleted.

Main Menu

RGB Color Values in TurboLux

Started by Colin Edgar, November 16, 2026, 06:09:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colin Edgar

If anyone has entered RGB color values for a TurboLux material (e.g., diffuse color) and wondered why the color of the rendered preview looks different (brighter) than expected, it's due to gamma. I was puzzled by this until I did some Google searching. To quote Gemini, "gamma is the mathematical curve used to translate physical light values into the non-linear way human eyes and digital displays perceive brightness". TurboLux (and LuxCoreRender) do their lighting calculations in linear space (gamma = 1.0), but rendered images are displayed on the screen in non-linear space (gamma = 2.2), so non-linear (or sRGB) values must first be converted to linear. One way to do this (there may be other ways as well) is to convert each of the three primary color value as follows, before entering them in TurboLux:

linear = [(non-linear / 255) ^ 2.2] * 255

For example, an sRGB of 100,255,200 would become a linear RGB of 33,255,149. These values would be input into the red, green, and blue fields in TurboLux.

Cheers
TurboCAD Deluxe 2021 (64-bit, ver. 28, build 50); Windows 11 Home; Lenovo Legion 7, Intel Core Ultra 9 275HX, 2.70GHz, 24 cores, 32GB RAM, NVIDIA GeForce RTX 5070

Jeff_in_90620

#1
Interesting.  I'm making a note of this.

Thanks.
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)