Portal through wall
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 !
asked Jun 04 '17 at 07:59 PM in Rendering
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here