News for hackers. Stuff that matters.
Re:Breakdown of a Simple Ray Tracer by nightcracker on Friday February 03, 2017 @09:39PM (#13565319)
WebGL + GLSL should already adjust this for you, giving a linear colorspace. Notice that 'unadjusted' actually looks correct (at least on my browser, Chrome @ Linux).
Re:Breakdown of a Simple Ray Tracer by yoklov on Friday February 03, 2017 @09:53PM (#13565358)
Should as in "it would be nice"? Maybe.

Should as in it does already and this sort of thing is unnecessary? Definitely not. Hence EXT_sRGB.

Re:Breakdown of a Simple Ray Tracer by nightcracker on Saturday February 04, 2017 @10:53AM (#13567354)
Should as in "I believe WebGL + GLSL already does this by default, it does at least on my machine".
Re:Breakdown of a Simple Ray Tracer by yoklov on Wednesday February 08, 2017 @10:46AM (#13599094)
This would be in violation of the standard (in a way that would cause a lot of things to render wrong -- anybody who was rendering correctly would now be wrong!), and also it isn't practical in most cases.

It's a common misconception that this is taken care of for you by <platform X>, but it basically never is. I'm positive this is the case for WebGL.

Re:Breakdown of a Simple Ray Tracer by foolrush on Saturday February 04, 2017 @10:27AM (#13567247)
Linear is not a colourspace.

It is an attribute of a properly defined encoding model. Further, there are two forms of linear display linear and scene linear, which are fundamentally essential to grasp for rendering approaches.

See ISO 22028-1:2004 for a discussion of terms.

Re:Breakdown of a Simple Ray Tracer by nightcracker on Saturday February 04, 2017 @10:57AM (#13567370)
> Linear is not a colourspace.

I never said so. I said it gives >> a << linear colorspace. There are many such color spaces. Some are linear in different aspects (better at close or far away colors), and some only preserve some aspects (linear in brightness, or chroma, etc). I didn't intend to fully go into color theory.

I'm not even certain how well defined the color space is, and how properly linear it is. I do know that it accounts for gamma correction though (at least on my machine).

Re:Breakdown of a Simple Ray Tracer by foolrush on Saturday February 04, 2017 @11:11AM (#13567437)
No.

Linear is not a colour space, as a properly defined colour space, as per the ISO specification, is:

- A well defined transfer function.

- Properly described primary light chromaticities.

- Properly defined white point colour.

Where you reference "there are many such color spaces" is the issue. Linear specifically relates to the first point, and even that doesn't properly describe whether one is speaking of display linear or scene linear.

The other points relate to perceptually uniform discussions, which would be a misuse of the term linear.

I agree that it is not a suitable forum for color theory. “Linear” however, is a much confused subject, worthy of explanation.

Re:Breakdown of a Simple Ray Tracer by jdeeny on Saturday February 04, 2017 @12:21PM (#13567812)
Unadjusted looks correct for me in Chrome and Firefox in Fedora. I have an nvidia card so I'm not using Wayland, I'm not sure if that would make a difference.