Message-ID: <4U7UH1$ga3@bbs.cqupt.edu.cn>
Subject: A Brief History of Computer Graphics
Date: Wed, 16 May 2007 10:47:46 +0000
From: silva@bbs.cqupt.edu.cn-SPAM.no (�����约������)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.graphics.mbox.zip!g2news1.google.com!news1.google.com!newshub.sdsu.edu!newsgate.cuhk.edu.hk!news.szu.edu.cn!news.uestc.edu.cn!CQUPT
Newsgroups: cn.bbs.comp.graphics
Organization: ���幕�����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Graphics/M.1179312433.o0
Xref: 74.82.202.154 cn.bbs.comp.graphics:1518


   < Day Day Up >     

A Brief History of Computer Graphics

The first computers consisted of rows and rows of switches and lights. Techn
icians and engineers worked for hours, days, or even weeks to program these 
machines and read the results of their calculations. Patterns of illuminated
 bulbs conveyed useful information to the computer users, or some crude prin
tout was provided. You might say that the first form of computer graphics wa
s a panel of blinking lights. (This idea is supported by stories of early pr
ogrammers writing programs that served no useful purpose other than creating
 patterns of blinking and chasing lights!)

Times have changed. From those first "thinking machines," as some called the
m, sprang fully programmable devices that printed on rolls of paper using a 
mechanism similar to a teletype machine. Data could be stored efficiently on
 magnetic tape, on disk, or even on rows of hole-punched paper or stacks of 
paper-punch cards. The "hobby" of computer graphics was born the day compute
rs first started printing. Because each character in the alphabet had a fixe
d size and shape, creative programmers in the 1970s took delight in creating
 artistic patterns and images made up of nothing more than asterisks (*).

Enter the CRT

Paper as an output medium for computers is useful and persists today. Laser 
printers and color inkjet printers have replaced crude ASCII art with crisp 
presentation quality and near photographic reproductions of artwork. Paper, 
however, can be expensive to replace on a regular basis, and using it consis
tently is wasteful of our natural resources, especially because most of the 
time we don't really need hard-copy output of calculations or database queri
es.

The cathode ray tube (CRT) was a tremendously useful addition to the compute
r. The original computer monitors, CRTs were initially just video terminals 
that displayed ASCII text just like the first paper terminals��but CRTs were
 perfectly capable of drawing points and lines as well as alphabetic charact
ers. Soon, other symbols and graphics began to supplement the character term
inal. Programmers used computers and their monitors to create graphics that 
supplemented textual or tabular output. The first algorithms for creating li
nes and curves were developed and published; computer graphics became a scie
nce rather than a pastime.

The first computer graphics displayed on these terminals were two-dimensiona
l, or 2D. These flat lines, circles, and polygons were used to create graphi
cs for a variety of purposes. Graphs and plots could display scientific or s
tatistical data in a way that tables and figures could not. More adventurous
 programmers even created simple arcade games such as Lunar Lander and Pong 
using simple graphics consisting of little more than line drawings that were
 refreshed (redrawn) several times a second.

The term real-time was first applied to computer graphics that were animated
. A broader use of the word in computer science simply means that the comput
er can process input as fast or faster than the input is being supplied. For
 example, talking on the phone is a real-time activity in which humans parti
cipate. You speak and the listener hears your communication immediately and 
responds, allowing you to hear immediately and respond again, and so on. In 
reality, there is some delay involved due to the electronics, but the delay 
is usually imperceptible to those having the conversation. In contrast, writ
ing a letter is not a real-time activity.

Applying the term real-time to computer graphics means that the computer is 
producing an animation or sequence of images directly in response to some in
put, such as joystick movement, keyboard strokes, and so on. Real-time compu
ter graphics can display a wave form being measured by electronic equipment,
 numerical readouts, or interactive games and visual simulations.

Going 3D

The term three-dimensional, or 3D, means that an object being described or d
isplayed has three dimensions of measurement: width, height, and depth. An e
xample of a two-dimensional object is a piece of paper on your desk with a d
rawing or writing on it, having no perceptible depth. A three-dimensional ob
ject is the can of soda next to it. The soft drink can is round (width and h
eight) and tall (depth). Depending on your perspective, you can alter which 
side of the can is the width or height, but the fact remains that the can ha
s three dimensions. Figure 1.1 shows how we might measure the dimensions of 
the can and piece of paper.


