I implemented gamut mapping in Ive's spectral rendering rig, based on method 2
of CIE.inc in Lightsys IV. Values above 1.0 are still clipped (which can
distort the hue). Attached are renders of a modified version of Prism.pov. As
you can see from the Osram render, there are still some bugs to be worked out
for brighter values.
I made one change from the algorithm in MapGamut(): when finding the lowest of
the RGB channels, I used <= instead of <, because the latter would always return
the blue value if the red and green happened to be identical. (You might want
to look into that, Ive.)
Post a reply to this message
Attachments:
Download 'prism_montage.png' (41 KB)
Preview of image 'prism_montage.png'
|