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"

Portals using Custom Stencil / Custom Depth?

Hey all, I recently found an interesting potential solution to working with portals. The idea is that there are 2 sets of geometry. One that is rendered on one render layer (stencil value of say 0), and this layer is the "main" layer that is generally seen. What I want is to create another set of geometry that is in the same place as the main layer, but is only visible through a stencil portal.

The trouble I'm running into is displaying something in the portal (just a mesh with the material I've made) and NOT displaying it in the world. I am able to sort of pull it off, but the parts that are not in the portal remain black.

My question is, is it possible to make multiple layers so that I can mask the main layer and reveal the other layer? I can't seem to get both working, and only end up masking one or the other, but not both. I know there's more math I must be missing, I'm just not sure what that must be. Maybe some IF statements to dictate portal vs external rendering?

alt text

alt text

Product Version: UE 4.12
Tags:
portal_003.png (159.3 kB)
portal_002.png (185.4 kB)
more ▼

asked Aug 15 '16 at 07:41 PM in Rendering

avatar image

BenCone
6 1 2 1

avatar image BenCone Aug 15 '16 at 08:22 PM

I'm working on an approach in which the "main" layer is going to be on say layer 1, and the rest is not layered, so that the main layer can always render atop anything that is not in a layer. I then have a mesh with layer 2 that is cutting out anything on layer 1 to reveal the unlayered meshes behind it.

The remaining question is: How can I render Layer 1 as it should look, rather than as the grey that I'm testing with? Trying to connect the SceneTexture:PostProcessInput0 reveals everything, including the unlayered elements.

alt text

alt text

portal_004.png (111.4 kB)
portal_005.png (159.2 kB)
avatar image BenCone Aug 15 '16 at 08:26 PM

This is actually only one of many steps closer to my goal. The interior of the portal is still revealing things meant to remain external.

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

0 answers: sort voted first
Be the first one to answer this question
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