Converting your RGB colour To NK
I only known two formula they required either assuming the extinction coefficient is zero (second number), the formula I used or the refraction index = 1 (first number). when you change the ordering (i.e second number becoming first and first number becoming second) you probbaly get totally different colour
As requestedKram1032 wrote:could you add a reversed version?
I'd like to use nk-ish things with SSS or difuse (which actually should be possible by using Exp 0-1) or st. like that
AND it would be great, if you'd add the IoR, too.
Those balls look great, already!

http://www.renderlight.co.uk/files/rgbtonk.exe
just drag and drop *.nk or *.ior file anywhere inside the app's window and copy the result rgb colour. It should read *.nk, *.ior with measurement in electron volt (1), micrometre (2) and nanometre(4)

result RGB colour used in specular or diffuse component
Hey dude, the drag & drop Stuff doesn't work for metinman999 wrote:just drag and drop *.nk or *.ior file anywhere inside the app's window and copy the result rgb colour. It should read *.nk, *.ior with measurement in electron volt (1), micrometre (2) and nanometre(4)

You are linking to the same file like in your first post, both are the same size...
did you perhaps just post the wrong link for your updated version?
I used v3.9.3 of the needed FreeImage.dll
A scrollbar for the NK output Window would be nice, perhaps a simple "save to nk" dialog too... and finally some fresnel settings

BTW: nice renderer you are working on

BTW2: where to get some example .ior files to test your converter
polygonmanufaktur.de
ZomB wrote:Hey dude, the drag & drop Stuff doesn't work for metinman999 wrote:just drag and drop *.nk or *.ior file anywhere inside the app's window and copy the result rgb colour. It should read *.nk, *.ior with measurement in electron volt (1), micrometre (2) and nanometre(4)
You are linking to the same file like in your first post, both are the same size...
did you perhaps just post the wrong link for your updated version?
I used v3.9.3 of the needed FreeImage.dll
A scrollbar for the NK output Window would be nice, perhaps a simple "save to nk" dialog too... and finally some fresnel settings![]()
BTW: nice renderer you are working on
BTW2: where to get some example .ior files to test your converter
As requested

To Absorption: Convert nk/ior file to rgb absorption coefficient unit is m^-1
To Reflection: Convert nk/ior file to rgb reflection use in diffuse/specular
To RGB: Convert rgb to nk/ior

http://www.renderlight.co.uk/files/rna.zip
Do my convertor used freeimage?
About the fresnel thing I'm not quiet sure, you need to explain more
some transparent ior files for the absorption conversion
http://www.richardosborn.com/maxwell/Ga ... _ext_1.zip
.ior (maxwell) = .nk (indigo) same format different extension
OK uploaded new file with all references to freeimage.dll removed, so you won't need it
http://www.renderlight.co.uk/files/rna.zip
http://www.renderlight.co.uk/files/rna.zip
here is a new version that fixed some problem for non english based windows. Also the reflection calculation used have been change

http://www.renderlight.co.uk/files/newrna.zip

http://www.renderlight.co.uk/files/newrna.zip
hey tineman, nice work on this tool 
I still got some questions:
what exactly Degree is for, it seem not to have any functionality atm.
the ior is alway 0.1xxx, it also can't be altered ?!
why are the absorbation Numers so high, a rgb of 1 1 1 is already a full absorbation in indigo.
The rgb values for Indigo may be higher than 1, but you got the full spectrum using from 0 to 1.
The fresnel effect I was talking about can only be seen in Indigo using NK materials.
Especially the (empty) Void.nk (see posted picture of the black sphere, no reflection at the middle, raising to the sides).
I'm finaly have no real clue how this whole nk stuff works, but being able to do own (colored) nk files with this fresnel effect like void.nk got would be cool!

