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"

Custom Stencil to manipulate render order?

I have a simple playing card mesh with some UI-domain materials applied to different sections. This allows for some WidgetComponents to be added with dynamic text and effects applied directly to the card. However, the project utilizes an explorable 3D environment, and can sometimes lead to our 3D card meshes clipping/colliding with other nearby meshes (i.e: pillars, columns, rocks, etc).

After a few weeks of trying various methods (i.e: USceneCaptureComponent2D, UViewport widget, etc), it has come to my attention that perhaps the answer to rendering these cards "on top" of the environment is to utilize a custom stencil pass. But this is the best result I could achieve: alt text alt text

It would seem that occluded part of the mesh is not rendered (or rather, the checkered wall is rendered over it). Is there any way to simply have the mesh render on top? Any engine source changes I could make to enforce a particular rendering order?

Product Version: UE 4.17
Tags:
beforeandafter.png (485.1 kB)
material.png (110.4 kB)
more ▼

asked Apr 22 '18 at 12:07 PM in Rendering

avatar image

MichaelWion
250 29 40 50

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

1 answer: sort voted first

Mesh with Translucent Material can be on top with Disable Depth Test option in Material.

more ▼

answered Aug 03 '18 at 09:09 AM

avatar image

MorskoyZmey
377 12 159 44

(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