11.07.2015 Views

mental ray Architectural and Design Visualization Shader Library

mental ray Architectural and Design Visualization Shader Library

mental ray Architectural and Design Visualization Shader Library

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

90 4 Camera- <strong>and</strong> Exposure Effects4.1.2 The “Photographic” Tone Mapper4.1.2.1 mia exposure photographicThe photographic tonemapper converts actual pixel luminances (in c<strong>and</strong>ela per square meter)into image pixels as seen by a camera, applying camera-related parmeters (like f-stops <strong>and</strong>shutter times) for the exposure, as well as applying tonemapping that emulates film- <strong>and</strong>camera-like effects.It has two basic modes:• “Photographic” - in which it assumes input values are (or can be converted to) c<strong>and</strong>elaper square meter.• “Arbitrary” - in which scene pixels are not considered to be in any particular physicalunit, but are simply scaled by a factor to fit in the display range of the screen.If the film iso parameter is nonzero, the “‘Photographic” mode is used, <strong>and</strong> if it is zero, the“Arbitrary” mode is chosen.declare shader "mia_exposure_photographic" (scalar "cm2_factor" default 1.0,color "whitepoint" default 1 1 1,scalar "film_iso" default 100,scalar "camera_shutter" default 100.0,scalar "f_number" default 16.0,scalar "vignetting" default 1.0,scalar "burn_highlights" default 0.0,scalar "crush_blacks" default 0.25,scalar "saturation" default 1.0,scalar "gamma" default 2.2,integer "side_channel_mode" default 0,string "side_channel",color texture "preview",boolean "use_preview")version 4apply lens, outputend declareIn “Photographic mode” (nonzero film iso) cm2 factor is the conversion factor betweenpixel values <strong>and</strong> c<strong>and</strong>ela per square meter. This is discussed more in detail below.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!