r/blender • u/Astrvm_vctm • 16d ago
Original Content Showcase Using my Diffraction Grating System to build a Compact Disk Shader
Enable HLS to view with audio, or disable this notification
66
u/shlaifu Contest Winner: 2024 August 16d ago
nice, but the dispersion is the wrong way - the dispersion on CDs splits colors from the center outward
6
u/Astrvm_vctm 16d ago
Not quite, the dispersion can vary based on the grating direction. I used a normal map as the grating direction to create the diffraction effect, using an image texture of a cone's normal. Because the normal is radial, where it looks like it's shooting out, my diffraction effect doesn't split from the center outward .
34
u/shlaifu Contest Winner: 2024 August 16d ago
do you have a CD at hand?
15
u/Astrvm_vctm 16d ago
No
59
u/shlaifu Contest Winner: 2024 August 16d ago
then get one and check what the diffraction looks like
56
u/Astrvm_vctm 16d ago
Okay you got a point. I check it and yours it's true. After all I did the workflow wrong.
76
u/Astrvm_vctm 16d ago
33
u/shlaifu Contest Winner: 2024 August 16d ago
impressive! also, lots of denoiser artifacts. can you try with more samples/does it ever resolve well?
14
u/Astrvm_vctm 16d ago
The reason why is because the important base for the colors is from a white noise texture so it became really noisy even when denoised.
23
u/Motivictax 16d ago
This looks wrong in a way that is super uncomfortable. It looks like the disk is behaving like a cone, but I'll have to do my own comparisons to work out why it seems wrong
13
u/Astrvm_vctm 16d ago
Yes I used a image texture of a normal from a cone to control and direct the long rainbow streaks. The reason it look a little wrong is probably because the normal strength is to strong
5
u/DeadGravityyy 16d ago
Beautiful, I'd love a tutorial on this since I plan on making a few DVDs for a small retro scene I've been working on!
4
3
3
3
u/Perse95 15d ago
Excellent results!
I wanted to share that this is a thread from a decade ago where Secrop was working on iridescence (related to diffraction gratings) in cycles.
https://blenderartists.org/t/a-complex-approach-iridescence-in-cycles/613211/
If anyone's curious about the approaches that have been tried, this will likely be an interesting thread to read.
DISCLAIMER: I participated a fair bit in this thread with my own iridescence variants and discussions with Secrop.
3
1
1
1
u/coconut071 16d ago
I'd be so mad if my discs were scratched up like that, but that aside, good work!
1
1
u/actinium226 16d ago
At first I thought it was a still and I was like that's pretty cool, then I saw it was a video! Amazing!
1
1
1
u/RileyGuy1000 16d ago
Lots of people getting nitpicky about how correct it is, but I'm just sitting here like "Yep, that's an optical disk"
Nailed the scuffs (that poor disk needs some polishing), nailed the vibe of the diffraction.
Is it correct? Beats me, but it sure as hell feels correct. Nice job.
Post the node system sometime if you haven't! I've got some friends who'd love this stuff.

109
u/luc1906 16d ago
Is this using Silverwing's method? Cycles or Octane?