Thin-film Interference

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Thin-film Interference

Post 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.
User avatar
u3dreal
Developer
Developer
Posts: 546
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Thin Film Interference

Post by u3dreal »

Looks really awesome !!! :o
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Thin Film Interference

Post by lacilaci »

Yup, this is a fantastic addition. :D
JoeDDD
Posts: 26
Joined: Sun Jan 13, 2019 8:00 am

Re: Thin-film Interference

Post 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!
User avatar
TAO
Developer
Developer
Posts: 836
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Thin-film Interference

Post by TAO »

Weldone.
Which revision could I use so I can add thin-film interference to MaxToLux?
Omid Ghotbi (TAO)
Last update information
viewtopic.php?f=5&t=1010&start=590#p30154
artstation https://www.artstation.com/omidghotbi
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Thin-film Interference

Post by B.Y.O.B. »

You will need the latest daily build of LuxCore.
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Thin-film Interference

Post by Fox »

Very cool feature, thank you.

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