Game system and game program
First Claim
1. A game system for displaying a shadow of an object in a three-dimensional game space by using a shadow volume, the game system comprising:
- attitude changing means for changing an attitude of the object;
first shadow volume data storing means having previously stored therein first shadow volume data corresponding to a first attitude of the object;
second shadow volume data storing means having previously stored therein second volume data corresponding to a second attitude of the object which is different from the first attitude;
shadow volume setting means for setting the shadow volume based on the first shadow volume data when the attitude of the object, which is changed by the attitude changing means, at a certain point in time is identical to the first attitude and for setting the shadow volume based on the second shadow volume data when the attitude of the object at the certain point in time is identical to the second attitude; and
shadow drawing means for drawing a shadow of the object at the certain point in time based on the shadow volume set by the shadow volume setting means.
1 Assignment
0 Petitions
Accused Products
Abstract
A DVD-ROM 300 previously stores a plurality of shadow volume data corresponding to respective attitudes of an object which casts a shadow. A CPU 10 sets a shadow volume corresponding to the attitude of the object by performing interpolation based on the shadow volume data as necessary. Based on the thus-set shadow volume, a GPU 11 performs determination regarding a shadow region by using a stencil buffer 16. Based on the determination results, the GPU 11 updates luminance information of each pixel stored in a color buffer 14. According to this configuration, in the case where a game apparatus uses the shadow volume to draw a shadow, it is possible to reduce the processing load caused by setting the shadow volume while drawing a more realistic shadow corresponding to the attitude of the object which casts a shadow.
26 Citations
16 Claims
-
1. A game system for displaying a shadow of an object in a three-dimensional game space by using a shadow volume, the game system comprising:
-
attitude changing means for changing an attitude of the object;
first shadow volume data storing means having previously stored therein first shadow volume data corresponding to a first attitude of the object;
second shadow volume data storing means having previously stored therein second volume data corresponding to a second attitude of the object which is different from the first attitude;
shadow volume setting means for setting the shadow volume based on the first shadow volume data when the attitude of the object, which is changed by the attitude changing means, at a certain point in time is identical to the first attitude and for setting the shadow volume based on the second shadow volume data when the attitude of the object at the certain point in time is identical to the second attitude; and
shadow drawing means for drawing a shadow of the object at the certain point in time based on the shadow volume set by the shadow volume setting means. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A game program executed by a computer in a game apparatus for displaying a shadow of an object in a three-dimensional game space by using a shadow volume, the game program causing the computer to execute:
-
an attitude changing step for changing an attitude of the object;
a first shadow volume data reading step for reading a previously stored first shadow volume data corresponding to a first attitude of the object;
a second shadow volume data reading step for reading a previously stored second shadow volume data corresponding to a second attitude of the object which is different from the first attitude;
a shadow volume setting step for setting the shadow volume based on the first shadow volume data when the attitude of the object, which is changed by the attitude changing step, at a certain point in time is identical to the first attitude and for setting the shadow volume based on the second shadow volume data when the attitude of the object at the certain point in time is identical to the second attitude; and
a shadow drawing step for drawing a shadow of the object at the certain point in time based on the shadow volume set by the shadow volume setting step. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification