Essentially, you need to create a multi-pass shader using two identical meshes. The solution is to duplicate the glass mesh and use a second material with dithered blending to mimic the cloudiness. Dithered Blending and Multi-pass Renderingįortunately, there is a workaround for the murk issue. Protip: Additive diffuse blending can be used for a variety of interesting effects, like fire, sparks, etc. Due to the nature of additive blending, including the diffuse contribution will further brighten the object and give a glowing appearance, which is not what we’re looking for. It needs some sort of murk or cloudiness. Glass generally isn’t 100% transparent, the thicker the glass is, the more opaque it will appear.Toolbag 2.05 does not have a refraction shader, so other objects in the scene will not distort while looking through an add blend material.Additive materials do not work with the depth of field effect (additive materials can not be rendered into the depth buffer), so it is best to avoid DOF when using add blending.Additive materials do not cast shadows.There are some limitations that you should be aware of when using additive blending to mimic glass: Protip: Add Newton’s rings to the secondary reflection slot at a low intensity to give the reflections subtle color variance. By default, additive blending only takes the specular reflections of the model into account, which is ideal for glass, as glass is generally transparent except where highlights are visible.Ĭreating a very simple glass material involves nothing more than enabling add from the transparency drop-down, setting a logical microsurface level (for smooth glass, usually a gloss value in the 0.9-1.0 range) and setting the appropriate reflectivity value (linear specular intensity of about 0.4, or metalness value of 0). Add in this sense means to make brighter. Check out the example scenes for more details on exactly how I set up the materials and lighting.Īdditive transparency works by adding the pixels of a particular material on top of the rest of the scene. Glass is a very tricky subject that I get asked about a lot, so here is a short tutorial covering some techniques for creating glass and other transparent, reflective materials in Toolbag 2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |