![]() |
• Raytracing • | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
> Intro > Overview • HDRI and Gamma |
— IBL and HDRI: HDRI for IBL, HDRI and Gamma — Making an HDRI Conventional pictures have a dynamic range of 1:256 for each of the colours red, green and blue — at least for the 16 million colours a computer monitor can display. Pictures with a high dynamic range (HDRI) can save a dynamic range of 1:4 billion (4,000 millions) for each of the three colours. To create an HDRI, the same view has to be photographed several times with different f-stop settings and/or shutter speeds. The picture taken with a high number f-stop and a fast shutter speed shows the bright parts in the right light while the darker parts are just black. Those with a smaller f-stop number and a longer exposition time have the bright parts hopelessly burned out but the dark parts are nicely lit. The picture below demonstrates what is meant. With a dedicated program, the individual pictures in the series are combined to an HDRI that includes the combined dynamic range. If the sun is to be shown on the picture, you should start with the highest f-stop number to close the lens as much as possible, and with the highest shutter speed, i.e. the shortest exposition time. The opening of the aperture of the iris by a full f-stop or the doubling of the exposition time double the light that hits the camera. For a series of exposures for an HDRI, one f-stop position or shutter speed setting may be skipped. This means that the light that enters the camera can be quadrupled from shot to shot. If an HDRI is to be made in a raytracing program, the scene has to be rendered several times with different light intensities illuminating the scene. It is good to now that the Intensity Amount in Bryce works linear. This means that doubling the Intensity Amount also doubles the light output (25 - 50 - 100 - 200 - …). Unfortunately, this is not the whole truth. The curves in the graph below that run from top left to bottom right show what you would expect and what you actually get. HDRI programs «know» about this and compensate for this gamma correction of usually 2.2 (if you don't tell them otherwise) when combining the pictures of a series to an HDRI. In some programs, the camera curve can be assessed and stored in the program for a more accurate compensation. To calculate the light intensity, rise the pixel value to the
power of the gamma value. The values shown in the graph were determined as follows. A series of pictures was taken from a sheet of white paper with the digital camera using different shutter speeds. These photographs were applied as material on a 2D-face in Bryce. The 2D-face was set into a pitch black cube and lit by a radial light. The intensity of the radial light was adjusted until the screen brightness was just saturated. The curves from top right to the lower left are the values needed to light an uniformly grey surface. These experiments did not yield scientifically accurate results but are enough to show how the Bryce lights behave. Photograph Example Below a series of pictures taken with a digital camera from a mirror ball. As can be seen, the f-stop remains set while the exposition time was doubled for each subsequent exposure.
As HDRI, this picture has got a dynamic range of 1:3,667 and a Radiosity of 59 at 8 f-stops. Render Example As example «Dragonland» was used. At the place of the camera, a small mirror ball was positioned.
The f-stop and shutter values are the ones that were entered into the HDRI program. The HDRI was calculated without exposure correction. The HDRI has a dynamic range of 1:1,782,312 and a Radiosity of 128,000 at 17 f-stops. Cheat Example Of course, we can always cheat. The sky dome was rendered only once. Contrast, brightness and gamma was adjusted in a graphics application. The series of pictures of a mirror ball shown below resulted from these manipulations.
The f-stop and shutter values are the ones that were entered into the HDRI program.The HDRI was calculated without exposure correction. The HDRI has a dynamic range of 1:135,510 and a Radiosity of 34,099 at 15 f-stops. Calibration Curves As a rule of thumb you can assume a gamma of 2.2 for a photograph taken with a digital camera. Bryce Radial Lights have a gamma of 1. The graph «f-stop Relationships» above was empirically determined using a white picture. If you need it more accurate, the camera gamma response can be determined. The program HDRShop can do that. The procedures can be used to determine the gamma of a Bryce radial light as well, of course. Gamma Curve of a Digital Camera. Calibration curve for the camera based on the picture at left as a series of differently exposed pictures. The curve is not linear. Gamma curve of a Bryce Radial Light which illuminates a photograph. Calibration curve for the Radial Light based on the picture at left as a series of differently illuminated pictures in front of a black sphere. The curve is almost linear. Gamma curve of a Bryce Radial Light which illuminates a synthetic picture Calibration curve for the Radial Light based on the picture at left as a series of differently illuminated pictures in front of a black sphere. The curve is very nearly linear. Gamma corrected curve of a Bryce Radial Light. Calibration curve for the Radial Light based on the picture at left as a series of differently illuminated pictures in front of a black sphere; with Gamma Correction engaged! Is all this labour necessary? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
© 2004 - 2018 by Horo Wernli. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||