Questions about nk data files

General questions about Indigo, the scene format, rendering etc...
Post Reply
2 posts • Page 1 of 1
Shimegi
Posts: 1
Joined: Sun Oct 08, 2006 5:56 am
Contact:

Questions about nk data files

Post by Shimegi » Sat Feb 17, 2007 1:19 am

Hello,

I used several software like blender, rhino,etc... and I'd like to make my proper materials database based on nk-data system. And apply all of my materials with <nkdata>materials.nk</nkdata>

But I don't understand nothing at all about nk-files syntax, particularly about the first parameters line. Is somebody understand it ? I think the fourth parameters is the number of ior in the nk file, the second parameter seems to modify the light absorption.... some feeling about this but nothing I can use to create a nkdata-like materials database.


If someone can help me... :p

(and sorry for my very poor english)

playmesumch00ns
Posts: 21
Joined: Wed Jun 28, 2006 11:44 pm

Post by playmesumch00ns » Sat Feb 24, 2007 3:47 am

Do you need to understand the file for that?

Anyway, I found the information somewhere on the internet (can't remember where now). Basically it goes like this. The first line contains information about the data in the file. All the other lines are the n and k coefficients, pairwise.

on the first line there are four numbers: a b c d, where:

a = units for the data. 1 is electron volts(eV), 2 is micrometres, 3 is millimetres amd 4 means nanometres.
b = range start
c = range end
d = number of steps

so, for iunstance the header in Ag.nk is:
1 .6 6.6 120

which means the units are eV, the range is from 0.6 to 6.6 eV, and there are 120 data points.

Post Reply
2 posts • Page 1 of 1

Who is online

Users browsing this forum: Baidu [Spider] and 31 guests