1
[Max] I need help! / Re: Setting RGB baseColor values with maxscript defaulting to linear input?
« on: 2024-05-17, 11:18:30 »
Hi,
depending on your needs you could consider using the accurate formula I think. Just the gamma value as exponent is a quick approximation afaik and you end up with a deviation of about 6 (using 0 to 255) at values around 130. See chart: blue is simple gamma, green graph is what you can find everywhere as formula to convert (the low value cutoffs seem to depend on color space but I think using 0-255 does not resolve enough anyway in that range and I have not used them here).
Good Luck
depending on your needs you could consider using the accurate formula I think. Just the gamma value as exponent is a quick approximation afaik and you end up with a deviation of about 6 (using 0 to 255) at values around 130. See chart: blue is simple gamma, green graph is what you can find everywhere as formula to convert (the low value cutoffs seem to depend on color space but I think using 0-255 does not resolve enough anyway in that range and I have not used them here).
Good Luck