MAKE YOUR LEVELS PRETTIER with Decals!

Поділитися
Вставка
  • Опубліковано 12 січ 2019
  • The best way to make bullet holes and more in Unity!
    Check out Skillshare! skl.sh/brackeys12
    Listen to Game Dev Unchained here: bit.ly/1TlHiz5
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ····················································································
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ● Website: brackeys.com/
    ● Twitter: / brackeystweet
    ● Instagram: / brackeysteam
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ········································­­·······································­·­····
    ♪ "ES_Brooklyn Flava 2 - Mattias Andreasson" by Epidemic Sound
    ♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

КОМЕНТАРІ • 385

  • @Brackeys
    @Brackeys  4 роки тому +47

    Hey everyone!
    To those of you who can't find the package: Unity has moved the "Show Preview Packages".
    You can now find it under Edit -> Project Settings -> Package Manager -> Enable Preview Packages.
    If you check that box, you should see preview packages in the Package Manager! :-)
    Stay awesome!

    • @PdUnique
      @PdUnique 4 роки тому +6

      Sir, please mention the link on how to setup HDRP on an existing project...

    • @timepass8419
      @timepass8419 3 роки тому +2

      @@PdUnique im crying on same thing

    • @CraftingTableMC
      @CraftingTableMC 2 роки тому

      Thanks Brackeys!

    • @damiancoventry2078
      @damiancoventry2078 Рік тому +2

      Regarding setting up HDRP on an existing project, try the following
      1. Back up non-HDRP project somewhere
      2. Open the non-HDRP project within Unity. Open the package manager.
      3. Locate "High Definition RP". As of this writing, it's "Version 12.1.7 - July 18, 2022".
      4. Select this package, then click the Install button.
      5. Unity shows a progress dialog (for just over 2 mins for me).
      6. Unity shows an "HDRP Wizard"
      7. Click the 'fix' buttons for all aspects you want fixed.
      8. This will result in more progress dialogs that install stuff. This step does the vital add an HD Render Pipeline Asset to the project, and selects it within the Edit -> Project Settings -> Graphics page.
      9. Use the various buttons within the "Project Migration Quick Links" to upgrade your assets
      10. In the background you'll see your scene view start to use the HD features as you use the fix/upgrade buttons.
      11. You can click the X button for the HDRP Wizard when you've completed all steps you care about.
      12. I suggest clicking Assets -> Reimport All. This took ~2 mins to complete for me.

  • @toxiccan175
    @toxiccan175 5 років тому +31

    Thank you for doing what you do. You are the go to person when someone asks me what Unity is. Keep up the good work!

  • @EisenGlas
    @EisenGlas 5 років тому +2

    I love the quality of your tutorials! It's truly amazing. As soon as I have a better paying job I will support you on patreon, I promise! Thank you for this free content. It's much appreciated and so motivating.

  • @someone-js6pg
    @someone-js6pg 5 років тому +46

    great vid didn't even know what decals were before the video know I *love* them
    Edit: especially because I didn't know how to make bullet holes

    • @gameexplorer4963
      @gameexplorer4963 5 років тому +2

      And that is exactly the kind of audience his videos are for. In a year or so, you will be surprised people were excited to find out about things like that. It's like finding out the names of the months, or the days of the week.

  • @Jabrils
    @Jabrils 5 років тому +53

    This is brilliant & just what I needed. To hell with fiddling in shader coder. 😂

    • @jonsnow1092
      @jonsnow1092 5 років тому

      Hello, liked your training ai agent episodes good job!!

    • @guilleacq
      @guilleacq 5 років тому +1

      NOW WOULD YOU LOOK AT THATTTTTTTTTTTTT, two legends meet

    • @obalfaqih
      @obalfaqih 5 років тому +2

      It's time for an AI agent that paints walls using decals ;)

  • @PicnicAtTheTesco
    @PicnicAtTheTesco 5 років тому +69

    HD render pipeline: "I'll make sure to have a link on how to do that in the description". Oh really?

  • @sketch3436
    @sketch3436 5 років тому +2

    The available HDP features are so good, I remember back in the day when I created decals using quads with a material on fade XD

  • @twisky3751
    @twisky3751 10 місяців тому +3

    if anybody is having issues with the decals facing the wrong way or clipping into the ground, change Vector3.up to vector3.forward and change the z pivot to something lower like 0.45

  • @christophersmit2219
    @christophersmit2219 5 років тому

    Been looking for a tutorial on this for ages! Thanks a lot!

  • @TheHowingFantods
    @TheHowingFantods 5 років тому

    Such a joy to watch these videos.

  • @mekniwassime2098
    @mekniwassime2098 5 років тому +320

    "Coding your own game is easier than you think, you know what..." skip

  • @obalfaqih
    @obalfaqih 5 років тому

    Finally, Decals is out! It will save us a lot of time.
    Thanks!

  • @zig8925
    @zig8925 5 років тому +167

    Udemy ad on the video, and skillshare ad *in* the video...so conflicting

    • @stuwustudio
      @stuwustudio 5 років тому +7

      ZiggyZeg 2005 Toxic Can Udemy is a very fishy business... Skillshare’s way better!

    • @supremespark2454
      @supremespark2454 5 років тому +1

      Very sketchy

    • @123okqq
      @123okqq 5 років тому +3

      coding your own games is easier than you think

    • @zig8925
      @zig8925 5 років тому

      I can't wait to see what you make with this!

    • @zig8925
      @zig8925 5 років тому

      @@stuwustudio but it sounds like unity...

  • @Oxmond
    @Oxmond 4 роки тому +1

    Nice bullet hole tutorial! Decals rocks! 👍🤓

  • @charlenekaczynski9023
    @charlenekaczynski9023 5 років тому

    Woah! Cool lighting!

  • @GuldorPhotography
    @GuldorPhotography 5 років тому

    Holy crap this effect is amazing! I did not know this was even an option, thanks!

  • @TsetTsyung
    @TsetTsyung 5 років тому

    Thank you so much. This is another superb tutorial.

  • @WonboShim
    @WonboShim 5 років тому +1

    omg finally a good tutorial on decals

  • @Syntecoderyo
    @Syntecoderyo Рік тому

    Just learned about Decals and damn these are AMAZING

  • @CMG3d0u4rdFR
    @CMG3d0u4rdFR 5 років тому

    Damn that's very useful. I didn't even knew that feature existed with HDRP ! Thanks !

  • @KoldGeneration
    @KoldGeneration 5 років тому +1

    Hey Brackeys! Love your vids! Is there a way that you make more of 2Ds? Like a complete 2D TowerDefence, so we can have basics on how to have organized files and everything to be a good game dev? :D Thanks

  • @honorsoftentertainment484
    @honorsoftentertainment484 3 роки тому +4

    You have a great way of explaining things, and you choose wise, efficient programming methods. I really wish you would do a tutorial on making capes in Unity (possibly even making carpets too), but making a cape using Unity's cloth system can be hard. It is east to hang a cloth, but attaching a cloth and getting it to function properly with colliders would help so much.

  • @niklasneuhold8606
    @niklasneuhold8606 5 років тому

    You are a Unity god, love it...

  • @kettu9943
    @kettu9943 3 роки тому

    Thank you, this is exactly what I searched for

  • @aussieraver7182
    @aussieraver7182 5 років тому +2

    I've been trying to figure out for months on how to avoid using 2D planes for decals, it looks awkward when you shoot a character because of the complex geometry.
    Much appreciate Brackeys!

    • @Semaj0z
      @Semaj0z 4 роки тому

      I use 2d sprites, much better

  • @goga.games18
    @goga.games18 5 років тому

    this is exacly what i wanted thank u

  • @CodedXtreme
    @CodedXtreme 5 років тому +1

    Because of you I'm able to develop games accurately and everyday I watch your videos I learn something new, I'm truly grateful, thank you Brackeys for everything ❤️

  • @warrenroche8420
    @warrenroche8420 5 років тому

    Great shirt Brackeys

  • @bluegreninjagamer4443
    @bluegreninjagamer4443 5 років тому +1

    You are AMAZING!!!

  • @sylvainZa
    @sylvainZa 5 років тому

    Brackeys is bae

  • @VladEv1L
    @VladEv1L 2 роки тому +1

    Thanks!!!

  • @abdoljalilsoltani9471
    @abdoljalilsoltani9471 5 років тому

    Excellent !!
    Thankful

  • @mustafaeren9859
    @mustafaeren9859 5 років тому

    Thank you for everything you are doing for us :) take care, have a wonderful life

  • @galacticgaming5058
    @galacticgaming5058 5 років тому

    i love this channel!!!!

  • @TriSutrisnowapu
    @TriSutrisnowapu 5 років тому

    Amazing tutorial

  • @esmeemarch612
    @esmeemarch612 2 роки тому +1

    Thank you! Just fixed a bug!

  • @isaacgejames
    @isaacgejames 5 років тому +1

    I remember using them ins source to make
    "real time shadows"

  • @danieledesa100
    @danieledesa100 5 років тому

    I would love to have more podcasts from you. Have you ever thought of starting doing that as well? Maybe something that would be available on a mobile device as well? Google podcast??

  • @spyral00
    @spyral00 5 років тому

    it really ties the room together.

  • @robmuzz
    @robmuzz 5 років тому

    Great video!

  • @tranceemerson8325
    @tranceemerson8325 5 років тому

    I like your videos, I would like to see how to use FFT (fast Fourier transform) to generate terrain, or water surfaces.

  • @Ubayla
    @Ubayla 5 років тому

    Don't know why you left it out, but you can also adjust the size of the decal projector by changing the Size property in the inspector or by using the small white handles on the faces of the cube gizmo in the scene. (Instead of by scaling)

  • @serj_1264
    @serj_1264 5 років тому

    Hi! Cool video! Just a qq, for decals, do you or someone recommend using a pool to instantiate em or instantiate+destroy method??

  • @philpa4830
    @philpa4830 5 років тому +2

    Hi Brackeys, is there a possibility to exclude some objects, so they don't get lit by the decal projector?

  • @adizbek_ergashev
    @adizbek_ergashev 5 років тому

    Thanks. Great

  • @CouchFerretmakesGames
    @CouchFerretmakesGames 5 років тому +7

    If it doesn't work, *make sure to* check the *HDRP* asset and manually *enable the decal buffer!*

  • @JanHavel
    @JanHavel 5 років тому

    Good video tho i was kinda expecting a lil bit more tips - like first what comes to my mind is when something flat enough in scene or player hands and so will move between the projector and the wall i suppose those bullet holes will "jump" from wall to that object ... chances are probably smaller than i expect but it would probably not be bad to mention how to mask it by layer or something if its even possible and so.

  • @_chappie_
    @_chappie_ 5 років тому

    Thanks

  • @Vrga
    @Vrga 5 років тому

    Ok,this is epic

  • @borishanudel
    @borishanudel 5 років тому

    Cool - it is really simple in HD Render Pipeline :)

  • @onezerodev1756
    @onezerodev1756 5 років тому

    This is awsome

  • @rezaka116
    @rezaka116 5 років тому +27

    _Coding your own games is easier than you think._

  • @SkipToPlay
    @SkipToPlay 5 років тому +6

    Skip Ad: 1:34

  • @jacobzackaria9876
    @jacobzackaria9876 5 років тому

    Brackeyyyy....Do a video on Camera Collision and occlusion..also about animating buttons and other UI elements 😀

  • @Yoctopory
    @Yoctopory 2 роки тому

    Would this work as a replacement of the shadow projector in URP, or to create caustics under water?

  • @danielgagnon5001
    @danielgagnon5001 3 роки тому

    Hi, awesome stuff mate! I'm late but I have a question: why is it that when you used the dirt decal, Unity automatically understood that black=transparent, but when using the bullet hole decal Unity kept the black in the texture, have I missed a step that you did?

  • @Th.Alchemist
    @Th.Alchemist 5 років тому

    What color theme are you using on your Visual Studio IDE (the text I mean)? I like too much!

  • @vast634
    @vast634 3 роки тому

    Are the projected decals precisely positioned polygons, or somehow rendered within the projected surfaces shaders?

  • @southpawdevelopment
    @southpawdevelopment 5 років тому +1

    Brackeys there was no link for the HD render pipeline which I really want and need! Please post one!

  • @Weckacore
    @Weckacore 5 років тому

    If an object walks through the box of the decal projector, will the bullet hole appear above the object? For example, a foot steps on where a projector is, does the bullet now look like it is on said foot?

  • @ramanujanmadhusudhan8131
    @ramanujanmadhusudhan8131 5 років тому

    What were the assets that you were using for the scene?

  • @Real_MrDk
    @Real_MrDk 5 років тому

    I like this

  • @nikitagorokhov6636
    @nikitagorokhov6636 5 років тому

    Hi. Thanks a lot for your videos. I have two propositions for new videos. 1. Drag and release shot like in mini golf games (with direction arrow depends on power) with description about different types of Camera methods. I mean SreenPointToWorld and other. And of course for 3D :) No normal video in UA-cam about this. 2. Creating an shader (Shader graph) or other usable method (masking or something else) for round timer or health bar. NOT in UI system with “image fill” property. Regular sprite with option to put it everywhere in 3D scene not on canvas. I didn’t find video about it. Thanks a lot.

  • @solomonsekyim4530
    @solomonsekyim4530 5 років тому

    Thanks Brackeys I really wanted a tutorial on that but I kinda missed the keyword '"Decal"

  • @XEVIAN360
    @XEVIAN360 5 років тому

    Nice! But what about drawcalls? How hdrp handles projectors internally? In the standard pipeline it is a shame because every object touched by a projector is being totally redrawn.

  • @babyfire6221
    @babyfire6221 5 років тому

    didn't find a decal tutorial until this

  • @notBradYourself
    @notBradYourself Рік тому +1

    Anyone have info on how performant these are? I imagine its probably best to use some sort of object array + timeout to make sure these dont stack too heavily? What about ones that are part of the environment?

  • @kieranmahon9687
    @kieranmahon9687 5 років тому

    Does this also work for the lightweight render pipeline?

  • @Snipergen
    @Snipergen 5 років тому

    Aaaah! Should have just duplicated your bullethole texture and generated a normal map from greyscale, I really wanted to see it :P But great video again guys!

  • @aquavitale3551
    @aquavitale3551 5 років тому +6

    How many decals can unity handle without significant slowing down? Can those things be "baked" into textures in runtime in a way lightmap is baked to reduce the number of instantiated projectors if, let's say, we want to keep those bullet holes in a scene forever?

    • @gameexplorer4963
      @gameexplorer4963 5 років тому

      That is a tough question. Maybe ask how to click a button in Unity. :D

    • @Uglynator
      @Uglynator 5 років тому +1

      That's what I've been wondering about too. The standard Unity projectors are notoriously slow, so I don't know how fast these will be, especially since they need the HDRP. I've found an asset on the store however, that appearently can bake decals into textures, called EasyDecal. I didn't try it myself as of yet however.

    • @dotcom4389
      @dotcom4389 5 років тому

      @@Uglynator yeah but you have to be very careful with Vram when baking into the texture. The reason is it creates a copy of that texture (instance). so imaging you start shooting many building walls or cars... each one that gets hit no longer shares, it creates a unique copy for that particular object. Its better to use traditional methods and despawn decals after x time or amount spawned.

  • @endihaxhi2460
    @endihaxhi2460 5 років тому +67

    What about default rendering pipeline? HDRP is so far away, it wont be here for a while.

    • @StigDesign
      @StigDesign 5 років тому +2

      Same for me i tried HDRP but every thing turned pink :( so i had to go back to default rendering and yes it took along time to fix every material and modell :(

    • @Splorange1
      @Splorange1 5 років тому +4

      StigDesign1 u have to convert all the materials to hdrp shader

    • @IndieMarkus
      @IndieMarkus 5 років тому +14

      Just google unity projector - you can use the existing projectors from the standard assets. They are usually used for cheap shadows but should work for bullet holes as well
      EDIT: Here's a link: docs.unity3d.com/Manual/class-Projector.html

    • @Lyserg1260
      @Lyserg1260 5 років тому +13

      There is official asset for decals in default pipeline, just download this pack: blogs.unity3d.com/2015/02/06/extending-unity-5-rendering-pipeline-command-buffers/

    • @StigDesign
      @StigDesign 5 років тому

      @YASTRON oh, i have tried that, but it stayed pink so. thank you :)

  • @WinDArtArh
    @WinDArtArh 5 років тому

    Hey. What about choose layer for decals? If i want use decal for only one object but this located with others.

  • @BlueJeebs
    @BlueJeebs 4 роки тому

    Quick question. are the HDRP decals compatible with light baking?

  • @bharanidharanmaheswaran3407
    @bharanidharanmaheswaran3407 5 років тому

    I'm new to unity. Can you tell me how do you make assets like the one in this video?

  • @dan-mechanics2014
    @dan-mechanics2014 5 років тому

    Great!!

  • @TMDS
    @TMDS 5 років тому

    I would love to see a weapon recoil tutorial since their aren't really any good ones out there.

  • @tvguideondemand
    @tvguideondemand 4 роки тому

    I would love a tutorial for how to create a projector with Shader Graph. Especially since one doesn't come with URP.

  • @safallyaguhathakurta5714
    @safallyaguhathakurta5714 5 років тому

    Hi, can you please make a video on how to control game time, like suppose 24 hours in the real world will be equivalent to 1 hour in the game world, also how to access different time to do a different task or set something. thank you.

  • @whoreallycares4460
    @whoreallycares4460 5 років тому

    Can you please do a guide on how you made your game “crafty”

  • @conceptfactory5604
    @conceptfactory5604 4 роки тому

    Have any way to animate a decal? Using a grid sheet texture or multiples images

  • @rukna3775
    @rukna3775 5 років тому

    checked ur podcast, great. And yeah, those Indian views are mine, I have been following u from a long time.

  • @magicquest5221
    @magicquest5221 4 роки тому +3

    1:47 where is the link?

  • @masayaps1349
    @masayaps1349 5 років тому

    Do you have any tutorials on how to make a currency and shop system one where you collect coins in game then at the main menu you have a button that takes you the shop scene then you have all your items that you can buy then you can equip them and un-equip them say like stuff that changes colours of your player or things that change the background just you know stuff like that.... but if you don’t any chance you could make one

  •  5 років тому +2

    how to configure hd pipeline to my project?

  • @juanegray123
    @juanegray123 4 роки тому

    Hi, I am using these decals for bullet holes, but I can't edit the materials or access any variables to change the instance at runtime. Any ideas how to have them scale or fade out. thanks.

  • @Haapavuo
    @Haapavuo 5 років тому +76

    And now make a video on how to render decals without HDRP. Thanks.

    • @GymCritical
      @GymCritical 4 роки тому +7

      Haapavuo ordering people doesn’t get you anywhere lol

    • @PdUnique
      @PdUnique 4 роки тому +3

      @Haapavuo You might consider being more polite

    • @GymCritical
      @GymCritical 4 роки тому +1

      @@PdUnique you're a sensible man.

  • @okee
    @okee 5 років тому

    Yes

  • @brandonnorsworthy
    @brandonnorsworthy 5 років тому

    thank you for the free 2 months

  • @NicholasScotti
    @NicholasScotti 5 років тому

    what do you think to make a video about "publish your indie game for free" ?

  • @CentboyMidnight
    @CentboyMidnight 5 років тому

    pls make a video about how to create ctristal walls that get break when you shot them

  • @VS-rv5xh
    @VS-rv5xh 4 роки тому

    Is there a low spec alternative? HDRP is level 11 DX and my card only supports level 10.
    Right now i just instantiate textures at the point of rayhit.
    Works fine ..but not for bigger textures like bloodsplats

  • @JKJK-lr1ug
    @JKJK-lr1ug 5 років тому

    Does this increase the render time?

  • @Bugonnn
    @Bugonnn 5 років тому

    Just wondering how can brackeys code in visual studio brackeys using have color? Mine just blue and white

  • @waqariqbal2358
    @waqariqbal2358 4 роки тому

    Is HDRenderPipeline suitable for games targeting the mobile platform? Wouldn't it be too intensive for mobile games?

  • @isaacnewton8983
    @isaacnewton8983 5 років тому +1

    How performant is the decal system? I'm working an a relatively large protect and i am wondering how hundreds of decals is going to affect the Fps of my game.

    • @dotcom4389
      @dotcom4389 5 років тому +1

      why not just test it out? create decal and copy and paste...

  • @lizardsempire5770
    @lizardsempire5770 5 років тому +1

    Nice

  • @Arman-yh7nl
    @Arman-yh7nl 5 років тому +1

    Very cool Video! in csgo, when u shoot an enemy and he is nearby a wall, it is possible that on the wall there is blood as a decal so how can we do that?
    sry for bad english

    • @Der-Kleine
      @Der-Kleine 5 років тому +4

      I am far from an expert on all this stuff, but you could probably put the character you want to shoot at on a specific layer, then when you hit the character with your shot ray send out a second ray that ignores this layer and passes through the character. For extra realism you could then compare the hit positions of the two rays and move the point where you want the blood to be downwards based on the distance between the two hits to give the illusion of gravity affecting the blood splatter.

    • @CoolGabrijel
      @CoolGabrijel 5 років тому

      @@Der-Kleine I was about to say that :c

  • @adinassaem
    @adinassaem 4 роки тому

    is it possible to multiply a decal to objects' textures?

  • @omerakyuz3206
    @omerakyuz3206 5 років тому

    Is it performance-friendly for mobile?

  • @LostStylus
    @LostStylus 4 роки тому +1

    What if I want decals without HDRP to target mobile platforms?