linear workflow in lightwave

Upload: miguel-ramos

Post on 15-Oct-2015

21 views

Category:

Documents


0 download

DESCRIPTION

Linear Workflow in LightWave

TRANSCRIPT

  • 5/25/2018 Linear Workflow in LightWave

    1/47

    Linear Workflowin LightWave

    What is it and why you should care

    Matt Gorner | ww

  • 5/25/2018 Linear Workflow in LightWave

    2/47

    In a nut shell ...

  • 5/25/2018 Linear Workflow in LightWave

    3/47

    Linear WorkflowLightWaves render engine works in linear colour space internally

  • 5/25/2018 Linear Workflow in LightWave

    4/47

    Linear WorkflowFor the rendering calculations to be correct, LightWave expects colours and textures to be linear too

    TIF

    TGA

    JPG

    Expects Linear Input Data Linear Internally

  • 5/25/2018 Linear Workflow in LightWave

    5/47

    Linear WorkflowExcept High Dynamic Range and data images such as normal maps

    EXR

    Normal

    TIFF32

    HDR

    HDR Images / Data Images Linear Internally

  • 5/25/2018 Linear Workflow in LightWave

    6/47

    Linear WorkflowBut often colours and texture maps are Gamma encoded

    TIF

    TGA

    JPG

    Gamma Applied Linear Internally

  • 5/25/2018 Linear Workflow in LightWave

    7/47

    Linear WorkflowSo textures and colours need to be converted to linear colour space

    Linear Internally

    TIF

    TGA

    JPG

    Converted to Linear

  • 5/25/2018 Linear Workflow in LightWave

    8/47

    Linear WorkflowThis is done by applying the inverse of the colour space applied to the texture or colour

    sRGB

    ( 2.2 Gamma )

    Apply Inverse

    ( 1.0 / 2.2 )

    Linear

    ( 1.0 Gamma )

  • 5/25/2018 Linear Workflow in LightWave

    9/47

    Linear WorkflowSo now, all the data fed into the rendering algorithm is in the same space

    TIF

    TGA

    JPG

    Linear Input Data Linear Internally

  • 5/25/2018 Linear Workflow in LightWave

    10/47

    Linear WorkflowOnce rendering is complete, the final image will also be in linear colour space

    TIF

    TGA

    JPG

    Linear Input Data Linear Internally

    R

    Linear Im

  • 5/25/2018 Linear Workflow in LightWave

    11/47

    Linear WorkflowLinear Workflow - The process of keeping all data linear through the rendering process

    TIF

    TGA

    JPG

    Linear Input Data Linear Internally

    R

    Linear Im

  • 5/25/2018 Linear Workflow in LightWave

    12/47

    Linear WorkflowHowever, linear images cannot be displayed properly on conventional monitors

    TIF

    TGA

    JPG

    Linear Input Data Linear Internally

    Render

    Linear Image Need Gamma En

  • 5/25/2018 Linear Workflow in LightWave

    13/47

    Render

    Linear ImageLinear Internally

    Linear WorkflowThey need to be Gamma encoded to look correct, this can be done in LightWave

    TIF

    TGA

    JPG

    Linear Input Data

    Rend

    Apply Gam

  • 5/25/2018 Linear Workflow in LightWave

    14/47

    Render

    Linear ImageLinear Internally

    Linear WorkflowYou also need to Gamma encode if saving to an 8-bit image format (e.g. JPEG)

    TIF

    TGA

    JPG

    Linear Input Data

    JPEG

    Apply Gam

  • 5/25/2018 Linear Workflow in LightWave

    15/47

    Render

    Linear ImageLinear Internally

    Linear WorkflowOr the render can be left linear and saved as an HDR image to be tone mapped in another application

    TIF

    TGA

    JPG

    Linear Input Data

    HDR

    Tone map Ins

  • 5/25/2018 Linear Workflow in LightWave

    16/47

    What Does This Do

    For Me Exactly?

  • 5/25/2018 Linear Workflow in LightWave

    17/47

    Images are displayed correctly

    Linear (1.0 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    18/47

    Images are displayed correctly

    sRGB (2.2 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    19/47

    Lights with Inv2falloff behave correctly

    Linear (1.0 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    20/47

    Lights with Inv2falloff behave correctly

    sRGB (2.2 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    21/47

    Materials respond correctly

    Linear (1.0 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    22/47

    Materials respond correctly

    sRGB (2.2 Gamma)

  • 5/25/2018 Linear Workflow in LightWave

    23/47

    Why do I have to

    do all this anyway?

  • 5/25/2018 Linear Workflow in LightWave

    24/47

    What you need to knowThere are four main topics that help in understanding why Linear Workflow is important

    How Devices Capture Images(Cameras, Scanner, Etc)

    How Devices Display Images How Our Eyes SWhat Gamma is

  • 5/25/2018 Linear Workflow in LightWave

    25/47

    How Devices

    Display Images

  • 5/25/2018 Linear Workflow in LightWave

    26/47

    How Devices Display ImagesWe need to go back to how CRT displays work ...

  • 5/25/2018 Linear Workflow in LightWave

    27/47

    How Devices Display ImagesCRT displays work by taking an input voltage ...

    Input: Voltage

  • 5/25/2018 Linear Workflow in LightWave

    28/47

    How Devices Display ImagesWhich the electron gun inside the CRT uses to fire electron beams at a phosphor coated screen.

    The phosphor reacts by emitting light when it is hit by a beam (output light)

    Input: Voltage

    Output: Light

  • 5/25/2018 Linear Workflow in LightWave

    29/47

    How Devices Display ImagesHowever, due to electrostatic effects inside the CRT electron gun, the output response to the input voltage is not linear

    Input: Voltage

    Output: Light

    Light Intensity

    Input Voltage

    Not a linear relationship

  • 5/25/2018 Linear Workflow in LightWave

    30/47

    How Devices Display Images

    On a CRT display, light intensity is approximate to the voltage raised to the power

    close to 2.5, which can be expressed using:

    L= ( V+ )

    The numerical value of this power law is known as Gamma

    Input: Voltage

    Output: Light

    Light Intensity

    Input Voltage

  • 5/25/2018 Linear Workflow in LightWave

    31/47

    How Devices Display ImagesOr, to put it another way, on a CRT display, the relationship of input voltage to light output intensity is curved.

    The mathematical description of this curve is called Gamma

    Input: Voltage

    Output: Light

    Light Intensity

    Input Voltage

  • 5/25/2018 Linear Workflow in LightWave

    32/47

    How Devices Display ImagesOkay, so a CRT has a nonlinear Gamma curve, so what! Everyone uses TFT displays these days?

  • 5/25/2018 Linear Workflow in LightWave

    33/47

    How Devices

    Capture Images

  • 5/25/2018 Linear Workflow in LightWave

    34/47

    How Devices Capture ImagesElectronic devices capture light and convert it to an electrical signal ...

    Input: Light

    Charge Coupled Device

    Complementary Metal Oxide Semiconductor

    CCD

    CMOS

    Converted to Electrical Signal

  • 5/25/2018 Linear Workflow in LightWave

    35/47

    Input: Light

    How Devices Capture ImagesCameras capture light intensity proportionally to the amount of light coming into the lens,

    or, they capture and store the light linearly.

    Light IntensityCharge Coupled Device

    Complementary Metal Oxide Semiconductor

    CCD

    CMOS

    Converted to Electrical Signal

    H D i C I

  • 5/25/2018 Linear Workflow in LightWave

    36/47

    Output: ElectricInput: Light

    How Devices Capture ImagesHowever, the electrical signal is Gamma encoded before it is saved or broadcast

    Charge Coupled Device

    Complementary Metal Oxide Semiconductor

    CCD

    CMOS

    Light Intensity Gamma Encode

    Gamma encoding takes advarange our eyes can see, and re

    data to 8-bit. This make valuvisually equal in intensity chan

    making the data more e

    Converted to Electrical Signal

  • 5/25/2018 Linear Workflow in LightWave

    37/47

    How Our

    Eyes See

    H O E S

  • 5/25/2018 Linear Workflow in LightWave

    38/47

    Our eyes do not perceive light intensity in a linear manner

    How Our Eyes See

    Perceived Brightness

    Light Intensity

    Not a linear relationship

    H O E S

  • 5/25/2018 Linear Workflow in LightWave

    39/47

    Human vision has a nonlinear perceptual response to brightness

    How Our Eyes See

    Perceived Brightness

    Light Intensity

    How Our Eyes See

  • 5/25/2018 Linear Workflow in LightWave

    40/47

    If we were to look at source of light intensity (could be anything, not just an actual light)

    How Our Eyes See

    Light Intensity

    Eye Perceptual Response

    Reference Intensity

    Reference Source

    Reference Intensity

    Perceived Brightness

    How Our Eyes See

  • 5/25/2018 Linear Workflow in LightWave

    41/47

    Then look a source half as intense, we do not perceive it as half the brightness

    How Our Eyes See

    Light Intensity

    Eye Perceptual Response

    Reference Intensity

    Half Intensity

    of Reference Source

    Half Reference Intensity

    Perceived Brightness

    How Our Eyes See

  • 5/25/2018 Linear Workflow in LightWave

    42/47

    For our eyes toperceive the source as half as bright, the reference intensity would need to be around 18%

    How Our Eyes See

    Light Intensity

    Eye Perceptual Response

    Reference Intensity

    Half Intensity

    of Reference Source

    Half Reference Intensity

    Perceived Half Brightness

    18%

    How Our Eyes See

  • 5/25/2018 Linear Workflow in LightWave

    43/47

    This curve looks familiar doesnt it!

    How Our Eyes See

    How Our Eyes See

  • 5/25/2018 Linear Workflow in LightWave

    44/47

    In an amazing coincidence, the human eye perceives light intensity at almost the exact inverse of

    how CRT displays respond to input voltage

    How Our Eyes See

    Perceived Brightness

    Light Intensity

    Light Intensity

    Input Voltage

  • 5/25/2018 Linear Workflow in LightWave

    45/47

    How This All Fits Together

    How This All Fits Together

  • 5/25/2018 Linear Workflow in LightWave

    46/47

    All of this is so that light intensity is compensated for how we see, and allows predictable intensity changes

    How This All Fits Together

    Linear Response Gamma Correction Display Gamma Visual Percept

    Input: Light

    CCD

    CMOS

    Linear Workflow

  • 5/25/2018 Linear Workflow in LightWave

    47/47

    Linear Image Data 8-bit Ima

    HDR

    LDR

    Linear WorkflowThis is same process in LightWave - to ensure predictable results

    TIF

    TGA

    JPG

    Linear Input Data Linear Internally

    Render

    Linear Image Need Gamm