• Register

Wonhon: A Vengeful Spirit is a paranormal stealth action game where you play as a vengeful spirit of a girl who was killed during a bloody and cruel occupation of her country. Now, she has returned from the dead. Gifted with powers from the Jeoseung Saja, the God of Death, she sets out to exact terrible vengeance.

Post news Report RSS Dithering > clipping (August 17, 2019)

Recently I made the camera zoom in while the player performs certain actions. This looked good in most cases, except when there are tall objects between the player and the camera. It’s looking very strange and immersion-breaking when the game camera clips through objects.

Posted by on

21 1

Dithering > clipping
Imgur.com

"Recently I made the camera zoom in while the player performs certain actions. This looked good in most cases, except when there are tall objects between the player and the camera. It’s looking very strange and immersion-breaking when the game camera clips through objects.

So I wrote a dithering transparency function in my standard shader that adjusts the dithering amount based on the distance from the camera. It uses layer matrix pattern and pixel discarding, so it’s not true transparency (which would be expensive). It looks so much better than unnatural clipping!

I think this is a standard technique for 3rd person games. When the camera gets too close to objects, or when there’s an object between the camera and the player, objects become dithered or transparent. I noticed it while playing Sekiro recently, Super Mario Odyssey does a similar thing, and Uncharted 4 does it too. Thank you to Ming-Lun Chou for sharing this technique - it didn’t take me long to figure this out because I remembered reading about it on his postmortem." (c) Sean, the Wonhon: A Vengeful Spirit developer.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: