POV-Ray : Newsgroups : povray.beta-test : Gamma tutorial for the 3.7 documentation? Server Time
8 Oct 2024 02:38:00 EDT (-0400)
  Gamma tutorial for the 3.7 documentation? (Message 31 to 35 of 35)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: clipka
Subject: Re: Gamma tutorial for the 3.7 documentation?
Date: 4 Nov 2009 18:10:49
Message: <4af209f9@news.povray.org>
Sven Geier schrieb:

> At this point, it might actually be nice to have a clear "mission statement"
> that actually tells us what purpose all the futzing with gamma in POV is
> actually supposed to have. Input? Output? Both? Some high-level declaration
> against which we can measure any one change that is occuring: "does *this*
> change really serve *that* purpose?"

It's actually about in- /and/ output.

For output, it is about converting from linear light intensity values to 
whatever it takes to make the CRT or LCD display generate just exactly 
that light intensity.

For input, it is about converting e.g. texture images that /already/ 
have undergone such a conversion process (or individual colors "picked" 
from such an image), back to linear light intensity values as needed to 
properly perform the raytracing computations.

Voila.

The current settings


>>  If you specify "50% gray" in your scene file, and the end result is not
>> 50% gray on your screen, is that how you wanted it to work? Because that's
>> how POV-Ray 3.6 works.
> ...
> On the one side, I think of it in terms of physics. Photons interacting with
> surfaces, watts per square meter per steradian emitted in certain given spectral
> bands and then absorbed somewhere else. Diffraction, illumination, scattering.
> All the wonderful bits of math involved. Conservation of energy. That kind of
> thing.
> 
> From this perspective, your question up there doesn't make much sense: a
> specification of "rgb 0.5" in my scene file is about the reality of a given
> object, namely that it emits half as many watts per area into some solid angle
> (given by things like specularity) as it received. This specification is
> completely unrelated to any kind of output device - an object specified as "50%
> grey" can appear on any one monitor as any one color, depending on the
> illumination of that surface by light sources and other surfaces and by the
> angle to and distance from the camera.

Let me rephrase Warp's question a bit:

If you specify an object with a checkered pattern, colored as "50% grey" 
and "100% grey" (i.e. white) - how do you expect the "50% grey" squares 
of the object to appear /in relation to/ the adjacent white squares?

If you specify two spotlights, with brightness of "rgb 1.0" and "rgb 
0.5", illuminating a uniformly colored object - how do you expect the 
illuminated spots to appear /in relation to/ each other?

If you specify two spotlights with brightness of "rgb 0.5" each, shining 
at the /same/ spot on an object - how do you expect the illuminated spot 
to appear /as compared to/ a single light source with brightnes of "rgb 
1.0" instead?

If you specify a light with brightness of "rgb 0.5" illuminating an 
object with a color of "red 1.0", how would you expect that object to 
appear /as compared to/ a similar scene having a light brightness of 
"rgb 1.0" and a color of "red 0.5"?


Of course you cannot name an /absolute/ value for how a color should 
appear in an image, unless you know exactly how bright "1.0" really is 
physically; but you can alway specify /relationships/ between multiple 
color or brightness levels you have specified in your scene. Gamma does 
not only affect the /absolute/ values, but also with the /relative/ ones.


> And from an arts perspective, the recent betas of 3.7 have produced results that
> looked like foot. But looked a lot better if I take them individually into a
> paint program after the fact - and reduce gamma by about ~50%.
> 
> Am I the only one who looks at things this way? Who is the target audience here,
> really? And what do they want and think? I am honestly curious.

I guess since this is an open source project and none of the developers 
get anything out of it except the fun of developing an interesting piece 
of software and/or get an improved version of their favorite ray tracing 
software, the target audience of POV-Ray is people having the same 
mindset about 3D rendering as the developers themselves.

I can't speak for the dev team, but I can speak for myself as a 
contributing developer: As a hobbyist I don't have access to 
professional physical light simulations; but having always been 
interested in natural science, my approach at trying to achieve effects 
is a very physics-oriented one; I'm not asking "how does /this/ software 
package happen to allow me to create that effect", but "how does /real 
life/ create it. And therefore that's how I want POV-Ray to operate, 
too, so I can more easily wrap my head around how to get the software to 
produce what I want.

I also think that it makes sense to follow this way even if other people 
approach it with that other mindset of "how does /POV-Ray/ allow me to 
create that effect" - because for those folks it wouldn't matter whether 
the rules by which POV-Ray operates are close to real-world physics, or 
some magic fantasy science.


Now as for your problems with POV-Ray 3.7, I suppose that they result 
not from this mindset per se, but rather from a change in the way how 
POV-Ray does things (especially gamma handling) that you just haven't 
got accustomed to - or from the known issues with input file gamma, 
which will be addressed with the next beta.


Post a reply to this message

