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"

hair shader issue

Hello,

I was working on a charater but during the hair shading process i noticed that when you look at the hair from the light it looks good, but when you look at it with the light behind the hair it "glows".

Could you please help me solve this? I tried working with the "default lit" shader and while the other characters still look good, this one needs the "hair" one.

I will provide you with three images: two showing the model and one the material setup.

Waiting for your answer,

Matteo Dell'Acqua

alt text

alt text

alt text

Product Version: UE 4.14
Tags:
more ▼

asked Jan 24 '17 at 07:46 PM in Rendering

avatar image

MatteoH2O99
10 2 4 5

avatar image MatteoH2O99 Jan 25 '17 at 08:55 PM

Today I also tried playing with "roughness", "scatter" and "backlit" but to no avail. What do you suggest trying?

avatar image will99au Feb 03 '17 at 04:57 AM

Apparently this is a bug with UE4 at the moment and is supposed to be fixed in 4.16 or 4.15 if they get time. Im having the same issue currently.

avatar image Zhentouk Feb 16 '17 at 07:28 PM

Did you try to remove the normal map from the tangent slot? I don't think you should use a normal map with this shading model. You need to bake it in the shift-texture, which defines how the light is shifted on each hair strand. Also check the actual hair shader implementation on the "content examples" demo.

avatar image MatteoH2O99 Feb 16 '17 at 07:33 PM

Yes, i tried removing it, but it looked better with it on and it didn't resolve the problem

avatar image MatteoH2O99 Feb 19 '17 at 07:54 PM

Sorry for the ignorance, but how can i bake a tangent map from a normal?

avatar image Zhentouk Feb 19 '17 at 08:42 PM

Dunno if you mean a flow- or a shifttexture by "tangent map". For shifttextures, I bake height/displacement maps and adapt this texture afterwards to my needs in photoshop. I'm not sure how to bake a flowmap, but it's not necessary, as long as your hairtexture is pointing in one direction, up/down for example.

avatar image MatteoH2O99 Feb 19 '17 at 09:32 PM

Sorry, found a solution: use the transform vector from tangent to local

thank you for your time

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

1 answer: sort voted first
more ▼

answered Feb 16 '17 at 07:55 PM

avatar image

PGenom
71 2 4 7

avatar image MatteoH2O99 Feb 19 '17 at 04:57 PM

Thanks for the answer but even disabling Temporal AA the issue remains.

avatar image Zhentouk Feb 19 '17 at 05:06 PM

I think he meant the change in the shader file, not disabling AA.

avatar image MatteoH2O99 Feb 19 '17 at 08:24 PM

Thank you very much, I've tried with the shader file and now everything work great. thank you again

(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