Unity 2D Basic Lighting Tutorial!

  Рет қаралды 43,255

Topside Studios

Topside Studios

Күн бұрын

Пікірлер: 110
@trackhero2714
@trackhero2714 3 жыл бұрын
Great job. It amazes me how official tutorials, or other tutorials manage to make something like this so convoluted when they explain it and it ends up not working out. Awesome!
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@mattsithknight
@mattsithknight 4 жыл бұрын
Perfect! Thankyou, was following another tutorial but it was out of date and confusing. Thanks for this easy to follow video. Subscribed!
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Great to hear I helped! Looking to make a load more tutorials soon so stay tuned 😊
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@goodgamershow6505
@goodgamershow6505 3 жыл бұрын
One little tip for 2D lights: try to avoid Point Light, because it's crazy on performance. Much better choice is to use Freeform Light and then change its form as you like. This saved me up to 40 fps. Another thing to do: don't use a lot of lights in your game. Just 3 lights are enough to kill your FPS. And lastly: if you want your game to be very optimized and run on any devices: don't use any rendering at all. You can get +- similar results by using transparent sprites and applying colors to them, along with playing with alpha to make it look more Light-ish(?). You can find a video about these transparent light's on Blackthornprod's channel.
@Djinn667
@Djinn667 2 жыл бұрын
You know how I can darken the whole map light up parts of it using that transparent light method?
@goodgamershow6505
@goodgamershow6505 2 жыл бұрын
@@Djinn667 I would simply go for darkening the texture pack of yours. Or putting a giant semi transparent box, making its colour black and setting alpha to kinda 0.3-0.4. It will also look like it's dark
@Djinn667
@Djinn667 2 жыл бұрын
@@goodgamershow6505 I forgot to mention, I would like the map to be 100% black and have parts of it light up.
@INFamousTurBan
@INFamousTurBan 3 жыл бұрын
I don't usually comment on videos but this great, super clear and very helpful! Thanks for video dude
@GhirkoArt
@GhirkoArt 4 жыл бұрын
This is brilliant! Much easier to follow than other tutorials. Thanks! Shame my lighting woes seem to be coming from somewhere completely different =P
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Glad it helped!
@thomaswalsh4882
@thomaswalsh4882 3 жыл бұрын
i need help i have a tile map and nothing went black
@thomaswalsh4882
@thomaswalsh4882 3 жыл бұрын
nevermind it works thank you
@ashtonobrien1043
@ashtonobrien1043 2 жыл бұрын
@@thomaswalsh4882 How did you get it to work?
@na10gamertv65
@na10gamertv65 2 жыл бұрын
thank you so mutch ive never been able to add light but i can now
@FanFantom
@FanFantom 3 жыл бұрын
THANKS!!!!! Your tutorial is awesome!
@piri3091
@piri3091 Жыл бұрын
Thanks for the video!! I tried many videos but only this video worked!
@DarokCx
@DarokCx 4 жыл бұрын
Very nice video! but how your asset can cast shadows ?
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Currently I just create my own shadows using grey shapes because I have no moving lights so dynamic shadows are not needed. I am planning on adding dynamic casting shadows within the next month and will be sure to upload a tutorial video when I can 🙂
@jasonazevedo2881
@jasonazevedo2881 3 жыл бұрын
Very Good stuff! This is amazing work and very explanatory! Very very veryyy Happy!
@metaDeWeta
@metaDeWeta 3 жыл бұрын
Super great tutorial, thanks a lot!!
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@paulbuckley685
@paulbuckley685 4 жыл бұрын
Awesome for beginners (like me!) keep it coming.
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Great to see you enjoyed it!
@Greenie.293
@Greenie.293 2 жыл бұрын
I don't have an option for a point light? but still have all the other options. Help...
@OliveriousYT
@OliveriousYT 3 жыл бұрын
Scene doesn't turn black for me :/
@johanjonsson7018
@johanjonsson7018 3 жыл бұрын
Same for me. it upgrades all objects so they are black but the scene and game view is still dark grey and light grey
@johanjonsson7018
@johanjonsson7018 3 жыл бұрын
I think i solved why. He has a background in his scene and if i just added a square and made it huge and -layer then it works fine
@random_precision_software
@random_precision_software 2 жыл бұрын
How to put a light behind a sprite and only shine thru a transparent part of the sprite
@scratchtutorials1068
@scratchtutorials1068 4 жыл бұрын
my point light is not showing in the game scene, dunno why :( EDIT: the issue was that the point light was behind the camera, i set its z to 50 now it is showing
@tudorc179
@tudorc179 3 жыл бұрын
Thx for the tutorial. I would really like to know how could I apply these effects on mobile without affecting performance (I'm making a simple game).
@saswatamohanta1023
@saswatamohanta1023 2 жыл бұрын
Hi great video. I was wondering if there was a way to change light intensity 2d using script for a sprite light, for example
@danialkraven463
@danialkraven463 4 жыл бұрын
Thank you very much, you deserve more subscribers.
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Thanks Daniel!
@real_xeyo
@real_xeyo 2 жыл бұрын
where is the URP pipeline asset in the 2021 unity version
@alejandroalonso9685
@alejandroalonso9685 4 жыл бұрын
How do I can make a lightmap?
@christophergraf5929
@christophergraf5929 3 жыл бұрын
Great video! Thank you so much. What would I do if I don't want everything in a scene affected by the lighting? What material can I change the ones I DO want to be affected?
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@lucasburford7881
@lucasburford7881 3 жыл бұрын
This is perfect, thank you so much! I had an idea I really wanted to develp, but had no idea how to properly use the 2D lighting system, but you helped me so thank you!! :D I'll be sure to subscribe and check out your other tutorials :)
@PixelOtter0813
@PixelOtter0813 3 жыл бұрын
Dude you made this so easy :D thanks
@olyamal643
@olyamal643 Жыл бұрын
That's a great video! Thank you so much!
@doctorsuper
@doctorsuper 2 жыл бұрын
Great tutorial bro! Helped a ton!
@pabloduque1956
@pabloduque1956 4 жыл бұрын
Nice Tutorial!!
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@oguzhancelik2511
@oguzhancelik2511 Жыл бұрын
my version is 5.6.7 I don't have a package manager! How can I do it?
@AlexsYTChannel1
@AlexsYTChannel1 2 жыл бұрын
Amazing! Good explained
@ashwinjaimal
@ashwinjaimal 3 жыл бұрын
fantastic video bro had to give you a sub thank you for making this :)))
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@bartomiejjaszczak7331
@bartomiejjaszczak7331 2 жыл бұрын
Perfect tutorial, thx a lot bro
@patelvraj1362
@patelvraj1362 2 жыл бұрын
first of all move objects to prefab section then apply 2d light
@buckle4970
@buckle4970 4 жыл бұрын
Nice tutorial, really helped me :)
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Glad it helped!
@dark_j_gamer5285
@dark_j_gamer5285 4 жыл бұрын
this is supper useful thank yo for making this ;)
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
Glad it helped 😁
@derrickd939
@derrickd939 3 жыл бұрын
how would you go about controlling the point lights with c# script?
@christopherdoiron4294
@christopherdoiron4294 3 жыл бұрын
paid for a course on udemy.. should have given you the $30 tbh. Thank you!
@topsidestudios5947
@topsidestudios5947 3 жыл бұрын
I'm glad it helped 😊
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
@@topsidestudios5947 now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@cemdenizg9383
@cemdenizg9383 3 жыл бұрын
@@Rayan-bk3fn You should upgrade your materials to URP materials. You can do it from Edit > Render Pipeline > Universal Render Pipeline > 2D Renderer.
@kazimashiatsumaira1684
@kazimashiatsumaira1684 3 жыл бұрын
Can we use this in 3d game?
@jayden3751
@jayden3751 3 жыл бұрын
Mine turns all pink when I set the graphics to URP
@inkusalters3762
@inkusalters3762 3 жыл бұрын
Did you ever find a fix for this? I'm having the same problem. I've tried resetting the graphics settings, re-upgrading textures, nothing's working.
@YondaimeCihan
@YondaimeCihan 4 жыл бұрын
Çok güzel video. Ellerine sağlık.
@moos119
@moos119 3 жыл бұрын
Thanks man! Its time for my game to shine xD
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@OU20GAMES
@OU20GAMES 4 жыл бұрын
Perfect! Thank you very much!
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@OU20GAMES
@OU20GAMES 3 жыл бұрын
@@Rayan-bk3fn Change the sprite material to Sprite-Unlit-Default.mat or Sprite-Lit-Default.mat to have a lus effect on it.
@munchymcmouthington298
@munchymcmouthington298 3 жыл бұрын
as I understand it, sprite lighting is used to create stuff like dappling. While you can apply it to any old sprite, Unity has "Sprite masks" in mind. see: kzbin.info/www/bejne/fGbPaamGbpV4rLc
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@ghiancarlostan8730
@ghiancarlostan8730 3 жыл бұрын
can i use this for android?
@leonardosiqueira8514
@leonardosiqueira8514 3 жыл бұрын
Hey, does it affects all my scenes or just an specific one?
@linguangya
@linguangya 2 жыл бұрын
Amazing!thanks
@GoobNoob
@GoobNoob 2 жыл бұрын
Very good video!
@sametceylan4445
@sametceylan4445 3 жыл бұрын
Thank you!
@scratchtutorials1068
@scratchtutorials1068 4 жыл бұрын
you should have more subs bro
@kooltyme
@kooltyme 3 жыл бұрын
this tutorial works. (im using unity 2020.3.14f)
@godexpro4067
@godexpro4067 3 жыл бұрын
Fantastic
@gdx9a
@gdx9a 4 жыл бұрын
i cant find universal RP
@argentumstaar
@argentumstaar 2 жыл бұрын
Thank you!!
@deleteduser1187
@deleteduser1187 3 жыл бұрын
Hey, my projects doesn't go black or anything.
@omegakrakengames
@omegakrakengames 3 жыл бұрын
I had that problem, too. This light works only with 2D objects. It does not work with UI objects
@deleteduser1187
@deleteduser1187 3 жыл бұрын
@@omegakrakengames its fixed
@ashtonobrien1043
@ashtonobrien1043 2 жыл бұрын
@@deleteduser1187 how did you fix it? I am having the exact same issue
@anticstudios
@anticstudios 2 жыл бұрын
brilliant
@saas1995
@saas1995 3 жыл бұрын
Thank you bro!
@ДимаКовбас
@ДимаКовбас 3 жыл бұрын
Nice 🥺😊
@random_precision_software
@random_precision_software 3 жыл бұрын
mine are greyed out ?
@nikach7756
@nikach7756 3 жыл бұрын
ok so i had the same problem and what you have to do is add another renderer called the 2d renderer and replace the one that the universal rp asset has
@wolker213
@wolker213 4 жыл бұрын
Its very demanding, old phones with poor GPU performance are lagging with URP experimental 2d((
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
This can be true, especially with a lot of lights. I would highly recommend writing a light handling script to deactivate lights outside of the players screen, this should help a lot with performance
@wolker213
@wolker213 4 жыл бұрын
@@topsidestudios5947 Problem is that it very demanding even without any lights, my redmi 3 is on 30 fps+ without any lights..
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
@@wolker213 Hmmm, the early testing I have done on my phone (Huawei p20) using my game has been pulling higher than that. I would recommend looking up guides to optimise your URP as a lot can be changed to increase performance, or possibly wait until 2d URP is out of the experimental phase and hope for better performance
@wolker213
@wolker213 4 жыл бұрын
@@topsidestudios5947 Btw redmi 3 is 2015, has only 33k on antutu, so probably 25-30 fps is not that bad, but still bad for a game that stylized for 16bit project...
@topsidestudios5947
@topsidestudios5947 4 жыл бұрын
@@wolker213 Yea you would definitely expect it to run a 16bit stylised game still. Thanks for the info, good to know ill have to do a lot more optimisation if I want to release on mobile 🙂
@adambuday9011
@adambuday9011 3 жыл бұрын
thanks it **works**
@Риф-и5ь
@Риф-и5ь 3 жыл бұрын
Ооооо спасибо большое!!!!!!!!
@Rayan-bk3fn
@Rayan-bk3fn 3 жыл бұрын
now all of my sprites are purple can you please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@Cultofcosmossubscriber
@Cultofcosmossubscriber 3 жыл бұрын
These are called tutorial
@mhze
@mhze 3 жыл бұрын
WHAT?? RenderPi? are you sure it's called renderpi? XD
@VahdaMage
@VahdaMage 2 жыл бұрын
I dont know why but my scene does not seem to be affected by lights. it doesnt go black and no matter the light I put in the scene there is no light
@igorsoarescanuto7155
@igorsoarescanuto7155 3 жыл бұрын
THANK YOU SO MUCH!
@cosmic3228
@cosmic3228 3 жыл бұрын
Thank you!
@netplayer4765
@netplayer4765 2 жыл бұрын
Thanks man
Realistic 2D Lights & Shadows in Unity
11:28
Willy Dev
Рет қаралды 66 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
How to Make PS1 Style Objects - Blender Tutorial
20:54
Retro Plus
Рет қаралды 226 М.
Using URP in Unity to make our Unity 2d Scenes Vibrant
10:20
Game Dev By Kaupenjoe
Рет қаралды 6 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 678 М.
Making a difficult game about fitting in - Acerola Jam 0
19:17
jess::codes
Рет қаралды 473 М.
Post-Processing BASICS in Unity
9:25
Willy Dev
Рет қаралды 14 М.
Color Quantization and Dithering
11:55
Acerola
Рет қаралды 451 М.
Every 2D Node Explained in 9 Minutes !
9:19
Lukky
Рет қаралды 390 М.
Система частиц Unity
9:24
GDev Academy
Рет қаралды 27 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН