Game machine and game program for displaying a first object casting a shadow formed by light from a light source on a second object on a virtual game space
First Claim
1. A game machine for carrying out game processing to display a state in which a first object casts a shadow formed by light from a light source on a second object in a virtual three-dimensional game space, the game machine comprising:
- partial shadow volume storage locations for storing a partial shadow volume formed based on a contour of the first object and a direction of the light from the light source and having a predetermined height in the direction of the light based on undulations of the second object;
partial shadow volume placing processing mechanism for placing the partial shadow volume at shadow volume placement coordinates; and
shadow rendering processing mechanism for rendering the shadow of the first object cast on the second object based on the partial shadow volume placed by the partial shadow volume placing processing mechanism.
1 Assignment
0 Petitions
Accused Products
Abstract
A partial shadow volume having a predetermined height defined by a contour of a character object and light coming from a light source is formed based on undulations of a land object, and is then stored in advance in a DVD-ROM or the like. A CPU reads this partial shadow volume for placing the partial shadow volume at a point of intersection of the land object and a line extending from character object placement coordinates to a light direction. The placed partial shadow volume is rendered by using the stencil buffer. Based on values in the stencil buffer, a shadow of the character object cast on the land object is rendered. Thus, a realistic shadow can be rendered with a reduced processing load for shadow rendering processing.
50 Citations
34 Claims
-
1. A game machine for carrying out game processing to display a state in which a first object casts a shadow formed by light from a light source on a second object in a virtual three-dimensional game space, the game machine comprising:
-
partial shadow volume storage locations for storing a partial shadow volume formed based on a contour of the first object and a direction of the light from the light source and having a predetermined height in the direction of the light based on undulations of the second object; partial shadow volume placing processing mechanism for placing the partial shadow volume at shadow volume placement coordinates; and shadow rendering processing mechanism for rendering the shadow of the first object cast on the second object based on the partial shadow volume placed by the partial shadow volume placing processing mechanism. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A computer readable medium encoded with a game program to be executed on a game machine for carrying out game processing to display a state in which a first object casts a shadow formed by light from a light source on a second object in a virtual three-dimensional game space, the game program to cause the game machine to execute steps comprising:
-
reading a partial shadow volume formed based on a contour of the first object and a direction of the light from the light source and having a predetermined height in the direction of the light based on undulations of the second object; placing the partial shadow volume at shadow volume placement coordinates; and rendering the shadow of the first object cast on the second object based on the partial shadow volume placed in partial shadow volume placing step. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. In a videogame, a method of generating a shadow formed by light from a light source and cast by a character object onto a land object, the method comprising:
-
storing a partial shadow volume formed based on a contour of the character object and a direction of the light from the light source, the stored partial shadow volume having a predetermined height in the direction of the light based on undulations of the land object; placing the partial shadow volume at shadow volume placement coordinates; and rendering the shadow of the character object cast on the land object based on the placed partial shadow volume. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30, 31, 32)
-
-
33. A game machine for carrying out game processing to display a state in which a first object casts a shadow formed by light from a light source on a second object in a virtual three-dimensional game space, the game machine comprising:
-
partial shadow volume storage locations for storing a partial shadow volume formed based on a contour of the first object and a direction of the light from the light source and having a predetermined height in the direction of the light; partial shadow volume placing processing mechanism for placing the partial shadow volume such that a distance between the first object and the partial shadow volume varies depending on relative positions of the first object and the second object; and shadow rendering processing mechanism for rendering the shadow of the first object cast on the second object based on the partial shadow volume placed by the partial shadow volume placing processing mechanism.
-
-
34. In a videogame, a method of generating a shadow formed by light from a light source and cast by a first object onto a second object, the method comprising:
-
storing a partial shadow volume formed based on a contour of the first object and a direction of the light from the light source, the stored partial shadow volume having a predetermined height in the direction of the light; placing the partial shadow volume such that a distance between the first object and the partial shadow volume varies depending on relative positions of the first object and the second object; and rendering the shadow of the first object cast on the second object based on the placed partial shadow volume.
-
Specification