|
|
Am 27.01.2011 20:01, schrieb stbenge:
> Hello,
>
> I'm looking for a proper way to convert an HDR image into a function and
> then back into a pigment.
>
> The problem:
>
> HDR images, when used as functions, produce color banding due to clipped
> (wrapped) color values. This is the typical behavior of functions, and
> should be expected.
Ahh!!! Now I get it. It is not the function itself, it is the range of
the color_map that limits to the 0..1 range. Of course. So Jaimes min()
makes perfectly sense and your solution overcomes this limitation.
> My solution:
>
> Divide the image function by 255 and multiply each channel's color by 255:
The only issue: why 255? Using the 8bit byte range is a completely
random choice and I've seen much higher light intensities within HDR
image files. Given that OpenEXR uses 16bit floats (and Radiance
effectively also) and POV-Ray internal 32bit floats you can safely use a
value of e.g. 10000 without loosing precession.
-Ive
Post a reply to this message
|
|