Figure 1.1. Measuring two- and three-dimensional objects.


For centuries, artists have known how to make a painting appear to have real
 depth. A painting is inherently a two-dimensional object because it is noth
ing more than canvas with paint applied. Similarly, 3D computer graphics are
 actually two-dimensional images on a flat computer screen that provide an i
llusion of depth, or a third dimension.

2D + Perspective = 3D

The first computer graphics no doubt appeared similar to Figure 1.2, where y
ou can see a simple three-dimensional cube drawn with 12 line segments. What
 makes the cube look three-dimensional is perspective, or the angle between 
the lines that lend the illusion of depth.


Figure 1.2. A simple wireframe 3D cube.


To truly see in 3D, you need to actually view an object with both eyes or su
pply each eye with separate and unique images of the object. Look at Figure 
1.3. Each eye receives a two-dimensional image that is much like a temporary
 photograph displayed on each retina (the back part of your eye). These two 
images are slightly different because they are received at two different ang
les. (Your eyes are spaced apart on purpose.) The brain then combines these 
slightly different images to produce a single, composite 3D picture in your 
head.


Figure 1.3. How you see three dimensions.


In Figure 1.3, the angle between the images becomes smaller as the object go
es farther away. You can amplify this 3D effect by increasing the angle betw
een the two images. Viewmasters (those hand-held stereoscopic viewers you pr
obably had as a kid) and 3D movies capitalize on this effect by placing each
 of your eyes on a separate lens or by providing color-filtered glasses that
 separate two superimposed images. These images are usually over-enhanced fo
r dramatic or cinematic purposes. Of late this effect has become more popula
r on the PC as well. Shutter glasses that work with your graphics card and s
oftware will switch between one eye and the other, with a changing perspecti
ve displayed onscreen to each eye, thus giving a "true" stereo 3D experience
. Unfortunately, many people complain that this effect gives them a headache
 or makes them dizzy!

A computer screen is one flat image on a flat surface, not two images from d
ifferent perspectives falling on each eye. As it turns out, most of what is 
considered to be 3D computer graphics is actually an approximation of true 3
D. This approximation is achieved in the same way that artists have rendered
 drawings with apparent depth for years, using the same tricks that nature p
rovides for people with one eye.

You might have noticed at some time in your life that if you cover one eye, 
the world does not suddenly fall flat! What happens when you cover one eye? 
You might think you are still seeing in 3D, but try this experiment: Place a
 glass or some other object just out of arm's reach, off to your left side. 
(If it is close, this trick won't work.) Cover your right eye with your righ
t hand and reach for the glass. (Maybe you should use an empty plastic one!)
 Notice that you have a more difficult time estimating how much farther you 
need to reach (if at all) before you touch the glass. Now, uncover your righ
t eye and reach for the glass, and you can easily discern how far you need t
o lean to reach the glass. You now know why people with one eye often have d
ifficulty with distance perception.

Perspective alone is enough to create the appearance of three dimensions. No
te the cube shown previously in Figure 1.2. Even without coloring or shading
, the cube still has the appearance of a three-dimensional object. Stare at 
the cube for long enough, however, and the front and back of the cube switch
 places. Your brain is confused by the lack of any surface coloration in the
 drawing. Figure 1.4 shows the output from the sample program BLOCK from thi
s chapter's subdirectory on the CD-ROM. Run this program as we progress towa
rd a more and more realistic appearing cube. We see here that the cube resti
ng on a plane has an exaggerated perspective but still can produce the "popp
ing" effect when you stare at it. By pressing the spacebar, you will progres
s toward a more and more believable image.


Figure 1.4. A line-drawn three-dimensional cube.


3D Artifacts

The reason the world doesn't become suddenly flat when you cover one eye is 
that many of a 3D world's effects are still present when viewed two-dimensio
nally. The effects are just enough to trigger your brain's ability to discer
n depth. The most obvious cue is that nearby objects appear larger than dist
ant objects. This perspective effect is called foreshortening. This effect a
nd color changes, textures, lighting, shading, and variations of color inten
sities (due to lighting) together add up to our perception of a three-dimens
ional image. In the next section, we take a survey of these tricks.

 

   < Day Day Up >     


--
��知���不�茫����揖���要�!


�� ��源:�����幕����� bbs.cqupt.edu.cn��[FROM: bbs.cqupt.edu.cn]