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 to change color (in material) of individual instanced foliage actors in BP?


I'm trying to make an advanced wind shader. I'm trying to get rolling storms to work and im trying to change variables inside of my material instance for each individual foliage instance (Painted foliage.) I dont know how to reference each instanced foliage actor as one actor, or how id go about changing the values of each individual foliage piece.

Example - I want to take a BP that has a trigger, drag it across the landscape and change the wind strength on foliage as the trigger passes over them.

I don't know how but I'd love some help if possible.

Thanks for your time!

Product Version: UE 4.21
more ▼

asked Feb 11 '19 at 05:14 AM in Blueprint Scripting

avatar image

1 1 1

avatar image IndieGameCove Feb 11 '19 at 08:09 AM

after the trigger bp passes over the foliage does it need to retain the change in wind strength? if no, then you can just feed a parameter collection the location of the trigger and run it through a spheremask. if yes, then you have to save the data into a rendertarget which is going to be a good deal more difficult.

also, do want to adjust only the strength or also change the direction?

avatar image dovahkiin009087 Feb 11 '19 at 02:48 PM

Yes i would like to.

To explain a little better, if you don't mind, let me go over my thought. I have a normal wind shader, basic, over the entire landscape. I have a BP with a trigger that i want to drag over the foliage to change the wind parameters only at the triggers location. So each individual clump of grass can be affected by the trigger instead of all foliage at once.

Thats what i want to figure out. Problem is i don't know bp enough to get this working. This is literally the last piece of my shader. Pretty much if i finish this i can finish the rest no problem.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Sorry, but i think i figured it out! Your help was awesome for starting! What i did was formed the blueprint and update it,... at tick for now.. in the level blueprint. This sets the "storm" location and radius to a parameter collection. After that i lerp from the sphere mask into the values i want. Color, wind, etc. Thanks!

more ▼

answered Feb 11 '19 at 05:23 PM

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
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