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"

Hud icon is still visible when not in front of camera

I'm using the "Project" node to place a hud icon on a X,Y,Z coordinate. It all works great except: If I turn away from the object the icon has some kind of mirror effect when It's not in front of the camera.

In other words. When I turn away from the icon and it's coordinates, the icon is still visible. It's not in front of the camera and shouldn't be seen, but it is anyway.

Is there a way to determine if these coordinates are in fact infront of the player and only then draw the simple texture?

alt text

Product Version: UE 4.10
Tags:
capturehud.png (166.6 kB)
more ▼

asked Jan 14 '16 at 12:31 PM in Blueprint Scripting

avatar image

Taurian
301 35 54 72

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

1 answer: sort voted first

The Z coordinate of project is negative if it's behind the camera. Or 0. One of the two. Check the values.

more ▼

answered Jan 14 '16 at 08:01 PM

avatar image

TTaM
1.7k 80 28 81

avatar image Taurian Jan 14 '16 at 09:08 PM

Darn, I didn't think it would be the Z. Thanks.

(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