An algorithm for producing half-tone computer graphics presentations with shadows and movable light sources

Bouknight, J, Kelley, K

Univ Illinois

1970

SJCC70

INTRODUCTION

In the years since the introduction of SKETCHPAD an increasing number of graphics systems for line drawing have been developed. Software packages are now available to do such things as picture definition, rotation and translation of picture data, and production of animated movies and microfilm. Automatic windowing, three-dimensional figures, depth cueing by intensity, and even stereo line drawing are now feasible and in some cases, available in hardware.

Even with all these capabilities, however, representation of three-dimensional data is not quite satisfactory. Representing a solid object by lines which define its edges leads to the computer generated unreality of being able to see through solid objects. In recent years, research centered around means for computer graphical display of structural figures and data has begun to move from display of wire-frame structures where the wires represent the edges of the surfaces of the structures, to the display of structures using surface definition techniques to enhance the three-dimensional appearance of the final result. Several efforts have been concentrated on producing graphical output which is similar to the half-tone commercial printing process.

The work of Evans, et al., at the University of Utah [1] established the feasibility of using a computer to produce half-tone images. Their algorithm processes structures whose surfaces are made up of planar triangles. The algorithm employs a raster scan and examines crossing points of the boundaries of the triangles by the scanning ray. A significant feature of their method is that the increase in computing time is linear as the resolution of the picture increases.

John Warnock's algorithm for half-tone picture representation employs a different technique [2]. He divides the scene recursively into quarters until all detail in a given square is known or the smallest size square is reached. The result is a set of key squares, that is intensity change points, along the visible edges in the scene. The time required for this algorithm varies linearly as the total length of the visible edges in the picture, but varies also as the square of the raster size. An important feature of the Warnock algorithm is that it handles the occurrence of the intersection of two planes without having to precalculate the line of intersection.

At the General Electric Electronics Research Laboratory in Syracuse, a system which combines both hardware and software to produce color half-tone images in real time has been developed for NASA as a simulator for rendezvous and docking training. This device can hold up a 600 × 600 raster point picture of up to 240 edges, in color, and change the picture as quickly as the beam scans the screen [3].

The work of the computer group at the Coordinated Science Laboratory began as an effort to add some realism to line drawings of structures being generated by R. Resch, who, while working in the laboratory, was also a member of the faculty of the Department of Architecture. Through his acquaintance with J. Warnock, we were able to implement a version of the Warnock algorithm which operates on the CDC 1604. After several revisions of the implementation and some fine tuning of the CRT display hardware, black and white half-tone images of the Resch structures were exhibited at the Computer Graphics Conference at the University of Illinois in April of 1969.

In discussions with J. Warnock and Robert Schumacher of General Electric, we envisioned a hidden surface algorithm using a scanline technique combining the recursiveness of the Warnock algorithm with the hardware techniques used in the NASA simulator. These discussions were the impetus for the development of the LINESCAN algorithm [4]. It was for this implementation that laboratory engineers added a raster scan operation to the display hardware. As a result, the algorithm does not have to provide the scope with an item of data for each and every point. Only the location of an intensity change on the scanline and the new magnitude of the intensity are needed. In addition, the display hardware was modified to allow 256 levels of intensity under program control.

Neither of the previously mentioned algorithms for half-tone images represented the picture with a light source located away from the observer position, although both regard it as a next step in development. Moving the light source away from the observer position presents the problem of cast shadows. Arthur Appel's work approaches the shadow problem and the hidden line or surface problem simultaneously [5]. His algorithm also scans the picture description in a linescan manner. The question of which parts of which surfaces are visible is answered by a technique called quantitative invisibility [6]. His structures are composed of planar polygonal surfaces. Appel also includes the ability to handle multiple illumination sources and the shadows cast due to those sources. His shadow boundaries are computed by projecting points incrementally along the edge of a shading polygon to the surface which will be shaded.

The work of the Computer Group at the Coordinated Science Laboratory to move the light away from the observer began shortly after the completion of the LINESCAN algorithm. Augmentation of the original LINESCAN method with a dual scan for shadows cast upon the surfaces presents two questions.

First, the number of projected shadows to be calculated must be kept to a minimum; but the technique for narrowing the set of polygon pairs must be simple. For a single illumination source, we are constrained by the fact that for n polygons, there are n(n- 1) pairs to be considered. The method chosen to narrow the set of shadow casting and receiving polygons was to project the polygons onto a sphere centered at the light source and make some gross comparisons of maximum and minimum Euclidean coordinates of the points so projected [7]. The transformation to the sphere was so devised that no trigonometric functions or square roots were used. The comparisons used are not intended to discard all pairs that do not cause shadows. The point is to discard as possible shadow pairs all cases in which it is obvious that a shadow is not cast on one by the other. Some nonshadow-producing pairs do slip through the first set of tests; this is allowed because the second set of tests can check these cases with less overall programming effort and execution time.

The second question which the algorithm answers is how to handle the most prevalent situation of shadows cast by one polygon only partially falling on another polygon. It is not necessary to compute the boundaries of the intersection of a polygon with a shadow cast upon its plane. The decision to reduce intensity as the scan enters the shadowed portion of a polygon is left to the final picture-producing stage of the process. Also in the present version no computation is wasted to see if the cast shadow is visible to an observer. Shadows are output with tags to tell which polygon is being shadowed and which polygon is casting the shadow. The final step of the process responds to shadow information by making appropriate intensity changes only in the case that the shadowed polygon is the same as the current visible polygon.

THE LINESCAN ALGORITHM AND ITS ADAPTATION FOR SOLVING THE SHADOW PROBLEM

The LINESCAN algorithm presents itself as a likely candidate for extension to a system for solving the shadow problem in half-tone image processing because of its speed of operation and because it is directly suited to processing a shadow-space which is structured in the same manner as the associated three-space polygonal surface structures. Shadows cast by one polygon onto another by point illumination sources are themselves polygons in the same three-space. The resulting shadow three-space can be projected onto the viewing plane in the same way as the original three-space structure (see Figure 1). Thus, the extension of the LINESCAN algorithm involves only the addition of a second scanning process for keeping track of shadows on each scanline.

Light Source Observer Position Shadowing Square Planar Polygon in Three Space Projection of Square on Polygon Plane Window on Viewing Plane
Figure 1 - Shadow and Object Projections

A brief description at this point will serve to orient the reader to the actual mechanisms of the LINESCAN algorithm. The LINESCAN algorithm processes a graphical image into a half-tone final image from two data sets derived from the three-space structure: (1) the set of all plane equation coefficients for the polygonal surfaces of the structure and (2) the perspective projections of the edges of the surfaces on the viewing plane.

The construction of the final half-tone image is done in a television-like manner where a CRT beam scans across the image line-by-line and exposes a raster of points. As the beam moves across the scanline, the intersection points on the scanline corresponding to the viewable edges of the original structure will dictate changes in the tone (intensity) of the scanning beam from that point to the next intersection. These intersection points, which are output to the final image producing routine as key squares, are the primary output data produced by the LINESCAN algorithm.

Key squares are generated in two types of locations on the viewing plane during a linescan operation. The primary type of location is the intersection of the current scanline with the projection of an edge of the three-space structure. This location will cause a key square to be produced only if the intersection is visible to the observer.

The second type of location on the viewing plane which can cause a key square to be produced is the intersection of an implicitly defined line and the current scanline. An implicitly defined line is the projection on the viewing plane of the intersection of two or more polygons in three-space. Polygon intersections are allowed in the theoretical world of the computer even though they violate the law of Nature that only one object may occupy a given amount of space. Because of the implicit nature of these intersections, special operations must be performed to detect and process them to produce the correct final result.

