Raster bar

From Wikipedia, the free encyclopedia

Example of rasterbars from an intro by Replicants
Example of rasterbars from an intro by Replicants

The raster bar (also referred to as rasterbar or copperbar) is an effect used in demos that displays animated horizontal bars of colour that extend into the overscan area of the display. The effect was very common in demos on the Commodore 64, Commodore Amiga, Atari ST, and ZX Spectrum.

The computers of the 8 and 16 bit era typically did not or could not display video memory across the entire screen, leaving a border around the regular display area. The graphics chip commonly used a fixed entry in the colour look-up table to colour this border area. The basic principle of the raster bar effect is that this CLUT entry is updated with a new colour during the horizontal blanking interval, when the TV's electron beam is returning to the left to begin drawing a new scanline, thus changing the border colour for just that scanline. By carefully gradiating the colour changes, an effect of metallic-looking horizontal bars can be achieved.

Many graphics chips can trigger an interrupt when the horizontal blanking interval begins, and thus an interrupt handler can perform the task of updating the CLUT entry.

This effect may have been considered impressive to those who were unfamiliar with how it worked, because the computer appeared to be displaying multiple colours in the "off-limits" border area, and because the traditional way of creating and animating such horizontal lines (by colouring pixels individually) would require intensive CPU performance that most CPUs of the time could not attain.

It also has to be said that changing the CLUT was not the only way that graphics could be displayed in the border area of the screen. The Commodore 64 had a trick in which the programmer could fool the graphics chip to display sprites in the border, and the Atari ST could use other tricks to extend the area available for displaying graphics to the borders. In both of these cases, however, the tricks involved triggering features in the graphics chips that were not actually implemented by design.

The Commodore Amiga had a graphics coprocessor referred to as the Copper that could be programmed to perform the effect, hence the term "Copperbars". In each frame of the demo, a new Copper list (Copper program) would be generated in order to animate the bars.

[edit] Vertical raster bars

Example of vertical raster bars from Angel's "Coppermaster" Amiga demo, with horizontal raster bars in the background
Example of vertical raster bars from Angel's "Coppermaster" Amiga demo, with horizontal raster bars in the background

A similar effect can be generated vertically, although it often does not extend into the overscan border areas. To generate vertical bars, the same line of video memory is repeatedly output every scanline. At the top of the frame, the video memory is typically blank, and every horizontal blanking interval it is updated with a new "bar" in a slightly different position, creating a "stepped" effect.

[edit] See also