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"

Get world area of screen capture 2d render target

TLDR I am trying to make a minimap where the clicked location(s) of the widget will be mapped to world location (ignoring the Z value).

On my level I have added a screen capture 2d and have referenced it at the gamemode so I can access it anytime. alt text

My minimap widget looks like that: alt text

And the logic for x and y like this: alt text

I am trying to find out the values I need to plug into out A and out B (Value = screen coordinates of click, in A , B are calculated based on the location and dimensions of "ViewPanel").

I have made the screenCapture2d save to a target texture (1024 x 1024) and then I've made that into a material to use for the widget.

Extra render target info: alt text

Product Version: UE 4.9
Tags:
screenshot_2.png (830.7 kB)
screenshot_4.png (104.6 kB)
screenshot_5.png (63.2 kB)
screenshot_3.png (203.5 kB)
more ▼

asked Dec 06 '15 at 12:55 PM in Using UE4

avatar image

Zarkopafilis
335 33 26 45

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

1 answer: sort voted first
more ▼

answered May 14 '16 at 06:31 AM

avatar image

Zarkopafilis
335 33 26 45

(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