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"

Updating specific materials opacity

I am creating a grid based game, I am trying to make it so only the materials directly surrounding the player are visible and fade out with distance from the player actors current location. So the gird the player currently occupies is fully visible, the ones next to him are 75% visible, the next are 50% visible and so on.

I have had mild success with material parameters and I have successfully gotten materials to update dynamically, but they all update with the same value, is there a way I can dynamically change each materials opacity based on an actor location?

Any help would be greatly appreciated

Product Version: Not Selected
more ▼

asked Feb 17 '16 at 02:18 PM in Blueprint Scripting

avatar image

1 1 2

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

1 answer: sort voted first

Basically you need to use a sphere mask or box mask 3D and a collection parameter in your materials to multiply the opacity, and then set that parameter(vector) with player's location. Check out this video for more info: https://www.youtube.com/watch?v=GXbE0IqbA7w

more ▼

answered Feb 17 '16 at 02:25 PM

avatar image

16.8k 671 167 677

avatar image landwulf Feb 17 '16 at 03:30 PM

Perfect! Thank you so much, guess I need to get better at searching the tutorial resources, thanks again!

(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