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"

Change global material parameter

I can change dynamic material instance parameter in blueprint. However, let's say i have a thousand instances of a grass patch BP, and that wind speed or direction is a material instance parameter. How would I change the global material's parameter, so that it affects every grass patch ? I imagine having a dynamic material instance for each one when the parameter is the same for every one is quite wasteful and possibly slow.

Another use case would be for changing a cubemap from day/night on all buildings in the scene, i wouldnt want to give each building a dynamic material instance, when it's a global change. Or when it's raining, you'd want all outdoor materials to have an additional wet layer.

Product Version: Not Selected
Tags:
more ▼

asked Apr 05 '14 at 12:51 AM in Blueprint Scripting

avatar image

Tansien
46 5 11 14

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

2 answers: sort voted first

Look into Material Parameter Collection. You can use a general parameter for a collection in your base material and change it in run time via Blueprints.

more ▼

answered Apr 05 '14 at 12:56 AM

avatar image

Jacky
16.6k 671 166 674

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

Try using Material Parameter Collections. You can create them in content browser and define parameters. Then you can reference those parameters in blueprints and materials.

more ▼

answered Apr 05 '14 at 12:57 AM

avatar image

EF
446 9 9 21

avatar image Tansien Apr 05 '14 at 01:48 AM

How would you apply the collection globally ? There isn't much docs on Material Parameter Collections.

avatar image Jacky Apr 05 '14 at 02:10 AM

Create a Material Parameter Collection in the content browser and set a Scalar parameter inside it, then create a Collection Parameter node in the material, for roughness lets say, and pick the collection and parameter you created. Finally you can go to the level blueprint, create a Set Scalar Parameter Value node and execute it whenever you like by using a timeline to make the transition.

For this to work properly for your situation you may want to multiply the collection parameter with material instances' scalar value though, instead of using a single value for the mat. instance.

avatar image Tansien Apr 05 '14 at 02:23 AM

This does exactly what i wanted ! I've marked your answer as accepted, thanks !

avatar image Moonmana Apr 01 '17 at 08:00 AM

[1]: /storage/temp/132406-7624b2ff76ccfb94b80ac1f114b3392f.png

Right is how it is in the tutorial Left is what i see when i double click my collection. No details, can't do anything

avatar image lucabelluccini Mar 19 '15 at 09:24 PM

Is it possible to use a Material Parameter Collection per Material Instance?

avatar image BoisterousGaming Jul 24 '15 at 05:52 AM

I would also like to know if it is possible to use a Material Parameter Collection per Material Instance!!!

avatar image Tom Shannon Oct 22 '15 at 10:38 PM

That would be done through a Material Instance parameter. Material parameters are great for modifying individual actors/materials, Material parameter Collections are great for modifying things globally.

(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