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"

Deferred Decal Compilation Error

I am getting the compilation error in the attached screenshot when trying to create deferred decals. Steps to recreate:

  1. Create new material

  2. Open new material

  3. Change Material Domain from Surface to Deferred Decal

  4. Press "Apply"

  5. Results in the error: The current material has compilation errors, so it will not render correctly in feature level SM5. Are you sure you wish to continue?

alt text

Product Version: UE 4.13
Tags:
more ▼

asked Oct 21 '16 at 03:42 AM in Everything Else

avatar image

rhizomelabs
26 2 5 5

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

2 answers: sort voted first

I struggled on this for hours!!

I tried every bit of advice on this page, including the link and couldn't solve it.

However, i just managed to figure it out! if you have problems getting it working, try this:

1) make sure you set a constant 0 into metallic, specular & roughness 2) then make sure your texture is plugged into base colour and emissive! 3) make sure your material is set to decal and that both blend modes are set to translucent!

let me know if this makes someones day! :)

more ▼

answered Apr 06 '17 at 12:54 PM

avatar image

j-may
71 1 2 4

avatar image rafaxf Apr 14 '17 at 10:04 PM

you make my day :) thanks

avatar image KBradshaw Apr 17 '17 at 12:15 PM

you also made my day

avatar image I_am_Kooky Apr 17 '17 at 12:51 PM

And mine! Thankyou so much!

avatar image jimd667 Jun 14 '17 at 02:33 PM

Thanks, this also worked for me as well. not sure why they are saying to set opacity to 1 when it doesn't actually do anything and sets the decal to black.

avatar image Armagidoniwe Jan 03 '18 at 10:50 PM

Thankyou wery much!!!!!

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

In 4.13 a new warning message pops up stating "Material using DefferedDecal domain need to use the Blend Model Translucent (this saves performance). This message should appear in your stats window as soon as you select deferred decal while in an opaque blend mode.

Basically, this isn't a bug since the intended workflow is to change your blend mode to translucent. If you are concerned with the material not looking opaque setting opacity to a value of 1 will suit your needs.

Cheers,

Ed

more ▼

answered Oct 24 '16 at 08:05 PM

avatar image Tjekkiman Dec 07 '16 at 10:46 PM

Hi, I've been all over the web about this issue, and no one seems to have encountered it.

I too have this "Material using DefferedDecal domain need to use the Blend Model Translucent (this saves performance)" popup when switching from surface to Deffered Decal.

I find it hard to believe that I now only have Translucent as blending mode. There must be some way to make an deferred decal with an opaque blending mode?

I've been at this for 2 days, and it's kinda making my hair grey :D

Cheers

avatar image Ed Burgess ♦♦ STAFF Dec 08 '16 at 04:40 PM

@Tjekkiman There isn't a need to use the opaque blend mode anymore. Is there a reason you are in need for this setting. A translucent decal with an opacity value of 1 is opaque visually. Also, please note there are plenty of decal blend modes that will suit your needs.

@rhizomelabs Thank you for the input, but the tutorial you showed deals with using DBuffer Decal Translucent Blend modes. This will not allow you to select Opaque as a blend mode as this is no longer available as an option for deferred decals. Still very useful information.

avatar image Tjekkiman Dec 08 '16 at 05:28 PM

I will try the DBuffer Decal if nothing else will get me closer to a result. :)

It just seems that none of the blending modes available can be chosen without the SM5 error popping up, which just seems really weird to me ( why bother having them as options then? ) .

Basically I'm just starting out making my first decal, and none of the tutorials is doing me any good since they are all using opaque as a turning point.

I do agree with you that it's logical to just use translucent and turn the opacity to 1, but isn't there something about not being completely solid although it's set at 1?

I tried it anyway, and already I had myself a new problem: The closest thing I can find is an "Opacity Mask Clip Value" in my details panel. And it is locked to 0.333.

avatar image Ed Burgess ♦♦ STAFF Dec 08 '16 at 07:52 PM

The tutorials you are using may be out of date as they were made for earlier versions of the engine. I wouldn't get too caught up in the fact that they are using the Opaque blend type, if it is a good tutorial and not too old most of the things should still apply.

The decal should render fully opaque if your opacity value is 1. "Opacity Mask Clip Value" is meant for materials using the masked blend mode(you are using translucent). This doesn't apply to deferred decals in current versions of the engine.

Tutorials made for UE4 will become more out of date as we releases new Engine versions. Usually, we try to keep the documentation up to date but even then some of the information may be a bit out of date.

That's why when a new version is released it is good to keep track of the release notes and see what was changed for that engine version.

If you encounter difficulty there are many areas you can research or get help from in order to get the result you want. Such as the rendering section of the AnswerHUB, the Unreal Forums, and our documentation.

Please make sure you do these things before claiming something is a bug or a problem with the engine.

(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