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"

Materials blended by vertex using height on non-landscape

I have two base materials into a master shader that I want blend with vertex paint. I use the BreakMaterialAttributes to blend then convert back to MakeMaterialsAttribute. I blend between the two using a BlendMaterialAttributes.

So far it is working but the transition is unrealistic. I want the height to drive the transition. alt text

How could I do this?

Thank you for your time!

Product Version: UE 4.21
Tags:
more ▼

asked Nov 09 '18 at 11:59 AM in Rendering

avatar image

flynneastwood
24 5 7 8

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

1 answer: sort voted first

Hey there, what you are looking for is a "HeightLerp." If you take your vertex color and multiply it by your heightmap, you can create the smooth blending transition you are looking for. Here is an example:

alt text

In my example here, I have added several variables to help adjust the transition to my liking. Hope this helps!

heightmaplerp.jpg (273.3 kB)
more ▼

answered Nov 09 '18 at 04:01 PM

avatar image

ISmellDoody
41 1 1

avatar image flynneastwood Nov 11 '18 at 09:36 PM

Thank you very much, it worked!

(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