101.school
CoursesAbout
Search...⌘K
Generate a course with AI...

    Procedural Materials in Blender

    Receive aemail containing the next unit.
    • Introduction to Procedural Materials
      • 1.1Understanding Textures and Shaders
      • 1.2Introduction to Procedural Materials
      • 1.3Basics of Blender's Shader Editor
    • Understanding Blender's Cycles Engine
      • 2.1Overview of Blender's Cycles Engine
      • 2.2Differences between Cycles and Eevee
      • 2.3Rendering in Cycles
    • Basics of Procedural Texturing
      • 3.1Introducing Texture Node
      • 3.2Creating Basic Materials
      • 3.3Texture Mapping
    • Advanced Procedural Texturing
      • 4.1Noise Texture and Musgrave Texture
      • 4.2Wave Texture and Voronoi Texture
      • 4.3Manipulating Texture Coordinates
    • Shading Basics
      • 5.1Overview of Shader Types
      • 5.2Mixing Shaders
      • 5.3Introduction to Reflectivity and Refractivity
    • Procedural Shading Techniques
      • 6.1Shading with Procedural Textures
      • 6.2Using the Attribute Node
      • 6.3Refining Shader Inputs
    • Practical Procedural Materials
      • 7.1Creating Organic Materials
      • 7.2Creating Surface Imperfections
    • Realistic Lighting and Shading
      • 8.1Working with Light Paths
      • 8.2Photorealistic Shading
    • Advanced Techniques
      • 9.1Layer Weight and Fresnel Node
      • 9.2Advanced Bump Mapping
    • Environment Shaders in Cycles
      • 10.1HDR Environments
      • 10.2Procedural Skies
    • Procedural Effects
      • 11.1Procedural Weather Effects
      • 11.2Procedural Animated Effects
    • Rendering and Compositing
      • 12.1Rendering Settings for Cycles
      • 12.2Post-processing and Compositing
    • Creating a Final Project
      • 13.1Planning Your Project
      • 13.2Implementing Learned Techniques
      • 13.3Final Project Discussion

    Shading Basics

    Introduction to Reflectivity and Refractivity in Shading

    change in direction of a wavefront at an interface between two different media so that the wavefront returns into the medium from which it originated

    Change in direction of a wavefront at an interface between two different media so that the wavefront returns into the medium from which it originated.

    In the world of 3D rendering, understanding how light interacts with different materials is crucial. Two key concepts in this regard are reflectivity and refractivity. This article will delve into these concepts and how they can be implemented in shaders using Blender's Shader Editor.

    Reflectivity

    Reflectivity refers to the ability of a surface to reflect light. In the real world, all surfaces reflect light to some degree. The amount and manner of reflection depend on the material's properties. For instance, a mirror has high reflectivity, while a piece of charcoal has low reflectivity.

    In Blender, reflectivity is primarily controlled using the Glossy shader. The color of the Glossy shader determines the color of the reflected light, while the Roughness value controls how sharp or blurry the reflections are. A Roughness value of 0 will create a perfect mirror reflection, while higher values will create more diffuse reflections.

    Refractivity

    Refractivity, on the other hand, refers to the bending of light as it passes through a transparent or semi-transparent object. This is why a straw appears bent when it's in a glass of water. The degree of bending, or refraction, depends on the material's Index of Refraction (IOR).

    In Blender, refractivity is controlled using the Glass shader. The IOR value can be adjusted to simulate different materials. For example, the IOR of water is approximately 1.33, while the IOR of diamond is around 2.42.

    Fresnel Effect

    The Fresnel effect is a phenomenon where the amount of reflectivity increases as the viewing angle becomes more oblique. This is why a flat body of water can look like a mirror when viewed from a low angle.

    In Blender, the Fresnel effect can be simulated using the Fresnel or Layer Weight nodes. These nodes output a value between 0 and 1, representing the amount of reflectivity. This value can be used as the Factor input in a Mix Shader node to blend between a Diffuse and Glossy shader, creating a realistic Fresnel effect.

    Implementing Reflectivity and Refractivity in Shaders

    Now that we understand these concepts, we can start to implement them in our shaders. For example, to create a realistic glass shader, we could mix a Glossy shader (for reflections) and a Glass shader (for refractions) using a Mix Shader node. The Factor input of the Mix Shader could be controlled by a Fresnel node to simulate the Fresnel effect.

    By understanding and implementing reflectivity, refractivity, and the Fresnel effect, we can create more realistic shaders and improve the overall quality of our 3D renders.

    Test me
    Practical exercise
    Further reading

    Good morning my good sir, any questions for me?

    Sign in to chat
    Next up: Shading with Procedural Textures