Method and apparatus for providing improved fog effects in a graphics system
First Claim
1. A method for simulating fog in a graphics system, comprising:
- obtaining a pixel color for a pixel; and
blending a fog color with the pixel color;
wherein a percentage of fog color blended with the pixel color is determined based on the following fog density function;
1 Assignment
0 Petitions
Accused Products
Abstract
A graphics system including a custom graphics and audio processor produces exciting 2D and 3D graphics and surround sound. The system includes a graphics and audio processor including a 3D graphics pipeline and an audio digital signal processor. Improved fog simulation is provided by enabling backwards exponential and backwards exponential squared fog density functions to be used in the fog calculation. Improved exponential and exponential squared fog density functions are also provided which provide the ability to program a fog start value. A range adjustment function is used to adjust fog based on the X position of the pixels being rendered, thereby preventing range error as the line of sight moves away from the Z axis. An exemplary Fog Calculation Unit, as well as exemplary fog control functions and fog related registers, are also disclosed.
229 Citations
20 Claims
-
1. A method for simulating fog in a graphics system, comprising:
-
obtaining a pixel color for a pixel; and
blending a fog color with the pixel color;
wherein a percentage of fog color blended with the pixel color is determined based on the following fog density function;
- View Dependent Claims (2, 3, 4)
-
-
5. A method for simulating fog in a graphics system, comprising:
-
obtaining a pixel color for a pixel; and
blending a fog color with the pixel color;
wherein a percentage of fog color blended with the pixel color is determined based on the following fog density function;
- View Dependent Claims (6, 7, 8)
-
-
9. A graphics system, comprising:
-
a first section which obtains a pixel color for a pixel; and
a second section which blends a fog color with the pixel color;
wherein the second section determines a percentage of fog color blended with the pixel color based on the following fog density function;
-
-
10. The graphics system of 9, further including:
a third section which adjusts the eye-space z value (Ze) of the pixel based upon an X position (x) of the pixel prior to applying the fog density function. - View Dependent Claims (11, 12)
-
13. A graphics system, comprising:
-
a first section which obtains a pixel color for a pixel; and
a second section which blends a fog color with the pixel color;
wherein the second section determines a percentage of fog color blended with the pixel color based on the following fog density function;
Fog=2−
8*(Ze−
Z0)/Z1−
Z0)**2wherein Ze is an eye-space z value of the pixel, Z0 is an eye-space z value at which fog begins, and Z1 is an eye-space z value at which fog density substantially reaches a maximum value.
-
-
14. The graphics system of 13, further including:
a third section which adjusts the eye-space z value (Ze) of the pixel based upon an X position (x) of the pixel prior to applying the fog density function. - View Dependent Claims (15, 16)
-
17. In a graphics system having the ability to simulate fog based on a fog density function, the improvement comprising:
a fog calculation unit implementing the following fog density function;
-
18. In a graphics system having the ability to simulate fog based on a fog density function, the improvement comprising:
a fog calculation unit implementing the following fog density function;
-
19. A method for simulating fog in a graphics system, comprising:
-
obtaining a color for a location in an image to be rendered by the graphics system; and
blending a fog color with the color;
wherein a percentage of fog color blended with the color is determined based on the following fog density function;
-
-
20. A method for simulating fog in a graphics system, comprising:
-
obtaining a color for a location in an image to be rendered by the graphics system; and
blending a fog color with the color;
wherein a percentage of fog color blended with the color is determined based on the following fog density function;
-
Specification