2
$\begingroup$

I made a black hole following this tutorial, and I want to put it behind some glass. However, because of the way the shader uses the facing node from the layer weight (at least I think this is what causes the problem), the black hole disappears when glass is in front of it. How would I fix this? This is in Cycles.

Here is the black hole shader (the accretion disk is a separate object). black hole shader

This is how the black hole looks normally. blackhole

And this is what it looks like with a plane of glass in front of it. blackholeglass

$\endgroup$
2
  • 1
    $\begingroup$ That happens because you disabled Transmission in Object Properties>Ray Visibility for the Black Hole. But if you enable that, the black hole doesn't look as good. You could make the plane transparant to create fake glass. Or you have to simply remove the glass plane. If you want, I could give a simple setup. $\endgroup$
    – DarkSoul
    Commented Oct 20, 2021 at 16:16
  • $\begingroup$ Oh, I totally forgot about that! Thank you. $\endgroup$ Commented Oct 20, 2021 at 19:51

2 Answers 2

3
$\begingroup$

There is some refraction going on that is reducing the clarity of the BH showing through the glass -- in other words I would focus on the glass material, not the BH material.

At first I thought your "test" Material IOR (at 1.45) was too high, but a value of "1.0" (no refraction) didn't do the trick. I tried another Material I use for glass, and that one works.

$\endgroup$
0
$\begingroup$

Because the answers don't cover everything, I wanted to write my own. The reason why the black hole doesn't show through glass is because the "transmission" under ray visibility for the black hole object isn't checked (to make the black hole look better/more realistic), which is the type of ray that the glass BSDF shader uses. To fix this, you can fake a glass shader using transparency, but some don't work that well with different shapes. This is the one I found that is the most versatile.

glassshader

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .