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"

How to use material functions to make landscape layer?

Hello,

I want to paint my landscape using the Material Layer Blend node, however, it requires you to make your material WITHIN that blueprint or at least in a function that you call upon. Now, the thing is, I could make a seperate material for every single layer of my landscape material but that would literally take hours because I want to have a lot of layers (like 10-15)

I use Quixel mixer, bridge and megascans, hence why I need this. When I import my materials from Quixel Bridge, it imports all the relevant maps and a ready to go Material Instance that is linked to a master material that I can edit.

If only there was a way to use those automatically generated material instances that are linked to the generated master material IN my OWN Landscape material, then I could use landscape layer blend node to make my landscape layers.

Does anyone know a better way to make landscape layers from instanced materials?? I really don't want to spend hours moving stuff from content library to the blueprints for 15 materials. How do I use material functions to make my landscape layers?

The master material blueprint looks like this: https://blueprintue.com/blueprint/pge57l41/

The material instance settings for each specific material that is automatically imported looks like this: alt text

Thank you for your help

Product Version: UE 4.21
Tags:
more ▼

asked Dec 29 '18 at 11:41 AM in Blueprint Scripting

avatar image

boy will be boy
12 3 1 3

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

1 answer: sort voted first

Create a new material function for each layer and then copy/paste the nodes into them from the auto-generated materials Then create a "Make Material Attributes" node and connect the appropriate networks.
Then in your landscape material create a "Material Function Call" node for each layer you want and point them to the material functions you just created.
Connect that MFC to a break material attributes node and you will be able to drag out the networks you need for each layer.
Check out the documentation for layered materials:
https://docs.unrealengine.com/en-US/Engine/Rendering/Materials/LayeredMaterials
When you make an instance out of the new landscape material you created using functions, the parameters from all the included material functions will be exposed so take extra care when naming parameters for each layer as identical names from multiple functions that do different things will only show up as one parameter and will all read from that value in the instance.
alt text

more ▼

answered Dec 30 '18 at 01:35 AM

avatar image

King Mango
51 1 2 3

avatar image boy will be boy Dec 30 '18 at 11:10 AM

Thank you so much!

avatar image King Mango Dec 30 '18 at 01:42 PM

You're welcome! Always glad to help.

(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