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"

Exclude Actors from Translucent UI Color

I have some actors in the world. The player's UI is often on top of the actor. The UI is translucent. The only problem is that I don't want the translucent color to affect these specific actors of this class. Basically if I have a blue square widget on screen with an opacity on 50% and a sphere in the world underneath it, I want the blue square to "tint" every other actor besides the sphere. I understand C++ so if you have a solution with that, that would be fine. Any ideas anyone?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 22 '18 at 09:06 AM in Blueprint Scripting

avatar image

JackpotRobot
47 1 4 8

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

1 answer: sort voted first

for example, you want to exclude some color from something, But which color? red color? what is red? it is (1,0,0)? ok, but this is pure red color. in regular scene it can be shaded, or affected by post process color correction, or covered by translucent steam/dust/fog particles, and after that it is not pure red, its something different.

so, the only way to do that, is to render actor on top of widget. but I think its impossible for simple 2d widget.

more ▼

answered Jul 22 '18 at 05:57 PM

avatar image

redbox
4.2k 80 17 103

avatar image JackpotRobot Jul 23 '18 at 06:16 PM

Hey redbox, thanks for the response I don't want to exclude color from something, I want the actors to not be affected visually by the translucent overlay whatsoever, but I want the background behind the actors to be affected. So, yeah a way of doing that would to render the actor over the widget, but as you said is probably impossible. The only thing I could think of is to have a render target capture the area through the widget, show only the specific actor type, have zero lighting, mask out the solid color the capture sees for the capture (because no lighting) and apply the mask as a material somehow to the widget. This seems way too complicated as well as resources costly though. :/

(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