YOUR ACCOUNT

Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4365
Filters: 65
Quote
From the 'Gamma' Tab under 'Tools > Options':

Gamma correction enabled
If the gamma of the image you load or save differs from the gamma value specified below, the image will be gamma-corrected to ensure visual consistency.


How exactly does FF determine the gamma of an image being loaded? I know that some file formats allow for metadata (such as gamma) to be embedded, but many (if not most) standard images come with display gamma correction burned into the pixel values already.
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
A crude example: if you're loading a JPEG, it's assumed to be nonlinear. If you're loading an OpenEXR or a PFM, these are assumed to be linear. If a file has an explicitly specified gamma, we should respect that, but I don't know if this has been implemented. I think we'll get back to gamma in later betas -- I'd like to have a stab at a proper linear workflow.

Also, you can expect all the facts you're asking about to be listed in the help article in the final product.
  Details E-Mail
Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4365
Filters: 65
Quote
Vladimir Golovin wrote:
I think we'll get back to gamma in later betas -- I'd like to have a stab at a proper linear workflow.


Well, a proper linear workflow would keep everything linear and just gamma-correct for display purposes. Shouldn't be too hard to do. Of course, color pickers would have to be gamma-corrected as well...

Personally, I'd like the following:

- Some sort of gamma override inside the image open dialog, to be able to set the gamma on a per-image basis. (Automatically setting gamma by file type can be problematic: some persons actually gamma-correct HDRs, as absurd as that may be).
- A global LUT that governs display gamma throughout FF (including color pickers).
- Post-render tone-mapping options (preferably something that includes mere gamma-correction, yet goes beyond it).

Anyways, I'll let the topic rest now... smile;)
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Quote
Vladimir Golovin wrote:
Well, a proper linear workflow would keep everything linear and just gamma-correct for display purposes.


Here's how I see it (taken from http://www.filterforge.com/download/beta2/gamma.html):

1. Any non-linear input images, such as JPEG photos, are linearized, i.e. converted to linear gamma, on loading. Color picker colors are linearized as well before getting passed to components or renderer. HDR images such as OpenEXR are assumed to be linear, so they should be loaded without linearization unless they explicitly specify a non-linear gamma (in general, Filter Forge should respect the gamma value specified in image files, but it remains unclear whether it is possible to handle gamma correctly when Filter Forge is called as a plugin from a host application). Note that any "data" textures and colors such as normal maps and height values should be left "as is" – they shouldn't be linearized.

2. All internal calculations are performed in linear color space. It so happens that we already do everything in linear, with the exception of lighting, which assumes its diffuse map to be non-linear and linearizes it, adds the light, then gamma-corrects the result back to monitor gamma.

3. The output image and any previews are corrected back to monitor gamma, unless the output image is an HDR image or a "data" texture such as a specular, bump or normal map.


Quote
Crapadilla wrote:
Of course, color pickers would have to be gamma-corrected as well...


Yes, the color pickers (and color swatches as well) are one of the remaining gaps in my understanding of a proper linear workflow.
  Details E-Mail
Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4365
Filters: 65
Do you know this article on linear workflow with 3dsmax/vray? There are three diagrams in it which I always found very helpful; they illustrate quite clearly how the image data (including color pickers and color swatches) transitions between the gamma and linear domains for each of the three possible workflow scenarios.

- old "cheater's workflow":
No gamma-correction at all.
Wrong, wrong, wrong!

- "linear black box" workflow:
Gamma-corrected in - Linear processing - Gamma-corrected out.
Transition workflow!

- fully linear workflow:
Linear in - Linear processing - Linear out.
Correct workflow!
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,714 Registered Users
+19 new in 30 days!

153,538 Posts
+7 new in 7 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

20 unregistered users.