I made this model (as well as the other one) for a Udon drink mixing system, but as usual I got derailed and tried to get it to render correctly in Blender

I actually put it up on Blend Swap blendswap.com/blend/27081

The biggest pain was definitely trying to figure out the IOR on the glass - it's still wrong when I compare it to the real life glass I based it on

actually, looking at the page for IOR on the website for Encyclopaedia Britannica britannica.com/science/refract, I could probably calculate it roughly with some grid paper and a photo, it will be slightly off since it's not in a vacuum and air has a refractive index of 1.0003, but it's better than guessing!

@ChlorideCull IIRC, glass has an IOR of roughly 1.517, but it can vary from this depending on what additives it has in it.

@zauberin yeah, when I tried that, it curves *way* too much, the walls of the glass look like they are a centimeter thick, even with the physically correct refraction method, lol

I can probably use Snell's law (n₁sin(θ₁) = n₂sin(θ₂)) and some trigonometry to calculate the refractive index while accounting for air, which then lets me tinker with the other parameters on the principled shader to see if I can get it to match

@ChlorideCull Oh, yeah that'd do it. That's why I always turn on Backface Culling whenever I can

Sign in to participate in the conversation
Fuzzy Systems Masto

Instance run by a non-profit association, with a mission to encourage an open internet, welcoming to everyone.