Bullet Holes - Unity Quick Tips

  Рет қаралды 73,109

AIA

AIA

2 жыл бұрын

In this tutorial, you'll learn how to create bullet holes in Unity.
► Socials
Twitter: / the_real_aia
Discord: / discord
My free web games: aiadev.fun/
► Download Unity 3D: on.unity.com/3cbxhXY
For more educational content on video game development, unity tutorials, and c# programming don't forget to subscribe!
****
Get a 90% discount on a .fun domain for one year on www.get.fun using the coupon “AIA”
****
#unity3d #unitytutorial #gamedev

Пікірлер: 91
@lemetamax
@lemetamax 2 жыл бұрын
It's more accurate with decal projectors.
@AIAdev
@AIAdev 2 жыл бұрын
ooo i hadn't thought of that
@lemetamax
@lemetamax 2 жыл бұрын
@@AIAdev I think it was made available in the 2021 version. Best thing about it is that it realistically projects the bullet holes on the intersection of the wall and the ground.
@DARK_AMBIGUOUS
@DARK_AMBIGUOUS 2 жыл бұрын
I was thinking that to. What he showed in the video would look horrible if you shot a wall on an angle because the cracks would be floating off the wall
@randomstuffwebsites
@randomstuffwebsites Жыл бұрын
its a lot more expensive to run, decals take more than 5 draw calls to run without even adding any decal in URP
@briskled8955
@briskled8955 2 жыл бұрын
if you shoot close to a corner, the texture will fly in the air. Use decals instead
@subroutinedev2322
@subroutinedev2322 2 жыл бұрын
Good to know! I will definitely use this, if i make a shooter some day.
@stickguy9109
@stickguy9109 2 жыл бұрын
You could use quads too, they have a lower poly count thus are more optimal when dealing with tons of bullet holes at once.
@AIAdev
@AIAdev 2 жыл бұрын
Great point!
@JadenAllen
@JadenAllen Жыл бұрын
I always thought quads had more triangles until I was making a water shader and realized that it has less than a normal plane, I was shocked
@stickguy9109
@stickguy9109 Жыл бұрын
@@JadenAllen I learned it when I learned that you can look at things in wireframe mode
@JadenAllen
@JadenAllen Жыл бұрын
@@stickguy9109 i mean I looked in wireframe to see what the issue was but I always thought quad was for quadruple the amount of verts or something I didn't realize until a few days ago that its not
@gentus7239
@gentus7239 2 жыл бұрын
awesome video series, pls keep it going! can you also make a video about the particle system, specifically explosions? would be awesome!
@VJoK3R
@VJoK3R Жыл бұрын
Nice work, you can even add another layer by using tags to create different impacts for different types of materials like metal, dirt, blood. Very useful.
@stellar5706
@stellar5706 2 жыл бұрын
I'm currently trying to start making assets I even made a water shader for free on itch.
@AIAdev
@AIAdev 2 жыл бұрын
😎
@ultmatepotato
@ultmatepotato 2 жыл бұрын
Srp decal : * *AM I A JOKE TO YOU???* *
@spicyman3318
@spicyman3318 Жыл бұрын
Imagen using lwrp
@ultmatepotato
@ultmatepotato Жыл бұрын
@@spicyman3318 you dont even know what lwrp means, im talking about the urp and hdrp when i say srp. Also imagine picking on people who use a different rendering pipeline.
@spicyman3318
@spicyman3318 Жыл бұрын
@@ultmatepotato im not saying that lwrp is bad but lwrp generally has less support for different features and packages such as decals. I mean if your just making a simpel game it really dose not matter what render pipeline you use
@ultmatepotato
@ultmatepotato Жыл бұрын
@@spicyman3318 it already has decals why would anyone need to install a package for that, plus in the new 2022 update you can also select what layers the decal projects on
@ultmatepotato
@ultmatepotato Жыл бұрын
@@spicyman3318 yea so dont use urp in a simple game. I use urp for making realistic games on a lower budget. It has a bunch of good things like the vfx graph, shader graph, renderer features, cascaded shadows and a bunch more
@youraveragedude8767
@youraveragedude8767 2 жыл бұрын
Wouldn’t decals be better though for performance?
@spicyman3318
@spicyman3318 Жыл бұрын
Use quad instead because it has Les polygons
@TheGeekySandbox
@TheGeekySandbox 2 жыл бұрын
I could watch these all day. You make it look so easy! Do you think you'll do another game jam soon?
@AIAdev
@AIAdev 2 жыл бұрын
Probably not soon. I've got a bunch of stuff I really want to work on. Game jams are awesome, but I also have the tendency to obsess over them lol
@TheGeekySandbox
@TheGeekySandbox 2 жыл бұрын
@@AIAdev lol I can understand that. I watched a friend stream a game jam last year. I think the theme was underwater and she did a nice little game and had fun but was say she wish she could obsess less 😂 can’t wait to see what you work on next though :)
@BestMoments707
@BestMoments707 Жыл бұрын
Nice 👍
@xThuby
@xThuby Жыл бұрын
Protip if you're doing this. Use a quad instead of a plane. And use Quaternion.FromToRotation(-Vector3.forward, hit.normal); instead. This is because planes have many many more tris compared to quads which only have two.
@nurguy2914
@nurguy2914 Жыл бұрын
Question, how can you put the camera on top of your character (not rotating)
@inevitable.3991
@inevitable.3991 2 жыл бұрын
Awesome!
@AIAdev
@AIAdev 2 жыл бұрын
Thank you! Cheers!
@SarThug
@SarThug 2 жыл бұрын
I have a rough object (like up and down) how will I use a spray texture to go correctly on it
@mcoconer7140
@mcoconer7140 Жыл бұрын
thanks
@randomstuffwebsites
@randomstuffwebsites Жыл бұрын
dont use plane guys, use quad, it has only 4 vertices , but the plane has 16-32 i dont remember but its a lot more expensive to run , and just change the lookup direction
@ruumroom.
@ruumroom. Жыл бұрын
can you do pid missiles next
@rmt3589
@rmt3589 Жыл бұрын
This should work with graffiti too!
@1actose
@1actose 2 жыл бұрын
Can you make a tutorial on how to make non-euclidian space? It's a tough one but cool lol
@AIAdev
@AIAdev 2 жыл бұрын
🤔
@MrAydinminer
@MrAydinminer 2 жыл бұрын
So underrated
@AIAdev
@AIAdev 2 жыл бұрын
Thank you!
@ctct9418
@ctct9418 2 жыл бұрын
You should explain the code instead of just showing it, people don’t learn that way
@AIAdev
@AIAdev 2 жыл бұрын
You're right. but I will say this... I used to go step-by-step through everything in my tutorials. I've been changing how I make videos based on YT retention graphs. People stop watching when things get too technical.
@ctct9418
@ctct9418 2 жыл бұрын
@@AIAdev true true. You already sort of explain how it works in this video tho, maybe show a little snippets of the code on the side while you are explaining it that relate to what u r saying :)
@marokidstv7207
@marokidstv7207 Жыл бұрын
Thank you ❤️❤️❤️❤️❤️❤️❤️❤️
@burakhankoroglu6030
@burakhankoroglu6030 Жыл бұрын
why nobody makes bullethole and impacts for projectile bullets? I am searching all day but nothing!
@gameswithelectron
@gameswithelectron Жыл бұрын
Amazing
@mossen98
@mossen98 11 ай бұрын
Hey wheres the best place too start learning about c#
@tonyartz
@tonyartz 10 ай бұрын
Maybe try object pooling to optimise this
@aaditkrishna9380
@aaditkrishna9380 Жыл бұрын
you could use decals too
@AIAdev
@AIAdev Жыл бұрын
decals are a better option if you're using URP or HDRP and have access to them
@shapman280
@shapman280 Жыл бұрын
Have you tried obj pooling solution for this?
@akashtechdeveloper
@akashtechdeveloper Жыл бұрын
Wowwwwwwwww
@o9o7_
@o9o7_ 2 жыл бұрын
Hello, can you make a video on how to snap and lock the puzzle pieces in your older video?
@AIAdev
@AIAdev 2 жыл бұрын
I answered this in the discord but figured I'd answer it here too in case anyone else has the same question... The way I did it for my puzzle game was… it’s solved in the scene. On awake the solved piece's position and rotations are saved to each piece. Then the pieces are scrambled and put into a location to grab. If the piece is dropped within a certain range of its saved position and with the correct rotation, it snaps to it.
@janoskovacs8865
@janoskovacs8865 Жыл бұрын
👌
@whatsinthemeteor
@whatsinthemeteor Жыл бұрын
How tô make gun system?
@gameswithelectron
@gameswithelectron Жыл бұрын
U got a sub
@AIAdev
@AIAdev Жыл бұрын
❤️
@stonefreak5763
@stonefreak5763 Жыл бұрын
WTF I mean yes, but also, use HDRP or URP and then a Decal, this does this exact thing, just also with rotation and stuff, great for blood and stuff like this too
@noobno1551
@noobno1551 Жыл бұрын
great content
@AIAdev
@AIAdev Жыл бұрын
Thank you!
@YuraSuper2048
@YuraSuper2048 Жыл бұрын
Why don’t use projector instead of plane?
@RegenerationOfficial
@RegenerationOfficial Жыл бұрын
why wouldn't you draw on the texture?
@SosaiOyama
@SosaiOyama 2 жыл бұрын
Holy shit someone does this
@AIAdev
@AIAdev 2 жыл бұрын
wdym?
@SosaiOyama
@SosaiOyama 2 жыл бұрын
@@AIAdev someone who makes shorts about unity techniques
@AIAdev
@AIAdev 2 жыл бұрын
@@SosaiOyama ah lol
@ekzac
@ekzac Жыл бұрын
The KZbin "short" format is awful! I just can't use it as reference because it has no playback options :(
@ferdzforio7715
@ferdzforio7715 Жыл бұрын
Hello bro can u help me with something about game
@ZacIRL
@ZacIRL Жыл бұрын
you should use a Quad instead of a Plane to save unnecessary geometry.
@elctro4079
@elctro4079 2 жыл бұрын
Cool
@AIAdev
@AIAdev 2 жыл бұрын
Hope it helps!
@operationfrogurt
@operationfrogurt 2 жыл бұрын
Why a plane instead of using a quad?
@nlk294
@nlk294 Жыл бұрын
Use decals.
@CarpathianWasteGroup
@CarpathianWasteGroup Жыл бұрын
does this work on enemy mesh as well or it just spawns onto the collider itself
@Mertovic26
@Mertovic26 7 ай бұрын
İf you shoot close to a corner 💀
@haze42
@haze42 2 жыл бұрын
Can u make tutorial how to increade fps
@AIAdev
@AIAdev 2 жыл бұрын
Use URP!
@DARK_AMBIGUOUS
@DARK_AMBIGUOUS 2 жыл бұрын
Remove colliders from things that don’t need them
@sidremus
@sidremus 2 жыл бұрын
VFX artist here, this is not the way to do it. It doesn't work on uneven surfaces or when hitting the edge of a surface. Instead you should be using decal projectors. They're also significantly better in performance as they don't need a script and gameobject instance for every single bullet hole (of which you will need hundreds if not thousands of).
@AIAdev
@AIAdev 2 жыл бұрын
video creator here, good suggestion. The problem with decal projectors are that they're exclusive to the scriptable rendering pipelines. I didn't get into it here, but the bullet holes should certainly be limited in number and pooled.
@TegaAmrore
@TegaAmrore Жыл бұрын
Why not use a quad?
@AIAdev
@AIAdev Жыл бұрын
ya, that's a better option. I wasn't thinking when I used a plane
@WalterRDK
@WalterRDK Жыл бұрын
Use quad, not a plane
@parcanapp1193
@parcanapp1193 Жыл бұрын
Blasphemy. Worship the omnipotence of Decals.
@Private_Duck
@Private_Duck Жыл бұрын
Cool but this solution is very crude and shouldn't be used on a large scale
@koganboss4874
@koganboss4874 Жыл бұрын
Never do that. It's just awful. Even juniors don't do that, because it's not a way, it's a performance killer...
@AIAdev
@AIAdev Жыл бұрын
what way(s) would be better?
@koganboss4874
@koganboss4874 Жыл бұрын
@@AIAdev Through Drawmesh, or better yet, use a ready-made extension to draw decals. But creating gameobjects is horrible=)
@nurguy2914
@nurguy2914 Жыл бұрын
Question, how can you put the camera on top of your character (not rotating)
Making my First Mobile Game  (in 1 Week)
14:47
Dani
Рет қаралды 2,9 МЛН
2 Years MAKING an OPEN-WORLD game
10:12
AIA
Рет қаралды 98 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 522 М.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
6 Years of Learning Game Development
9:02
Codeer
Рет қаралды 2,3 МЛН
Dynamic Parkour System - FREE Unity Plugin
1:31
Èric Canela
Рет қаралды 482 М.
Programming a multiplayer game from scratch in 7 DAYS
18:28
1 Year MAKING an OPEN-WORLD game
8:23
AIA
Рет қаралды 736 М.
Unity Analytics in 2024
1:17
Nikfort Games
Рет қаралды 116
I Made The World's Hardest Game
9:48
AIA
Рет қаралды 46 М.
5 DEVS Make a GAME without COMMUNICATING! (Bug edition)
14:24
Blackthornprod
Рет қаралды 97 М.
The Art of Game Optimization
10:18
Worlds In Motion
Рет қаралды 257 М.
Fix Missing FBX faces in Unity
0:27
AIA
Рет қаралды 37 М.
Unity 2021 Use Scriptable Object instead of Enum
10:57
Sunny Valley Studio
Рет қаралды 36 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01