What causes clipping and why is it such a common bug in video games?

872 views

I’m playing *Cyberpunk 2077* right now, and it’s a beautifully rendered visual masterpiece of a game, but the clipping issues are ubiquitous to an almost absurd degree.

You see this in “finished” games as well (particularly the Soulsborne series where I can’t count how many deathblows have come by way of an enemy’s attack landing right through a wall or floor).

I’m curious as to why it’s so common. Thanks in advance!

In: Technology

4 Answers

Anonymous 0 Comments

First because it would be hard for a computer to keep track of where ever part of your character and the surroundings are. So to make the game runnable, developers use simple shapes and put fancier more detailed pictures on top of them. The boundaries of the picture aren’t tracked and can overlap.

Second because computers and video game worlds aren’t continuous, they’re a series of frames (fps). All those tracked parts of your character are really teleporting a small distance every frame. For the computer to prevent clipping, it has to determine if a part of you character has teleported past a part of another object. That collision detection method can also be hard to do, and the easier methods of doing it can sometimes be fooled if a part of your character teleported far enough away from the ‘wall’. That’s why a lot of clipping will happen when your character is moving quickly: they’re teleporting a larger distance every frame which increases the chance you’ll fool the collision detection.

You are viewing 1 out of 4 answers, click here to view all answers.