Filter objects for ScreenCapture / RenderTarget
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.
On the screenshot:
So, the question: is it possible to somehow filter such objects which are behind the gate and should not be captured/rendered?
You are able to do that from the Scene Capture Component 2D Object Reference.
answered Dec 13 '18 at 08:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here