This particular technique allows you to control various parts of the film, including all 3 layers, as well as the total thickness (in nanometers)
It also allows you to specify a 3-dimensional Lambda value for the the RGB Channels.
You can also manipulate the thickness and other values with textures. I’ve tested this setup with Jocafa’s Fancy Glass, as well as some other materials, and it really works quite well. Its very customizable.
The only issue right now is finding the right Lambda and Thickness values for specific materials. I dont know if they’re documented anywhere, but you can more or less find good values through trial and error.
Thanks, that was my goal. No one had anything that was this simple yet accurate, so I wanted to implement it in nodes.
Also, on a side note, if you want iridescent glass… This shader goes AMAZINGLY well with jocafa’s fancy glass (simulates true dispersion using Cauchy’s formula) Gumroad - JCF Fancy Glass (Its free)
What a thing of absolute beauty, but maybe it is simply due to me not knowing how to use it.
I simple open the file in Blender 3.2 and “computer says no” to thin film effect.
Wow… That is strange… Can you go inside the node group hierarchy and make sure all the nodes are there. If it says “Missing Data-Block” on one of the nodes: (like this) then delete the project and redownload it. I tested it on another device, and it worked fine.
First of all, don’t worry about it, there are so many changes because of how fast Blender is improving that I am surprised any developer can keep up existing add-on and or nodes.
strange, well this is extra weird because this is just math. It just uses incoming and normals… Theres no special behavior here that relies on something from a specific update.
I just tested this on another machine, both 3.0, 3.2, and 3.3 alpha. All worked.
@EnV@anon62435837 Its fixed, turns out my versions were using the new “Combine Color” nodes… 3.0 stable versions are still using “Conbine RGB / HSV” and whatnot… hence why it wasnt working.
Wow, now I am thinking half of all my purchased add on will fail after 3.3…
After using 3.2 for two days I have NO CHOICE but to downgrade to version 3.1.2 again because Eevee was SO SLOW, slower than Cycles (yes !!! Even with GPU ticked, GTX 2060 !!!) that I have decided not to tolerate such shenanigan nonsense and got back to 3.1.2 where Eevee is fast and stable again.
First congrats to rebuild the code to a shader.I have rebuild the same code to a shader years before.
However,i wonder why you dont have any references to thinfilm while rebuilding such shader.
Here a screen from my old thin film shader with the same settings from your render.I dont have loaded your shader,but i think yours was rendered with the skytexture.Btw render with AgX in CM.
I just made the shader itself, I dont typically make art or use references. Not sure what else to say.
Someone asked me for an accurate thin film, so I made it.
Besides, some shaders and effects perform differently in specific engines / renderers, so its better to leave it up to the user to test it themselves and find what works.