I still got some questions:
what exactly Degree is for, it seem not to have any functionality atm.
the ior is alway 0.1xxx, it also can't be altered ?!
why are the absorbation Numers so high, a rgb of 1 1 1 is already a full absorbation in indigo.
The rgb values for Indigo may be higher than 1, but you got the full spectrum using from 0 to 1.
The fresnel effect I was talking about can only be seen in Indigo using NK materials.
Especially the (empty) Void.nk (see posted picture of the black sphere, no reflection at the middle, raising to the sides).
I'm finaly have no real clue how this whole nk stuff works, but being able to do own (colored) nk files with this fresnel effect like void.nk got would be cool!
polygonmanufaktur.de
Hi ZomB
To your question about degree ..... this is useful to get the specular color from the complex ior or nk data depending on viewing angle ( in degree)
metals have different colors depending on viewing angle , normally the dominant colors is at 0 degree viewing angle and most of the time at 90 degree viewing angle the color is white ( but not always .... sometimes you have at 90 to 80 degree another "dominant color " different then white or the color at 0 degree viewing angle )
this is one of the reasons why complex ior data are used because of the varying colors ......
the Fresnel effect depend on the IOR value and is most noticeable between IOR greater then 1.000 and lower then 3.000. With higher IOR values the Fresnel effect get less noticeable ( also increasing roughness value makes Fresnel effect less noticeable )
So if you want Fresnel effect , you only have to give an appropriate IOR value because Fresnel is calculated on IOR value .
i hope this can help you
i also agree with you about the High absorption values .... i think it would be better if the program could give a value in the 1.00 rang and a multiplier for absorption strength ...
this program is very useful and i was waiting for somthing like this long time ago
great work tinman
Greetings Patrick
To your question about degree ..... this is useful to get the specular color from the complex ior or nk data depending on viewing angle ( in degree)
metals have different colors depending on viewing angle , normally the dominant colors is at 0 degree viewing angle and most of the time at 90 degree viewing angle the color is white ( but not always .... sometimes you have at 90 to 80 degree another "dominant color " different then white or the color at 0 degree viewing angle )
this is one of the reasons why complex ior data are used because of the varying colors ......
the Fresnel effect depend on the IOR value and is most noticeable between IOR greater then 1.000 and lower then 3.000. With higher IOR values the Fresnel effect get less noticeable ( also increasing roughness value makes Fresnel effect less noticeable )
So if you want Fresnel effect , you only have to give an appropriate IOR value because Fresnel is calculated on IOR value .
i hope this can help you
i also agree with you about the High absorption values .... i think it would be better if the program could give a value in the 1.00 rang and a multiplier for absorption strength ...
this program is very useful and i was waiting for somthing like this long time ago

great work tinman

Greetings Patrick
To Reflection = To reflectance I've mispell itZomB wrote: what exactly Degree is for, it seem not to have any functionality atm.
the ior is alway 0.1xxx, it also can't be altered ?!
why are the absorbation Numers so high, a rgb of 1 1 1 is already a full absorbation in indigo.
The reflectance computation basically used the fresnel equation, in the old version the reflectance return is the reflectance at normal incidence. The purpose of the degree field is to able you to calculated the reflectance at other angle (this was a request). Note reflectance is always 1 at all wavelength at 90degree no matter what the ior is. the average ior displays the average of the ior (the 1st column of numbers in the nk file) from 380nm~780nm. You have to enter a value for the degree first then click on the to reflection button
afaik absorption can be between 0 to infinity because the rule work like this IOut = IIn*exp(-distance*absorption). Indigo's manual has stated the value should be greater or equal to zero. There is no upper limit
reflectance is always between 0 to 1 (indigo's manual has stated that) , value greater than 1 for reflectance doesn't make sense because you can't reflect more energy than you have for input.ZomB wrote: The rgb values for Indigo may be higher than 1, but you got the full spectrum using from 0 to 1.
Don't make sense to me, the fresnel effect is all done within indigo so all you need is to supply the necessay data nk or rgb value depends on the version of indigo. FYI void.nk is just ior 1 for all wavelength and if you just put <0, 0, 0> in the rgb value and convert to nk, save this and replace this for void.nk you should produce the same result as using void.nk in your scene. Any rgb data convert to nk is all you need and indigo will take care of the fresnel effectZomB wrote: The fresnel effect I was talking about can only be seen in Indigo using NK materials.
Especially the (empty) Void.nk (see posted picture of the black sphere, no reflection at the middle, raising to the sides).
Hi again ZomB
if i understand right .... you want to have the Fresnel effect when creating your own nk data with this program ... right ?
If i understand right you would need to sett a low color intensity in the RGB values and then the program would calculate the nk data with probably also a low IOR value that would produce the Fresnel effect ( you would need to do some test and error ...)
i am not sure but give it a try ... ( i am not sure how Indigo handles IOR and Fresnel and the options the user have to control it )
Greetings Patrick
if i understand right .... you want to have the Fresnel effect when creating your own nk data with this program ... right ?
If i understand right you would need to sett a low color intensity in the RGB values and then the program would calculate the nk data with probably also a low IOR value that would produce the Fresnel effect ( you would need to do some test and error ...)
i am not sure but give it a try ... ( i am not sure how Indigo handles IOR and Fresnel and the options the user have to control it )
Greetings Patrick
Who is online
Users browsing this forum: No registered users and 9 guests