Game machine and game program
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 means 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 means for placing the partial shadow volume at shadow volume placement coordinates; and
shadow rendering means 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 means.
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 300 or the like. A CPU 10 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 16. Based on values in the stencil buffer 16, a shadow of the character object cast on the land object is rendered. Thus, a realistic shadow can be rendered with processing load required for shadow rendering processing being reduced.
43 Citations
22 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 means 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 means for placing the partial shadow volume at shadow volume placement coordinates; and
shadow rendering means 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 means. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. 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)
-
Specification