Тёмный
No video :(

I Never Would Have Thought Of This On My Own 

Garbaj
Подписаться 460 тыс.
Просмотров 487 тыс.
50% 1

Mysterious Purple Cat's video: • How does Apex Legends ...
2nd Channel: / garbajgaming
Twitch: / garbajcan
Twitter: / garbaj2
Discord: / discord

Опубликовано:

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 483   
@SmellyCandle42
@SmellyCandle42 2 года назад
The dual FOV approach has me wondering something. In a lot of games, increasing the FOV beyond a certain point will make the player's view model look pretty weird. With your two-camera approach, could you ensure a consistent perspective of the view model while changing the FOV?
@blazedenenra
@blazedenenra 2 года назад
Actually yes. The hands dont so much break 'they stretch out. Have you seen max fov on FT2? There's console commands to go further if you want to try this for your self. Id demo but i dont have a PC/Laptops Tho to probably answer the question in a way i think would work is maybe past a certain fov you will need to reset the camera on the gun overlay to repeat the clean look beyond say 120-150 for to prevent the stretch
@wotwott2319
@wotwott2319 2 года назад
You could actually keep the fov of the gun independent from the fov of the camera with this approach too. So if you extend the fov of the camera, the fov of the gun stays the same.
@luukderuijter1332
@luukderuijter1332 2 года назад
Yeah, he mentioned this in an older video
@garbaj
@garbaj 2 года назад
you can't really. Best you can do is not use such a narrow fov so it warps less, but then that brings you back to the issue with the scope blocking your view. It's all tradeoffs. The gun looks much better to me when the fov stays consistent, plus there's the performance benefits of using just one camera, so that's also something to consider
@Sprite897
@Sprite897 2 года назад
Many shooters use the dual fov approach and it works to change the fov without making the player model look weird, doom eternal is a good example, although some people use console commands to make the view model fov high too
@VojtechLacina
@VojtechLacina 2 года назад
At my job as a weapon artist, when we use ironsights aiming, we move the weapon and change fov. But when using scopes and collimators, we create second scope model with deleted geometry far from scope glass (or few milimetters behind it). It makes the view more clear and better to aim.
@Vinci480
@Vinci480 2 года назад
Yeah a few people mentioned it on the last video, suprised he didn't mention it as he also saw those comments because a lot of big triple A games use this exact method.
@ahmadgamal65
@ahmadgamal65 2 года назад
That's so weird method why don't you just use stencil masks for scopes and collimators? If you don't know what is this it's a shader that gives you selective rendering behind an object for example behind this plane render the gun but don't render the scope and if the tip of the scope is long separate the front of the scope and render the front with the weapon it's much better and extremely performate
@DePistolero
@DePistolero 2 года назад
@@ahmadgamal65 The exact method I used and wanted to share... This whole thing confused me for a long time...
@randopixel9985
@randopixel9985 Год назад
@@DePistolero Hey I've been trying to figure this method out, can you point me in a direction? I tried, but what I ended up with was having to use translucent mats on my gun and sight, which caused the depth sort issues common with translucent mats. What am i missing? Appreciated.
@randopixel9985
@randopixel9985 Год назад
@@ahmadgamal65 Hey I'm super new to UE and game dev, this was the method I was trying to figure out but ran afoul of translucent mats and depth sorting. Can you tell me what I should be looking into to make this work correctly?
@harrygnyc
@harrygnyc 2 года назад
I like your game concept. Really looks like you narrowed down your scope.
@J_E_N_T
@J_E_N_T 2 года назад
lol
@MFKitten
@MFKitten 2 года назад
Nothing kills a project like overscoping.
@AkariInsko
@AkariInsko 2 года назад
REPORTED FOR MISINFORMATOIN 😡😡😡🤬🤬🤬🤬🤬🤬🤬🤬🖕🖕
@usrnewxnew5227
@usrnewxnew5227 2 года назад
Very punny
@garbaj
@garbaj 2 года назад
YOU DID NOT
@Calinou
@Calinou 2 года назад
Using a separate viewport indeed has a noticeable performance penalty (especially when MSAA is involved). Instead, I recommend relying on non-uniform scaling of the weapon model to simulate FOV changes. To ensure mesh normals are still correct after non-uniform scaling, enable Ensure Correct Normals on the SpatialMaterials used by the weapon models. (This is not required in Godot 4.0alpha anymore, as normals are now automatically scaled when needed.) To handle the wall clipping situation, I recommend just pushing the weapon model back when a hit with a wall is detected using a raycast. Even Quake 2 RTX does this :)
@garbaj
@garbaj 2 года назад
The plan from the start was to use a single camera and move the gun out of the way when needed, but I wanted to test this method out as well and see how I liked it. The performance issues are pretty noticeable though, so it might make it into the final game
@liteningstrike12
@liteningstrike12 2 года назад
One solution that occurred to me, and I’m not sure if Godot supports this, is to enable “backface culling” on the model of the gun. I’m practice, this means that textures are only drawn on the outside of the model and if you were to clip inside it and look from the inside out it would appear transparent. If only the outside of the scope was textured and the inside of the scope was not modeled, you would be able to see through it like you can see through a one way mirror. This may not work from other angles, but would be interesting to experiment woth
@groundedgaming
@groundedgaming 2 года назад
Seems good. Tiny problem is that holes in the barrel (think AR-15)/the mag won't show the other side. Otherwise, I think that that is pretty easy!
@jadenknott
@jadenknott 2 года назад
Yeah i was also thinking about one way textures where the opposite end of the scope is only textured on the outside and not on the inside, kinda like wall textures when oob You explain it much better tho
@nlamang
@nlamang 2 года назад
i love how every comment is a whole essay
@reinbeers5322
@reinbeers5322 2 года назад
@@groundedgaming Holes on the barrel? Not on the handguard?
@groundedgaming
@groundedgaming 2 года назад
@@reinbeers5322 oh, whoops, sorry! My bad, I meant the handguard/heat shield thingy thing I'm sure you all will get it😅
@Joebakon
@Joebakon 2 года назад
I like the new art direction you're taking the graphics in. It gave me this feeling of being out of bounds in a hi fidelity game. You know when you think "I wanna know what that town in the distance looks like" but when you get there it has the appearance of being made of painted card board. It got me thinking, what if you leaned into that vibe? A game that feels like it takes place in one of those "you aren't supposed to be so close to these buildings" places. Of course I'm not sure it's not the vibe you had in mind but that would be a very unique art style, greatly separating it from the many other "look at my PS1 graphics" games. You already have such a powerful surrealism in the art and I for one think it's super cool. Shooting up some backdrop houses would be a blast. Also the reveal on how the scopes work felt like a Eureka moment I was waiting for this video. It's a really elegant graphical way to solve a graphical issue. Keep it up garbaj
@showalk
@showalk 2 года назад
I hope, then, that you know about the channel Boundary Break.
@SeekerGoldstone
@SeekerGoldstone 2 года назад
I think that's an excellent idea! Halfway through the tutorial, you clip out of the game and end up in forgotten levels with abandoned characters and concepts. Like the island of lost toys meets the backrooms.
@blazedenenra
@blazedenenra 2 года назад
His uploads are incredible. Also we dont have to wait a month for a new vod.
@ILCMango
@ILCMango 2 года назад
A fun fact about the flipped left handed model. All guns in counter strike 1.6 are flip the wrong way around. This is because the dev was left handed, modeled the guns for the left handed option, and then just flipped the model to be the default right handed.
@RagdollWraith
@RagdollWraith 2 года назад
oh seriously? i thought that was just done to show off more "action" on the gun like the bolt moving and casings ejecting
@soulghost9718
@soulghost9718 2 года назад
So that's why the AK had bullet casings ejecting from left instead of right And i thought the other games i played got AK wrong lol
@Greywander87
@Greywander87 2 года назад
​@@soulghost9718 Well, there's a reason they usually eject to the right. A shell casing ejected to the left could hit your other arm, or, if ejected backwards at an angle, could hit your shoulder or even your face. Ejecting to the right is ejecting it away from you, so it can't hit you. I don't think it's so bad that you can't use a right-handed gun left-handed, you just have to be careful about how you hold it so the casings don't get too close to you. Different guns also eject the casings at different angles, so one gun might be easier to use left-handed than another.
@boogit9979
@boogit9979 2 года назад
This doesn't make any sense unless he was actually using a gun being held left handed as a reference
@reinbeers5322
@reinbeers5322 2 года назад
@@Greywander87 Most modern guns are fine to be used on the 'wrong' side, with some care. Those that aren't usually have a way to change that ie. AUG.
@uwu.what.999
@uwu.what.999 2 года назад
Bit of a tip. Instead of moving the gun super forward, maybe try moving the viewmodel camera backwards. Moving the viewmodel itself forwards could mess up lighting on the gun. (i.e. aiming into a wall and the gun becoming super dark because it's in a wall, and things like that).
@xxedgelord420xx4
@xxedgelord420xx4 2 года назад
Also a camera is invisible so the view/world model can be the same for other players.
@Bunny99s
@Bunny99s 2 года назад
Exactly. This is essentially called a "dolly zoom".
@zdspider6778
@zdspider6778 Год назад
You generally don't zoom in while right next to a wall... At that point the gun could be made to tilt up or something. But you _might_ zoom in while your back is against a wall or a fence. And you'll end up seeing the fence from the other side, blocking your view. Or if someone is right behind you (a teammate), you'll end up seeing inside his character when you zoom in. I think as long as the camera doesn't extend too far back (past the capsule collider) it should be fine.
@2nafish117
@2nafish117 2 года назад
Flipping the layer doesn't exactly create left handed versions of the animations, because the gun is also mirrored. Think about the position of the bolt, bullet ejection, and other parts of the gun that are asymmetric. Also you can achieve separate viewmodel fov with a custom shader that modifies the projection matrix. I have a video showing this shader with src. Vid here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NF-U5J92ivk.html
@doomdave475
@doomdave475 2 года назад
Technically speaking, left handed guns are manufactured (which is relatively easy nowadays thanks to only needing to give a mirrored file to the CNC machines and not retool the entire machine line) they are just rare and usually only made for individual purchases. For a more arcady game like this, it wouldn't be a dealbreaker to just mirror the layer imho.
@ince55ant
@ince55ant 2 года назад
p90 says hello
@prospersucceedmakemoney
@prospersucceedmakemoney 2 года назад
@@doomdave475 csgo does it like this, it just flips the vm and i think it looks fine imo
@arekkrol9758
@arekkrol9758 2 года назад
some guns are ambidexterious in their controls, and some even have ability to switch on which side brass is ejected, so its realy plausible for example to make scifi shooter feature fictional weapons with such design
@hi-i-am-atan
@hi-i-am-atan 2 года назад
why would you go out of your way to make sure lefties got guns that eject casings at _them_
@N0stalgicLeaf
@N0stalgicLeaf 2 года назад
Oh, just 32 seconds in and I think the solution just occurred to me. The objective end of the tube must have a larger diameter than the ocular end! I mean, that's how all of my real optics are built and game engines are purpose built to emulate the real world as much as possible. Let's see if I'm right.
@N0stalgicLeaf
@N0stalgicLeaf 2 года назад
Nope I did not see the FOV thing coming. That's pretty slick.
@ragnarok7976
@ragnarok7976 2 года назад
I don't think you are wrong either. Fake light beams in a perspective game still converge so designing optics like they do in the real world would probably give you more realistic results. That said, it would not be as clear as the fov method because real world scopes do block the edges of your vision too.
@bannah6400
@bannah6400 2 года назад
Pick up your cross and follow Jesus! The world is quickly headed for destruction, and sooner or later you will have to sit at the judgement seat and give an account for your actions. Belief in messiah alone is not enough to grant you salvation - Matthew 7:21-23, John 3:3, John 3:36 (ESV is the best translation for John 3:36). Call on the name of Jesus and pray for Him to intervene in your life! - Revelation 3:20. Contemplate how the Roman Empire fulfilled the role of the beast from the sea in Revelation 13. Revelation 17 confirms that it is in fact Rome. From this we can conclude that A) Jesus is the Son of God and can predict the future or make it happen, B) The world leaders/nations/governments etc have been conspiring together for the last 3000+ years going back to Babylon and before, C) History as we know it is fake. You don't really need to speculate once you start a relationship with God tho. Can't get a response from God? Fasting can help increase your perception and prayer can help initiate events. God will ignore you if your prayer does not align with His purpose (James 4:3) or if you are approaching Him when "unclean" (Isaiah 1:15, Isaiah 59:2, Micah 3:4). Stop eating food sacrificed to idols (McDonald's, Wendy's etc) stop glorifying yourself on social media or making other images of yourself (Second Commandment), stop gossiping about other people, stop watching obscene content etc and you should get a response. Have a blessed day!
@ragnarok7976
@ragnarok7976 2 года назад
@@bannah6400 Sir, this is a Wendy's
@TheKenji2221
@TheKenji2221 2 года назад
2:00 flipping the layer wouldn't be enough. You would need to also flip the gun itself, or else you will have the ejection port on the "wrong" side. Fun fact, that's the reason why guns in CS have the port on the wrong side. At first the weapons were left handed. But they flipped the view because it looked weird. But they didn't flip the gun, so we had mirror guns
@Rakinshu1203
@Rakinshu1203 2 года назад
i also love the solution i saw in garrys mod for sniper rifles, your gun is just yeeted out of your FOV when you scope in and you just get a crosshair image slapped over your camera
@bannah6400
@bannah6400 2 года назад
Pick up your cross and follow Jesus! The world is quickly headed for destruction, and sooner or later you will have to sit at the judgement seat and give an account for your actions. Belief in messiah alone is not enough to grant you salvation - Matthew 7:21-23, John 3:3, John 3:36 (ESV is the best translation for John 3:36). Call on the name of Jesus and pray for Him to intervene in your life! - Revelation 3:20. Contemplate how the Roman Empire fulfilled the role of the beast from the sea in Revelation 13. Revelation 17 confirms that it is in fact Rome. From this we can conclude that A) Jesus is the Son of God and can predict the future or make it happen, B) The world leaders/nations/governments etc have been conspiring together for the last 3000+ years going back to Babylon and before, C) History as we know it is fake. You don't really need to speculate once you start a relationship with God tho. Can't get a response from God? Fasting can help increase your perception and prayer can help initiate events. God will ignore you if your prayer does not align with His purpose (James 4:3) or if you are approaching Him when "unclean" (Isaiah 1:15, Isaiah 59:2, Micah 3:4). Stop eating food sacrificed to idols (McDonald's, Wendy's etc) stop glorifying yourself on social media or making other images of yourself (Second Commandment), stop gossiping about other people, stop watching obscene content etc and you should get a response. Have a blessed day!
@xkingshope699
@xkingshope699 2 года назад
I start classes for game and simulation programming this fall and your videos are amazing! I cant wait to get started!
@bumbleflex5945
@bumbleflex5945 2 года назад
I'm glad you did this response video to a response video lol. It took me seeing both demonstrations to fully understand what's going on with the field of view.
@Vince_Cuh
@Vince_Cuh 2 года назад
I've been keeping up with your game stuff and I'm actually pretty excited for it to be released.
@ShinyPantsJunior
@ShinyPantsJunior 2 года назад
the game progress is really good i cant wait for the final product to come out. take all the time you need it is fun to watch the game develop.
@shawermus
@shawermus 2 года назад
I have the best solution to all programming problems: stack overflow
@MajorJakas
@MajorJakas 2 года назад
What's that?
@cybergamingteam
@cybergamingteam 2 года назад
there is this one time where you copy paste stuff to your code and it just works
@Emunny360
@Emunny360 2 года назад
I think the scopes in major fps games turn into a cone type shape to keep the closer and farther parts of the scope the same size
@Hato1992
@Hato1992 2 года назад
3 minutes and I learn more than in half hour tutorial. That's a premioum content.
@sgm7650
@sgm7650 2 года назад
Man, I have been in this adventure of watching u building ur game, figuring out problems and solutions and turning the table agsinst the odds...it's been fun :). And I can just say that I can't wait to play ur game and that I hope I am still alive until then xD. Keep it up 👌
@Killicon93
@Killicon93 2 года назад
One way to make the scope less obscuring while ADS when having everything on the same render is just flattening the scope when ADS. AFAIK Insurgency Sandstorm does this with the "Red Dot" sight (or a CompM4 to be exact), but doesn't remember to do it when using a magnifier.
@iDeker
@iDeker 2 года назад
This was my suspicion from last video. The fov must change. Thought it sounded dumb but was right
@theslenderfox
@theslenderfox 2 года назад
When I was messing with first person viewmodels the way I solved the gun clipping into geometry was to just make the gun smaller and closer to the camera such that it stays within the player collider, I don't know the extent to the pros and cons of this method but it did require that the near clip plane be quite small.
@j.griffioen1415
@j.griffioen1415 2 года назад
the new look looks awesome! definitely a huge improvement!
@NoobalexxX
@NoobalexxX 2 года назад
Well, in fact it can be much easier scope rendering can be split in different steps 1. weapon model rendering 2. lens mask rendering at the place of the optics 3. depth cut by the mask 3. other stuff renders the mask itself is also helps to apply post effects and render weapon sight with "moving" effect
@furjaden8553
@furjaden8553 2 года назад
StyLiS Studios needs to get working on this RIGHT now.
@MakotoIchinose
@MakotoIchinose 2 года назад
For Unreal Engine devs, since dual camera setup is not desirable due to screen capture + render target performance implications, an alternative way of doing this is to use World Position Offset tricks. Fake dual FOV on the FP viewmodel skeletal mesh can be achieved with Panini projection trick in WPO, effectively displacing the vertices to compensate the main camera FOV. Then you can use additive animations (or moving the mesh with WPO again if you're lazy) to get into ADS position.
@nimmen
@nimmen 2 года назад
Thats such a simple and easy solution I would never have thought of. Your videos are really eye opening and refreshing.
@VirtualCarClub
@VirtualCarClub 2 года назад
Best way to direct traffic to someone else's channel is end screens and info cards if you want to help Purple Cat out.
@aplcc323
@aplcc323 2 года назад
Great to see a small project thrive! God bless us all!
@pokidev027
@pokidev027 2 года назад
I don't know if you'll see this but, for the performance: think of the animations (reloading, aiming, moving the gun forward and what not) as sprites in 2d games basically just prerender them and you will notice a considerable boost in performance if you are worrying about having to render swaying of the gun (while running or jumping up and down) just make the bake (or the prerender, however you wish to call it) bigger in resolution (or at least in scale) and just move the bake around with a script for swaying and all that. to summerize: -bake every animation as a video or whatever feels the most performant for godot (maybe even just pure .png frames would be better, I don't know, I don't use godot, but Unity) -make the bakes bigger than the screen by like let's say 10% (on the X and Y axis) to allow for swaying -for reloading, you play the reload bake, for shooting, the shooting bake, for aiming + shooting you play that and etc. etc. the downsides are: -a bit more work, unless you can just send the animations and models to someone and ask them to render them all for you -the framerate will be limited to the bakes (tho you could render them at 60fps and then make a script that will sync the animator and the bake with the framerate of the screen) tho I doubt it will be much noticeable -interpolation between the animations will be difficult to implement because you are working with prerendered frames sidenotes: -for the lighting; just bake the normals with the projection on the camera (and do some research on 2d tile normals) good luck
@DerFinder
@DerFinder 2 года назад
Nice, that's what I actually how I thought it might work but I wasn't really sure
@rainerzufall5316
@rainerzufall5316 2 года назад
on the approach of flipping the 2nd layer for left handed gunplay - this will have a notacible effect when your gun models arent symertrical, as seen in the first counter strike, where left handed shooting will be have an incorrect "flipped" gunmodel
@brown9671
@brown9671 2 года назад
I’ve noticed in a lot of fps games for guns with more extreme scoped in fov like snipers, they actually change the whole screen to where the whole screen is inside the scope. Think of like widowmakers scoped in, or valorants snipers scoped in
@alvemaster
@alvemaster 2 года назад
I like how Rainbow six siege does this. It forces you to choose your scope by how much it blocks your vision.
@zetachaox
@zetachaox 2 года назад
Aw, was looking forward to the clean cell shaded look, but whatever makes you happy :)
@Noel_FGC
@Noel_FGC 2 года назад
bro the way i fixed the gun clipping issue was by just making it tiny as fuck and really close to the camera
@imSkrap
@imSkrap Год назад
The way I’ve done it for DayZ where it’s pretty damn limited is I’ve got 2 separate models of my scope but one is always hidden until you ads then it shows the hidden one and hides the original one which I then have tweaked a lot and removed parts that wouldn’t be visible and kept parts that are visible and it’s all hidden inside this extended tube so that when you shoot or lean you won’t see floating parts and adding a lens effect (dark outer ring) will help remove seeing the tube from the inside as well thus creating a fake PiP effect.. DayZ has a weird scope zoom feature so it will zoom in but the scope gets put closer to your screen and the reticle too so at full zoom the reticle would be in your face
@benebert6181
@benebert6181 2 года назад
Be careful swapping left vs right hand with the gun model. Depending on the weapons and their textures they will looks funny if you just mirror it. Shell ejection, changing handles, slides, scope details ect. are typically only on one side. Small details that might not be needed with the low poly models but something to look out for.
@ragnarok7976
@ragnarok7976 2 года назад
Personally, if there are not a lot of scoped guns, I would just model out the front outline of the scopes (maybe with a little bit of depth) and model the back tube separately. You could have a black cap, camera render, false reflection, etc covering the scope when it's at hip then fade the cover and back geometry as it's pulled up to the face.
@ViviTheEnbyWitch
@ViviTheEnbyWitch 2 года назад
some games actually have a separate optic model they switch to while aiming (at least CoD Ghosts, Advanced Warfare, Black Ops 3), and the changed model has less obstructing geometry, but the method in the video is also actually not something I thought of before!
@balkangames2302
@balkangames2302 2 года назад
Man your videos are the best
@Crittek
@Crittek 2 года назад
I would like to see a game render the sight in a transparent manner. Besides long range scopes you always shoot with both eyes open so sights don’t nearly block your vision as much as depicted in video games.
@ababa9668
@ababa9668 2 года назад
This guy is just SO good at explaining!
@NeonfxGraphics
@NeonfxGraphics 2 года назад
I have no idea how this landed in my recommendations, but it surely was interesting.
@druidofpies
@druidofpies 2 года назад
This makes total sense! In the last video, you mentioned that due to perspective, the edges of the sight get in the way. Now, with a drastically reduced FOV, the effects of perspective aren't as present, eliminating the problem. Very cool!
@lethaldumpster2699
@lethaldumpster2699 2 года назад
I still use shaders to achieve the trickery, instead of using a second camera. Using shader world position offsets, which move verticies on the GPU as its being rendered, im able to also adjust its rendering FOV with some fancy math. AND keep it from going into walls using pixel depth offsets. Shader magic gets weapons much farther than anything else, as it also keeps shadows/shading. I wish I could link to some related references, but youtube likes to delete my comments when I do.
@garbaj
@garbaj 2 года назад
I need to get better at shaders
@sowpmactavish
@sowpmactavish 2 года назад
Shoutout to the peeps like me who modded Insurgency 2014 and learned this neat trick as well
@antonydbs17
@antonydbs17 2 года назад
I'm glad i came across your channel.
@yesseru
@yesseru 2 года назад
For realism's sake, unmagnified tube-style red dots (like the one you use) are just mostly blocked by the optic walls. But for gameplay's sake it def makes sense to "remove" the walls. But for a magnified tube optic, it will look like that because it uses lenses that project a larger image onto a smaller space to make it look like that and magnify the scope.
@wizardofcroz
@wizardofcroz 2 года назад
I think we're going to see a renaissance in indie video games thanks to people like you. I think everyone is fed up with being let down by the big AAA studios and that's lead to many people wanting to create their own. Really appreciate the work you do explaining your thought process and asking for help when you don't know whats going on. Information like this should be accessible to all, not some industry secret that is coveted by the big players.
@brineeggliang5460
@brineeggliang5460 2 года назад
That's actually pretty smart, thought it would require more work that involves changing the model of the specific weapon sight when aiming. I wonder how many games actually used this method?
@nunocabreracancelo
@nunocabreracancelo 2 года назад
Thanks for adding left handed view! I am so upset when a game alows to flip the view between sides but keeps the gun on the same places like battlefront 2 or several 3° person shooters, but also I feel bad for left handded people that play fps, they're probably used to it but it probably was wierd at first for them
@JosePerez-wl2it
@JosePerez-wl2it 2 года назад
Love the vids! So cool to go along with you as you learn as a dev🙌🏼
@Tumbolisu
@Tumbolisu 2 года назад
I recommend watching the video "tf2’s syringe gun isn’t what it looks like..." by shounic to see how TF2 does viewmodels. Specifically for scoping in: TF2 simply hides the viewmodel, lowers your FOV, adjusts the render distance for LODs, and puts a big overlay on your screen.
@generrosity
@generrosity 2 года назад
I joke that any combination of words that get an idea from your head into another "is English", but sometimes you just need to see/do it to really grok it. Plus there is an art to explaining - ie the comments might have been correct, but might not have been reordered to let your brain follow the lines. Love watching you learn and progress w the game 💚
@micnor14
@micnor14 2 года назад
@2:30 Dude made the classic Doom gun changmymind
@cIappo896
@cIappo896 2 года назад
Legit, try an inner cone. If needed, I can make a small sketch on how it would work, but in the most basic way, from the camera to the front of the scope, instead of making the back to front part a straight cylinder, make it conical, so the "meat" of the scope doesn't get as much in the way. This is the best performance wise, but can look a bit funky.
@GreenDre
@GreenDre 2 года назад
I liked the cell shading on the guns because it looked different from most other shooters .
@GingerNingerGames
@GingerNingerGames 2 года назад
Insurgency's PIP scopes will always be my favourite, full field of view outside the scope, and zoomed inside. Best of both worlds, and source engine handled it like a champ.
@lowellcamp3267
@lowellcamp3267 2 года назад
Another funny touch is that you can technically do the dual FOV effect without rendering the player’s hands in a separate pass: Just pass them a different projection matrix in the vertex shader and you’re done. I believe there was also a way to solve the clipping problem without introducing an additional render pass but it probably has other issues (maybe compatibility?)
@jarlfenrir
@jarlfenrir Год назад
Lol, my exact first thought when watching the previous video. Was sure you checked that possibility first though.
@Joel-pl6lh
@Joel-pl6lh 2 года назад
I knew it! Take any cylindrincal object in your house, if you put it far from you, you won't see the inside of it
@eclipsewrecker
@eclipsewrecker 2 года назад
Remember, magnification means “bigger” sway around target and then less accurate eye-hand-gun point-coordination
@Fede_uyz
@Fede_uyz Год назад
Watch out the "just flipping around the image" this will create "flipped" guns where for an AR for example you get the ejection port on the left (as you simply mirrored a correct looking at)
@Glue_Eater06
@Glue_Eater06 2 года назад
Game's looking good, can't wait for it
@toastbrot97
@toastbrot97 2 года назад
I was kind of expecting the solution to be something like that. Since it does technically also keep the slight parallax effect you were talking about with the end of the barrel. Another thing that wouldbe interesting to look into in videogams is the fact that gras (or any vegetation for that matter) almost never looks correctly on an incline. Usually grass irl always grows straight up, no matter the surface angle, but in videogames the grass usually grows perpendicular to the ground. I personally have some theories to why that is, but it would be could if you could look into that!
@ZalvaTionZ
@ZalvaTionZ 2 года назад
Grass meshes are usually batches of grass together. Having every single grass strand be individual object would be terrible for performance. If they didn't follow the ground surface rotation then in cases like hills, one side of the grass mesh would be clipped inside the hill while other was floating in air. But now I'm curious if you could deform them performantly in shader to all be straight up while having the roots still stay in place.
@toastbrot97
@toastbrot97 2 года назад
@@ZalvaTionZ yea, that's the reson that i thoutght as well. I'm sure there's way to do it proper, since i've seen decent implementations for it, but it's probably not easy and lots of manual tweaking.
@ZEDifx
@ZEDifx 2 года назад
I love your videos, so much knowledge I got from you
@samsegalloldude
@samsegalloldude 2 года назад
This is a commonly known Cinematography trick! A good example will be Guardians of The Galaxy 2 (spoiler ahead:) The scene when quill finds out who kill his mom. Camera zooms on peter while increasing the FOV. Quite the opposite approach, but the same method of increasing one while decreasing the other. I interchange zoom with moving the camera forward here, though.
@champagnesupernova1839
@champagnesupernova1839 2 года назад
oh, that's a really clever solution! I didn't think of that!
@MajatekYT
@MajatekYT 2 года назад
just be sure that if you're mirroring the view model for left hand options that your models don't have a reloading bolt/catch/etc on one side only as it becomes really obvious that the view model is being mirrored
@unvergebeneid
@unvergebeneid 2 года назад
Oh, so it's a dolly zoom on just the gun.
@ntrovertted
@ntrovertted 2 года назад
Cel shaded outline + current textures = 🔥
@Jebin120
@Jebin120 2 года назад
Omg it's that effect from guardians of the Galaxy when the camera zoom in but the camera is physically moving far it but distorts the actors face like the scope in the gun... Smort trick
@hungryhedgehog4201
@hungryhedgehog4201 2 года назад
You can see this happen in the new cods if u have a gun with super low ads speed, it will warp really weirdly.
@timhorton8085
@timhorton8085 2 года назад
"its just a matter of flipping the model around" Ah yes, the ol' backwards gun.
@Disktoaster
@Disktoaster 2 года назад
Oh man, this was the hardest thing to figure out when I started doing 3D modeling at work. "we need a shot where you're looking through the door, but can see everything inside the room." Uh, what? But realizing FOV and zoom are two entirely different things to software that handles 3D projection, made things possible that definitely aren't in real life.
@ddash9411
@ddash9411 2 года назад
My favorite part is when he says “hey everyone garbaj here”
@Seb-Storm
@Seb-Storm 2 года назад
You should also blur and add transparency to the weapons as we humans "see" when we are not focused on the gun but in the target. Levelcap mentioned something about it ones
@latewizard301
@latewizard301 2 года назад
I still want to see someone make an old school type of shooter, where a simple red dot would take up the entire screen. Like STALKERS scopes. Or rainbow six' acog
@NukeZoned
@NukeZoned 2 года назад
I can't wait for your game to come out
@fleurbird
@fleurbird 2 года назад
Thanks, this was very informative
@brnddi
@brnddi 2 года назад
Fun fact: when the view model FOV approaches zero and the distance of the gun from the camera approaches infinity, you get orthographic rendering.
@kewl8755
@kewl8755 9 месяцев назад
You could make the scope's textures not be double sided, so that you could see through the scope easily without any other trickery
@HAYL0W
@HAYL0W 2 года назад
use me as a petition for longer videos! love the vids garbaj. always so interesting and enjoyable
@user-lk2vo8fo2q
@user-lk2vo8fo2q 2 года назад
if you still want to do picture in picture optics you could probably make it happen with just a screen space shader instead of a completely different camera. that might even perform better than what you're doing here, since there's still only one game camera. of course, if you're going to render two worlds anyway to prevent your gun from clipping through things this fov trick is basically free.
@clockman5326
@clockman5326 2 года назад
Glad you got it working. Looks great!
@chintex_
@chintex_ 2 года назад
That is such a clever solution.
@MarseloEsp
@MarseloEsp 2 года назад
Be careful when you flip the image because if you flip it the gun will not be accurate from your original Modell. A nice example is in CS-GO. The AWP is flipped when you hold it in your right hand, you can see it because of where the bullet comes out should be the other sight
@MeepsPeeps
@MeepsPeeps 2 года назад
bro wtf thats genius
@mazsolagamestudio0711
@mazsolagamestudio0711 2 года назад
I just want to ask, and tell you something: So when you trí to export your godot game to .exe the Inputs from the InputMap are not exported, only that starts with ui_. Do you have any idea how to solve that issue?
@USERWASBANNED
@USERWASBANNED 2 года назад
your game textures look like older games when I set the LOD bias to some absurdly low number in Nvidia inspector, which is a compliment btw I like the look a lot lol very early-3D graphics
@delayed_control
@delayed_control 2 года назад
Using a separate camera for the character model in FPP is the standard that 99% of FPP games use, I don't know why you'd want to avoid it. Even games that render full player body (legs etc.) do this at the very least for hands and gun.
@kiesta0740
@kiesta0740 2 года назад
there are many games that dont do this (the arma series being the main example people use) and there are plenty of games that simply don't need to (receiver 2 doesn't have arm models and there are no scopes, just ironsights)
@PeterBarnes2
@PeterBarnes2 2 года назад
That painted-on look looks a lot like Sector's Edge, which is a nifty arena FPS.
@augustdunnihoo
@augustdunnihoo 2 года назад
Looks like Starlight Shimmer's town! Picasso
@zephels
@zephels 2 года назад
For visuals, I personally think a low poly art style could make the game run better overall, but more importantly would give it a more unique look
@luukderuijter1332
@luukderuijter1332 2 года назад
Yeahhhh this is 1000× smarter than what i had in mind
@DodgeThatAttack
@DodgeThatAttack 2 года назад
oh thats really interesting, wouldnt have even considered this issue
@pimpalas
@pimpalas 2 года назад
A bullet counting system for reloading (for example a shotgun knowing how many shots to load in instead of a full reload) explanation would be interesting, always wondered if its really simple or a bit more complex
Далее
The Fatal Trap That Can Kill Any Game
4:27
Просмотров 541 тыс.
The Slightly Odd Way Bullets Work In FPS Games
4:21
Просмотров 1,6 млн
ПАВЕЛ ДУРОВ АРЕСТОВАН
1:45:21
Просмотров 103 тыс.
would you eat this? #shorts
00:35
Просмотров 1,9 млн
I Stole This Technique For My Game
3:35
Просмотров 807 тыс.
I Remade EVERYTHING In My Indie FPS Game
10:14
Просмотров 14 тыс.
Adding Enemies to my Indie Game - Devlog 1
8:20
Просмотров 1,6 тыс.
Why Do So Many Indie Games Use Pixel Art?
9:23
Просмотров 46 тыс.
Mojang sneaks in the best EATING UPDATE ever.
5:53
Просмотров 413 тыс.
I learned game development for 6 months...
11:42
Просмотров 61 тыс.
I Have No Idea What's Going On Here
4:22
Просмотров 475 тыс.
Even MORE Sneaky Tricks Most FPS Games Use
3:42
Просмотров 731 тыс.
ПАВЕЛ ДУРОВ АРЕСТОВАН
1:45:21
Просмотров 103 тыс.