In
computer graphics
Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
, planar is the method of arranging
pixel
In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a Raster graphics, raster image, or the smallest addressable element in a dot matrix display device. In most digital display devices, p ...
data into several ''
bitplanes'' of
RAM. Each bit in a bitplane is related to one pixel on the screen. Unlike
packed,
high color, or
true color graphics, the whole dataset for an individual pixel is not in one specific location in RAM, but spread across the bitplanes that make up the display. Planar arrangement determines how pixel data is laid out in memory, not how the data for a pixel is interpreted; pixel data in a planar arrangement could encode either
indexed or direct color.
This scheme originated in the early days of computer graphics. The memory
chips of this era can not supply data fast enough on their own to generate a picture on a TV screen or monitor from a large
framebuffer. By splitting the data up into multiple planes, each plane can be stored on a separate memory chip. These chips can then be read in parallel at a slower rate, allowing graphical display on modest hardware, like game consoles of the
third and
fourth generations and home computers of the 80s. The
EGA video adapter on early
IBM PC
The IBM Personal Computer (model 5150, commonly known as the IBM PC) is the first microcomputer released in the List of IBM Personal Computer models, IBM PC model line and the basis for the IBM PC compatible ''de facto'' standard. Released on ...
computers uses planar arrangement in color graphical modes for this reason. The later
VGA includes
one non-planar mode which sacrifices memory efficiency for more convenient access.
Hardware with planar graphics
Game consoles with a planar display organization include Sega´s
Master System
The is an 8-bit Third generation of video game consoles, third-generation home video game console manufactured and developed by Sega. It was originally a remodeled export version of the Sega Mark III, the third iteration of the SG-1000 series ...
and
Game Gear
The is an 8-bit Fourth generation of video game consoles, fourth-generation handheld game console released by Sega on October 6, 1990 in Japan, in April 1991 throughout North America and Europe, and in 1992 in Australia. The Game Gear primarily ...
, Nintendo´s
NES /
SNES, and the
PC Engine
The TurboGrafx-16, known in Japan as the , is a home video game console developed by Hudson Soft and manufactured by NEC. It was released in Japan in 1987 and in North America in 1989. The first console of the fourth generation, it launched ...
.
The Slovak
PP 01 includes a 24KB plane-based 8-colour graphics mode with a resolution of 256x256 pixels. The 16-bit
Atari ST
Atari ST is a line of personal computers from Atari Corporation and the successor to the company's Atari 8-bit computers, 8-bit computers. The initial model, the Atari 520ST, had limited release in April–June 1985, and was widely available i ...
and
Amiga
Amiga is a family of personal computers produced by Commodore International, Commodore from 1985 until the company's bankruptcy in 1994, with production by others afterward. The original model is one of a number of mid-1980s computers with 16-b ...
platforms from the 80s and 90s were exclusively based on a planar graphics configuration alongside a powerful
blitter. Amiga´s
OCS graphics chipset works with 5 bitplanes which allows 2^5=32 colors per pixel, while later models with the
AGA chipset can handle eight bitplanes (2^8=256 colors).
For the Sinclair (Amstrad)
ZX Spectrum
The ZX Spectrum () is an 8-bit computing, 8-bit home computer developed and marketed by Sinclair Research. One of the most influential computers ever made and one of the all-time bestselling British computers, over five million units were sold. ...
computer family and compatible systems, a graphics expansion named HGFX was developed in 2019. In 2022 it was implemented in
FPGA
A field-programmable gate array (FPGA) is a type of configurable integrated circuit that can be repeatedly programmed after manufacturing. FPGAs are a subset of logic devices referred to as programmable logic devices (PLDs). They consist of a ...
-based hardware. The HGFX enables a memory organization that is compatible with the original ZX Spectrum system while taking up only 6144 bytes of the original video RAM. In addition, it provides two video-buffers, 256 indexed colours, a truecolour palette, and an HDMI output. The HGFX works with eight bitplanes. Currently it is implemented as part of MB03+ Ultimate interface and eLeMeNt ZX computer.
Examples
On a
chunky display with 4-
bits-per-pixel and a
RGBI palette, each byte represents two pixels, with 16 different colors available for each pixel. Four consecutive pixels are stored in two consecutive bytes as follows:
Whereas a planar scheme could use 2 bitplanes, providing for a 4 color display. Eight pixels would be stored as 2 bytes non-contiguously in memory:
In the planar example, 2 bytes represent 8 pixels with 4 available colors, where the packed pixel example uses 2 bytes to represent fewer pixels but with more colors. Adding planes will increase the number of colors available at the cost of requiring more memory. For example, using 4 planes makes 2
4=16 colors available, but it would then take 4 bytes to represent 8 pixels (making it equivalent in terms of memory usage and available colors to the packed arrangement example).
Advantages and disadvantages
Planar arrangements offer space and time efficiencies over packed arrangements at bit depths that are not powers of 2. As an example, consider 3 , allowing 8 colors. With planar arrangements, this simply requires 3 planes. With packed arrangements, supporting exactly 3 bpp would require either allowing pixels to cross byte boundaries (incurring time costs due to complications with addressing and unpacking pixels) or padding (incurring space costs, as each byte would store 2 pixels and have 2 unused bits); historically, this is one reason (though not necessarily the main one) packed pixels used bit depths that fit evenly into bytes.
Planar arrangements allow for faster bit depth switching: planes are added or discarded and (if colors are indexed) the palette is extended or truncated. Consequently, support for higher bit depths can be added with little to no impact on older software. Ease of bit depth switching also allow elements with different bit depths to be easily used together.
A disadvantage of planar arrangements is that more RAM address cycles are needed for
scrolling
In computer displays, filmmaking, television production, video games and other kinetic displays, scrolling is sliding text, images or video across a monitor or display, vertically or horizontally. "Scrolling," as such, does not change the layout ...
and
animation
Animation is a filmmaking technique whereby still images are manipulated to create moving images. In traditional animation, images are drawn or painted by hand on transparent celluloid sheets to be photographed and exhibited on film. Animati ...
s.
See also
*
Packed pixel
In packed pixel or chunky framebuffer organization, the bits defining each pixel are clustered and stored consecutively. For example, if there are 16 bits per pixel, each pixel is represented in two consecutive (contiguous) 8-bit bytes in the fra ...
*
Amiga graphics chipset roadmap
References
{{DEFAULTSORT:Planar (Computer Graphics)
Computer graphics
Amiga