Method and apparatus for providing improved fog effects in a...

Computer graphics processing and selective visual display system – Computer graphics processing – Animation

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C345S419000, C345S426000

Reexamination Certificate

active

06580430

ABSTRACT:

FIELD OF THE INVENTION
The present invention relates to computer graphics, and more particularly to interactive graphics systems such as home video game platforms. Still more particularly this invention relates to a system and method for providing improved fog effects in interactive three dimensional (3D) graphics systems.
BACKGROUND AND SUMMARY OF THE INVENTION
Many of us have seen films containing remarkably realistic dinosaurs, aliens, animated toys and other fanciful creatures. Such animations are made possible by computer graphics. Using such techniques, a computer graphics artist can specify how each object should look and how it should change in appearance over time, and a computer then models the objects and displays them on a display such as your television or a computer screen. The computer takes care of performing the many tasks required to make sure that each part of the displayed image is colored and shaped just right based on the position and orientation of each object in a scene, the direction in which light seems to strike each object, the surface texture of each object, and other factors.
Because computer graphics generation is complex, computer-generated three-dimensional graphics just a few years ago were mostly limited to expensive specialized flight simulators, high-end graphics workstations and supercomputers. The public saw some of the images generated by these computer systems in movies and expensive television advertisements, but most of us couldn't actually interact with the computers doing the graphics generation. All this has changed with the availability of relatively inexpensive 3D graphics platforms such as, for example, the Nintendo 64® and various 3D graphics cards now available for personal computers. It is now possible to interact with exciting 3D animations and simulations on relatively inexpensive computer graphics systems in your home or office.
A problem graphics system designers confronted in the past was to improve realism of the graphic system by closer modeling of the 3D virtual world in the graphics system to the real world. One problem with graphics systems is that they do not automatically take into account the effect that fog and other similar atmospheric conditions create in the real world. In other words, computer graphics images having a distinctive crystal clear quality throughout the image can appear unrealistic as compared to the real world. In the real world, far away objects look less clear to the viewer than do close objects. This difference in clarity results from the fact that fog, smog, mist, smoke, pollution and/or haze (hereafter simply “fog”) can exist in the atmosphere between the viewer and the object being viewed. As a result, the molecules making up the fog deflect light, thereby causing clarity of an object to be reduced as the distance from the viewer to the object increases. For example, in the real world, fog causes a tree that is close to a person to look clearer to that person than will a tree that is far away from that same person.
In contrast, in the virtual world of a computer graphics system, objects will all have the same clarity unless a mechanism is employed in the graphics system to simulate the effects of fog. Various solutions to this problem were offered. For example, many graphics systems have provided functions and techniques for incorporating atmospheric effects, such as fog, into a rendered scene in order to provide a more realistic view of the virtual world. For instance, the OpenGL graphics system, which provides a commonly used software interface to graphics hardware, enables a programmer to render atmospheric fog effects. OpenGL implements fogging by blending fog color with incoming fragments using a fog blending factor (f), as follows:
C=fC
in
+(1
−f
)
C
fog
This blending factor is computer using one of the following three equations:
Exponential (GL_EXP):
f=e
−(density*z)
  1)
Exponential-squared (GL_EXP2):
f=e
−(density*z)**2
  2)
Linear (GL_LINEAR):
f
=(end-
z
)/(end-start)  3)
where z is the eye-coordinate distance between the viewpoint and the fragment center. The values for density, start and end are all specified the programmer using a particular function (i.e. glfog*( )).
Linear fog is frequently used to, for example, implement intensity depth-cuing in which objects closer to the viewer are drawn at a higher intensity. The effect of intensity as a function of distance is achieved by blending the incoming fragments with a black fog color. The exponential fog equation has some physical basis; it is the result of integrating a uniform attenuation between the object and the viewer. The exponential function can be used to, for example, represent a number of atmospheric effects using different combinations of fog colors and fog density values. By using fog, the obscured visibility of objects near the far plane can be exploited to overcome various problems such as drawing time overruns, level-of-detail transition, and database paging. However, in practice it has been found that the exponential function does not attenuate distant fragments rapidly enough. Thus, the exponential-squared fog was introduced in OpenGlL to provide a sharper fall-off in visibility. The Direct3D (DirectX) interface to graphics hardware also provides linear, exponential and exponential squared for density equations.
As explained above, various fog mechanisms have been employed in the past in order to make a 3D graphics image appear more natural and realistic. However, while significant work has been done in the past, further improvements in connection with fog simulation are desirable.
The present invention solves this problem by providing improved techniques and arrangements that further enhance the use of fog in graphics systems. The instant invention provides improved fog functions that enable new, interesting and visually enjoyable effects to be achieved in a graphics system. Additionally, the instant invention provides the ability to provide a horizontal range adjustment for the fog, thereby increasing the fog density towards the edges of the screen in order to make the effect more realistic. The invention further provides a method of sampling fog or screen space z for a normal quad and z blit is quad, when only one fog value is defined per quad. An exemplary fog calculation unit is also provided for implementing fog in accordance with the instant invention.
In accordance with one aspect provided by the invention, a method and system for simulating fog in a graphics system is provided which includes, obtaining a pixel color for a pixel, and blending a fog color with the pixel color, wherein the percentage of fog color blended with the pixel color is determined based on one of the following two fog density functions:
Fog=2
−8*(Ze−Z0)/Z1−Z0) (Backwards Exponential)
Fog=2
−8*(Ze−Z0)/Z1−Z0)**2 (Backwards Exponential Squared)
wherein Ze is an eye-space z value of the pixel, Z
0
is an eye-space z value at which fog begins, and Z
1
is an eye-space z value at which fog density substantially reaches a maximum value.
A range adjustment is preferably made to the eye-space z value (Ze) prior to applying the fog density function in order to compensate for the change in range as the viewing angle increases in the x direction away from the Z axis.


REFERENCES:
patent: 4388620 (1983-06-01), Sherman
patent: 4425559 (1984-01-01), Sherman
patent: 4463380 (1984-07-01), Hooks, Jr.
patent: 4570233 (1986-02-01), Yan et al.
patent: 4658247 (1987-04-01), Gharachorloo
patent: 4725831 (1988-02-01), Coleman
patent: 4829295 (1989-05-01), Hiroyuki
patent: 4862392 (1989-08-01), Steiner
patent: 4866637 (1989-09-01), Gonzalez-Lopez et al.
patent: 4901064 (1990-02-01), Deering
patent: 4914729 (1990-04-01), Omori et al.
patent: 4945500 (1990-07-01), Deering
patent: 5136664 (1992-08-01), Bersack et al.
patent: 5170468 (1992-12-01), Shah et al.
patent: 5268996 (1993-12-01), Steiner et al.
patent: 5357579

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method and apparatus for providing improved fog effects in a... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and apparatus for providing improved fog effects in a..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and apparatus for providing improved fog effects in a... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3086875

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.