Method and apparatus for generating figures with three degrees of freedom

Abstract: Apparatus and method for providing x, y and Z values so as to construct figures from unit vectors rotated in three space wherein the x, y and z values result from processing construction and rotation parameters according to the following relationships: ΔX′ = ΔX COS(G z ) +ΔY SIN(G z ) ΔY′ = -ΔX SIN(G z ) + ΔY COS (G z ) ΔZ′ = ΔZ where, ΔX = COS(R z ) COS(R y + G y ) ΔY = COS(R z ) SIN(R y + G y ) - SIN(G x ) - SIN(R z ) COS(G x ) ΔZ = COS(R z ) SIN(R y + G y ) + COS(G x ) + SIN(R z ) SIN(G x ) X = X + ΔX′, Y = Y + ΔY′, Z = Z + ΔZ′ and, R z , and R y , are construction rotation parameters for the Z and Y axes, respectively, and G y , G x and G z are global rotation parameters for the Y, X and Z axes, respectively. As used in a graphics display system, the invention provides offset values to an apparatus for summing offset values from a specified point. An apparatus for providing depth cuing related to the offset values may be advantageously included in an alternative embodiment for apparatus employing the principles of the invention. Processed x, y and z values, together with color cuing information may then be stored in a memory prior to displaying the figure.

Description: The invention is directed generally to a method and apparatus for constructing figures on a display device and, more particularly, to a method and apparatus for constructing figures, such as lines, arcs, and curves using chained three dimensional unit vectors for drawing characters, symbols, and wireframe objects on a display device such as a CRT screen. Display devices are used to convey information for many applications. In one application, advanced cockpit concepts use helmet mounted display devices to convey information to aircraft pilots. The information presented on such a display must be stabilized due to variations in the helmet and aircraft pitch, roll, and yaw motions. A large computational overhead is associated with the three dimensional nature of the required stabilization. Currently standard rotation algorithms in computer software are used to provide such stabilization. In addition to the stabilization requirements, human factor studies have shown that helmet mounted displays require a higher update rate than conventional head-down display and head-up display devices. Consequently, more computationally intensive information must be displayed in a shorter amount of time than is presently feasible using current devices. Current display processors construct display formats with two dimensional vectors using a Cartesian coordinate data base. These vectors can use various rotation computer algorithms in computer software to stabilize the image. Unfortunately, the algorithms implemented in software are too slow to meet system requirements for applications such as helmet mounted displays. Co-processors have been used to increase the computational efficiency of processors using such software. However, the use of co-processors does not significantly improve the time consuming rotation algorithms currently used to calculate each x,y point on a Cartesian grid. More computationally efficient data signal processors and data signal processor modules have successfully closed the gap on the time required to compute the x,y points, but have not provided the high update rates required for cockpit display applications. The invention as described in the independent claims provides a solution to the above-described computational problem because it does not require the processor to use a rotation algorithm to calculate each x,y point. The invention allows the processor to work at a higher level of abstraction without incurring time delays by handling the computational aspects of generating a display. This higher level of abstraction is gained by using polar vectors as building blocks to create straight lines, circular arcs, and arbitrary curves (such as Bezier curves). The abstraction is achieved by virtue of the method in which the three dimensional rotation equations are utilized by the invention. The method uses a unit vector along the x-axis rotated about the z-axis and then about the y-axis. Varying the rotations provides two functions: (a) Construction of any line, any arc, or any curve in three-dimensional space; and (b) Orientation of the constructed line or arc in any direction in three-dimensional space. In constructing display formats using the invention, a processor is required to specify only the size, orientation, and location of objects. The processor can then be used to manage the display format and is not required to process the point-by-point drawing of the display format. Preferred details and embodiments of the invention are described in the dependent claims. The invention balances hardware and software tasks to efficiently construct display formats that require high throughput and image stabilization. One advantage of the invention is that it allows objects to be created off-line as three dimensional icons and prestored symbols. It is yet another advantage of the invention that display format objects created using the invention have the inherent ability to be rotated, translated, and scaled. Yet another advantage of the invention is that the method of the invention is well suited for implementation in a pipeline architecture resulting in increased system throughput as compared to prior art systems. Yet another advantage and feature of the invention is that the display processor is not loaded by the computationally intensive display generation task as in prior art systems. Yet another advantage of the invention is that display figures may be occluded with display processors implementing a Z-buffer device. Yet another advantage of the invention is that display figures may be displayed with depth cuing for display processors that implement a depth cuing function using the Z-values resulting from the invention. Other objects, features and advantages of the invention will become apparent to those skilled in the art through the claims, description and drawings herein wherein like reference numerals refer to like elements. The invention as characterized in the independent claims discloses: apparatus and method for providing x, y and z values so as to construct figures from unit vectors rotated in three space wherein the x, y and z values result from processing construction and global rotation parameters according to the following relationships: ΔX′ = ΔX COS(G z ) + ΔY SIN(G z ) ΔY′ = -ΔX SIN(G z ) + ΔY COS (G z ) ΔZ′ = ΔZ where, ΔX = COS(R z ) COS(R y + G y ) ΔY = COS(R z ) SIN(R y + G y ) SIN(G x ) - SIN(R z ) COS(G x ) ΔZ = COS(R z ) SIN(R y + G y ) COS(G x ) + SIN(R z ) SIN(G x ) and, R z , and R y are construction rotation parameters and G y , G x and G z are global rotation parameters for the rotation about the X, Y, and Z axes. Preferred details are described in the dependent claims. As used in a graphics display system, the invention provides offset values to a means for summing offset values from a specified point. Means for providing depth cuing related to the offset values may be advantageously included in an alternative embodiment for apparatus employing the principles of the invention. Processed x, y and z values, together with color cuing information may then be stored in a memory prior to displaying the figure. FR-A 2 568 388 describes a graphic simulator fixed in space which is displaying a geometric image subjected to rotation or shifts in apparent viewing angle. The geometric image is in two dimensions having initial cartesian coordinates of X, Y, and final cartesian coordinates X 2 , Y 2 . The cartesian coordinates can be represented in polar coordinate systems as M (a vector) and Θ (an angle) for a first point 1 and as M 2 (a vector) and Θ 2 (an angle) for a second point 2. Using polar coordinate systems, the transformation from point 1 to point 2 is simplified into the transformation equations: Xvi = P cos[π/2+iπ/N+Θ 2 ] Yvi = P sin[π/2+iπ/N+Θ 2 ] These transformation equations are manipulated using a multiplier-adder connected to the input-memory/registers of a microprocessor. Simple two-dimensional polar coordinate transformations can be handled by such a system. Three-dimensional transformations, especially three-dimensional transformations, wherein the display is also moving, cannot be calculated quickly and efficiently with so simple a device. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates a unit vector oriented along the x-axis in three space and defines the rotation parameters. Figure 2(a) illustrates a line constructed by varying R y and R z for each unit vector. Figure 2(b) illustrates a line constructed with R y = R z = 0 and varying G y and G z . Figure 2(c) illustrates an example of a polygon constructed by varying R z . Figure 3 is an illustration of a functional block diagram of an embodiment of the invention. Figure 4 is a system block diagram showing an example of a system employing features of the invention. Figure 5 is a circuit diagram of one example of an embodiment of the invention. Figure 6 is an example of a compass rose. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring now to Figure 1, the rotation of the unit vector in three space is illustrated graphically. The method and apparatus of the invention for drawing three dimensional symbols and characters is based upon construction and rotation of a unit vector 10 oriented along the x-axis in three space as shown in Figure 1. Those skilled in the art will recognize that the x, y, z three space convention used in this description is used by way of an illustrative example. Other conventions may be used and will yield similar results using the methods and apparatus of the invention. However, for ease in explaining the invention, the convention for three space shown in Figure 1 will be used throughout this description of the invention with the understanding that the invention is not limited to use with this particular convention. Given a unit 10 in three space placed along the positive x-axis, then any three dimensional wireframe figure may be constructed by concatenating a series of such unit vectors after rotating each vector first about the z-axis and then about the y-axis. Once a wireframe figure is constructed with a series of rotated unit vectors, the wire frame object may be then manipulated by the steps of: (a) Change in the starting point for translation, (b) Adding a constant to the x-rotation value for rotation about the x-axis, (c) Adding a constant to the y-rotation value for rotation about the y-axis, and (d) Adding a constant to the z-rotation value for rotation about the z-axis. The mathematics used to construct and manipulate the wireframe object is given by the following equations: ΔX′ = ΔX COS(G z ) +ΔY SIN(G z ) ΔY′ = -ΔX SIN(G z ) +ΔY COS (G z ) ΔZ′ = ΔZ where, ΔX = COS(R z ) COS(R y + G y ) ΔY = COS(R z ) SIN(R y + G y ) SIN(G x ) - SIN(R z ) COS(G x ) ΔZ = COS(R z ) SIN(R y + G y ) COS(G x ) + SIN(R z ) SIN(G x ) and, R z , and R y are construction rotation parameters about the Z and Y axes, respectively, and G y , G x and G z are global rotation parameters for the Y, X and Z axes, respectively. The equations above are used to calculate the points defining the unit vectors as constructed by the method described above. An important feature of this method is the order of rotation. Figure 2(a) illustrates a line comprised of unit vectors 10 wherein the line is constructed by varying R y and R z for each unit vector. The vectors 10 may be rotated about the z-axis and then the y-axis to achieve any orientation. Once an orientation is chosen, the vectors 10 may be replicated any number of times to construct a line "n" units long where "n" represents any integer. An alternative method for displaying a line is shown in Figure 2(b). The line is constructed by varying G y and G z with R y = R z = 0. A curve or an arc may be constructed if a vector is replicated n number of times with a new orientation specified each time. Figure 2(c) shows an octagon 20 in three space constructed of unit vectors 10 wherein the octagon 20 has been constructed by varying R z . Note that finer rotation angles about z would give better approximations of a circle. The size of an object is controlled by the number of times a unit vector for a given orientation is repeated. In addition to the rotation of a unit vector in three space, the invention uses global rotation parameters to rotate lines, arcs, and curves as a whole. The global rotation parameters can also be used to rotate multiple lines, arcs and curves for symbol or character rotation in three space. Using global rotation parameters, therefore, one can store predefined characters in a programmable read-only memory (PROM), for example, read those characters out of memory and display them on a screen at any given rotation in three space. Figure 3 is an illustration of a functional block diagram of one embodiment of the computer algorithm of the invention depicting the order of operations for calculating the x, y and z points. In general, the calculation proceeds from a polar description to Cartesian coordinate offsets, ΔX′, ΔY' and ΔZ'. The offsets are accumulated from a starting point defined by construction parameters R z and R y and rotation parameters G y , G x and G z . The offsets are accumulated from a starting point to give the coordinate position of the point on the display device to be illuminated. Still referring to Figure 3, once the instruction has been decoded, the construction and rotation parameters are loaded into the three dimensional vector generator 30. Because of the order of rotation, the y-construction and rotation values may be added together first. The sum of the y-values along with the z-construction and x-rotation parameters are then presented to the sine/cosine look-up tables 32 and 34, respectively. The sine/cosine look-up tables may advantageously be PROMs of the type which is well known in the art. The outputs from the mathematical first stage 36, as shown by the dotted line are x, y, and z offset values. At this point the values construct an object in three space rotated in x and y only. The z-rotation parameter, G z , is used in the next stage 38 of sine/cosine tables to retrieve the z-rotation values. The last stage of mathematics 40 produces the final ΔX′, ΔY′ and ΔZ′ values for an object rotated in three space. Figure 4 is a system block diagram showing an example of a video display system employing the features of the invention. The system comprises a character font PROM 50, a dual port interface 52, a front-end controller 54, a 3D vector generator 30, sine/cosine PROMs 31, deflection accumulator 56, color look-up table 58, full frame memory 60 and a video bus 62. An instruction list is provided to the system by the display processor 70. The list is accessed and decoded through the interface 52 by the front-end controller 54. The front-end controller 54 may be any type of well-known processor, such as a microprocessor device or programmable gate array or other programmable logic device. When the display processor 70 is required to display a character or user defined symbol, the controller accesses the character font PROM. The character font PROM is loaded with predefined characters and fonts by the user of the system as required. Those skilled in the art will appreciate that the use of such character font PROMs are well known. The concatenation of the instruction and character font lists are then transmitted to the three dimensional vector generator 30 for processing. As the three dimensional vector generator processes the information, the offset values are summed in the deflection accumulator (56) which tracks the current position. Preloading the deflection accumulator 56 with a predetermined point on the display device- has the effect of translating the object. In other words, the offset values generated begin accumulating from the predetermined point on the screen. In the case of a color display, a color look-up table (58) may advantageously be used to provide depth cuing with any color. Depth cuing is accomplished by modulating intensity as a function of Z-depth, thereby rendering farther objects as having dimmer intensities. The output from the color look-up table 58 is stored in a full-frame memory 60 based on the values of the x, y outputs. Of course, in the case of a monochrome display screen, the color look-up table is not required. The full-frame memory (60) may be advantageously any high speed memory device suitable for video display applications. The full-frame memory 60 is scanned by a digital video bus 62 or digital-to-analog conversion and subsequent presentation on the display 100. Referring now to Figure 5, a more detailed circuit diagram of one example of an embodiment of the invention is shown. Terms and signal names used in Figure 5 are defined in Table I. The embodiment of the invention shown in Figure 5 comprises programmable array logic block (PAL) 200, adder 202, a second programmable array block 204, sine/cos PROM 206, a first feedback buffer 208, a second feedback circuit 210, a register 212, and output registers 220, 222, and 224. A second input programmable array logic block 230 is provided, as is a second adder 234, and a third programmable array logic block 236. Second and third sine/cosine PROMs 240 and 242 are also provided. Output multiplier/accumulators 250 are also included in the last stages of the circuit. The three dimensional vector generator shown in Figure 5 is controlled by state controller 300 and the components are connected through a plurality of data buses 310. Having described generally the elements comprising the embodiment of the invention shown in Figure 5, an example of the invention in operation will now be described in order to aid in understanding the invention. Under the control of state machine 300, instructions transmitted on data bus 310 are decoded and the appropriate enable signals are transmitted onto the pipeline. All enable signals are controlled based on the state of the three dimensional vector generator and the decoded instructions. This control is required to set up the correct data at the inputs of the arithmetic units 202 and 234 at the correct time. In operation, programmable array logic block 200, which includes registers 102 and 104, where register 102 is connected to the data bus 310 and comprises a 12 bit register used to provide an incremental change to the z-rotation angle. The output of register 102 is connected to the input of register 104 which loads information passed from register 102 into adder 202 in response to the execute instruction, EXE*. Adder 202 then takes data into its B-input and sums it with data from its A-input to supply the sum of Δ z plus information fed back from PAL 204 and data bus 106. PAL 204 is further comprised of a plurality of registers and flip-flops configured in a way to perform data pipeline operations in response to the LGZ*, ACU*, EXE* and SGR* functions. The output of PAL 204 is then processed as an address input to sine/cos PROM 206 which, in response to the OEB* control signal, then allows forvard flow of data to the deflection accumulators 250A and 250B. The deflection accumulators perform multiplication and addition operations as shown. The deflection accumulators further respond to the output accumulate control signal, OAC*, which enables an accumulation of the prior product terms with the current product terms as required by the equation. The output of accumulator 250A is loaded into the Z output register 220 and also fed back through feedback amplifier 208 to the input of 250A and an input of 250B. The remaining components operate in a similar manner in response to the control signals as outlined in Table I. An example of constructing a compass rose using the method of the invention is presented in Figure 6. The instruction list for constructing this object is shown below together with execution times for implementing the series of instructions using the method of the invention. This is an example of the type concatenated list described hereinabove with reference to the figures. The time associated with the three dimensional vector generator (3DVG) implementation column is based on a 12.5 MHz system clock. Following the 3DVG implementation list is a list entitled "A Polyline Implementation". The polyline implementation list is one that might be used with a prior art display processor using the Programmer's Hierarchical Interactive Graphics Standard. The times associated with the polyline implementation column are based on using a Type 68030 microprocessor using a 25 MHz clock. Note that the comparison does not include rotating the image. Since rotation is embedded into the 3DVG, there is no more calculation required to rotate the image. The polyline implementation would have to add a rotation algorithm to rotate the image. Therefore, the processor implementation throughput would decrease at least an order of magnitude due to the increased multiplications, additions, subtractions, and table look-ups. In the case of this example, the 3DVG provides nearly two orders of magnitude total improvement if rotation is considered, and nearly one order of magnitude total improvement if no rotation is considered. In one embodiment of the invention PALs used for PAL 200 were Model Type 2-EP610 as manufactured by Altera. PAL 204 was a Model Type 6-22V10 as manufactured by Cypress and accumulators 250 were MULT/ACC 7243 LSI chips as manufactured by IDT. Registers used as output registers for x, y and were Model 2-′374 16 bit registers. The state controller was a Type PAL3-22V10.

