Portal through wall

Is this what you want? Portal gun and gravity gun, open source [Unreal engine 4] - YouTube

I’m trying to make a mechanic where the player can shoot a sphere on a wall to create a portal (basically an empty disk on the wall delimited by the sphere edges). The player would then be able to see the other side of the wall through this newly created portal and walk to it if he wants to. The portal will be closed after so the wall will be back to normal. The walls I’m talking about don’t have any thickness they are basically energy barriers.

So far I can work out everything I need except the harder part: showing this “empty disk” on the wall to see on its other side.

What would be the best way to handle this effect ? Is it possible to detect collisions inside the wall material and not display it inside of the circle ? Or maybe draw another material onto it… ?

Materials are something i’m struggling with so I would love some direction on what would be the easiest path to achieve this effect !

A simpler version of that, I don’t need to go from 1 point to another, I just want to open a hole in a wall to go through it.

Visual effect is doable with sphere mask function in material.

So you have wall as actor and its material have dynamic instance inside this actor.

When you shoot at wall, you can pass impact location to its material. In it you should have sphere mask function that uses world location. Then you subtract this sphere from opacity of material.

I’ll look into it thanks :slight_smile: