(22)

Unreal Engine 4 shader

damart3d

ShadersSubstance Painter

UP TO DATE
--------------------
Here is my attempt to sync SP and UE4
- use 64 samples or Brute Force option to reduce noise
- use no-Direct sun env maps for better result(Bonifacio Street for example)
- you may find more info here:
http://damart3d.blogspot.com.by/2016/04/substance-painter-shader-unreal-engine-4.html#more
- if you found a bug - post on blog or email me: damart3d@gmail.com

Uploaded: over 1 year ago
Updated: over 1 year ago
Version: 2
File Name: UnrealEngine4.glsl
Size: 7.27 KB

DownloadblackDOWNLOAD



DISCUSS
over 1 year ago

Praise you, kind sir.

Any clues as to why the difference in cube maps?


over 1 year ago

Thenx, Cool! I waited this shader long tome))


over 1 year ago

"3rton93
Any clues as to why the difference in cube maps?"
that is the question i should ask unreal, i don't actually know, looks like some kind of tone curve is applied to it. May be they try to compensate filmic tone curve ruining low-range spec or something.


over 1 year ago

I see a lot of difference on the specular reflections, seems to have a lot of artifacts. Any idea why that's happening?


over 1 year ago

If it's noisy it'ok, use BruteForce checkbox. And try to avoid env maps with bright sun, substance has no support for direct and point lights, so it's simulated throught importance sampling, and that's not good enough. if you have different problem , email me with pictures .


over 1 year ago

Just started working with UE4, bought substance painter today, clicked the substance share link on my first boot and the first entry is a shader for ue4. High-five to you.


over 1 year ago

Actually, if anything, the brute force option makes the specular look worse. I've sent you an email with screenshots.


over 1 year ago

Ok, looks like the environment map thing is the issue. The amount of specular noisiness changes dramatically between different env maps. I get very, very good results with the "bonifacio_street" env map.


over 1 year ago

very goood


over 1 year ago

Hey ! Looks like i found a solution for noise problem:
http://damart3d.blogspot.com.by/2016/05/substance-painter-shader-unreal-engine.html
I've allready updated shader, but Allegorithmic reviewing it now, you may download shader right now from the link above


over 1 year ago

Excellent work!! Looking at the picture I'd say that clears up about 90% of the noise. The PDF is incredibly interesting as well, should be a great resource to add to my library. Well done.


over 1 year ago

I would love to try this, but once I load the shader, Substance tells me there is an error. (Without telling me what it it). What is the proper way for me to put it in substance? Maybe I'm doing something wrong.

Cheers!


over 1 year ago

-> Käy Vriend
can you email me some details , what the error is, what's in the log file, etc.
i can send you some versions of shader to see if it works


over 1 year ago

I am really liking the Brute Force checkbox. It's nice being able to keep the Shader Quality at Low for the most responsive painting, and then with a quick click, be able to view the work with super crisp quality.


over 1 year ago

NICE! Thank you very much!


over 1 year ago

shader on share in NOT up to date, it's pending staff review for more than a week from now, so download from here for now:
http://damart3d.blogspot.com.by/2016/05/substance-painter-shader-unreal-engine.html


over 1 year ago

>chervouet
what version of shader do you use?
from here: http://damart3d.blogspot.com.by/2016/05/substance-painter-shader-unreal-engine.html ?
what is in the log? this looks like shader is failed to compile, it should give you error message, please repost it


over 1 year ago

It seems to me that roughness values of 0.00 & 0.01 produce anomalous noise on both metallic and non-metallic materials, like it's out-of-range or something like that. Starting at 0.02 it looks OK. Maybe with a slight adjustment to the way roughness is calculated making the current 0.02 - 1.00 range the new 0.00 - 1.00 range it might look a bit cleaner.


over 1 year ago

Hi ! Thanks for this work. But, the shader doesn't work on my computer. Object are all pink (no texture applied). Do you know why ?


over 1 year ago

>mykillk
i'll look into it


over 1 year ago

I've found that adding a pure white layer @ 34% opacity on top of materials authored with the default metal-rough shader gets a pretty close match in this ue4 shader.


over 1 year ago

Hmm...I was very excited to test ist. Thanks by the way :) BUT : when I switch to the shader, my model loses its roughness and becomes shiney allover ...any idea why that could be ? Works jus fine in UE4.


over 1 year ago

Yes I have materials losing their roughness as well


over 1 year ago

Hi!! Thanks a lot, just 1 doubt, the shader doesn't show the emissive channel on the material, is this normal? if i click C to emissive view, is there but on the material don't, any idea?? Also i tried with the shader parameter increasing the emissive intensity but nothing happen, other than that works really well, also on the marmoset shader of u4 too.


about 1 year ago

Does it have transparency support and reflections on transparency, fresnel effect, etc.


about 1 year ago

unity shader plz


about 1 year ago

I'm having a difficult time seeing any difference between the two tank screenshots because the resolution is quite low in the unreal version. I would try and keep the resolution the same when comparing two images, kinda defeats the purpose of comparing them. Really awesome work though and thanks a lot for posting.


about 1 year ago

amv7023
about 1 hour ago

Thats because there is no differrence:) Both are the same image , small one(with UE logo) is for icon


about 1 year ago

请让我说一句,你们看的懂中文吗


11 months ago

Does this handle refraction well? I want to use the methods in unreal to get some nice looking eyes but it's been difficult for me to get Iray to work with me.


7 months ago

It could great. Or it WAS. But at current time - roughness values are completely different from UE4. With default PBR shader in substance, everything looks much closer to UE then with this shader. With Shader - weapon looks like shinny chrome noisy parts . Also, that noise looks like screen space effect and doesnt respond to range beetwen object and camera in substance.


7 months ago

very goood 666


7 months ago

"skyground"

I am sure you've done something wrong. Like you started to work with roughness pipeline and switch to my shader in process, so you've got inverse mapping for gloss. UE4 did not changed their BRDF in any of recent updates, so 99% that your troubles are wrong content. I can help you if you give me more details on your project.


5 months ago

Will you ever consider adding support for features such as transparency and emmisive materials? Great shader btw.