So if I was doing a blue colour, the fire would be more pink, blue & purple. Not as much red & yellows. Is this possible? I have been just changing the Cauchy-C as I believe the B is just Index of Refraction, correct?
How does one create a Spectrum file that can be imported through the “Spectrum from file” option?
For materials like glass, or gems, using a fixed index of refraction, like for example 1.5, independent on the wavelength, is non sufficient to simulate some effects such as dispersion. The Cauchy spectrum node generates an index of refraction that varies based on the wavelength according to the above Cauchy Equation, producing much more realistic results.
To change the color of the gem, the best way is to adjust the absorption of the dielectric medium. As light travels inside the gem, light is absorbed depending on this absorption parameter. So if you set the absorption parameter to blue, all the blue frequency of light will be absorbed, and the gem will look yellow, because none of the red and green frequencies will be absorbed. If you set the absorption parameter to black, the gem will look white, because none of the frequencies will be absorbed. Please also note that the absorption parameter is on dependent on the size of the gem, because the longer the distance the light travels inside the gem, the more light will be absorbed. For this reason, you might want to adjust the scale of the color parameter to values much bigger than one.
For the spectrum files, please refer to the reference in Help->View Help and look for the “Spectrum(spd)” files reference. There is a explanation with examples on how to create spd spectrum files. You can use the nodes created in this way as input for the absorption parameter of the dielectric medium. If you use measured data from real life crystals you will get very realistic results. You can find online the tabulated data for many common crystals, for example here: http://minerals.gps.caltech.edu/FILES/Visible/Index.html
Thanks Nicola, i was reading the Wikipedia reference and I understand the Cauchy Equation.
I was playing with the various parameters yesterday. I use a lot of Swarovski crystals and some of these have “effects” painted on a clear crystal. So I am trying to replicate some of these effects, that is why the the question …
I will give that a try.
Thanks for the link. I did do a reference file of gems and there IOR. I will check this out.
Ciao Randy,
Yes, you can just use a regular text editor.
In the .spd files, you forgot to put a “#” at in front of the lines that represent a comment. It should be:
#format
format = wavelength-value
etc… or you can leave the comments out altogether. Please let me know if you can’t get the file to import. If you can’t, can you please include the .spd file here?
Ciao Randy,
The file was created as an .rtf file (see the rtf extension), while you should create a plain text file. rtf files are not good because they add extra characters (not visible in the editor) that prevents them from importing. You should use a plain text editor to create the files, such as nano, or sublime text (I highly suggest this one, it’s fantastic)
I will do with Sublime text, I use this for web stuff. I also use Atom for Rhino + python, because of its integration as a Rhino for Mac python editor.