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 the NormalFromFunction material node?

How can I use the NormalFromFunction node in the material editor? The description and the input pins don't offer any explanation on how to use the function. Let's say I want to generate a normal map from the SphereGradient-2D function, how would I go about that? I'm assuming plugging the output of the SphereGradient-2D into all three Function(UV) inputs, but I tried several different functions and values for the other inputs and I only get a uniform, deep blue output.

The documentation is also missing any mention of this function. (https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/Functions/Reference/Procedurals/)

Any suggestions?

Product Version: UE 4.15
Tags:
more ▼

asked May 15 '17 at 01:49 PM in Using UE4

avatar image

HappyDay
40 6 8 12

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

1 answer: sort voted first

There is a brief explanation about NormalFromFunction material function in this post.

more ▼

answered May 15 '17 at 02:22 PM

avatar image

Deathrey
7.8k 130 30 292

avatar image HappyDay May 15 '17 at 03:11 PM

Thanks you very much. Offsetting the function by "Heightmap UV Offset" in x and y direction for the Function(UV2) and Function(UV3) inputs seems to produce acceptable results.

(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