WIP: Cycles - Diffraction Grating Shader

Hello everyone

I’m currently working on a new Diffraction BSDF for Cycles, with options for 1D Grating (simple grooves) and 2D Grating (reticular grids). Here are some examples:

Branch: https://projects.blender.org/Al-Toto/blender/src/branch/diffraction-bsdf/

10 Likes

So cool :heart_eyes: :+1:

Animation test - CD

5 Likes

This is going to be awesome. :100:

Animation test - Traffic Sign. In this case the real effect should be done by refraction of the light by the microscopic glass beads that produce the retroreflectivity. However, since we are also cheating the retroreflectivity

in this example, why not do the same for the refraction.

The branch is finally published! You can compile and test the shader here:

https://projects.blender.org/Al-Toto/blender/src/branch/diffraction-bsdf/

More tests! This time using @secrop demo of Diffraction Grating (included in the Blender Guru’s blend file tutorial), first video is with the new Diffraction BSDF (compare the rendertime per frame).

2 Likes

That’s insulting!

3 Likes

Wasn’t it more the other way around, with Blender Guru using the groundwork laid by Secrop in this thread from 2014?

4 Likes

My apologies, I was referring to the demo blend file of Blender Guru’s tutorial. I already fixed my post

Yes, my apologies. I was referring to Blender Guru’s demo blend file included in his tutorial. I forgot to give proper credit to Secrop, but already fixed my original post

1 Like

1D Diffraction (CD grooves), 2D Diffraction (reticular)

2 Likes

Cloth test (with varying rotation using Checker Texture)

2 Likes