How do I make a box mesh whose interior is visible but exterior is invisible?

Schytheron913875
Sat, 25 Sep 2021 22:27:49 +0000
Rendering

So, basically I have a hollow/open box mesh (basically, the box has an opening, 5 faces instead of 6) that I created in Blender. This mesh consists of two separate meshes put together in a single Blueprint. One mesh is the exterior of the box (created by letting all 5 faces be a flat plane mesh) and the other mesh is the interior of the box (same exact mesh as the first one but with it’s normals inverted/flipped).

Now, I want to make it so that the player (or any camera really) can only see the interiors of the box (interior mesh) if they are looking “into” the box (through the opening) or are standing inside the box itself. The interior should not be visible if you look at it from other angle (at any of the 5 faces). The exterior of the box should NEVER be visible. Basically, the exterior of the box should “isolate” the interior preventing it from being viewable from the “outside”.

The solution also needs to be multiplayer-friendly. Basically, if Player 2 is standing outside the box and Player 1 is overlapping the opening/standing inside the box. Player 2 should not be able to see the box or it’s interiors.

I hope you understand what I mean. Do you have any ideas of how this can be achieved?

Thanks!

5 posts - 1 participant