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] How to select an actor from position on rendered screen space?

I'm passing references to actors, to the character class, and using GetLastRenderTime() to find which ones are on screen. It would be great to give the player control over which of those to select, via what the third-person camera is centered on. Can anyone give some advice on how to do that? Many thanks!

Edit: I guess one thing I could do is use GetLastRenderTime() to get references to all the other objects on screen, and then do a single line trace for objects that ignores all of the objects that are on screen but not in the active set. However, that seems like it would lead to the player needing to be super-precise with the camera.

Edit: Oops, just found capsule trace etc...

Here's a link for finding rendered objects; https://answers.unrealengine.com/questions/21801/check-if-an-object-is-visible-by-a-camera.html?

Here's a function to go from world space to screen space; https://answers.unrealengine.com/questions/41980/how-do-i-go-from-world-space-to-screen-space.html

Product Version: Not Selected
more ▼

asked May 30 '14 at 10:58 AM in C++ Programming

avatar image

766 79 60 234

avatar image Tim C ♦♦ STAFF May 30 '14 at 03:43 PM

Hi robbiecooper,

Would you mind adding a link to the other question you found?

Thanks, Tim

avatar image robbiecooper May 30 '14 at 07:49 PM

I've added the first one I found. The second one I closed the window, will post tomorrow after I've gone through my browser history...

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

The question has been closed May 30 '14 at 11:57 AM by robbiecooper for the following reason:

Duplicate Question

0 answers: sort voted first

Follow this question

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

Answers to this question