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"

Dynamic Materials changes depending on the gradient angle of the surface.

Hi everyone,

is it possible to change values or rather parameters depending on the gradient of the surface where the material is printed.

In order to understand it better: I want to create a material that can change depending on the weather. For example, if it is winter, the material shall be white, but this material could be used to brush on a wall or floor or ceiling, so if this material is used on a floor, it shall change into full white, when it is brushed on a wall, it shall be half white and if it is on a ceiling, it shall not change. This is an easy example. At least the gradient angle of floor is 0°, of wall 90° and of ceiling 180°, so i can equally create a material with a LERP between 0°-180°. The point is, is there a possibility to GET that angle of the surface at the position of every pixel.

Hope you have a nice answer :D

Thanks in advance! If my english is kind of wierd, I come from Germany. Sorry for that :D

Kind regards

Product Version: Not Selected
more ▼

asked Sep 11 '14 at 03:13 PM in Using UE4

avatar image

6 3 3 5

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

1 answer: sort voted first

Versuche es mit den VertexNormals da kannst du alle pixel rausfiltern die in eine bestimmte richtung zeigen perfekt am anfang dieses Videos erklärt :)


Try useing the Vertex normals you can filter all pixels pointing to a certain direction. The above video explains it well.

more ▼

answered Sep 23 '14 at 09:59 PM

avatar image

171 6 65 16

avatar image sgwavecrew2 Sep 24 '14 at 02:37 PM


meanwhile i have still found the solution, but thanks for the reply.

For those who want the right answer, VertexNormals is one solution :D

But there is another, more practical solution. Just go through the tutorial: layered materials. It is short, easy to understand and more common and it explains exactly how to cover materials with other materials depending on the gradient of the surface.

Link: Unreal Wiki: Layered Materials

Kind regards

avatar image ruohki Sep 24 '14 at 03:22 PM

well mark the question as solved then or at least as answer :D

(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