0

So I am trying to make a glassy transparent cup according to a tutorial but I seem to have misclicked something and now every default material when I change the viewport into preview material is the default forest one that comes with BLENDER 2.90. However, when I render the object with the camera it shows the way I want it.

I have tried removing the material from the cup or the liquid and adding a new one with the default white color. when I turn the Transparency to 1 and Roughness to 0 it becomes the forest HDRI again.

This is what I mean enter image description here

blend file: https://pasteall.org/blend/154d7b8156aa42bbb0c41dcb332a32ab

Goop
  • 95
  • 7

2 Answers2

2

Preview and render use different render engines, that's why it looks different.
Just enable refraction in Eevee and both will look right.

  1. Properties > Material > Viewport Display
  2. Check Screen space refraction
  3. Specify Refraction depth (glass thickness)

More thorough answer: My glass material isn't transparent in Eevee

enter image description here

jachym michal
  • 31,744
  • 5
  • 55
  • 115
  • I am using Cycles render. I think its something wrong with the Scene world rather than the refraction. – Goop Sep 24 '20 at 07:19
  • Right :). But your viewport preview (the third icon) always uses Eevee. I don't think there's anything wrong with your scene, but you can share the .blend just to be sure. – jachym michal Sep 24 '20 at 07:25
  • I have tried your method but all I get is a lighter version of the forest material.

    https://imgur.com/5GH6y5Q

    – Goop Sep 24 '20 at 10:36
  • @Goop Yeah, you also need to enable refraction in Eevee render settings :). Follow the linked answer. – jachym michal Sep 24 '20 at 10:59
  • I did in both but it still looks off and is not working properly even though initially it did b4 adding the liquid and changing something.

    https://imgur.com/MwGKyWJ

    – Goop Sep 24 '20 at 11:22
  • I could not upload it on blend exchange so I did it on this other website. Id appreciate the help. My problem is when I put the viewport into render either it shows the same forest material reflection or the whole world is bright white when I tick the Scene world box.

    https://pasteall.org/blend/154d7b8156aa42bbb0c41dcb332a32ab

    – Goop Sep 24 '20 at 11:36
  • Hello :). First, your Refraction depth is 2 meters. It should be around 0,002 meters, or 0 (to disable it). Second, you table is hidden in viewport, so you're looking straight through the glass into your forest background :). – jachym michal Sep 24 '20 at 11:55
  • Ok I managed to get it working somehow after a whole day of throwing my head into the wall. One last thing. How do I get rid of the forest background so it does not always reflect through the render shading viewport. I want it to go back to being whatever the grey default background it is.

    If I tick the scene world and change the white color background then the whole world becomes that color even the objects. I want it to be the way it'd be on a fresh project.

    – Goop Sep 24 '20 at 12:21
  • Hello :). Just check Scene world in the Viewport shading menu , as suggested in the other answer. Related: Why does Blender show trees in my glass cube? – jachym michal Sep 24 '20 at 12:26
0

This may be the reflect on this very shiny material (roughness = 0) of the HDRMI provided by Preview shading. If you tick Scene world in shading menu, or switch to Rendered shading it should disappear.

loopkin
  • 149
  • 6
  • Changing to Rendered shading does not make it disappear. However, ticking the Scene world does make it look transparent but the whole 3d viewport world is bright white as opposed to the default grey. https://imgur.com/GxagJGy – Goop Sep 24 '20 at 07:16
  • In Rendered shading, you also have to tick Scene world in shading menu. You may have change world color in World properties for a lighter color. – loopkin Sep 24 '20 at 07:23
  • Does not seem to work as when I change the world color it changes the objects color to reflect that as well. like everything goes grey.

    I did tick the box in rendered shading and it still just makes that viewport full on bright white too.

    – Goop Sep 24 '20 at 10:24