POV-Ray : Newsgroups : povray.binaries.scene-files : Chromatic dispersion adjustment and an sRGB update Server Time
21 Jul 2024 12:10:41 EDT (-0400)
  Chromatic dispersion adjustment and an sRGB update (Message 1 to 2 of 2)  
From: Cousin Ricky
Subject: Chromatic dispersion adjustment and an sRGB update
Date: 17 Dec 2023 21:04:47
Message: <657fa8bf$1@news.povray.org>
POV-Ray's dispersion algorithm assumes that the given IOR is for a
wavelength midway between red and violet.  However, IORs are normally
given at wavelength D (yellow-orange), which causes POV-Ray to shift the
positions of the colors.  File iorsuggest.inc provides a function that
suggests an adjustment to a material's index of refraction that yields
reasonably accurate dispersion for most materials.

File srgb.inc has been updated to include sRGB decoders.  I omitted
these in previous versions because POV-Ray 3.7+ has a built-in sRGB
decoder.  However, since this file is supposed to be compatible to 3.5,
I added the decoders for those POVers who are still using older versions.

These files are part of my collection at
  https://github.com/CousinRicky/RC3-POV-Tools


Post a reply to this message

From: Cousin Ricky
Subject: Re: Chromatic dispersion adjustment and an sRGB update
Date: 17 Dec 2023 21:05:59
Message: <657fa907$1@news.povray.org>
... and here are the attachments.


Post a reply to this message


Attachments:
Download 'iorsuggest.inc.zip' (2 KB) Download 'srgb.inc.zip' (3 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.