首页>
外国专利>
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
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
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.
展开▼