Page 1 of 1

customize the thin film color ramp from .xls charts

Posted: Wed Nov 21, 2018 5:05 pm
by plyject
hello,

I´ve to do some renderings with crystals and they have a special metallic angle dependent coating.
they sent me some .xls charts with all the RGB values in 5 degree steps for transmission and reflection taken from the real life object :)

is there a way to read this values from the .xls chart to set the thin film to my special needs or is the color ramp pre defined and u can just play with the given values (film index and film with)

thanks for any help,

steph

Re: customize the thin film color ramp from .xls charts

Posted: Wed Nov 21, 2018 8:08 pm
by DinoMuhic
Is the color table using 3 channels or 1 channel?
I don't have a definite answer to this but I wonder if the thin film is'nt just a glorified specular color ramp depending of viewing angle.
If this would be the case then you could port a falloff node into a gradient node and port that into the transmission and specular channels. And in the gradient node you would then define the colors, knowing that one far end of the gradient is 90° viewing angle and the other 0°

Re: customize the thin film color ramp from .xls charts

Posted: Wed Nov 21, 2018 8:09 pm
by DinoMuhic
However if you want to automate it, I bet someone smart could write an OSL shader for exactly that.

Re: customize the thin film color ramp from .xls charts

Posted: Thu Nov 22, 2018 9:15 pm
by plyject
they are 3 channels (RGB)
I´ll try that

thanks for your advice!