People who code: we want your input. Take the Survey

Hot answers tagged

55

This may be caused by Cycles's rendering of caustics. From the wiki, Glass and Transparent Shadows: Glass and Transparent Shadows With caustics disabled, glass will miss shadows, and with filter glossy they might be too soft. We can make a glass shader that will use a Glass BSDF when viewed directly, and a Transparent BSDF when viewed indirectly. The ...


18

It looks like the glass object has no thickness. Without any thickness, rays are bent only once, and behave as if everything behind the plane were inside the glass, rather than behind it. After adding a solidify modifier (or thickness via any other method), rays passing through the glass will be bent upon entering it, then bent back upon exiting it. This ...


15

By default, some options that require extra computing efforts are turned off in Eevee and they must be turned on manually. In the case of a refractive object, you must enable: Under the Render settings, Screen Space Reflections and, within it, Refraction. manual. Then, in each of your refractive materials' Material settings, you should enable Screen Space ...


14

Geometry should not be an issue here, glass shaders are noisy by nature and will probably have a bigger impact in your scene. If you use this technique and take advantage of instancing feature the memory consumption benefits should help mitigate the number of objects. Make a simple box mesh with the desired dimensions of your brick, make sure you apply the ...


11

After pressing random buttons, and trying to fix mesh - successfully i did it! There was problem with my mesh - gaps caused mirror modifier, and some other things. There is how I fixed it: At first I was searching for something wired in mesh, found not connected edges, so I selected them. And scaled them down. pressed s + x (axis of scaling) + entered 0 ...


10

A Fresnel node can be used as factor for a Mix Shader between a Transparent BSDF and Emission Shader, in order to achieve the glow at grazing angles. The Facing socket from the Layer Weight node allows to add a slight glow for the angles in between. Finally the Is Camera Ray output from the Light Path node is used to only show the emissive material to the ...


10

I think I'm not too far with this setup (rendered with Eevee, it might be slightly different with Cycles): I've made a mix between Glass, Transparent and Glossy. It also needs Volume Scatter to give it this blurry depth:


9

Another aspect to consider is the environment in which the glass is in. A perfectly black sky (as seen in your screenshots) is not very good for the glass to reflect/refract with. If you want realistic looking light interaction, consider adding mesh light emitters to mimic real light sources. Consider setting up a studio-like lightbox, or use an HDR image ...


9

Cycles is physically based so you don't need to add anything to a regular transmissive shader. Add a Principled BSDF to you plane. Set the transmission to 1. You can tweak the IOR but the default value of 1.45 is fine for the purpose. The setup: Result :


8

Increase the bounces in your render settings light paths. Basically each face is a bounce, the outside edge of the glass, the inside edge(if it has thickness), the pole, the ground. The bounces tell cycles when to stop following the ray.


8

Render settings light bounces, you need to increase their count. You can increase the maximum and transmission only for glass other bounces are used in different cases. Basically light paths or bounces indicate how many times the emitted ray will change direction (hit a surface and bounce of). Minimum are least number of bounces / light paths emitted. ...


8

I believe you've most likely got your Normals flipped the wrong way. This makes the surface behave like the inside of the glass and results in an effect called Total Internal Reflection when hit by light at a shallow angle - ie, it effectively acts as a glossy surface. The solution is to edit the glass mesh (select it and press Tab to go into Edit mode), ...


8

Viewing-Angle Based Solution This setup works well for curvy objects. But on a cube, for example, it is far less convincing. I'm sure that with some serious noding you could get much closer, but it may not be worth the effort. Node Explanation Inner Material The Diffuse BSDF node is the plug'n'play part of the node tree. Whatever shader is put in its ...


7

Unfortunately this is a limitation of the render engine. https://blenderartists.org/t/glass-material-cycles-vs-eevee-object-with-thickness/1113232 "You can’t. Cycles properly emulates refraction because it is a ray tracing engine, where light rays are simulated and change direction as they enter and get out of the glass, in a realistic way. For every pixel,...


7

I thank and praise the Lord Jesus Christ for answering prayer and showing me the solution! The issue was not with the glass encasement material after all. Mixing between glass and transparent shaders based on shadow, diffuse, and glossy outputs from the Light Path node was correct. The problem was actually with the glass bulb and filament materials! In the ...


6

It can be done by applying a texture to the Displacement input of the glass material node. The glass must have some roughness to it. You can use a texture like this one, made of two circles shifted by half their diameter and ridged in a concentric fashion (in your picture it looks more like an hexagonal packing, so if you're going for an exact copy you ...


6

Don't use Clamping (especially with such a low value of 1). It prevents the lights from being simulated realistically in something as complex as glass. Turning on Caustics also helps. Here are some render comparison: To me, the glass material is unnecessarily complex, unless you have a good reason to use it (for dispersion, etc), I suggest you looking into ...


6

Set the lenses object pass index to a value of 1 Then under the layers panel use the passes dropdown and enable Object Index Render that out and then head over to the compositor. Create a node setup as illustrated by the image below: As you can see by this render, I believe it resolves your problem. Hope this helps.


6

To get transparency working with other objects in eevee, you have to tick a couple not-so-obvious boxes. First, in Render Settings, tick Screen Space Reflections: And then under screen space reflections, tick Refraction. Then in the material menu of the transparent object, tick Screen Space Reflections: Then adjust the refraction depths slider just below ...


5

If I understand you correctly, you can simply mix a Glass Shader with a Refraction Shader. The factor will determine how reflective the glass material is:


5

Your glass is dark, or the space behind is dark due to your render settings. You need to make sure caustics is turned on or the glass will be dark and will not transmit light regardless of your transmission passes. I struggled with glass and water for some time as well, and unless you have caustics enabled it will never come out right or behave correctly ...


5

You can add smudges and fingerprints to glass by varying the Roughness with the following material : Most of the above material is concerned with positioning the fingerprints on the bottle (ie, the upper branch from the Texture Coordinate node through to the first Multiply maths node). This takes the fingerprints image : and positions it onto the glass by ...


5

Put a refraction shader on a plane everywhere exept the glasses' lenses.


5

Your 'Fake Glass' using a single plane instead of a solid works as expected when the plane is viewed from the 'front' side (the side that the normal is facing) but the Fresnel node produces different results when viewed from the 'back'. In order to correct for this you need to adjust the IOR to 1/IOR when viewing the surface from the 'back' and this can be ...


5

Transmission (of light, such as glass and water) UPDATE: Blender 2.91 and above support exporting transmission directly as shown in the original post above, using glTF's KHR_materials_transmission extension. Not all renderers support this yet (and notably, ThreeJS requires alpha-blending to be enabled for the material, which deviates from the transmission ...


5

The standard Glass shader gives you exactly that. Or if you prefer Principled BSDF like me: Set Transmission to 1 Use Roughness and Transmission roughness to control the glass type Add thickness to your glass for realistic results Suzanne on one side, and a black material on the other to make a mirror To make this work in Eevee enable Refraction in the ...


5

Here, try this: As Eric pointed out in the comments, the secret here is a Voronai texture set to "distance to edge". I used ColorRamps to remove all the grayscale and leave only black outlines. I made a large, medium, and small set of cracks and mixed them together. I then used this combo as a main image (BaseColor), as a basis for a normal map, ...


Only top voted, non community-wiki answers of a minimum length are eligible