[BUG] NK data file parsing
[BUG] NK data file parsing
I don't know how many people use the .nk data files that come with Indigo, but it only seems to work with the type 1 files - those where the wavelength range is expressed in electron volts. The type 2 files (micrometre wavelengths?) don't seem to work. Is this something that's going to be fixed?
In the mean time, I've written a script to convert the type 2 files to the type 1 using very simple linear interpolation - I can upload these somewhere if people are interested. I don't know how good the conversion is or if I've made any mistakes, as I don't have any experience in radiometry, so would appreciate if someone who knows more about this stuff could do a sanity check on the converted files...
Any help appreciated!
PS. does anybody know if it's possible to get the dielectrics working from their .nk data? Or can they only be controlled by the IOR and cauchy coefficients?
In the mean time, I've written a script to convert the type 2 files to the type 1 using very simple linear interpolation - I can upload these somewhere if people are interested. I don't know how good the conversion is or if I've made any mistakes, as I don't have any experience in radiometry, so would appreciate if someone who knows more about this stuff could do a sanity check on the converted files...
Any help appreciated!
PS. does anybody know if it's possible to get the dielectrics working from their .nk data? Or can they only be controlled by the IOR and cauchy coefficients?
Heya enkidu!!!1
wow, very cool of ya ... and the good thing is, you remembered me that I
found another parsing bug some time ago. As far as I remember right,
will check it tomorrow, the last line is not parsed at all, dunno why. And
another thing that I noticed is, some files include comments - Indigo hates
comments in those files and won't parse them at all. I would like to get my
hands on your script ... I don't know anything about exact IOR data, but at
least we can check them against the Maxwell database.
Thanx in advance for your contribution! ;o)
edit: Dielectric .nk files are not working correct, dunno why. Nick? ^^
take care
psor
wow, very cool of ya ... and the good thing is, you remembered me that I
found another parsing bug some time ago. As far as I remember right,
will check it tomorrow, the last line is not parsed at all, dunno why. And
another thing that I noticed is, some files include comments - Indigo hates
comments in those files and won't parse them at all. I would like to get my
hands on your script ... I don't know anything about exact IOR data, but at
least we can check them against the Maxwell database.
Thanx in advance for your contribution! ;o)
edit: Dielectric .nk files are not working correct, dunno why. Nick? ^^
take care
psor
"The sleeper must awaken"
Re: [BUG] NK data file parsing
I'm one of this people ^^enkidu wrote:... I can upload these somewhere if people are interested...
polygonmanufaktur.de
You really need more than nk file to defined gems
nk file give you the refraction index, As far as I can tell for dielectric they only gives you the real part of the refraction index and rarely give the imaginary part which give the extinction coefficent (from that you can get the absorption coefficient). The absorption is usually defined separately in the form of absorbance spectrum which is very simliar to nk file but for absorption
You also need Birefringence and Polarization
nk file give you the refraction index, As far as I can tell for dielectric they only gives you the real part of the refraction index and rarely give the imaginary part which give the extinction coefficent (from that you can get the absorption coefficient). The absorption is usually defined separately in the form of absorbance spectrum which is very simliar to nk file but for absorption
You also need Birefringence and Polarization
Take a look at this:ZomB wrote:just imagine the possibility's to use NK materials for Gems...
From here: http://www.maxwellrender.com/forum/view ... p?p=157406
Who is online
Users browsing this forum: No registered users and 24 guests