For any given scanline, a linked list is present containing all intersections of projected edges with that scanline ordered in the direction of the scanning movement. The LINESCAN algorithm moves from intersection to intersection keeping track of which polygon projections are entered and which ones are exited by the scanning ray. At each intersection, a depth sort is performed on those polygons being pierced by the scanning ray to find the closest or visible polygon at that intersection on the scanline.

The decision to produce a key square at a given intersection point is based primarily upon the relation of the depth of the edge associated with the point and the visible polygon determined by the depth sort at the intersection. If the edge is visible, then consideration is given to whether a polygon projection will be entered as this edge is crossed or whether it will be exited. For the entering case, the key square will denote the new polygon for control of the CRT scanning beam at that intersection. For the exiting case, the depth sort polygon will be denoted.

Two special problems arise concerning the output of multiple key squares for a given point on the final image raster. The first requires that constant checking be performed to see if the integer value of successive intersection points on the scanline are equal. If this occurs, any key square action which would be taken for any given intersection in the group will be deferred until the last member of the group has been processed. Thus, only one key square will actually be produced. The polygon to be denoted by the resulting key square may change from the beginning of the group to the end; but in any case, the last visible polygon will control the result.

The second special case of close intersections occurs when coincident edges occur in the specification of the three-space structure. Performing a depth sort on the associated polygons at the common intersection would normally fail because their depths would be the same. Determination of the visible polygon of the group is performed by actually moving the scanning ray a small increment forward in the scanning direction and computing the depth sort at that point. This will yield the polygon which will be visible just after the scanning ray leaves the coincident intersection point.

Implicitly defined lines are detected when the visible polygon denoted at two successive intersection points is different. The procedure used in searching for the projected intersection involves finding which polygons are intersecting and using their plane equation coefficients to calculate their intersection's projection and its intersection with the scanline. An iterative procedure is used in order to detect the possibility of multiple pairs of intersecting polygons which might yield more than one implicitly defined line. Key squares will be produced for the calculated intersection points on the scanline subject to the same constraints about multiple key squares for the same raster points in the final image.

The extended version of the LINESCAN algorithm for solving the shadow problem includes two scanning operations. The primary scanning movement is the original scan operation where the three-space structure data is processed to provide the final image structure. The additional or secondary scanning operation processes, in a parallel manner, the shadow three-space structure to produce data which will be combined with the primary scan data to form the scanline intensity data for the final image. The data output from the secondary scanning operation, which we call shadow key squares, affects the intensity patterns of the final image only. Only the primary scan data defines the structure.

In order to keep the changes in the LINESCAN algorithm to a minimum and for any changes made to have minimum influence in computation speed of the implementation, it was decided that as much of the processing operations for the final image as was possible would be shifted to the final output routine from the LINESCAN routine. This was because the original final output routine, PIXSCANR, had been input-output bound during the processing of the key squares data file from the LINESCAN routine. The additional operation impressed on the new version of PIXSCANR was the keeping track of which shadow polygon projections were being pierced by the scanning ray at any point in the processing of a scanline. Thus, the only change to the LINESCAN algorithm involved the addition of the secondary scan which simply detected the crossings of the scanline by projected edges of the shadow three-space structure and issued shadow key squares at every occurrence.

The dichotomy imposed on the shadow processing responsibilities between the LINESCAN and PIXSCANR routines has an additional advantage. There will always be the possibility of cast shadows falling outside the visible portions of the associated polygons. Additionally, some polygonal surfaces of the original surface will not appear in the final image and therefore, neither will their shadows. We shall see in our discussion of shadow pair detection that it is most economical to allow shadow projections of these kinds to be processed in the same manner as all other shadow projections. Their data items will be passed on to the PIXSCANR routine where their occurrence will be duly noted. No effect will be registered on the final image, however, since the associated three-space surface polygon will not appear in the final image or at least not in conjunction with the projection of the extraneous shadow.

Once the mechanism for producing the proper final image of the half-tone presentation was established, it remained to develop the proper procedure for comparing all possible pairs of polygons with respect to the illumination source, and in an economically feasible manner, discard as many extraneous shadow pairings as possible. Economy of computation speed relative to total scanline processing time was the main concern.

