x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 !

Product Version: UE 4.15
Tags:
more ▼

asked Jun 04 '17 at 07:59 PM in Rendering

avatar image

hverger
23 2 6

avatar image kingcrimson Jun 04 '17 at 10:05 PM

Is this what you want? https://youtu.be/X8Xr5iMmvNs

avatar image hverger Jun 04 '17 at 10:12 PM

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.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jun 05 '17 at 04:40 AM

avatar image

redbox
4.2k 79 16 101

avatar image hverger Jun 05 '17 at 05:14 AM

I'll look into it thanks :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question