Method for coloring a polygon on a video display
First Claim
Patent Images
1. A method of coloring a polygon for simulating atmospheric conditions in a system having a processor, a memory, an input device, and a display device, comprising the steps of:
- selecting an atmospheric condition;
selecting characteristics corresponding to the selected atmospheric condition;
selecting at least one polygon to be displayed in response to the input device;
selecting a minimum dimming distance (dimval) which is the minimum distance that an observer must be from the selected polygon before the display of the polygon is affected by the atmospheric condition;
selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and with an angle with a light source;
storing the color palette in the memory;
selecting characteristics of a plurality of light sources in a simulated universe;
producing values (A) representative of the relationship between the selected characteristics of the light sources and the normal to the polygon;
selecting a point on the polygon;
calculating the distance (Z) between the observer and the selected point;
comparing the distance (Z) to the minimum dimming distance (dimval);
modifying the values (A) by a function of the dimming distance (dimval) and a selected one of the characteristics of the atmospheric condition if the distance (Z) is greater than the dimming distance (dimval);
producing an index in response to the modified values;
selecting a color from the color palette by addressing the memory in response to the index;
modifying the selected polygon in response to the selected color to represent a hazed condition; and
displaying the polygon on the display device using the selected color.
7 Assignments
0 Petitions
Accused Products
Abstract
A helicopter flight simulator having improvements in visual cues and modeling. The unique visual cues include terrain following shadows and hazing, the latter approximating a set of atmospheric conditions. The unique modeling features include a user selectable zoom, horizontal and vertical ground avoidance, and an autorotation model.
180 Citations
22 Claims
-
1. A method of coloring a polygon for simulating atmospheric conditions in a system having a processor, a memory, an input device, and a display device, comprising the steps of:
-
selecting an atmospheric condition; selecting characteristics corresponding to the selected atmospheric condition; selecting at least one polygon to be displayed in response to the input device; selecting a minimum dimming distance (dimval) which is the minimum distance that an observer must be from the selected polygon before the display of the polygon is affected by the atmospheric condition; selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and with an angle with a light source; storing the color palette in the memory; selecting characteristics of a plurality of light sources in a simulated universe; producing values (A) representative of the relationship between the selected characteristics of the light sources and the normal to the polygon; selecting a point on the polygon; calculating the distance (Z) between the observer and the selected point; comparing the distance (Z) to the minimum dimming distance (dimval); modifying the values (A) by a function of the dimming distance (dimval) and a selected one of the characteristics of the atmospheric condition if the distance (Z) is greater than the dimming distance (dimval); producing an index in response to the modified values; selecting a color from the color palette by addressing the memory in response to the index; modifying the selected polygon in response to the selected color to represent a hazed condition; and displaying the polygon on the display device using the selected color.
-
-
2. A method of coloring a polygon for simulating atmospheric conditions in a system having a processor, a memory, an input device, and a display device, comprising the steps of:
-
(a) selecting characteristics corresponding to a selected atmospheric condition; (b) selecting at least one polygon to be displayed in response to the input device; (c) selecting a minimum dimming distance (dimval) which is the minimum distance that an observer must be from the selected polygon before the display of the polygon is affected by the atmospheric condition; (d) selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and with an angle with a light source; (e) storing the color palette in the memory; (f) selecting characteristics of a plurality of light sources in a simulated universe; (g) producing values (A) representative of the relationship between the selected characteristics of the light sources and the normal to the polygon; (h) selecting a point on the polygon; (i) calculating the distance (Z) between the observer and the selected point; (j) comparing the distance (Z) to the minimum dimming distance (dimval) and proceeding to step (1) if the distance (Z) is less than the minimum dimming distance (dimval); (k) modifying the values (A) by a function of the dimming distance (dimval) and a selected one of the characteristics of the atmospheric condition; (l) producing an index in response to the values (A); (m) selecting a color from the color palette by addressing the memory in response to the index; (n) modifying the selected polygon in response to the selected color to represent a hazed condition; and (o) displaying the polygon on the display device using the selected color.
-
-
3. A computer-based method of coloring a polygon for simulating atmospheric conditions in a user-interactive, simulated universe wherein the polygon is displayed on a display device, comprising the steps of:
-
(a) selecting characteristics corresponding to a selected atmospheric condition; (b) selecting at least one polygon in the universe in response to a user input; (c) selecting a minimum dimming distance (dimval) which is the minimum distance that an observer must be from the selected polygon before the observer'"'"'s view of the polygon is affected by the atmospheric condition; (d) selecting a color palette for the polygon wherein each color of the palette is associated with a different distance between the polygon and the observer and with an angle with a light source; (e) selecting characteristics of a plurality of light source vectors in the simulated universe; (f) producing values (A) representative of the relationship between the selected characteristics of the light sources and the normal to the polygon; (g) selecting a point on the polygon; (h) calculating the distance (Z) between the observer and the selected point; (i) comparing the distance (Z) to the minimum dimming distance (dimval) and proceeding to step (k) if the distance (Z) is less than the minimum dimming distance (dimval); (j) modifying the values (A) by a function of the dimming distance (dimval) and a selected one of the characteristics of the atmospheric condition; (k) producing an index in response to the values (A); (l) selecting a color from the color palette in response to the index produced; (m) modifying the selected polygon in response to the selected color to represent a hazed condition; and (n) displaying the polygon on the display device using the selected color. - View Dependent Claims (4, 5, 6, 7, 8, 9)
-
-
10. A computer-based method of coloring a polygon in a user-interactive system, comprising the steps of:
-
selecting a simulated universe from a plurality of simulated universes in response to a user input, wherein each simulated universe has a type and a thickness of haze; selecting a dimming distance value (dimval) and a color change velocity value (kval) corresponding to the thickness and the type of haze positioned between an observer and the polygon; selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and angle with a light source; storing the color palette in a memory of the system; selecting the positions, directions and intensities of a plurality of light source vectors in the simulated universe; calculating a set of dot products between the light source vectors and the normal to the polygon; summing the dot products and adding a translation factor so as to produce a range of positive values (A); selecting a point on the polygon; calculating the distance (Z) between the observer and the selected point; comparing the distance (Z) to the dimming distance value (dimval); offsetting the range (A) by a function of the dimming distance value (dimval) and the color change velocity value (kval) if distance (Z) is greater than the dimming distance value (dimval); dividing the range (A) by the number of selected colors in the color palette, thereby producing a color palette index number; selecting a color from the color palette by addressing the color palette memory in response to the color palette index number; modifying the polygon in response to the selected color to represent a hazed condition; and drawing the polygon on a video display using the selected color. - View Dependent Claims (11)
-
-
12. A computer-based method of coloring a polygon for a hazing effect in a user-interactive system, comprising the steps of:
-
selecting a simulated universe from a plurality of simulated universes in response to a user input, wherein each simulated universe has a type and a thickness of haze; selecting a dimming distance value (dimval) and a color change velocity value (kval) corresponding to the thickness and the type of haze positioned between an observer and the polygon; selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and angle with a light source; storing the color palette in a memory of the system; selecting characteristics of a plurality of light sources in the simulated universe; producing a range of values representative of the relationship between the characteristics of the light sources and the normal to the polygon; selecting a point on the polygon; calculating the distance (Z) between the observer and the selected point; comparing the distance (Z) to the dimming distance (dimval); modifying the range of values by a function of the dimming distance value (dimval) and the color change velocity value (kval) if the distance (Z) is greater than the dimming distance value (dimval); producing an index in response to the modified values; selecting a color from the color palette by addressing the memory according to the index; modifying the polygon in response to the selected color to represent a hazed condition; and drawing the polygon using the selected color.
-
-
13. A computer-based method of coloring a polygon for simulating atmospheric conditions in a simulated universe, wherein at least a portion of the simulated universe is displayed on a display device of a user-interactive system, comprising the steps of:
-
(a) selecting a portion of the universe to be displayed in response to at least one user input, wherein the universe has a type and a thickness of haze, and wherein the selected universe portion comprises a plurality of polygons; (b) selecting one of the polygons; (c) selecting a dimming distance value (dimval) and a color change velocity value (kval) corresponding to the thickness and the type of haze positioned between an observer and the polygon; (d) selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and angle with a light source; (e) storing the color palette in a memory of the system; (f) selecting characteristics of a plurality of light source vectors in the simulated universe; (g) producing a range of values representative of the relationship between the light source vectors and the normal to the polygon; (h) selecting a point on the polygon; (i) calculating the distance (Z) between the observer and the selected point; (j) comparing the distance (Z) to the dimming distance (dimval) and proceeding to step (l) if the distance (Z) is less than the dimming distance (dimval); (k) modifying the range of values by a function of the dimming distance value (dimval) and the color change velocity value (kval); (l) producing an index in response to the modified values; (m) selecting a color from the color palette by addressing the memory according to the index; modifying the polygon in response to the selected color to represent a hazed condition; and (n) drawing the polygon using the selected color. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A method of coloring a polygon, comprising the steps of:
-
selecting a color palette for the polygon wherein each color of the palette is associated with a different distance from the polygon and angle with a light source; storing the color palette in a memory; selecting characteristics of a plurality of light sources in a computer generated universe; producing a range of values representative of the relationship between the characteristics of the light sources and the normal to the polygon; selecting a color from the color palette by addressing the color palette memory in response to the produced range;
modifying the polygon in response to the selected color; anddrawing the polygon on a video display using the selected color.
-
-
21. A computer-based method of coloring a polygon for simulating atmospheric conditions in a simulated universe, wherein at least a portion of the simulated universe is displayed on a display device of a user-interactive system, comprising the steps of:
-
providing a plurality of light sources in the universe; selecting a portion of the universe to be displayed in response to at least one user input, wherein the selected universe portion comprises a plurality of polygons; selecting one of the polygons; selecting an atmospheric condition; selecting a color from a color palette, said color representative of the effect that the selected atmospheric condition produces upon the one polygon; modifying the polygon in response to the selected color so as to represent the selected atmospheric condition; and displaying the modified polygon on the display device using the selected color. - View Dependent Claims (22)
-
Specification