SHADOW DETECTION

The primary task to be accomplished in shadow detection is not so much the actual projection of shadows as it is the elimination of the need for calculating projections and storing shadow polygons unnecessarily. The number of possible shadows cast is equal to the number of possible pairs of polygons in the structure. Since this number increases rapidly as the complexity of the structure increases, it is extremely important to be able to identify useful shadow pairs with a minimum of computation and to store this information in a compact form.

The shadow pairs are stored in a chained list, with subchains linking all polygons that may shadow a given polygon. The procedure for narrowing the set of all possible pairs of polygons to a near minimal set of shadow producing pairs consists of two distinct steps. In the first the polygons are projected onto a sphere centered at the light source and are checked in an approximate fashion for interference with respect to the light source. In the second step, pairs of polygons which seem to occlude one another are further examined to determine which polygons may shadow the others.

The light sphere projection is a device for culling out certain pairs of polygons which can in no way interfere with respect to a given light source. It is only a gross test, intended to ease the burden of computing projections of one polygon onto the plane of another. The test throws out polygon pairs only if it is obvious that no interference takes place. The light sphere projection is in no way used to compute intersections of polygon projections on the sphere, nor is it used to compute intersections of shadow polygons with the polygons being shadowed.

Every vertex of the three-space structure has to be projected onto the sphere centered at the light source in order to make initial interference tests. The sheer magnitude of the number of operations necessary restricts the projection in a number of ways. Namely, it would be preferred if the job could be done without computing any trigonometric functions and if possible, without computing very many square roots, since each of these requires much computer time. The projection is given by:

Xs =  [ sgn(Xl) * Xl2 * K2 ] / DELTA
Ys =  [ sgn(Yl) * Yl2 * K2 ] / DELTA
Zs =  [ sgn(Zl) * Zl2 * K2 ] / DELTA

where Xl, Yl, Zl are the coordinates of a point with respect to an origin at the light source, and DELTA is the square of the distance from the point to the light source (see Figure 2). This transformation to the light sphere is a composite of four transformations which are done algebraically to arrive at the final transformation:

Figure 2 - Projection of polygon on sphere

(1) transform the points to an Euclidean 3-space with origin at the point of light;

(2) transform these coordinates to polar coordinates;

(3) map these points to the sphere by setting p to a constant for each point; and

(4) transform the points on the sphere back into the Euclidean 3-space with origin at the light source.

The algebraic derivation of these transforms yields a final form that involves some square roots in the numerator and denominator. However, since only the relative magnitude is used in the comparison operations, these results are all squared; and the sign is preserved, yielding the final transformation.

In order to use the transformed points to determine which polygons interfere with each other with respect to the light source, the maximum and minimum of the X, Y, Z and DELTA values are saved for each polygon, in addition to the transformed points. Also the coefficients of the equations of the planes in the light source space are computed and saved for possible shadow computation.

The first check made for each polygon is to see if it is self-shadowed, that is, to see if the observer and light source are on opposite sides of the plane of the polygon. The procedure is to substitute both the light source point and the observer point into the equation of the plane. If the two results have different signs, the polygon is self-shadowed and no shadows cast on it will be computed. However, shadows cast by the self-shadowed polygon must still be considered.

If a polygon is not self-shadowed, then it is compared to each remaining polygon in the list to see if it is obvious that interference does not occur. The criterion is as follows:

For all pairs of polygons Pi and Pj, if the points transformed to the sphere are separated in Xs, Ys or Zs then the polygons do not interfere with each other with respect to the light source.

This criterion amounts to simply examining the orthographic projection of the points on the sphere onto the coordinate planes and looking for separation by comparing maximums and minimums in each direction. In the event that the projection of a polygon is so oriented on the sphere as to wrap around a coordinate axis, then the maximum or minimum in some direction docs not occur at a vertex. In this case, for the purpose of this comparison, the associated maximum or minimum is replaced by the absolute maximum or minimum coordinate value on the sphere.

