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"

Filter objects for ScreenCapture / RenderTarget

Hello!

I'm working on portals system via this tutorial from Youtube

And I've found an issue which not handled by the tutorial author.

How the portal works, in common: I have a "Render Target 2D" and "Screen Capture Component 2D" for each gate which are interconnected, so what captured on the one gate's Capture component will be displayed on the second gate's Render Target.

To handle different points of view when player moving around, it requires to move related Capture component (to capture from the proper angle and distance).

And here the issue appears: Capture Component usually placed behind the portal gate, and if any object is between the gate and Capture component it will be captured as well, even while it's behind the portal and should not be visible on the connected gate.

Please look for the screenshot for clarification. alt text

On the screenshot:

  1. Target gate with Render Target (BP_Portal_Arc2)

  2. Debug sphere where the source Capture component is placed (source gate is BP_Portal_Arc4)

  3. Blue arrow shows the Capture's line of sight (as you see it captures the cubes which are behind the source gate)

  4. Red Arrow - what should be visible (the same direction but just from the gate)

So, the question: is it possible to somehow filter such objects which are behind the gate and should not be captured/rendered?

Product Version: UE 4.15
Tags:
portal.jpg (70.6 kB)
more ▼

asked Apr 22 '17 at 07:07 PM in Blueprint Scripting

avatar image

norlin
50 7 16 21

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

1 answer: sort voted first

You are able to do that from the Scene Capture Component 2D Object Reference.

alt text

capture.png (38.1 kB)
more ▼

answered Dec 13 '18 at 08:19 PM

avatar image

F1uttershy
8 1 3

(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