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"

Show object only when it is behind something

Hello,

I'm looking for a way to render an object but only when it's behind a specific object. I would like my players to be able to see certain object only if they use a "Magic magnifying glass", and if the object isn't fully behind the glass I still want the part covered by the magnifying glass to appear and the part that is not covered to stay invisible.

Thank you in advance.

Product Version: UE 4.18
Tags:
more ▼

asked Jun 19 '18 at 06:29 PM in Rendering

avatar image

ttdburnout
1 1 7

avatar image ttdburnout Jun 19 '18 at 06:42 PM

I want to avoid using SceneCapture since it's in VR and SceneCapture in stereo is really expensive

avatar image ttdburnout Jun 27 '18 at 07:39 PM

bumping the post, Any idea ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The part about the magnifying glass seems doable: You could have two linetraces run from the forward vector of the camera: one that hits the glass and one that ignores the glass so you can trace the object behind it. Get the hit result of both and if both true than set the object visible.

What may be more complicated is the "selective" rendering that you would like. Maybe you could setup a special material with an opacity mask and apply the mask values using vertex paint. But this could be expensive and the mesh should be very high poly.

more ▼

answered Jun 28 '18 at 10:06 PM

avatar image

BreakMaker
232 4 11 14

avatar image ttdburnout Jul 01 '18 at 06:57 PM

Yup, I guess the clipping part would be the hardest and the most expensive. If it was on few object that would be ok, but at some point the players will be in front of a mirror with this effect, the two scene are exactly at the same place in world the only way to see world B from World A is through the mirror, since the game use a Mocap system I cannot teleport my players.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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