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"

How could I create a circular bordering around a rotating minimap, so that the map is only seen inside the border, and outside of the border is transparent.

Right now I have a minimap that I've drawn on the HUD with DrawTexture, which displays it as a square given the width-height dimensions. It also rotates, so it looks like spinning square depending on the player's movements. However, I want to place a circular border around the minimap, so that the minimap and its rotations are contained within that bordering, and the outside of the bordering should be transparent to the gameplay.

Product Version: Not Selected
more ▼

asked Sep 11 '14 at 06:31 PM in Blueprint Scripting

avatar image

145 22 26 84

avatar image Adam Davis STAFF Sep 11 '14 at 07:13 PM

Hi Jechli,

You will want to create a texture mask to mask out the outside of the border while leaving the border and the inner contents in tact. For more information on location based opacity, have a look here: https://wiki.unrealengine.com/Location_Based_Opacity_in_UE4_Playlist so you can get an idea for how to do this.

avatar image jechli Sep 12 '14 at 06:03 PM

Hi Adam, thanks for the link! I have a better idea of how to do it now but I'm still not sure how I can mask it out in the hud blueprints. I can't attach the mask to the map texture itself because i am only showing a portion of it, dynamically, so I will need an overlaying mask. It doesn't really make much sense to me at the same time, because I need a transparent bordering mask to overlay the map, which will show the map under it...

alt text

mask_q.png (104.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey jechli -

Instead of a Draw Texture, use a Draw Material and this setup with your material placed where my texture sample is:

alt text

Thank You and Let me know if this doesn't work for you -

Eric Ketchum

more ▼

answered Sep 15 '14 at 08:58 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image _eni Feb 19 '17 at 04:43 AM

alt text

circlematerial.png (352.2 kB)
avatar image jimd667 May 26 '17 at 07:42 PM

Thanks everyone! got it working perfectly with Eric's BP and then just modified that to my preferences like _eni did but with my own values.

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

Hi, you could use this asset I've found on the store to create rounded borders (also complete circular) around your minimap texture!



more ▼

answered Mar 28 '18 at 08:05 PM

avatar image

26 1 2 5

(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