6

I am trying to find ways to hide objects behind specific planes.

"tv" with cube behind it.

That is a "tv" with a cube behind it, I already have it so when you look at it front on, the back disappears.

Back of "tv" gone

However the effect is that of "Non-Euclidean geometry" so the blue cube shouldn't be seen outside of the tv, but if I add another transparent cube/plane and apply the same shader to the cube, its not going to work.

new block off

It is going to block off both the cube and the back of the tv, and now the cube doesn't show head on.

no cube

My question is, is it able to do it based on groups or plane id's? I know the shader is using directly the transparency values. but just not sure how else to do it.

These are the shaders:

Transparent

(Transparent Plane/Cube)

Back of tv

The tv back, and the blue cube (obviously blue color for cube)

Sincerely, Nota

vklidu
  • 36,165
  • 1
  • 61
  • 135
Nota
  • 61
  • 2

1 Answers1

11

I went to recycling this answer and after simplifying I end up with the same node tree, that seems to me is working. So I guess I missed something ... so if you can explain missing part closer.

enter image description here enter image description here

enter image description here

vklidu
  • 36,165
  • 1
  • 61
  • 135
  • Hi yes, that is the effect I'm going for, but I wanted to know if it was possible to expand on that, something like this; https://i.imgur.com/haDQXeZ.mp4 I did this through rendering twice, and compositing them together in after effects. – Nota Mar 09 '21 at 04:13
  • @Nota I don't know if it can be done with a shader. I saw some paralax tech using Normals to get illusion of depth, but I would go a compositing way as well (can be done in blender too. – vklidu Mar 09 '21 at 16:47
  • Tried, then realize it only works in Cycles because Transparent Depth only works in Cycles, not Eevee. – Catscarlet Jun 17 '22 at 10:53