Midnight Ultra

Midnight Ultra

Wooper jrr Apr 26, 2018 @ 12:48pm
Gun/Meele weapons clipping through wall
Just a tip for the devs, maybe for this projects or maybe for the next ones. Your guns are clipping through walls and other objects becouse they are being rendered by just one camera. The correct way is to have a separate camera that renders the guns on top of everything so they dont look like going through a wall.
Here's a tutorial (polish but eng subs) on how to adress this issue (5:00 mark):
https://youtu.be/u7MH76vquEM
< >
Showing 1-8 of 8 comments
HadBabits Apr 26, 2018 @ 7:05pm 
As a dev (not of this game), I appreciate the video. I have an interest in this genre so I'm glad I came across a problem and solution ahead of time, haha. Cheers :)
Wooper jrr Apr 26, 2018 @ 8:00pm 
I'm a aspiring dev too, glad I could share some knowledge :P
I like it that way though. When it clips, it doesn't look like sticker on camera.

The difference is either the gun will clip through objects or very obviously of wrong size (because in second method gun's size is related to camera and not the world). So you need to block player's movement further away from walls so perspective doesn't get distorted if player gets too close. I bet you saw it in quite a lot of games - when you get close to the monster, your guns looks tiny in comparison to enemy. Plus separate fovs which only adds more variables to consider and tune. So I don't see this separate camera as proper solution, yes it it's dirty method and it might work for Midnight Ultra, but overall there is tons of vastly better solutions. For example, quite a lot of games just push the first person model back when you move closer to the wall.
Wooper jrr May 3, 2018 @ 9:34am 
oh okay
HadBabits May 3, 2018 @ 11:17am 
I wonder how hard it would be to make it so the gun lowers, like it does when you aim at friendlies in Half Life 2, whenever you're too close to the wall.
Deadhands Dan  [developer] May 13, 2018 @ 11:55am 
Just to let you know, we've seen this, we may be adding a fix for it in the future. Our camera system is slightly complicated than usual but hopefully we should be able to add this.
Wooper jrr May 15, 2018 @ 5:58am 
Okay, it was just a suggestion, if you guys feel that it's not worth it, it's okay :)
Kastrator 15x10 Jan 21, 2022 @ 7:06am 
Kiepski pomysł przy zaawansowanych grach. Traci się na klatkach, bo gra renderowana jest podwójnie, a i trzeba w jakiś sposób przywrócić cienie.
< >
Showing 1-8 of 8 comments
Per page: 1530 50