2.5D Sprites w/ Animations URP - Unity 2022 LTS (Tutorial)

  Рет қаралды 22,701

MichaelsGameLab

MichaelsGameLab

Күн бұрын

Пікірлер: 56
@ludovicsanson8657
@ludovicsanson8657 8 ай бұрын
Other solution (URP or HDRP) : make a quad, import every frame of your sprite image as a texture (Texture rendering mode:cutout, mesh renderer:two sided and receive shadows), and animate the texture (just pull every texture in the animation timeline). > It's cast shadows.
@AngelCorpse666
@AngelCorpse666 Жыл бұрын
Hey. Just letting you know, this works like a charm. I've been looking for this for awhile now. Thanks for the content!
@cozygamemaker
@cozygamemaker 7 ай бұрын
Thanks a lot! This is the clearest and most complete tutorial for 2.5D URP setting!
@LightPython24
@LightPython24 Жыл бұрын
This was perfect thank you so much! So easy and clear to follow. PLEASE make more videos like this in the future, would love to see more 😄
@GregorKari
@GregorKari Ай бұрын
Ok, this works and looks decent! Thank you!
@Lao_lu
@Lao_lu 8 ай бұрын
I'd love a followup which shows how to add the walk cycles and attack animations to this 2.5d player object
@bluzenkk
@bluzenkk 8 ай бұрын
thanks for the tutorial~~ would like to see more on 2.5D stuff~~
@TheNinja1234568
@TheNinja1234568 5 ай бұрын
Great tutorial, really helped out !
@PeterMilko
@PeterMilko 8 ай бұрын
Very cool
@Y1001
@Y1001 2 ай бұрын
Perfect tutorial.
@leoromiya5338
@leoromiya5338 9 ай бұрын
What I really need to know is why NOBODY addresses the weird lighting on the other side of the sprite. I have this issue and cannot for the life of me figure out how to make it look the same on both sides as it does on the front, with no weird lighting at all. I just want my sprite to be able to cast and receive shadows while looking the way it did before I applied the material on to it.
@MichaelsGameLab
@MichaelsGameLab 9 ай бұрын
If you need to have both sides visible, then you might want to check out double sided materials or using a custom plane model that has a plane for the front and one for the back. I think the issue stems from the plane that the sprite is rendered on only has the one face and the lighting applies to both. So, if you rotate the sprite, then it will get darker as it's front face turns away from the light source and vice-versa. You can check out the following pages where other people had similar issues: www.reddit.com/r/Unity3D/comments/iiogt5/tree_leaves_how_to_get_proper_lighting_from_both/ forum.unity.com/threads/double-sided-material.474594/ forum.unity.com/threads/render-face-both-backface-light-problem.1303200/ Hope this helps.
@SUWGamer
@SUWGamer 4 ай бұрын
I've looked into this. One way is to write a custom shader.
@randomstuff6786
@randomstuff6786 9 ай бұрын
thanks so much!! works great
@mehmeh8883
@mehmeh8883 9 ай бұрын
Very cool video! Now question is would I use a 3d colliders with this?
@MichaelsGameLab
@MichaelsGameLab 9 ай бұрын
Hello, yes I use 3D colliders for this method. More specifically, I use the capsule collider.
@joseh4930
@joseh4930 Жыл бұрын
Thanks. How can I add a Normal texture to that Material?
@MichaelsGameLab
@MichaelsGameLab Жыл бұрын
You would need to add a texture input for the normal texture and link it up with the normal input of the material. You will also need to make sure the texture is tagged as a normal texture.
@kirrychan
@kirrychan 11 ай бұрын
THANK YOU SO MUCH I LOVE YOU
@tldmbruno
@tldmbruno Жыл бұрын
Great video btw!
@muhammadaqil6467
@muhammadaqil6467 5 ай бұрын
does this only work for directional lights? it does not seem to work for point and spot lights
@MichaelsGameLab
@MichaelsGameLab 5 ай бұрын
Yes, it should work with point and spot lights as well.
@muhammadaqil6467
@muhammadaqil6467 5 ай бұрын
@@MichaelsGameLab i seem to be having issues with getting it to work with spot and point lights, do you mind helping me out privately or are there any settings i should be looking at to get this to work?
@dgw8514
@dgw8514 2 ай бұрын
I also encountered this problem, did you solve it?
@dgw8514
@dgw8514 2 ай бұрын
I solved this problem. You just need to check Rendering-New Universal Render Pipeline Asset-Additional Lights-Cast Shadows.
@tldmbruno
@tldmbruno Жыл бұрын
Does this method renders sprites at the correct depth? Or does the sprite still clip into each other when near?
@MichaelsGameLab
@MichaelsGameLab Жыл бұрын
Should render at the correct depth if you use a different material for the sprite renderer, like shown in the video.
@Flusap
@Flusap 4 ай бұрын
thank you comrade
@mehmedcavas3069
@mehmedcavas3069 Жыл бұрын
But how do you handle render order or other spriterenderers inside the player. I have a spriterenderer player which will carry weapons but have problems with rendering order
@MichaelsGameLab
@MichaelsGameLab Жыл бұрын
In the video I make a new URP material and assign it to the sprite renderer. This should handle the render order issue because it is no longer using the 2d sprite material.
@Mmk-dn1fi
@Mmk-dn1fi Жыл бұрын
Why doesn’t he just choose URP when creating the unity project, instead of adding URP later from the package manager? Is there a benefit to doing it that way?
@MichaelsGameLab
@MichaelsGameLab Жыл бұрын
There is no real reason to do it one way or the other. Does the same thing.
@RodrigoReyesRetanaGonzález
@RodrigoReyesRetanaGonzález Жыл бұрын
I still can't manage to get the shadow, it might be because I could change my sprite texture type since the setting doesn't show up. Any way i can fix that?
@MichaelsGameLab
@MichaelsGameLab 7 ай бұрын
Did you enable shadows in the debug options?
@Quick-Bull01
@Quick-Bull01 5 ай бұрын
I found that the lighting on the sprite makes the sprite too bright. How should I fix it?
@MichaelsGameLab
@MichaelsGameLab 5 ай бұрын
Is it too bright from the material or from the light source?
@Quick-Bull01
@Quick-Bull01 5 ай бұрын
​@@MichaelsGameLab I guess it's from the material? It's like the sprite reflects some light on the surface. You can also see it in your video, the sprite becomes lighter after applying this material. If I don't want any reflection, how should I switch it off? Thank you!
@MichaelsGameLab
@MichaelsGameLab 5 ай бұрын
You probably need to change some material properties. I think materials will have .5 smoothness by default, so maybe try setting that to 0.
@Quick-Bull01
@Quick-Bull01 5 ай бұрын
​@@MichaelsGameLab I found the solution: I changed the material type in Alpha from "Lit" to "Unlit", then the sprite reflect no light. Thank you friend!
@Kopellis
@Kopellis 8 ай бұрын
mine doesnt make a shadow but just has the sprite deformed on the back
@MichaelsGameLab
@MichaelsGameLab 8 ай бұрын
Did you turn on the shadow casting from the debug menu and set the material as shown in the video?
@Kopellis
@Kopellis 8 ай бұрын
Ok on the directional light i had cast shadows off
@tldmbruno
@tldmbruno Жыл бұрын
I've noticed you used a 2x scaled 16x16 sprite. Is there a reason for this? Does Unity work poorly with sprites that are smaller than 32x32?
@MichaelsGameLab
@MichaelsGameLab Жыл бұрын
I do it so I can see the images better when using the search in unity. Other than that I don't think there is any other reason.
@Bear-en6dt
@Bear-en6dt 3 ай бұрын
Thank U
@upercutsss
@upercutsss Ай бұрын
When i apply the material my sprite dissapears.
@MichaelsGameLab
@MichaelsGameLab Ай бұрын
Maybe the alpha clip value needs to be adjusted
@tianqigao869
@tianqigao869 Жыл бұрын
cool!
@doublehitgames531
@doublehitgames531 6 ай бұрын
where the continuation?
@MichaelsGameLab
@MichaelsGameLab 6 ай бұрын
I have not made a continuation yet. I might do one soon though.
@ahahau
@ahahau 3 ай бұрын
how can i download player sprites?
@MichaelsGameLab
@MichaelsGameLab 3 ай бұрын
I don't think they are publicly available.
@sergiobland8853
@sergiobland8853 10 ай бұрын
i love you bro
How To Create Beautiful Terrain Under 10 Mins In Unity | Tutorial | HDRP |
7:47
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 19 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 11 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 126 МЛН
The 5 Stages of Learning Blender
3:14
Artin Azarnejad
Рет қаралды 251 М.
Unity URP Cel Shading Tutorial
9:08
MichaelsGameLab
Рет қаралды 1,3 М.
How To Make A 2.5D Game  - Unity
6:47
ThatOneUnityDev
Рет қаралды 145 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,2 МЛН
6 Years of Learning Game Development
17:20
Cobra Code
Рет қаралды 220 М.
Tips And Tricks To Enhancing Your 2.5D World - Unity
6:17
ThatOneUnityDev
Рет қаралды 31 М.
Every 2D Node Explained in 9 Minutes !
9:19
Lukky
Рет қаралды 372 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
Technique for Creating Beautiful Level Design
11:48
Pixel Architect
Рет қаралды 898 М.
Converting My Unity RPG From 2D To 3D
7:52
Paper Mouse Games
Рет қаралды 57 М.