Thin-film Interference

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

Thin-film Interference

Post by B.Y.O.B. » 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
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
Posts: 396
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Thin Film Interference

Post by u3dreal » Mon May 11, 2020 6:44 pm

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 - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom - High Sierra, Windows 10, Ubuntu 18.04

User avatar
lacilaci
Donor
Posts: 1913
Joined: Fri May 04, 2018 5:16 am

Re: Thin Film Interference

Post by lacilaci » Mon May 11, 2020 7:22 pm

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 » Tue May 12, 2020 9:39 am

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
Posts: 133
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Thin-film Interference

Post by TAO » Tue May 12, 2020 12:47 pm

Weldone.
Which revision could I use so I can add thin-film interference to MaxToLux?
Omid Ghotbi (TAO)
Download link to last MaxToLux build.👇👇
viewtopic.php?f=5&t=1010&start=160#p22925

User avatar
B.Y.O.B.
Developer
Posts: 3555
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Thin-film Interference

Post by B.Y.O.B. » Tue May 12, 2020 12:50 pm

You will need the latest daily build of LuxCore.

Fox
Posts: 421
Joined: Sat Mar 31, 2018 11:17 am

Re: Thin-film Interference

Post by Fox » Fri May 15, 2020 4:01 pm

Very cool feature, thank you.

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

Post Reply