From: Robert McGregor
Subject: Re: Gamma tutorial for the 3.7 documentation?
Date: 4 Nov 2009 21:30:00
Message: <web.4af237d9e70cefa24726e92b0@news.povray.org>
"Sven Geier" <.sven.at.sgeier.dot.net.nospamplease> wrote:
> All that said - my preferred way of looking at POV-Ray is from an arts
> perspective...And from an arts perspective, the recent betas of 3.7 have produced
results that
> looked like foot. But looked a lot better if I take them individually into a
> paint program after the fact - and reduce gamma by about ~50%.
>
> Am I the only one who looks at things this way? Who is the target audience here,
> really? And what do they want and think? I am honestly curious.

Wow, ouch, "foot" doesn't sound so good (although I'm not sure what that means
where you live), but I definitely look at POV from an artist's perspective too.
And even though I'm a programming geek I try to put aside most of the technical
trivia and just get shots to look the way I want, using whatever means I need to
achieve that look.

Anyway, as for me, this 3.7 gamma change has really hampered me this last
several weeks since I (finally) started using the beta, because I just didn't
understand what it was all about, my old POV mindset was so ingrained I thought
something had gone whacky (which from that point of view, it did).

Now I've realized that I need to learn more about how colors and intensities of
those colors are propagated to various hardware devices, and that gamma
correction is the tool to make sure we all see the same thing, regardless of
what system we're using (assuming default gamma settings are correct on various
computers, which it seems they're not, and that bugs me).

I'd honestly prefer to work in linear 1.0 floating point gamma space and have my
output be a non-dithered, non-clamped HDR/EXR so there's no information lost,
but to be able to see that image as a properly gamma corrected preview on my
render window that looks like what my non-linear human eye would expect it to.

Or maybe I should just take up oil painting again... it's so analog.


Post a reply to this message

From: Robert McGregor
Subject: Re: Gamma tutorial for the 3.7 documentation?
Date: 4 Nov 2009 21:40:01
Message: <web.4af23a1ae70cefa24726e92b0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> I guess since this is an open source project and none of the developers
> get anything out of it except the fun of developing an interesting piece
> of software and/or get an improved version of their favorite ray tracing
> software, the target audience of POV-Ray is people having the same
> mindset about 3D rendering as the developers themselves.

> I can't speak for the dev team, but I can speak for myself as a
> contributing developer: As a hobbyist I don't have access to
> professional physical light simulations; but having always been
> interested in natural science, my approach at trying to achieve effects
> is a very physics-oriented one; I'm not asking "how does /this/ software
> package happen to allow me to create that effect", but "how does /real
> life/ create it. And therefore that's how I want POV-Ray to operate,
> too, so I can more easily wrap my head around how to get the software to
> produce what I want.

Well said Chris! I couldn't agree more :D

> Now as for your problems with POV-Ray 3.7, I suppose that they result
> not from this mindset per se, but rather from a change in the way how
> POV-Ray does things (especially gamma handling) that you just haven't
> got accustomed to - or from the known issues with input file gamma,
> which will be addressed with the next beta.

That's certainly been a real pain in my "foot" lately (cool, I've learned a new
slang expression from Sven!)

I await the new beta with high hopes for it helping my gamma problems vanish
forever.


Post a reply to this message

From: Jim Holsenback
Subject: Re: Gamma tutorial for the 3.7 documentation?
Date: 7 Nov 2009 07:46:47
Message: <4af56c37@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:4aa3a4e0@news.povray.org...
>  Preferably this tutorial would be somewhere in the documentation that 
> makes
> it prominent and visible, rather then buried under hundreds of similar
> subsections.

I see that there has been some activity on the Wiki with this issue ...

I have some ideas on places in the docs this should go:

In the reference there is already a section on setting display gamma:
http://wiki.povray.org/content/Documentation:Reference_Section_1.1#Setting_your_Display_Gamma

or

A new sub-section in the tutorial advanced features section with a link in:
http://wiki.povray.org/content/Documentation:Tutorial_Section_1#Introduction

perhaps expanding the list item 3 sentence in the intro to include a mention 
gamma, radiosity ... whatever.

any other ideas?

Jim


Post a reply to this message

From: clipka
Subject: Re: Gamma tutorial for the 3.7 documentation?
Date: 7 Nov 2009 09:44:07
Message: <4af587b7$1@news.povray.org>
Jim Holsenback schrieb:

> I see that there has been some activity on the Wiki with this issue ...
> 
> I have some ideas on places in the docs this should go:
> 
> In the reference there is already a section on setting display gamma:
>
http://wiki.povray.org/content/Documentation:Reference_Section_1.1#Setting_your_Display_Gamma
> 
> or
> 
> A new sub-section in the tutorial advanced features section with a link in:
> http://wiki.povray.org/content/Documentation:Tutorial_Section_1#Introduction
> 
> perhaps expanding the list item 3 sentence in the intro to include a mention 
> gamma, radiosity ... whatever.
> 
> any other ideas?

I think there are two major areas to cover on gamma:

(1) What is it all about?

(2) How to deal with gamma issues properly
(2a) How to set up POV-Ray
(2b) How to deal with issues creeping up later


We might want to place (2a) right in the "getting started" instructions, 
or at the very least reference it from there.

(1) and (2b) might go together somewhere in the tutorial section, and 
(2a) might be mentioned there again; however, given how much can be 
written about gamma, I think the whole topic is worth a "page" on its own.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.