Here's how you can do physically-based dispersion in Cycles!

I wanted to give more info about this, so here's a little thread
(1/6)
#b3d #blender #cycles
Here's the setup, and I'll explain how it works

First off, we want to generate random wavelengths in the range of the visible spectrum (we choose 380-720 nm)
(2/6)
We then plug that into the Wavelength node to get our color
And divide it by the average color in our range of colors from the spectrum
We do this to make the average white, since division by itself is 1 (sort of like a white balance)
(3/6)
This color is (0.193742, 0.132831, 0.124142) for this particular range (380-720)
I got it from rendering the random wavelengths on a plane, color picking, and comparing the divided color to pure white
(4/6)
Next up, we give our material varying IOR based on wavelength using Cauchy's equation
(en.wikipedia.org/wiki/Cauchy%27…)
This simple formula gives us our IOR per wavelength, with a value to change the strength of the dispersion
(5/6)
And finally a little tip, you can use the Object Info color to give objects with the same material different colors!

The rest is just a glass shader setup, refraction + glossy (reflection), mixed with fresnel

That concludes my ted talk, thank you for coming lol
(6/6)
Here's the scene file, go check it out, play with it :)
Also I included a wavelength node group that works in both EEVEE and Cycles (exactly the same as Cycles Wavelength node)
gum.co/CXXin

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with GelamiSalami

GelamiSalami Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!