Bullet Holes - Unity Quick Tips

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

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

Пікірлер: 92
@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
@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
@subroutinedev2322
@subroutinedev2322 2 жыл бұрын
Good to know! I will definitely use this, if i make a shooter some day.
@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!
@Fireball_Roberts
@Fireball_Roberts 15 күн бұрын
Wow that worked incredibly well.
@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 2 жыл бұрын
Imagen using lwrp
@ultmatepotato
@ultmatepotato 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
@@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
@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 :)
@inevitable.3991
@inevitable.3991 2 жыл бұрын
Awesome!
@AIAdev
@AIAdev 2 жыл бұрын
Thank you! Cheers!
@youraveragedude8767
@youraveragedude8767 2 жыл бұрын
Wouldn’t decals be better though for performance?
@BestMoments707
@BestMoments707 Жыл бұрын
Nice 👍
@MrAydinminer
@MrAydinminer 2 жыл бұрын
So underrated
@AIAdev
@AIAdev 2 жыл бұрын
Thank you!
@mcoconer7140
@mcoconer7140 Жыл бұрын
thanks
@marokidstv7207
@marokidstv7207 Жыл бұрын
Thank you ❤️❤️❤️❤️❤️❤️❤️❤️
@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 жыл бұрын
🤔
@walkthroughwithelectron
@walkthroughwithelectron Жыл бұрын
Amazing
@spicyman3318
@spicyman3318 2 жыл бұрын
Use quad instead because it has Les polygons
@noobno1551
@noobno1551 Жыл бұрын
great content
@AIAdev
@AIAdev Жыл бұрын
Thank you!
@SarThug
@SarThug 2 жыл бұрын
I have a rough object (like up and down) how will I use a spray texture to go correctly on it
@walkthroughwithelectron
@walkthroughwithelectron Жыл бұрын
U got a sub
@AIAdev
@AIAdev Жыл бұрын
❤️
@nurguy2914
@nurguy2914 Жыл бұрын
Question, how can you put the camera on top of your character (not rotating)
@ruumroom.
@ruumroom. 2 жыл бұрын
can you do pid missiles next
@rmt3589
@rmt3589 Жыл бұрын
This should work with graffiti too!
@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.
@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
@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
@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.
@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 :)
@mossen98
@mossen98 Жыл бұрын
Hey wheres the best place too start learning about c#
@janoskovacs8865
@janoskovacs8865 Жыл бұрын
👌
@tonyartz
@tonyartz 11 ай бұрын
Maybe try object pooling to optimise this
@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
@shapman280
@shapman280 Жыл бұрын
Have you tried obj pooling solution for this?
@طارق.القدسي
@طارق.القدسي 2 жыл бұрын
Cool
@AIAdev
@AIAdev 2 жыл бұрын
Hope it helps!
@akashtechdeveloper
@akashtechdeveloper Жыл бұрын
Wowwwwwwwww
@burakhankoroglu6030
@burakhankoroglu6030 Жыл бұрын
why nobody makes bullethole and impacts for projectile bullets? I am searching all day but nothing!
@whatsinthemeteor
@whatsinthemeteor Жыл бұрын
How tô make gun system?
@RegenerationOfficial
@RegenerationOfficial Жыл бұрын
why wouldn't you draw on the texture?
@YuraSuper2048
@YuraSuper2048 Жыл бұрын
Why don’t use projector instead of plane?
@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
@ferdzforio7715
@ferdzforio7715 Жыл бұрын
Hello bro can u help me with something about game
@ekzac
@ekzac Жыл бұрын
The KZfaq "short" format is awful! I just can't use it as reference because it has no playback options :(
@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
@operationfrogurt
@operationfrogurt 2 жыл бұрын
Why a plane instead of using a quad?
@nlk294
@nlk294 Жыл бұрын
Use decals.
@ZacIRL
@ZacIRL Жыл бұрын
you should use a Quad instead of a Plane to save unnecessary geometry.
@TegaAmrore
@TegaAmrore Жыл бұрын
Why not use a quad?
@AIAdev
@AIAdev Жыл бұрын
ya, that's a better option. I wasn't thinking when I used a plane
@Mertovic26
@Mertovic26 8 ай бұрын
İf you shoot close to a corner 💀
@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.
@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
@CarpathianWasteGroup
@CarpathianWasteGroup Жыл бұрын
does this work on enemy mesh as well or it just spawns onto the collider itself
@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)
6 Devs COMPETE to make the BEST AI
16:02
AIA
Рет қаралды 316 М.
The biggest lie in video games
15:18
AIA
Рет қаралды 1,7 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 121 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 2,9 МЛН
Pro game dev tries Scratch
5:11
AIA
Рет қаралды 27 М.
Realistic Gun in VR - Part 1
9:54
Valem
Рет қаралды 54 М.
This one mistake is killing my game
14:02
AIA
Рет қаралды 187 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,5 МЛН
I Made The World's Hardest Game
9:48
AIA
Рет қаралды 47 М.
The Unity Tutorial For Complete Beginners
46:39
Game Maker's Toolkit
Рет қаралды 3,4 МЛН
Bullet Projectile With Particle System - Unity Tip
3:09
1 Year MAKING an OPEN-WORLD game
8:23
AIA
Рет қаралды 742 М.
How to make a HEALTH BAR in Unity!
21:06
Brackeys
Рет қаралды 1,1 МЛН