Hall of mirrors effect

In Doom, if the no-clipping cheat is used to go outside the level, a shimmering mass is visible in the empty space outside, composed of parts of previous frames of animation. The same effect can be achieved by making a level with a wall which has no texture. This is called the Hall of Mirrors effect. The name comes from the fact that it appears somewhat like being in a hall of mirrors. It is sometimes abbreviated HOM or HOM Effect.

When Doom renders the level to the screen, it draws it into a buffer, an area of memory. During gameplay, the previous contents of the buffer are overwritten by consecutive frames. However, if a player travels outside the level, there are no walls to draw, so Doom draws nothing. Instead, the previous contents of the buffer are displayed, left over from previous frames.

If a player turns around and looks back toward the level, they can see through the walls and inside the level. The floors of the level stretch outwards toward the screen edge in vertical columns. This is because the Doom floor and ceiling drawing system is like a flood fill algorithm: because there are no walls to bound them, they simply "bleed" down to the edges of the screen.

Shimmering effect
In Vanilla Doom, a shimmering effect also occurs with HOM. The reason for this is in the Doom video system. Doom actually draws into two buffers. This is called page flipping. While Doom is rendering into buffer 1, the video card is displaying the contents of buffer 2 (so it is not possible to see the screen until rendering has completed). When rendering is complete, it reverses ("flips") the buffers. The video card displays the contents of buffer 1, and Doom draws the next frame into buffer 2.

Because of this, when there is nothing to draw, the leftover parts of previous frames are displayed. However, because of page flipping, the contents of two previous frames are shown, alternating back and forth. Because there is typically only very slight difference between frames of animation, there is a shimmering effect. Most of the modern Doom source ports do not use page flipping, so they lose the shimmering effect.

Deep water effect
Certain levels have exploited HOM as a feature; for instance, it can be used to make invisible pits, for a "deep water" effect. The edges of the pit have no texture, so the floor bleeds over the step. If the player dies while in the water, his viewpoint falls below the waterline and the shimmering hall of mirrors effect is visible on the missing texture, similar to being underwater. However, this procedure can cause problems on modern hardware-accelerated source ports, which do not behave the same as the original software-rendered version of Doom.

HOM detection
HOM can be a problem for level designers. Properly designed levels will not have any areas where HOM is visible. For this reason, many level editors include checking facilities to search for locations where textures are not set and HOM is likely to occur.

TeamTNT's Boom port included a special feature to assist in HOM detection: the cheat code "TNTHOM" enables it. When enabled, the screen is cleared before rendering. The clear color alternates between black and red, giving a "flashing red light" effect where HOM exists.