Pixel Perfect Lights and Particles in Unity! (Tutorial)

Sdílet
Vložit
  • čas přidán 27. 09. 2020
  • In this video, we are going to demonstrate how you can use the Universal Render Pipelines 2D Renderer and 2D Lights to create Pixel Perfect Lights and Particles.
    Download the assets from this project here!
    on.unity.com/3mVQptT
    Learn more about the Universal Render Pipeline here!
    on.unity.com/33boIFD
    Read more about our 2D Lights here!
    on.unity.com/339Rdna
    And finally, here you can find more Information about the 2D Renderer!
    on.unity.com/3457WqH
    Unity Version used 2019.4
  • Hry

Komentáře • 144

  • @xianead18
    @xianead18 Před 3 lety +127

    Damn. They've been stepping up so much ever since Brackeys stopped

    • @normalhumanbeing6066
      @normalhumanbeing6066 Před 3 lety +5

      Xianead Penilla true

    • @gerarddilk4862
      @gerarddilk4862 Před 3 lety +4

      good for us

    • @sterlingmisael133
      @sterlingmisael133 Před 2 lety

      I guess im asking the wrong place but does someone know of a method to log back into an instagram account..?
      I somehow forgot the account password. I appreciate any assistance you can give me.

    • @AlanAlan-bv9yg
      @AlanAlan-bv9yg Před 2 lety +2

      Sebastian Lague is better than Brackeys very much

  • @albertb4460
    @albertb4460 Před 3 lety +25

    Unity stepping in in the unity tutorials field

  • @Terror1046
    @Terror1046 Před 3 lety +21

    I just want to mention that the tutorial guy has a nice voice and that I appreciate the structure in these tutorials. It's miles better than what you usually find on youtube

  • @youneskasdi
    @youneskasdi Před 3 lety +1

    Quality tutorial, amazing detailed explanation and still managing to keep it simple so everyone can understand, please keep uploading stuff like these.

  • @pandaengine
    @pandaengine Před 3 lety +1

    Holy moly this was the video I was waiting for!

  • @TurboMakesGames
    @TurboMakesGames Před 3 lety +3

    🤩 So beautiful! Love how this allows a programmer like myself to easily add a ton of character to my game world

  • @eboatwright_
    @eboatwright_ Před 3 lety

    YESSS! I've been waiting for this! :O

  • @kuumaaa
    @kuumaaa Před 3 lety +1

    really like the small particles floating around

  • @zaidmermam2524
    @zaidmermam2524 Před 2 lety +4

    5:32
    my mind : a great system for making amazing particles * in dani's voice *

  • @mr.madman9467
    @mr.madman9467 Před 3 lety

    Nice that you went public. Wish you the best of luck!

  • @chris.davidoff
    @chris.davidoff Před 3 lety

    This is so stellar

  • @Oxmond
    @Oxmond Před 3 lety +1

    Looks awesome! 🤓🧡🤓🧡🤓

  • @hm4266
    @hm4266 Před 3 lety +2

    Cool! but I was looking this a long time ago and found all by my own) but that’s still really helpful

  • @dorondavid4698
    @dorondavid4698 Před 3 lety

    Awesome stuff!

  • @sujayisarani8275
    @sujayisarani8275 Před 3 lety +184

    After brackeys this is my hope
    Unity itself!!
    Edit : thanks for 131 likes

    • @lct7xi888
      @lct7xi888 Před 3 lety +7

      Why did Brackeys quit :(

    • @sujayisarani8275
      @sujayisarani8275 Před 3 lety +3

      He wanted to do something else

    • @rod-abreu
      @rod-abreu Před 3 lety +7

      ​ @ΞLΞCT7XI He deserves it. It is a lot of work to create and prep content in the quality he was already doing in his vids, I know he had a team working with him, but it's been 8 years already. He made a lot of money with his vids and I think everything is well deserved, in his place I'd take some sabatical years before thinking of coming back, honestly. I work with video games and it's a lot of work to keep delivering stuff in time and finishing up everything you want and need, specially when it's an yearly sport game. Lots of efforts.

    • @khushalkhan83
      @khushalkhan83 Před 3 lety +1

      You are lost, unity channel guy is too lazy to put project link he always says that it will be in description but never put it there. How could someone hope from someone like that

    • @mythip_
      @mythip_ Před 3 lety +2

      @@khushalkhan83 you are lost cant you see the link in the description

  • @AndyHodges10
    @AndyHodges10 Před 3 lety +7

    - Update. The asset link has been added to the description. Thanks a ton!
    I'm currently not seeing the example project linked in the description. I do however see the 3 reference links.

    • @11305205219
      @11305205219 Před 3 lety

      +1

    • @andytouch9482
      @andytouch9482 Před 3 lety +2

      Hey! Sorry about that, we are working on fixing it. :)

    • @unity
      @unity  Před 3 lety +2

      @Hodge Podge We have now updated the description with the proper link! Thanks for your patience!

  • @droweedryan
    @droweedryan Před 3 lety

    you killing it

  • @OmegaFalcon
    @OmegaFalcon Před 3 lety +1

    Does pixel perfect camera work with multiple vcams at different distances, cuz I couldn't get them to work

  • @Arnoldius
    @Arnoldius Před 3 lety +69

    It would be really cool if 2D lights would support soft shadows!

  • @gyanendrasingh2003
    @gyanendrasingh2003 Před 3 lety +56

    When brackeys fans don't get any channel like that

    • @gargaroots
      @gargaroots Před 3 lety +1

      Check the Code Monkey channel, it's amazing.

  • @alecz_ro
    @alecz_ro Před 3 lety +14

    I'm waiting for dani to come here because..... *Unity particles system*

  • @matveydutkovsky6184
    @matveydutkovsky6184 Před rokem +1

    Hello! Render texture wasn't upscaled and in Pixel Perfect Camera (Experimental) was "Pixel perfect Camera in the 2D Pixel Perfect package isn't compatible with Scriptable Render Pipeline. If you are using Lightweight Render Pipeline, you can swap this for the Pixel Perfect Camera component that ships with LWRP". Unity version 2020.3.36f1

  • @neozoid7009
    @neozoid7009 Před 2 lety

    Awesome

  • @revengerwizard
    @revengerwizard Před 3 lety

    The pixel perfect camera is starting being perfect also with lights and particles. Maybe a thing awesome would be to make it work with UI

  • @LilPie
    @LilPie Před rokem

    so to the ppl than want that projected shadow, just add "Shadow Caster 2D" at object than u want a shadow, so u change the "Shadow Intensity" value at light inspector. thats it

  • @gabrielpaduraru6922
    @gabrielpaduraru6922 Před 3 lety +5

    We all expect dani in the comments

  • @KiuanTroll
    @KiuanTroll Před 3 lety

    Oh yeah!

  • @mauschannelbois5089
    @mauschannelbois5089 Před 3 lety

    It would be great if the 2D render pipeline could support 3D illumination... Like a 2.5D render pipeline would be amazing

  • @monalloyd
    @monalloyd Před rokem +1

    Hi, great video, thanks for uploading! I have a question: the aspect ratio changes in different sections of the video - sometimes it's "Free Aspect," sometimes 1920x1080, and sometimes 16:10. Is there an ideal aspect ratio when using 16 PPU? I'm very new to all of this and I'm always a little bit confused about choosing a good aspect ratio for my projects. I know it's been a while since this video was uploaded, but I hope you'll respond. Thanks again for the video!

  • @n3xt0r
    @n3xt0r Před 3 lety +1

    Esas paticles!

  • @xvrsl
    @xvrsl Před 3 lety

    Finally

  • @lunaticartimus
    @lunaticartimus Před 2 lety +3

    Hi Unity, Light2D sprite masks seem to not respect "Filter Mode: Point (no filter)" any more, compared to the experimental (mask) cookies. Is there any option to get pixelated lighting back?

  • @rzbig
    @rzbig Před 3 lety +1

    Always wondered how to make pixel perfect _paticles_ ...

  • @HamroTalkingTom
    @HamroTalkingTom Před 3 lety +1

    Wow

  • @daffa-d3633
    @daffa-d3633 Před 3 lety

    5:33 its a great system where you can make particles (dani)

  • @tyraniusdelten8207
    @tyraniusdelten8207 Před 3 lety

    ❤️

  • @Gennj
    @Gennj Před 3 lety

    I'm here before 1k views...

  • @HylianLegend
    @HylianLegend Před 3 lety +4

    who else clicked on this video because they misspelled particles on the thumbnail

  • @franciscojaviercampos3672

    It would be good to have the sample project

  • @neozoid7009
    @neozoid7009 Před 2 lety

    Awesome . But can I render a High resolution normal sprite not pixelated into a pixelated sprite using this camera ?

  • @DavidMetzener
    @DavidMetzener Před 3 lety +7

    Maybe it's way early in the morning for me, but am I not seeing the "link in the description" to the project in the video that we can download and look at? I see the "more info" links, but that's it. I really would like to pull down the sample to experiment with. Thanks in advance...

    • @andytouch9482
      @andytouch9482 Před 3 lety +2

      Hey! Sorry about that; we are working on fixing it. :)

    • @bsdrago
      @bsdrago Před 3 lety

      @@andytouch9482 Waiting!! =)

    • @unity
      @unity  Před 3 lety +5

      We have now updated the description with the proper link! Thanks for your patience!

    • @bsdrago
      @bsdrago Před 3 lety

      @@unity

  • @lahiter
    @lahiter Před 3 lety +3

    Anyone else having issues with the pixel perfect camera, cinemachine and pixel snapping? My camera isn't very fluid when I move it.

  • @agastyavalisetty8620
    @agastyavalisetty8620 Před 3 lety +6

    hey wut if there was a 2d raytracing?

  • @Gx-Studio
    @Gx-Studio Před 3 lety +2

    where is the link of the project i can't find it

  • @user-jf2rj3zf5v
    @user-jf2rj3zf5v Před 3 lety +1

    But is there a way to pixelate the light itself? Because the light seems soft still. How can you make it "toony"?

  • @DonPoorty
    @DonPoorty Před 3 lety

    What do I need to do for my sprites to project a shadow?

  • @FortbloxNET
    @FortbloxNET Před 2 lety +1

    What if? ..... I want this cool pixel perfect particle effects but i dont want the pixel perfect camera all over my game, for example my character is swinging a sword. I dont want the sword to be pixel perfect. So how can i achieve to say what exactly should pe pixel perfect and what not?

  • @TheAnonymPL
    @TheAnonymPL Před 3 lety

    Are the pixel perfect lights compatibile with Unity ECS? and can they be spawned as entities?

  • @masterz0
    @masterz0 Před 3 lety +1

    How to remove the camera jitter, when accompanying the player?

  • @awesomegamedev
    @awesomegamedev Před 3 lety +1

    Looks cool,
    but can you render crisp TextMeshPRO text on top of it?
    Like in Celeste: game is pixel art, but all the text is crisp and clear

    • @stafs
      @stafs Před 3 lety

      Add a second normal camera just for the text?

    • @silevol
      @silevol Před 3 lety

      @@stafs But if you do that, isn't the second camera impacting the performance?
      Because thats a problem I have with my project right now.. And I have performance issues because of the second camera.
      Would be glad if there were a sweet little trick or solution I couldn't see?

    • @awesomegamedev
      @awesomegamedev Před 3 lety

      @@stafs Yeah, it should probably work. I just never used two cameras together.

  • @geri4367
    @geri4367 Před 3 lety +1

    Please relase some Documentation and Examples on how to manually write or adapt pre-existing shaders to URP and the 2D renderer
    As an asset publisher having users demand this features and not being able to provide them is really annoying :(

    • @unity
      @unity  Před 3 lety +1

      Hey Geri! Appreciate the feedback! If you haven't yet, please use the Documentation Feedback form (located at the bottom of every documentation page) to share this feedback with our Docs team! Thanks!

    • @geri4367
      @geri4367 Před 3 lety

      @@unity Is it possible that this Documentation Feedback from has been deprecated from now and moved to the forums?

  • @scratchy996
    @scratchy996 Před 3 lety

    Is there something similar to make those light rays for 3D ?

  • @joni89qe
    @joni89qe Před 3 lety +1

    They didn't explain how to get the floating particles affected by light, or did I miss something?

  • @LeoHsieh
    @LeoHsieh Před 3 lety +10

    Can I just change my monitor resolution to 320 x 640 and expect the game turned into pixel art?

  • @JulianColbus
    @JulianColbus Před 3 lety +3

    Is there a way to make JUST the lighting pixel perfect (i.e. all types of 2D Lights) and nothing else?
    We do want smooth movement of camera and sprites, so we disabled "Upscale Render Texture" and "Pixel Snapping". But I would like to try and see what pixel perfect lighting looks like, i.e. if light falloff were to adhere to the size of "asset pixels" rather than "screen pixels". Sprite Lights aren't the answer I'm looking for since they aren't suited for all use cases. Thanks in advance to anyone who might know the answer. (:

    • @StarLightShadows
      @StarLightShadows Před 3 lety

      I would also like to know.

    • @JulianColbus
      @JulianColbus Před 3 lety

      @@StarLightShadows I asked around on Twitter and Reddit, but no luck. You need to make manual changes to library files. Luckily, our shader guy managed to do it already. I'll post about it very soon on Twitter (@digitales_games) if you want to learn more. (:

  • @iamjustaduck7592
    @iamjustaduck7592 Před 3 lety

    Did you animate the shadow caster2D on the player or am I dreaming ? If you did, could you tell me how please? :0

  • @jertlemiah
    @jertlemiah Před 3 lety +3

    I don't see the link for the project in the description, there is only the links to the documentation on the things used (and I don't see this example listed there either).

    • @HypedO_OP
      @HypedO_OP Před 3 lety

      i used it, the assets are helpful to me i dont know about yours

    • @jertlemiah
      @jertlemiah Před 3 lety

      Ahhhh, they updated the description to add the link. It was not there when I made my previous comment

    • @HypedO_OP
      @HypedO_OP Před 3 lety

      @@jertlemiah oh

  • @juicedup14
    @juicedup14 Před 3 lety +1

    He didn't go into how lights made bloom
    Can someone explain?

  • @MrHarry37
    @MrHarry37 Před 3 lety

    Is there a way to soften up the shadows?

  • @mustafasuve3109
    @mustafasuve3109 Před 3 lety

    So this enables the lights to work well for 2D games, whereas in 3D, spotlights or point lights couldn't even cast shadows.

  • @PeterMilko
    @PeterMilko Před 6 měsíci

    I'm doing this in my game, come look.

  • @thereadypunk757
    @thereadypunk757 Před 3 lety

    Does everything have to have on resolution? My player is 32 by 32, and my tiles are 16 by 16

  • @muttlymartin2621
    @muttlymartin2621 Před 3 lety

    Is it bad if i have my max texture size set to the 8000s scale? 3:44

  • @shapeshifter8986
    @shapeshifter8986 Před 3 lety

    Is there a way to make a 2D Game which uses 2D Lights and a 3D Background for this game which uses 3D Lights?

  • @eboatwright_
    @eboatwright_ Před 3 lety +1

    I can't get the 2d shadows to work. Any help?

  • @TeppuTeppu
    @TeppuTeppu Před 2 lety

    it almost looks like noita, but sadly the boxes are not destructable

  • @protophase
    @protophase Před 2 lety

    I'm getting a massive headache with this. Please help me. I have imported a sprite in unity to use as my background with a resolution of 640 x 480. but when I do it's so tiny compared to everything else, the camera doesn't match and I want to be able to upscale it to 1080p later. In the video everything is at a normal scale of 1:1:1 and he is even using 1080p HD resolution for sprite size lower than me. What am I doing wrong?

  • @anonymoussloth6687
    @anonymoussloth6687 Před 3 lety

    can someone explain or link to a video that shows how to achieve the pixelated explosion effect from the shooting in this video? I have been search for this for a long time and i am relatively new to unity so i am looking for it to be beginner friendly

    • @unity
      @unity  Před 3 lety +1

      While maybe not exactly the effect in this video, here is documentation on how to create simple explosions: docs.unity3d.com/Manual/PartSysExplosion.html
      Hope that helps!

  • @dottasov
    @dottasov Před 3 lety

    Do you have a paticle tutorial thx

  • @tmi114
    @tmi114 Před 3 lety

    @Unity, any chance to get this project ?

  • @CatDribble
    @CatDribble Před 3 lety

    Why isn't there any software that does this when creating pixel animation, if I was making games this would be great.

  • @tomxuan9050
    @tomxuan9050 Před rokem

    How do you make that shadow?

  • @joeysimon3331
    @joeysimon3331 Před 3 lety

    Hello there!

  • @honoratojr.palmero4108

    can this cure my depression?

  • @mehmeh8883
    @mehmeh8883 Před 3 lety

    So these are mobile optimized, right?

  • @ficworldtfz
    @ficworldtfz Před 11 dny

    does it work on unity 2022?

  • @nosinfantasia
    @nosinfantasia Před 3 lety

    hi anyone knows how to do this laser beam ? some link plz.....

  • @legolad2103
    @legolad2103 Před rokem

    i swear it doesn't work with 2d lights. i've tried but nothing works. the lights still appear the same :(

  • @benayamanuel
    @benayamanuel Před 3 lety

    Upgraded my Unity to 2020.2, now my character is super blurry when moving. Any ideas ? Super confused

  • @giannisgiakamozis7418
    @giannisgiakamozis7418 Před 3 lety

    Dani

  • @cathello2900
    @cathello2900 Před rokem

    Спасибо.
    Как сделать такой фон?

  • @DayzeXzxR
    @DayzeXzxR Před 2 lety +1

    in action video is apparently worth the Korean language. This is why I can't get subtitles.

  • @technofeeliak
    @technofeeliak Před rokem

    NOPE...
    I can see the pixel art gets distorted.
    I have a work around for all this, it takes a lot of time to implement but the results are much better.

  • @omar7altawil435
    @omar7altawil435 Před 3 lety +1

    Where is the download link

    • @unity
      @unity  Před 3 lety +1

      Sorry, we had a bit of a delay with the Project, it is in the description box now! :)

  • @angustaylor830
    @angustaylor830 Před 2 lety

    The word particles is spelt wrong in the thumbnail. It says paticles. You might want to fix that

  • @majnoon1935
    @majnoon1935 Před 3 lety

    guys i had a question please help :
    do game developer needs to learn VFX or VFX maker is a different with coder? and
    does VFX need any coding?
    cuase i hate graphic works and love coding
    tnx for you help and sorry for my bad grammar .

    • @anonymoussloth6687
      @anonymoussloth6687 Před 3 lety

      vfx is just visual effect your add to your scene to make it "pop" more or simulate any other visual effect you desire. Suppose you are making a horror game where you want to make your whole scene dark and spooky with lights (like torches and lamps) to really pop then this is where it will come in handy. As far as I know, VFX doesn't really require that much coding. Instead you need to understand how lighting, shaders, etc work.

    • @majnoon1935
      @majnoon1935 Před 3 lety

      @@anonymoussloth6687 they told me that this work doing something like when somebody shoot a bullets to a wall and it destroys , and i should do this part of work, Are these two one?

  • @bean_mhm
    @bean_mhm Před 3 lety +3

    5:32 Unity's Particle System (Dani's Entire Life)

  • @kevinkelly6756
    @kevinkelly6756 Před 3 lety

    Where is dani???

  • @youseftest8383
    @youseftest8383 Před 2 lety

    the thumbnail says paticles instead of particles

  • @cristiano4826
    @cristiano4826 Před 3 lety

    My ui is jittering when it is the child of camera any fix

    • @luis_musik
      @luis_musik Před 3 lety

      rendering the ui as an overlay instead of to the camera should fix

    • @cristiano4826
      @cristiano4826 Před 3 lety

      @@luis_musik my parallaxing also jittering after using pixel perfect camera 😪

    • @luis_musik
      @luis_musik Před 3 lety

      might have something to do with script execution order idk

    • @jmedeirosneto
      @jmedeirosneto Před 3 lety

      ​@@cristiano4826 Same problem here, it didn't happen in the 2019 version. Did you fixed?

    • @cristiano4826
      @cristiano4826 Před 3 lety

      @@jmedeirosneto I used screen overlay for ui. Somehow I reduced the parallaxing jitter.

  • @ROXPLAYZONE
    @ROXPLAYZONE Před 3 lety

    Why brackys quit

  • @arkilisx
    @arkilisx Před 2 lety +1

    Bit lost as this tutorial try to include way many points but none of them is explained well.

  • @DanielDaAbadSukarno
    @DanielDaAbadSukarno Před 3 lety +1

    Are unity can beat UE4 or u can't do that?

  • @gaminganimator-qp2ir
    @gaminganimator-qp2ir Před 3 lety

    15E

  • @sarp519
    @sarp519 Před 2 lety +1

    How to get 2D light pixilated?

  • @erictr3234
    @erictr3234 Před 3 lety

    too late

  • @mikena8519
    @mikena8519 Před 2 lety

    I miss @Brackeys take on things :(

  • @bamachikaboi
    @bamachikaboi Před 3 lety +1

    “क्योंकि परमेश्‍वर ने जगत से ऐसा प्रेम रखा कि उसने अपना एकलौता पुत्र दे दिया, ताकि जो कोई उस पर विश्वास करे, वह नाश न हो, परन्तु अनन्त जीवन पाए। (यूहन्ना 3:16)
    यदि तू अपने मुँह से यीशु को प्रभु जानकर अंगीकार करे और अपने मन से विश्वास करे, कि परमेश्‍वर ने उसे मरे हुओं में से जिलाया, तो तू निश्चय उद्धार पाएगा। (रोमियों 10:9)

  • @ghouldrago360
    @ghouldrago360 Před 3 lety

    Keep the dislike at 0 boiisss

  • @kelleyintegritysafetysolut484

    Until I get what I friggin paid for.... YOU CAN GET READY FOR ME TO SHARE MY EXPERIENCES WITH THE ENTIRE WORLD!!!!