Page 1 of 1

Thin-film Interference

Posted: Mon May 11, 2020 5:39 pm
by B.Y.O.B.
I have added support for thin-film interference to the following materials:
  • Glass
  • Arch. glass
  • Rough glass
  • Disney
It can be used for oil slicks, soap bubbles, oxid layers on heated metal, car paint, anti-reflective coatings, beetle carapace etc.
The resulting colors depend on the thickness of the film, the refractive index of the film, and the angle between surface and viewer.

81478402-7867d900-921d-11ea-8bb4-7a62887aa98e.png

BlendLuxCore

In the Blender addon, the "glass" and "disney" nodes now have a "Thin Film Coating" checkbox.
If enabled, you can specify the thin film thickness (in nanometers) and the IOR of the coating material with two new sockets.
On the disney node, there is an additional "Film Amount" socket so you can mix in more or less of the film effect.
Capture.PNG

LuxCore SDL

The textures to control the film appearance are defined with the properties

Code: Select all

scene.materials.<material name>.filmthickness = 300  # in nanometers
scene.materials.<material name>.filmior = 1.5
The disney material has the additional property

Code: Select all

scene.materials.<material name>.filmamount = 1
which is the linear interpolation factor between no film and film.

Re: Thin Film Interference

Posted: Mon May 11, 2020 6:44 pm
by u3dreal
Looks really awesome !!! :o

Re: Thin Film Interference

Posted: Mon May 11, 2020 7:22 pm
by lacilaci
Yup, this is a fantastic addition. :D

Re: Thin-film Interference

Posted: Tue May 12, 2020 9:39 am
by JoeDDD
B.Y.O.B. wrote: Mon May 11, 2020 5:39 pm I have added support for thin-film interference to the following materials:
  • Glass
  • Arch. glass
  • Rough glass
  • Disney
Would it be possible to add film option also to anisotropic metal shader? Because the disney anisotropic works kinda weird and has less options.
Great addition btw!

Re: Thin-film Interference

Posted: Tue May 12, 2020 12:47 pm
by TAO
Weldone.
Which revision could I use so I can add thin-film interference to MaxToLux?

Re: Thin-film Interference

Posted: Tue May 12, 2020 12:50 pm
by B.Y.O.B.
You will need the latest daily build of LuxCore.

Re: Thin-film Interference

Posted: Fri May 15, 2020 4:01 pm
by Fox
Very cool feature, thank you.

I tested this out on my camera scene:
Path_Caustic_Cache_12h.jpg