Showing object's silhouette, behind translucent material.

Hello there. I have a question regarding a specific material effect.

First of all here is an image to illustrate my question/problem

Basically I want to render the faces (or better, the surface) of the object behind the blue translucent material, as a flat color. Like a silhouette.
The player has to see it from different angles too. Also only the object that is near to the Material should be seen as a silhouette. Objects that are placed further away shouldn’t be seen, or at least should not have the same color.

I have no idea how to do this inside the Material editor, or even if it is possible :frowning:

As a sidenote, mesh 2 has a different material than mesh 1.

I hope you can help me out there :slight_smile:

-Sandro

Hey Funnycom -

Yes you can use the Scene Depth node to allow you to pull the silhouette of the object in your transparent mesh.

Here is a basic setup, you may have to tweak the distance value that the Scene Depth is divided by:

Oh that looks easier than I expected, and it works :slight_smile: Thank you very much!

  • Sandro