Reply To: glass and liquid

Forum Archive glass and liquid Reply To: glass and liquid

#73654
spikeyxxx
Participant

    The first question is actually pretty hard to answer.

    Important: glass always has thickness, otherwise the light won’t refract (fancy word for bend) correctly:

    Glass1.png

    When you make a glass with liquid, you need to give the glass two Materials, the inside of the glass where there is liquid gets a different Material:

    Glass2.png

    Duplicate the top edges of the liquid and P > Seperate by Selection. Back into Object Mode, select the new Object, go into Edit Mode and Fill it and give it a water Material:

    Glass3.png

    When using Cycles, you are done:

    Glass6.png

    With Eevee you need to tick some boxes for glass to work:

    Glass5.png

    Global Screen Space Reflections and Refraction and also in each Material.

    Now, where do all these different IOR values (how much the light bends) come from?

    In CG you usually give a Material a single IOR value, but each surface has an IOR that is calculated by dividing the material’s IOR by the IOR of the medium the light comes from:

    Glass7.png

    This is probably a lot more than you wanted to know 🙂