@ChlorideCull yeah lemme down it before bed
@lunalapin let me know what it tastes like
@ChlorideCull it tastes like zzzzzzzzzzzzzzzzz 💤
@ChlorideCull mmm blue flavour
@ChlorideCull *hops into the glass and soaks in it*
@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
@zauberin oh fuck me the normals were inverted, fml
@ChlorideCull Oh, yeah that'd do it. That's why I always turn on Backface Culling whenever I can
@ChlorideCull yay, Listerine!
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 https://www.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 https://www.britannica.com/science/refractive-index, 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!