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"

[Closed] Always render a component in front

We're trying to use a UTextRenderComponent to display text in world space. We would like this text to always display in front of all other objects.

We tried setting "Disable Depth Test" under Translucency in the text's material, and that mostly works, except it interacts poorly with other translucent objects.

SetDepthPriorityGroup() seems to be unsupported in UE4 as of now.

This seems like a fairly simple feature that I'm sure must be available in the engine already. How can we accomplish this?

Product Version: Not Selected
Tags:
more ▼

asked Sep 16 '16 at 05:11 PM in Rendering

avatar image

Answers.Archive STAFF
2k 212 318 698

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

The question has been closed Sep 16 '16 at 05:12 PM by AndrewHurley for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Hi,

As you mentioned, there isn't currently a way to specify depth priority for rendering of translucent objects. I believe they're just rendered in order of proximity to the camera, which will cause the interaction you noticed.

Outside of writing a custom rendering path for your text, a simpler solution may be to render the text onto a canvas in UMG. You could place an object in the world to use as an anchor, and manipulate the widget accordingly. If that won't work for you, feel free to share additional information about what you're trying to accomplish and I'll help you find a solution.

Best,

Cody

more ▼

answered Sep 16 '16 at 05:11 PM

avatar image

Answers.Archive STAFF
2k 212 318 698

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question