Why Reflections Disappear in Games When You Tilt the Camera


 Part of the "30 Days, 30 Game Dev Insights" series

You're walking along a lake in PUBG. The water shows a perfect mirror image of the sky and trees. Then you tilt the camera down toward the surface, and the reflection vanishes. Tilt back up and it returns.

If you've seen this in PUBG, Days Gone, Cyberpunk 2077, or almost any modern game, you might have assumed it was a bug. It isn't. It's a deliberate shortcut, and in some games a single setting makes it go away.

How a "real" reflection works

In the real world, a mirror shows whatever is in front of it. A game has to fake that. The most direct way is to render the scene a second time from the mirrored point of view and show the result on the reflective surface.

That works, but it's expensive. Rendering the scene again can come close to doubling the work the graphics card does for every reflective surface. A game with lakes, puddles, wet roads, and shiny floors would quickly become unplayable on most hardware.

Where games still use the expensive method

Because of the cost, true "render it again" reflections are mostly saved for small, controlled spaces: a bathroom mirror in a closed room, for example. When the area is small and the number of mirrors is limited, developers can afford it.

The shortcut: Screen Space Reflections

For everything else, most games use a technique called Screen Space Reflections (SSR).

SSR doesn't render anything new. Instead, it looks at the image the game has already drawn on your screen, takes the part that should be reflected, flips it, and paints it onto the water or floor. It's fast, it looks convincing, and it adapts to whatever is on screen, which is why so many games rely on it.

The catch: it can only reflect what you can see

Here's the limitation. SSR only knows about what's currently visible on screen.

When you tilt the camera straight down at the water, the sky, trees, and buildings above are no longer in the frame. The game has nothing to flip, so the reflection fades or disappears. The moment those objects come back into view, the reflection comes back with them.

That's why you'll often see reflections appear and disappear as you move the camera up and down, or why objects near the edge of the screen vanish from the water first.

The fix: ray-traced reflections

Ray tracing works differently. Instead of using the picture on your screen, the game traces rays of light through the whole 3D world. It can reflect objects that are behind you, above you, or off-camera entirely.

With ray-traced reflections turned on, the problem described above largely goes away. The reflection stays steady no matter how you move the camera.

The trade-off is performance. Ray tracing demands much more from your hardware, which is why it's usually an optional setting aimed at powerful PCs and newer consoles.

How to spot it in your own games

Try this in your next play session:

  1. Find a lake, puddle, or glossy floor with something obvious reflected in it.
  2. Slowly tilt the camera down until the reflected object leaves the screen.
  3. Watch the reflection fade out, then tilt back up and watch it return.
  4. If your game has a ray-traced reflections option, turn it on and repeat the test.

The names of the settings vary from game to game, so look in the graphics menu for options mentioning reflections or ray tracing.

The bigger lesson

Much of what makes games look good is clever trickery rather than perfect simulation. Developers constantly balance realism against performance, and the small glitches we notice are often the visible edge of a very smart trade-off.

Once you know about Screen Space Reflections, you'll start noticing them everywhere.

A note on sources: the example games mentioned here (PUBG, Days Gone, Cyberpunk 2077) come from gameplay observations, not official developer documentation. Which games offer ray-traced reflections, and what the settings are called, varies by game and hardware.

Comments

Popular posts from this blog

Bootstrap 6: New Features, Major Changes, and What Developers Need to Know

How Games Fake Underwater Worlds: Fog, Color Absorption and Caustics