When a pair of polygons are not separated enough for this test to detect the separation, then the maximum and minimum distances to the light source are compared. If the maximum distance of the vertices of polygon I from the light source is less than the minimum such distance on polygon J, then it is clear that polygon I may cast a shadow on polygon J but not vice versa.

The tests of projections on the light source sphere eliminates many possible shadow pairs and thus reduces the total amount of storage and computing time required. This set of tests, however, fails to eliminate certain other shadow pairings which will not affect the final image. Among these are shadow pairings of polygons with common vertices and of polygons which completely overlap on the sphere. In neither case is there clear separation on the light source sphere. In the latter case the sizes of the polygons may be so disparate as to nullify the usefulness of vertex distance comparisons.

Figure 3 illustrates one of the cases in which the projection of points of polygon I onto the plane of polygon J indicates the presence of a shadow, while the shadow cast in no way falls within the bounds of polygon J. Since there is no separation between the two polygons, both possible shadow pairings would be noted, and both would be computed, but neither would be present in the final picture.

Figure 3 - Orientation of polygon pairs-Case 1
Figure 4 - Polygon orientations

We can eliminate this case and several others like it (see Figure 4) by defining and appropriately testing two relations:

I → J
The planar polygon I is entirely on one side of the plane of planar polygon J.
I s J
Each point of planar polygon I lies between the light source and the plane of planar polygon J.

In the case if Figure 3 for example, we see that I → J, J → I, I s J, and J s I are all true, and therefore, the shadows are cast only upon the extended planes of the two polygons. As a result, neither shadow pairing is added to the list of possible shadows.

All of the decisions about possible shadow pairs are computed in advance of the start of the LINESCAN operation. As the LINESCAN operates, it has a linked list for each polygon of all polygons which may cast a shadow upon it. It is at the point where the first line of a polygon is processed that the shadows cast upon it are computed and stored in a list. When the polygon is no longer active, we purge the shadow information from the list. Thus, shadow information is calculated only when it is first needed and discarded when the need for it ceases.

Shadows are computed by projecting the vertices of one polygon onto the plane of another. The parametric form of the equation of a line is used to calculate this projection. Given two points P1(X1, Y1, Z1) and P2(X2, Y2, Z2), the set of points P(X, Y, Z) that lie on a line joining P1 and P2 is given by:

      (X-X1)/(X2-X1) = (Y-Y1)/(Y2-Y1) = (Z-Z1)/(Z2-Z1)

Setting each of these ratios equal to a parameter r yields the parametric form:

       X = X1 + r(X2 - X1)
       Y = Y1 + r(Y2 - Y1)
       Z = Z1 + r(Z2 - Z1)

P1 and P2 are so chosen that P1 is the light source position and thus the origin of the system. This reduces the equations to:

      X = r X2
      Y = r Y2
      Z = r Z2

The parameter r has the following useful properties:

      r > 1 : P is on the extension of P1P2
      r = 1 : P is identical to P2
      r < 1 : P is identical to P1
  0 < r < 1 : P is between P1 and P2
      r < 0 : P is on the extension of P2P1

In addition to providing the coordinates of projected points, r can be used in establishing the truth value of the relations I s J and I→J. As we see in Figure 5, it is necessary to use the values of r for each vertex to see if the shadow makes sense. In this case polygon πi projects onto the plane of polygon πj as P1', P2', P3', P4'. The routine has to check for such situations and instead use P1', P2', P3'', P4''. We do not, however, make any checks to see whether the shadow as cast is visible. The fact that two or more polygons may cast shadows that overlap on a given polygon has no effect on the computation. The final stage of the process takes care of such contingencies.

Figure 5 - Shadow projection

We feel that in further implementations it would be useful to defer actual computation of shadow key squares until a complete scanline is processed. In this manner, it would be possible to introduce and compute shadows cast on a polygon only in the case that the polygon was, in fact, visible at some point on the scanline. This technique would eliminate a large number of shadow key squares that are, in fact, not needed at all in the production of the picture. Another extension being considered is to allow polygons to have a degree of translucency. However, self-shadowing polygons then would have shadows visible on them and this would cause a large increase in the number of shadow lines.

THE FINAL OUTPUT PROCESS

The final data set for the half-tone image consists of two parts. The first part contains the three-space plane equation coefficients for the surfaces of the three-space structure and the position data for the illumination source. The second part contains the linear string of scan control data items: key squares, shadow key squares and self-shadow key squares. It is the function of the PIXSCANR routine to assimilate these two masses of data and to produce the final half-tone image.

In order to couple our results closely to the equipment that was available for our use, we modified the display hardware to provide a special raster scanning operation in which the equipment automatically performs the function of stepping across the raster, and our data input specifies what intensity levels will be used in various sections of the scan. The raster is plotted from left-to-right and bottom-to-top on the display screen. A data item initializes the scan to the starting position and gives the initial intensity value for the CRT beam. In addition, the stepping increment is given. When the scanning operation comes to the end of a scanning line, the value of the z coordinate is reset to 0 and the y coordinate is incremented by δ.

The remaining data items presented to the display hardware consist of an x coordinate value and an intensity value. As the scanning operation proceeds, the current x coordinate value of the scan is compared to the x coordinate of the next data item. If agreement is achieved, then the intensity of the beam is adjusted to the new value and the scan continues. Once set, the beam intensity does not change.

This raster scan operation allows the final image to be exposed with a minimum number of actual data items being sent to the display hardware. A moderately complex picture might have, for example, an average of 20 intensity changes per scanline. If it were necessary to send display information for every point in the picture, each line would have 512, 1024, 2048, ... or more data items associated with each scanline. Another benefit gained from this condensed data format is that the amount of data needed per picture varies in a linear manner with the size of raster being used. Computation speed also varies in a linear manner.

The section of PIXSCANR which processes the first part of the data file from the shadow-tone algorithm establishes the intensity functions associated with the polygons of the three-space structure. A basic assumption made in our current implementation is that the intensity of light reflected from a given planar surface is uniform over the entire surface. Although this does not hold true in the physical world, it is close enough for our purposes.

We selected a cosine function for the intensity of the reflected light from a given surface. A ray emanating from the center of the illumination source and passing through the centroid of the surface defines the angle of incidence of the light for the entire plane. The centroid is calculated by finding the average value of the x and y coordinates of the vertices of the polygon and solving for the corresponding z using the equation of the associated plane. The cosine of the angle between the surface of the polygon and the ray drawn to the illumination source is then given by:

      cos θ =|Aa + Bb + Cc| / sqrt(A2 + B2 + C2)sqrt(a2 + b2 + c2)

where the A, B, C are coefficients of the plane equation and a, b, c, are direction numbers of the ray. The intensity of the reflected light from the surface of a polygon not in shadow is given by:

    Ii = |cosθ| * Ri * RANGE + IMIN 

RANGE and IMIN are parameters controlled by the user which specify the total range of intensity to be used in the half-tone image and a translation of that range along the scale of the display hardware. Ri is a pseudo-reflectivity coefficient specified by the user for each polygon surface to allow some differentiation between surfaces. Those polygons indicated by selfshadow key squares are assigned a special intensity due to ambient light. This intensity is given by:

    Ii = | cos θ | * Ri * RANGE + IMIN

where A, B, C are coefficients of the equation of the plane of the self-shadowed polygon.

Once the intensity functions have been calculated, the processing of the key squares data set begins. In the original version of PIXSCANR used for non-shadow half-tone image presentations, it was a simple matter to transpose the key squares directly into data items to send to the display hardware. For the shadow half-tone system, the addition of the shadow key squares and the self-shadow key squares to the data set complicates the process immensely. Recall that the function of keeping track of which shadows are being pierced by the scanning ray on a scanline is now a proper operation to be performed by PIXSCANR.

Shadow tracking is accomplished in an n × n binary array, in which the (i, j)th position is a 1 if polygon j is casting a shadow on polygon i. As the shadow key squares are processed from the data file, the associated positions in the binary array are flipped from the in-shadow state to the out-of-shadow state. When a structure key square is processed, the intensity of the beam will be set at that point. Otherwise, the shadow will be indicated by using the minimum value of intensity for the image (IMIN).

The remainder of the operations performed by the PIXSCANR routine are concerned with the outputting of the final image on various photographic media. At CSL, we have the option of photographic recording on either Polaroid 3000 speed black and white film or 70mm RAR type 2479 recording film. The PIXSCANR routine also provides for inversion of the image in a complementing operation on the intensity functions. Further output capability is provided for making animation sequences on a 16mm animation camera.

RESULTS OF THE ALGORITHM

The two photographs of Figure 6 compare the wire-frame version of a three-space structure with the shadow half-tone presentation of the same structure. The object consists of three parts, all arranged to fit interlockingly within one another. The computation time for our implementation on the CDC 1604 computer was about 2 minutes, 20 seconds. Time for computation of the non-shadow half-tone presentation ran about 45 seconds.

Figure 6 - Two presentations of a three-space structure

Figure 7 shows the same view of an A-frame summer cottage, first with no cast shadows in part a. and then with cast shadows in part b. Non-shadow half-tone computation took 13.5 seconds and the shadow half-tone computation required about 27.0 seconds. Both cases indicate that time required for shadow half-tone computations is about twice the time required for the non-shadow case.

Figure 7a - A-Frame cottage with no shadows
Figure 7b - A-Frame cottage with shadows

As an example of how the same scene appears with the light source in various locations, Figure 8 shows the A-frame cottage in three different appearances. When only the light source position changes, only the shadow pairings and their subsequent computations change. Thus, future implementation of shadow half-tone algorithms may be able to save computation time by passing the key square data from scene to scene and computing only the shadow key squares and self-shadow key squares.

If the only change made from one presentation to another is a movement of the observer position, the converse of the above occurs. The shadow data does not change and only the key square data must be computed. Both of these attempts to reduce computation time by borrowing from past results will require increased amounts of storage and techniques for merging the old and new data sets to generate the final half-tone image.

Figure 8 - A-Frame with different light source positions

Our final presentation of Figure 9 shows a torus in free space back-lighted with respect to the observer position. The torus is constructed of 225 planar polygons. The time for computation of the non-shadow case was one minute, 25 seconds. The shadow half-tone image required about three minutes of computation. Approximately 700 shadow pairings were found to be useful by the detection stage of the algorithm. Only a small number were actually detected in the final image. In fact, only by back-lighting the torus could the complete image be processed because the number of visible shadow exceeded the limits of storage available during execution of the program. Efficient computation of the final image data will depend upon the availability of sufficient amounts of direct address core storage or an auxilliary storage medium which can be accessed in speeds approaching main memory access time.

Figure 9 - Back-lighted Torus

BIBLIOGRAPHY

1. C WYLIE, G ROMNEY, D EVANS A ERDAHL, Half-tone perspective drawings by computer, FJCC67 49-58.

2. J WARNOCK, A hidden line algorithm for half-tone picture presentation, Tech Report 4-5 University of Utah Salt Lake City Utah May 1969.

3. B ELSON, Color TV generated by computer to evaluate spaceborne systems, Aviation Week and Space Technology, October 1967.

4. J BOUKNIGHT, An improved procedure for generation of half-tone computer graphics presentations, Report R-432 Coordinated Science Laboratory University of Illinois Urbana Illinois September 1969.

5. A APPEL, Some techniques for shading machine renderings of solids,SJCC68 p 37--49 1968.

6. A APPEL, The notion of quantitative invisibility and the machine rendering of solids, ACM Vol 14 p 387-393 1967.

7. M KNOWLES, A shadow algorithm for computer graphics, Department of Computer Science File No 811 University of Illinois Urbana Illinois 1969.

More Computer Animation Papers 1964-1976