POV-Ray : Newsgroups : povray.advanced-users : Help on dispersion value Server Time
1 Nov 2024 03:16:17 EDT (-0400)
  Help on dispersion value (Message 1 to 7 of 7)  
From: Opal
Subject: Help on dispersion value
Date: 6 Apr 2008 21:10:00
Message: <web.47f970f5a63837b7c87d9e20@news.povray.org>
Hi there,

I'm trying to render the most realistic diamond there can be. To do so I need
realistic IOR value and dispersion value. At first I found them in consts.inc
shipped with POV-Ray, namely IOR value = 2.47 (or sth) and dispersion value =
1.035. Then I got across some scientific page about diamonds. As of 2003, the
most accurate value for diamond's IOR is 2.4175, and dispersion value of 0.044.

So my question is: how does 1.035 from POV-Ray relate to 0.044 from the web?
The 0.044 value is said to be "disspersion strength":

  Index of
  Colour    Refraction  Source Line    Wavelength

  Red       2.407       Solar  B-line   687   nm
  Yellow    2.417       Sodium D-line   589.3 nm
  Violet    2.452       Solar  G-line   431   nm

The difference between the indexes of refraction (2.452 - 2.407) is the
dispersion (0.044). (There is a small rounding error.)

http://www.folds.net/diamond_design/index.html#ed_note_04

I'd appreciate any help.

Best regards,
Opal


Post a reply to this message

From: Alain
Subject: Re: Help on dispersion value
Date: 7 Apr 2008 12:16:52
Message: <47fa48f4@news.povray.org>
Opal nous apporta ses lumieres en ce 2008/04/06 21:05:
> Hi there,
> 
> I'm trying to render the most realistic diamond there can be. To do so I need
> realistic IOR value and dispersion value. At first I found them in consts.inc
> shipped with POV-Ray, namely IOR value = 2.47 (or sth) and dispersion value =
> 1.035. Then I got across some scientific page about diamonds. As of 2003, the
> most accurate value for diamond's IOR is 2.4175, and dispersion value of 0.044.
> 
> So my question is: how does 1.035 from POV-Ray relate to 0.044 from the web?
> The 0.044 value is said to be "disspersion strength":
> 
>   Index of
>   Colour    Refraction  Source Line    Wavelength
> 
>   Red       2.407       Solar  B-line   687   nm
>   Yellow    2.417       Sodium D-line   589.3 nm
>   Violet    2.452       Solar  G-line   431   nm
> 
> The difference between the indexes of refraction (2.452 - 2.407) is the
> dispersion (0.044). (There is a small rounding error.)
The dispersion is not a difference but a quotiant.
> 
> http://www.folds.net/diamond_design/index.html#ed_note_04
> 
> I'd appreciate any help.
> 
> Best regards,
> Opal
> 
> 
The only value you need to compute is the dispersion.
The dispersion value is the quotiant of the violet ior divided by the red ior: 
2.452/2.407 = 1.0186955
But, the value you have are not from the extreme ends of the visible spectrum. 
The resulting dispersion is thus slightly smaller than the real dispersion value.

To render the most realistic diamond possible, you'll need to take into acount 
the birefringeance of the diamond, whitch is not possible at present. You'd need 
a syntaxe like:
ior{ior1, ior2, neutral_axis}
where
ior1 is tha base ior, sphericaly constant.
ior2 is the secondary ior perpendicular to the neutral_axis, not constant.
neutral_axis is the axis where the 2 iors have the same value.

-- 
Alain
-------------------------------------------------
I find the affluence of incahol to be totally, whatever he said


Post a reply to this message

From: Alain
Subject: Re: Help on dispersion value
Date: 7 Apr 2008 12:18:49
Message: <47fa4969$1@news.povray.org>
Opal nous apporta ses lumieres en ce 2008/04/06 21:05:

> 
Forgot to mention that the dispersion is also variable in a birifringeant 
material. You need 2 dispersions values, each associated with it's respective ior.

-- 
Alain
-------------------------------------------------
Monday is an awful way to spend 1/7 of your week.


Post a reply to this message

From: Opal
Subject: Re: Help on dispersion value
Date: 7 Apr 2008 13:25:00
Message: <web.47fa5886348fa8a9c87d9e20@news.povray.org>
"To render the most realistic diamond possible, you'll need to take into acount
the birefringeance of the diamond, whitch is not possible at present."

Hmmm. Nevertheless, the statement is still true - the most realistic diamond
possible - and since simulating birefringent materials is impossible I can
cross out this option (for now).

BTW: Is birefringence (and trirefringence) planned in future versions of
POV-Ray? And isn't there any trick to achieve similar effect to birefringence?

Best regards,
Opal


Post a reply to this message

From: Alain
Subject: Re: Help on dispersion value
Date: 8 Apr 2008 12:53:38
Message: <47fba312$1@news.povray.org>
Opal nous apporta ses lumieres en ce 2008/04/07 13:23:

> BTW: Is birefringence (and trirefringence) planned in future versions of
> POV-Ray? And isn't there any trick to achieve similar effect to birefringence?
> 
> Best regards,
> Opal
> 
> 
> 
Not to my knowlege.

It may be possible to fake it to a point using an averaged material. Need to 
experiment.

-- 
Alain
-------------------------------------------------
The tree of liberty must be refreshed from time to time with the blood of
patriots and tyrants.
Thomas Jefferson


Post a reply to this message

From: stbenge
Subject: Re: Help on dispersion value
Date: 13 Apr 2008 17:00:01
Message: <48027451@news.povray.org>
Opal wrote:
> BTW: Is birefringence (and trirefringence) planned in future versions of
> POV-Ray? And isn't there any trick to achieve similar effect to birefringence?

Like Alain said, you can average two textures together. Each texture 
would have a slightly different surface normal, but this is a hack and 
will not be very accurate (to the eye, maybe...)

If you didn't know about this already, I'll tell you now of a useful 
include file containing different ior, dispersion and birefringence 
values for many different minerals:

http://www.seasoft.tecbox.com/Pov/NewIOR.html

The dispersion values are based on MegaPOV's implementation of said 
effect, but they should also work with the official versions.

I hope this helps!

Sam


Post a reply to this message

From: Opal
Subject: Re: Help on dispersion value
Date: 14 Apr 2008 16:45:00
Message: <web.4803c1f4348fa8a9c87d9e20@news.povray.org>
Wow!

The thing's great.
Thank's alot for that.

There's also a gem cutting library, but very basic.

I also work on a gem cutting library - more complex one - that would contain not
only modern cutting techniques, but also historical ones. Tho, these techniques
don't give yet same effect as real-life jewels. Everything would be put in
parameterized macros (not containing hundreds of single facets).

Thanks all for help, I really do appreciate it.

Regards
Opal


Post a reply to this message

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