Claims: Apparatus for drawing figures in response to a processor instruction list (70) using three-dimensional unit vectors in a three axis system having x, y and z axes comprising: a) means (31 to 40) for decoding the instruction list; b) means (54) for providing enabling signals so as to execute the instruction list in a timed sequence; and c) means (30) for generating three-dimensional unit vectors responsively to the decoded instructions and enabling signals wherein the unit vectors generated include offset values for x, y and z axes generated according to the following relationships: ΔX' = ΔX COS(G z ) + ΔY SIN(G z ) ΔY' = - ΔX SIN(G z ) +Δ Y COS (G z ) ΔZ' = Δ Z where, ΔX = COS(R z ) COS(R y + G y ) ΔY = COS(R z ) SIN(R y + G y ) SIN(G x ) - SIN(R z ) COS(G x ) ΔZ = COS(R z ) SIN(R y + G y ) COS(G x ) + SIN(R z ) SIN(G x ) and, R z , and R y are construction rotation parameters for the Z and Y axes, respectively, and G y , G x and G z are global rotation parameters for the Y, X and Z axes, respectively. The apparatus of claim 1, comprising : a) means (52) for receiving data comprising construction rotation parameters (R) and global rotation parameters (G) for a vector; b) means (31) for providing sine and cosine values corresponding to said construction rotation parameters and global rotation parameters. The apparatus of Claim 2, wherein said means for providing sine and cosine values comprises a programmable read-only memory (31). The apparatus of Claim 1, 2 or 3, comprising means (58) for providing depth cuing for colors associated with the generated unit vectors. The apparatus of one of the preceding claims, wherein the decoding means comprises a state controller machine (300). The apparatus of one of the preceding claims, wherein the decoding means and enabling signal means are combined in a state controller (300). A method for drawing figures in response to a processor instruction list using three-dimensional unit vectors in a three axis system having X, Y and Z axes comprising the steps of: a) decoding the instruction list; b) providing enabling signals so as to execute the instruction list in a timed sequence; c) generating three-dimensional unit vectors responsively to the decoded instructions and enabling signals wherein the unit vectors generated include offset values for the X, Y and Z axes generated according to the following relationships: ΔX' = ΔX COS(G z ) + ΔY SIN(G z ) ΔY' = - Δ X SIN (G z ) + Δ Y COS (G z ) ΔZ' = ΔZ where, ΔX = COS(R z ) COS(R y + G y ) ΔY = COS(R z ) SIN(R y + G y ) SIN(G x ) - SIN(R z ) COS(G x ) ΔZ = COS(R z ) SIN(R y + G y ) COS(G x ) + SIN(R z ) SIN(G x ) and, R z , and R y are construction rotation parameters for the Z and Y axes, respectively, and G y , G x and G z are global rotation parameters for the Y, X and Z axes, respectively. The method of Claim 7, characterized by the further step of providing depth cuing for colors associated with the generated unit vectors.

Inventors: CLARK JOSEPH D, WEINGARTNER THOMAS A, CLARK, JOSEPH D., WEINGARTNER, THOMAS A.
Applicants: HONEYWELL INC, HONEYWELL INC.
Application year: 1990
Main classification: G06T11
IPC codes: G06T15, G06T11