Transparency.

Hi people, I need some tips. Basically what I want to do is to see an object through the wall. I attached two images, the one where the wall has the effect is made with photoshop just to show what I want to do.

I guess I should draw a raycast and get the point of the texture where it collides (I mean, the x and y of the texture, not RaycastHit.point). But honestly, I don’t know how to do that. Also, I don’t have any idea how to make an effect like the one on the image.

Where should I start?

Greetings. :slight_smile:


201821--7449--$bg_190.jpg

You can do this only one of two ways, really. Give the material one of the transparent shaders and move the alpha more towards zero or give the texture an alpha channel that renders it partly transparent and then use a transparency shader. The second one gives you better control over where the transparency is accentuated, though.

Hello! :slight_smile:

To make an image effect (the transparent one), just set the shader of your plane to Transparent/Diffuse, and play with the alpha of the material the plane has :slight_smile:

The other question, I kinda dont understand it pretty well, could you be more specific/clear?

:wink:

I think your gameplay can be improved. :roll:

Perhaps the question you should be asking yourself is, why would the player even want to see some lame cube, instead of that beautiful woman at a greater opacity? :shock: