Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

QuickDecals: Decals Made Simple- Add dirt, grunge, splatters, posters, trash, etc!

Discussion in 'Assets and Asset Store' started by yahodahan, Jan 6, 2013.

  1. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    [video=youtube_share;dHUJ44L4bgY]http://youtu.be/dHUJ44L4bgY

    Add Detail to Your Scene with Decals!
    Quick: Choose a material, click a surface- done!
    Powerful: “Random” mode for detailing large areas
    Efficient: Works great with Lightmaps or Dynamic Lights!

    Decals are a great way to liven up your level, break up tiling textures, and generally make your game look truly detailed. You can use QuickDecals to quickly add decals such as:

    • blood
    • dirt
    • leaks
    • footprints
    • grunge
    • cracks and crevices
    • worn and damaged areas
    • posters
    • notes
    • burns and scorches
    • windows
    • doors
    • …and all sorts of other visual detail!


    Drag ‘n drop any material into the QuickDecals panel, then simply Ctrl+RightClick on a face to place the decal. Repeat as necessary!

    If you need to add lots of random detail, switch on “Random” mode, and add as many materials as you like. Then, use the same Ctrl+RightClick to splat a random decal each time.

    QuickDecals works great with lightmapping or dynamic lights, no work required on your part.

    Available for $10 on the Unity Asset Store: https://www.assetstore.unity3d.com/#/content/6293
     
    Last edited: Apr 12, 2014
  2. I am da bawss

    I am da bawss

    Joined:
    Jun 2, 2011
    Posts:
    2,578
    So, what exceptional advantages does this offer over Edelweiss Interactive's Decal System which is FREE??
     
  3. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Edelweiss's system is great, no denying that, and it's great that he gives it out for free. The focus, and an advantage, of this decal system is to be quick, simple, zero setup or learning curve.

    The real advantage, though, is that this tool does cost. When I charge for tools, I give them serious, 100% dedicated support, user-driven updates, and troubleshooting, at all times. You can ask any of the ProBuilder/ProGrids/etc customers- 4am email replies are no problem, updates come very quickly, and I've even built a separate forum dedicated to all my Unity tools. It's a great community, where other users often answer questions before I can.

    Working as a professional, I also simply prefer to use paid tools. It tells me the author has a real commitment to making that tool work properly for me- now and anytime in the future. Not that Edelweiss doesn't- I've heard he's a great fellow who makes sure his tool is well supported, and that's awesome he can do it for free! However, on a tight time schedule and zero room for error...

    So- QuickDecals is very fast, simple, easy, and gets the job done well, plus has dedicated 22/7 support (I have to sleep at least sometimes...) And, just like my other tools, it will definitely be growing more feature-rich very quickly, while keeping the same speed-and-ease focus that I believe is the best feature any tool can have.
     
    Last edited: Jan 7, 2013
  4. RazorCut

    RazorCut

    Joined:
    May 7, 2009
    Posts:
    394
    Good answer!
     
  5. I am da bawss

    I am da bawss

    Joined:
    Jun 2, 2011
    Posts:
    2,578
    Sounds good, another question - will you allow decal to be created dynamically at runtime?? (eg. bullet holes, blood splatter, paint splatter on wall mesh (or any sort of mesh) by other objects such as bullets, corpse, paint bucket etc..
     
  6. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    I've been thinking on that as well. It won't do it out of the box, not yet, but a user with a bit of code knowledge could fairly easily hook it into their game system and make it work that way. It's a good idea though, I'll probably add it fairly soon- feels like a very useful feature.

    @RazorCut- thanks!
     
  7. xandeck

    xandeck

    Joined:
    Apr 2, 2009
    Posts:
    565
    How this work for performance? Any "stress-test" made?
    Looking really nice, I am searching for a decal system/plugin
     
    Last edited: Jan 7, 2013
  8. mrbdrm

    mrbdrm

    Joined:
    Mar 22, 2009
    Posts:
    511
    do i have to place the decal on a flat surface ?
    im waiting for your answer to buy it
     
  9. TwiiK

    TwiiK

    Joined:
    Oct 23, 2007
    Posts:
    1,635
    Edelweiss' Decal System is also a black boxed plugin if I remember correctly. I'm guessing this isn't? That would be a huge pro for me at least.
     
  10. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Yep, it's just a plane-mesh decal system, at the moment.

    I've tested it out a bit, mostly to confirm that the decals will lightmap and batch down properly- which they do :) I'm working on some large and complex levels, and will give it a test with and without these, for a real-world number.

    Yep, no DLL/etc here, you get all the scripts with no hassle. So it can be easily extended, if you like.
     
  11. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,543
    Please add in support for skinned meshes, and you got a buyer here (even if you raise price)
     
  12. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Hi imtrobin- hmm, so the decal would have to anchor itself to the surface somehow, yes? Sounds tricky, but where there's a will, there's a way :)
     
  13. xandeck

    xandeck

    Joined:
    Apr 2, 2009
    Posts:
    565
    Thanks, yahodahan...
    I will wait for this, my scene will have around 50+ strutuctures, a sandbox style and so, I am looking for a good solution with performance wise.
     
    Last edited: Jan 10, 2013
  14. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Makes sense xandeck :) Atlasing and vertex-based resizing should be in and working soon, to really save on drawcalls.
     
  15. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,956
    Yes, will this be added?
     
  16. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    I will definitely be adding it in the future, although for the moment ProBuilder 2.0 is priority for me.
     
  17. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    4,095
    Will you be including the decals that you show in your video?
     
  18. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
  19. rosor

    rosor

    Joined:
    Nov 15, 2009
    Posts:
    3,481
    interesting stuff here! How about decals on corners? The run time instantiating would be nice also as well as the skinned mesh one. Definitely some stuff to add I guess. Good job so far
     
  20. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Thanks rosor- decals on corners (I assume you mean overhanging) won't work yet, sorry. It's a very fast and intuitive system, but we are still adding features. Works perfectly for 90% of decal situations though!
     
  21. chingwa

    chingwa

    Joined:
    Dec 4, 2009
    Posts:
    3,053
    This is looking very promising. The simplicity of it is what really makes me say "wow", especially in conjunction with the rest of your awesome toolset. What I would love to see added to this is some kind of texture atlasing, or UV controls such as you use in Probuilder... so you could have different iterations of a decal on one texture/material.

    oops, nevermind, I see you're on top of it already :D
     
  22. angel_m

    angel_m

    Joined:
    Nov 4, 2005
    Posts:
    1,091
    I would like to see added support for decals on terrains and not flat surfaces. Is this possible?
     
  23. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    @Chingwa- you bet, that's coming for sure.

    @angel_m- definitely possible, thought it won't work in the current version. Right now, QuickDecals is just what it sounds- a really quick and simple way to place decals, and works especially well with ProBuilder.
     
  24. Spam_One

    Spam_One

    Joined:
    Mar 4, 2013
    Posts:
    2
    You should mention on the Asset Store that quick decal only works on flat surface like bsp.

    After having left UDK, i came on unity and search a great Decal tool. Yours was in top, but there's a lack of information in description, so now i don't know with my scene composed of meshes and your tool...
    The fact that CE3 and UDK had a projected Decal system persuaded me that it will be the same on Unity, that i just had to search in Asset store and take the best optimized.

    Hope it will be a future update :(

    I will use Decal system from Edelweiss Interactive instead, too bad for my 15 bucks.
     
    Last edited: Mar 25, 2013
  25. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Hi Spam_One, sorry if that was confusing. I do show that in the videos and here, but you are correct- I need to make it more obvious on the Asset Store. It will absolutely be coming in a future update, no worries! Can you make sure and register (per the docs) so I can send you that update as soon as it happens?

    Thanks!
    gw
     
  26. Spam_One

    Spam_One

    Joined:
    Mar 4, 2013
    Posts:
    2
    Thanks for your answer :)

    I trust you and i'm happy that you will make changes on Asset Store for this. Also, i need to mention that english isnt my native language so i surely missed things in your videos :/

    If that kind of feature is coming in future update, i register with pleasure !

    happy to know that development is on way.
     
  27. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602

    So does this mean this decal system only works with surfaces created inside Unity? Or will it work on any flat surface, regardless if it's a model?
     
  28. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Thanks!

    Any flat surface at all :)
     
  29. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602
    Sold then! Thanks for the reply!
     
  30. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602
    @yahodahan

    Do you know of a way to fix alpha wall decals from z-fighting via shaders? Adjusting the camera clip planes isn't an option due to draw distance. I found a custom shader that works perfectly for opaque decals, but haven't had any luck merging with Unity's built-in Alpha* shaders yet.

    Created this thread over in Shaderlab in hopes of finding help; it contains the custom shader code that works for opaque surfaces. Any help is appreciated!
     
  31. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Hmm, I do not, sorry :(

    This is something we will end up addressing with the non-flat surface update, though. We'll have to move to a projection-based system, I think.
     
  32. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602
    No worries; Dantus from this thread hooked me up with precisely the shaders I needed.

     
  33. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Awesome. His Decal System is awesome indeed- far outstrips my own in terms of technical features :) ... not to mention free!

    QuickDecals will be getting more advanced in the future, but for now it's really all about speed and simplicity. Anyway, thanks lod3 and Dantus for pointing out the special shader!
     
  34. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,036
    Liking this a lot and it could potentially save me a lot of time. One issue I'm having though is that the Ctrl-Rightclick seems very flaky. If I open the QuickDecals panel, assign a material, Ctrl-Rightclick a wall - it works perfectly. If I then go and work on something else and later come back to the QuickDecals panel (which is docked), it won't work anymore (i.e. Ctrl-Rightclick does nothing) and I have to close the panel and reopen it to make it work again.

    Any thoughts?
     
  35. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    The Right-Click issue, I've heard from one or two others now. Various sources tell me, using the Right-Click with editor scripting can be iffy, something to do with the editor "eating" input. I may have to switch it to Left-Click based, to get around this.

    Does it work better if you un-dock (float) the QuickDecals panel?
     
  36. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,036
    I'll try it undocked and see if that helps.

    Other than this issue, I really like this thing - it's very handy and does a good job. My only other suggestion would be something in between a single Material and the random option. i.e. A List of Materials like the random option uses, but with a checkbox/button next to each one so you can select which one is active. I don't like doing things "randomly", but I also don't want to drag a Material into the Inspector every time I want to change.
     
  37. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,036
    This thing is pretty neat, but the Ctrl-Right-Click thing definitely has to go :( It doesn't work half the time, docked or undocked. Hoping you can update this at some point.
     
  38. CardDeath

    CardDeath

    Joined:
    Aug 1, 2013
    Posts:
    5
    Hi there.

    Your plugin looks very efficient on the engine and the ease of use is incredible. I am working at a company currently and I am in charge or choosing a decal plugin and yours seems promising. One thing that is essential is that it draws the decal onto a plane rather than a projection.

    So I guess my question would be is how power hungry is your tool and does it put the decal viewed on a plane or projection?

    Thank you very much for your time.
     
  39. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Out traveling at the moment, so development on this is paused temporarily- sorry for the delay.

    @CardDeath, this tool does simple draw onto a plane- no projection is used. Therefore, it's super efficient and not at all "power hungry", especially if you utilize batching.
     
  40. GD.Darren

    GD.Darren

    Joined:
    Jan 12, 2013
    Posts:
    53
    Would this work if I needed decals to be placed on non flat objects ( example: tattoo around a players arm that can be resized etc to fit the players needs, or sticker on a car ). Thanks in advance.
     
  41. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,565
    I can't of can't believe you're using a 200-triangle mesh to show a flat surface which could be 2 triangles?
     
  42. andrydeen

    andrydeen

    Joined:
    Aug 11, 2012
    Posts:
    37
    Hi , i used your asset in my project , and it save me a lot of time , can you add feature to create one atlas texture from selected decals.
    Thank you.
     
  43. TheAMes

    TheAMes

    Joined:
    Jun 17, 2013
    Posts:
    23
    I've got a weird problem not sure if Im using this right

    I apply one decal, all is fine, if i apply a second decal, they dont show up. in the editor window i can see the decals are placed miles away from my object and are sort of greyed out and cant be moved?

    I can see from the properties window it's done some sort of mesh combining? Dunno if that's related
     
  44. TheAMes

    TheAMes

    Joined:
    Jun 17, 2013
    Posts:
    23
    Ok done a quick new project test and it was fine, started adding components and assets and it seams the RealisticFPS asset is what is breaking it, no idea how to go about sorting this, any ideas? thank you
     
  45. TheAMes

    TheAMes

    Joined:
    Jun 17, 2013
    Posts:
    23
    Ok so its fixed now, thought I'd update in case anyone comes across this issue

    With RealistFPS asset you have your "!!!FPS Player Main" object, inside that there is the "!!!FPS Player" object which contains a script called "World Recenter"

    I disabled this script and the decals now work, I have no idea what this script is for, even the description baffles me, but removing it fixes the decal problem and I havent noticed any other side effects as yet
     
  46. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Sorry, only works on flat meshes for now.

    The plane QuickDecals uses is only 2 tris- were you meaning something else?

    Using a texture atlas is planned for the future, but I haven't had time to work on this at all lately. It will be added though, thanks!

    Hi TheAMes- sorry for all that trouble you had, and thanks for sharing the fix. Seems there is a conflict of sorts with that script, I'll see if I can get in touch with the author.
     
  47. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    719
    Works great so far apart from one weird issue, in the video you place them fine, but when I do it, I see some sort of Z-fighting issue, you know that flickering when they co-exist in the same z coord. How exactly do we avoid this?

    Thanks!
    Gaz.
     
  48. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602
    Grab the shaders from this free asset: https://www.assetstore.unity3d.com/#/content/3779

    I can't recall exactly which shader it is, but the author made one that disables z-fighting.

     
  49. yahodahan

    yahodahan

    Unity Technologies

    Joined:
    Apr 26, 2009
    Posts:
    1,377
    Odd, QuickDecals should, in theory, place the decal just far enough away that z-fighting won't occur. Are you able to send me a copy of the object that is having this issue, and the decal you are applying? It shouldn't require a special shader to solve, hopefully there is a simpler solution that I can find for everyone :)
     
  50. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    602
    @yahodahan

    User radiantboy is likely encountering the same issue I was if you recall, so I quoted our old conversation from this thread and segued it into his.

    Ultimately, unless you tweak your project so that the player can never be too far from a decal placed with QuickDecals, you're going to get z-fighting once you're outside the range of sorting precision. The shaders I linked to disable z-fighting is the only fix that worked, and it makes sense; the decal is there to compliment a surface material like paint that fuses to a wall. In most decal situations anyway, this is what you want, hence no need to have the renderer spend cycles sorting surfaces that are meant to behave as one anyway. The bonus to this is that you can now make the decal co-planar to the surface to avoid the player getting up close and seeing it hovering off the surface it's placed on.