Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Decals, these unknown ...

Discussion in 'General Graphics' started by MedalHellWay, Sep 19, 2019.

  1. MedalHellWay

    MedalHellWay

    Joined:
    Jul 28, 2013
    Posts:
    80
    Hello to all :)

    I read dozens of discussions here on the forum and looked Unity's help to find a simple but hidden answer;

    How create excellent Decals in Unity and how to use them optimizing them?

    I am at the end of building my level and I need to apply dozens and dozens of decals. Is't possible that any shader I use is not good? Do you have any ideas or suggestions?

    Projected decals are not a solution because I have many and all different and render to texture is no good...so, How to build decals? Which shader to use? which workflow to use?

    One consideration, I noticed that in Unity the dacals are almost left aside ... or wrong?

    Any kind of help is well appreciated!
    Thanks for your attention
     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    1,825
    Unity has no built-in decal implementation that I know of (Not the kind you're talking about, anyway). They use the word decal in Surface shader documentation:
    https://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html
    This version of a decal is an additional texture that you can layer on top of the main texture. I imagine that you are thinking of something that you can place freely in the editor, though, right?


    There is a sample project linked in one of the manual pages that claims to implement decals in deferred-lighting mode. I have not tried this project, so I don't know it does exactly what you want:
    https://docs.unity3d.com/Manual/GraphicsCommandBuffers.html

    Also, there are several packages on the asset store that implement decals, but I can't vouch for those either.

    EDIT: try looking at Polybrush. It's a free tool that Unity provides. It might do what you want. I think you install it with the package manager.
    https://unity3d.com/unity/features/worldbuilding/polybrush
     
    Last edited: Sep 19, 2019
    MedalHellWay likes this.
  3. MedalHellWay

    MedalHellWay

    Joined:
    Jul 28, 2013
    Posts:
    80
    Yes!!!

    In my research I have already found this shader, but frankly I have not tried it ...

    Exact. For now I don't want to spend money to buy assets that can be insufficient. My goal is to study Unity in its entirety and try to understand how to best use it

    Thanks! I had not thought of this possibility. Tonight I'll do tests :)

    Anyway thanks for the help you gave me!! :)
     
  4. MedalHellWay

    MedalHellWay

    Joined:
    Jul 28, 2013
    Posts:
    80
    No one who has any other suggestions?
     
  5. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    306