Volumetric three-dimensional fog rendering technique
First Claim
1. A method for applying fog to an image, comprising:
- (a) calculating, by a host processor, a location of an eye-point relative to the image;
(b) based on the location of the eye-point, generating, by the host processor, a three-dimensional fog texture having a shape of a portion of a volumetric fog definition of the image by volumetric rendering of the volumetric fog definition;
(c) rendering, by a graphics processor, the image;
(d) defining, by the host processor, a blending function for the three-dimensional fog texture; and
(e) applying, by the graphics processor, the three-dimensional fog texture to the image by use of the blending function.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for volumetric three-dimensional fog rendering is provided. To add fog effects to an image, a host processor computes the location of the eye-point relative to the image to be fogged. Using the eye-point location, the host processor generates a three-dimensional fog texture and a blending function. The three-dimensional fog texture and blending function are downloaded or otherwise passed by the host processor to the graphics processor. The graphics processor then renders the primitives that make up the image. When rendering is complete, the graphics processor applies the tree-dimensional fog texture in an additional rendering pass. The method may then be repeated, to create animated fog effects such as swirling or wind-driven fog.
-
Citations
18 Claims
-
1. A method for applying fog to an image, comprising:
-
(a) calculating, by a host processor, a location of an eye-point relative to the image;
(b) based on the location of the eye-point, generating, by the host processor, a three-dimensional fog texture having a shape of a portion of a volumetric fog definition of the image by volumetric rendering of the volumetric fog definition;
(c) rendering, by a graphics processor, the image;
(d) defining, by the host processor, a blending function for the three-dimensional fog texture; and
(e) applying, by the graphics processor, the three-dimensional fog texture to the image by use of the blending function. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product comprising:
-
a computer usable medium having computer readable code embodied therein for adding fog to an image, the computer program product comprising;
first computer readable program code devices configured to cause a host processor to calculate a location of an eye-point relative to the image;
second computer readable program code devices configured to cause the host processor to, based on the location of the eye-point, generate a three-dimensional fog texture having a shape of a portion of a volumetric fog definition of the image by volumetric rendering of the volumetric fog definition;
third computer readable program code devices configured to cause a graphics processor to render the image;
fourth computer readable program code devices configured to cause the host processor to define a blending function; and
fifth computer readable program code devices configured to cause the graphics processor to apply the three-dimensional fog texture to the image using the blending function. - View Dependent Claims (9, 10, 11, 12)
-
-
13. An apparatus for adding fog to an image, comprising:
-
a first portion configured to calculate a location of an eye-point relative to the image;
a second portion configured to generate, based on the location of the eye-point, a three-dimensional fog texture having a shape of a portion of a volumetric fog definition of the image by volumetric rendering of the fog definition;
a third portion configured to render the image;
a fourth portion configured to define a blending function; and
a fifth portion configured to apply the three-dimensional fog texture to the image using the blending function. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification