WO2007086209A1 - ゲーム装置、ゲーム装置の制御方法及び情報記憶媒体 - Google Patents

ゲーム装置、ゲーム装置の制御方法及び情報記憶媒体 Download PDF

Info

Publication number
WO2007086209A1
WO2007086209A1 PCT/JP2006/325183 JP2006325183W WO2007086209A1 WO 2007086209 A1 WO2007086209 A1 WO 2007086209A1 JP 2006325183 W JP2006325183 W JP 2006325183W WO 2007086209 A1 WO2007086209 A1 WO 2007086209A1
Authority
WO
WIPO (PCT)
Prior art keywords
shadow
drawing object
shadow drawing
transparency
light source
Prior art date
Application number
PCT/JP2006/325183
Other languages
English (en)
French (fr)
Inventor
Toshiyuki Tanaka
Original Assignee
Konami Digital Entertainment Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konami Digital Entertainment Co., Ltd. filed Critical Konami Digital Entertainment Co., Ltd.
Priority to CN2006800518974A priority Critical patent/CN101336123B/zh
Priority to EP06834895A priority patent/EP1977802A4/en
Priority to US12/162,216 priority patent/US8054309B2/en
Publication of WO2007086209A1 publication Critical patent/WO2007086209A1/ja

Links

Classifications

    • A63F13/10
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/60Shadow generation
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/6615Methods for processing data by generating or executing the game program for rendering three dimensional images using models with different levels of detail [LOD]
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/6646Methods for processing data by generating or executing the game program for rendering three dimensional images for the computation and display of the shadow of an object or character

Definitions

  • the present invention relates to a game device, a game device control method, and an information storage medium.
  • a game device that displays a state of viewing a virtual three-dimensional space in which various objects such as game characters are arranged with a given viewpoint power and executes a so-called three-dimensional game V is known.
  • shadows of various objects are generated by light emitted from a light source set in a virtual three-dimensional space, and the shadow changes the position of the light source and the shape (posture) of the object. It is possible to improve the reality of the game by expressing how it changes according to the game. However, in realizing the shadow expression as described above, it is necessary to reduce the processing load related to the shadow expression so that the execution of the process related to the essential part of the game is not hindered.
  • the present invention has been made in view of the above problems, and an object of the present invention is to make a shadow of an object by light emitted from a light source, and the shadow is the position of the light source and the shape (attitude) of the object. It is an object of the present invention to provide a game apparatus, a game apparatus control method, and an information storage medium that can realize a state of changing according to a change in the process while reducing a processing load.
  • a game device is a game device that displays a game screen representing a state in which a given viewpoint power is viewed in a virtual three-dimensional space in which light sources and objects are arranged.
  • a shadow drawing object non-object placement means for placing a shadow drawing object for drawing a shadow of the object in the virtual three-dimensional space; and the shadow drawing.
  • Transparency determining means for determining the transparency of each vertex of the polygon constituting the object based on the position of the light source, the position of the object and the shape data of the object, and the transparency determination Display control means for generating and displaying the game screen based on the transparency determined by the means, and the shadow drawing object placement means determines the number of polygons constituting the shadow drawing object. And a polygon number control means for controlling based on a distance between the viewpoint and the object.
  • the game device control method is a game device control method for displaying a game screen representing a virtual three-dimensional space in which a light source and an object are arranged as viewed from a given viewpoint.
  • a shadow drawing object placement step for placing a shadow drawing object for drawing a shadow of the object in the virtual three-dimensional space; and a vertex drawing of each polygon constituting the shadow drawing object.
  • Display control step for generating and displaying the game screen, and the shadow drawing object placement step includes the shadow drawing object.
  • the number of polygons that make up the object characterized in that it comprises a polygons number control step of controlling based, Te to the distance between said view object.
  • the program according to the present invention is a game machine for displaying a game screen representing a state where a given viewpoint power is viewed in a virtual three-dimensional space in which light sources and objects are arranged.
  • This is a program for causing a computer such as a game machine, an arcade game machine, a mobile phone, a personal digital assistant (PDA), or a personal computer to function, and the shadow drawing object for drawing the shadow of the object is the virtual object.
  • Shadow drawing object placement means arranged in a three-dimensional space, transparency of each vertex of the polygon constituting the shadow drawing object, position of the light source, position of the object, and shape data of the object
  • a transparency determining means for determining based on the transparency, and the game based on the transparency determined by the transparency determining means
  • the project placement means includes a polygon number control means for controlling the number of polygons constituting the shadow drawing object based on a distance between the viewpoint and the object.
  • An information storage medium is a computer-readable information storage medium storing the above program.
  • the program distribution apparatus is a program distribution apparatus that includes an information storage medium that records the program, reads the program from the information storage medium, and distributes the program.
  • a program distribution method is a program distribution method that includes an information storage medium storing the above-described program, reads out the program from the information storage medium, and distributes the program.
  • the present invention relates to a game apparatus that displays a game screen representing a state in which a virtual three-dimensional space in which light sources and objects are arranged is viewed from a given viewpoint.
  • a shadow drawing object for drawing the shadow of the object is arranged in a virtual three-dimensional space.
  • the transparency of each vertex of the polygon constituting the shadow drawing object is determined based on the position of the light source, the position of the object, and the shape data of the object, and based on the determined transparency.
  • a game screen is generated and displayed.
  • the number of polygons constituting the shadow drawing object is controlled based on the distance between the viewpoint and the above-described object.
  • the present invention it is possible to process a shadow of an object by light emitted from the light source, and expressing how the shadow changes in accordance with changes in the position of the light source and the shape (attitude) of the object. This can be achieved while reducing the load.
  • FIG. 1 is a diagram showing a hardware configuration of a game device according to the present embodiment.
  • FIG. 2 is a diagram illustrating an example of a virtual three-dimensional space.
  • FIG. 3 is a diagram illustrating an example of a shadow drawing object.
  • FIG. 4 is a diagram showing an example of a polygon number control table.
  • FIG. 5 is a flowchart showing main processing executed by the game device.
  • FIG. 6 is a flowchart showing processing related to a shadow drawing object.
  • FIG. 7 is a diagram showing an example of a shadow drawing object.
  • FIG. 8 is a diagram showing an example of a virtual three-dimensional space.
  • FIG. 9 is a diagram showing an overall configuration of a program distribution system according to another embodiment of the present invention.
  • FIG. 1 is a diagram showing a configuration of a game device according to an embodiment of the present invention.
  • the game apparatus 10 shown in the figure is configured by attaching a DVD-ROM 25 and a memory card 28 as information storage media to a consumer game machine 11 and further connecting a monitor 18 and a speaker 22.
  • a home television receiver is used for the monitor 18, and its built-in speaker is used for the speaker 22.
  • the home game machine 11 includes a bus 12, a microprocessor 14, an image processing unit 16, an audio processing unit 20, a DVD-ROM playback unit 24, a main memory 26, an input / output processing unit 30, and a controller 32. It is a known computer game system. Components other than the controller 32 are accommodated in the housing.
  • the node 12 is used for exchanging addresses and data among the units of the consumer game machine 11.
  • the microprocessor 14, the image processing unit 16, the main memory 26, and the input / output processing unit 30 are connected by a bus 12 so that mutual data communication is possible.
  • the microprocessor 14 controls each unit of the consumer game machine 11 based on an operating system stored in a ROM (not shown), a program read from the DVD-ROM 25, and data read from the memory card 28.
  • the main memory 26 includes, for example, RAM, and the program read from the DVD-ROM 25 and the data read from the memory card 28 are written as necessary.
  • the main memory 26 is also used for the work of the microphone processor 14.
  • the image processing unit 16 includes a VRAM, and draws a game screen on the VRAM based on image data sent from 14 microprocessors. Then, the content is converted into a video signal and output to the monitor 18 at a predetermined timing.
  • the input / output processing unit 30 is an interface for the microprocessor 14 to access the audio processing unit 20, the DVD-ROM playback unit 24, the memory card 28, and the controller 32. .
  • An audio processing unit 20, a DVD-ROM playback unit 24, a memory card 28, and a controller 32 are connected to the input / output processing unit 30.
  • the sound processing unit 20 includes a sound buffer, and reproduces various sound data such as game music, game sound effects, and messages read from the DVD-ROM 25 and stored in the sound buffer. Output from speaker 22.
  • the DVD-ROM playback unit 24 reads a program recorded on the DVD-ROM 25 in accordance with an instruction from the microprocessor 14. It should be noted that any other information storage medium such as a CD-ROM or ROM card may be used here in order to supply the program to the consumer game machine 11 using a DVD-ROM 25. Further, a remote geopower program may be supplied to the consumer game machine 11 via a data communication network such as the Internet.
  • the memory card 28 includes a nonvolatile memory (for example, EEPROM).
  • the home game machine 11 has a plurality of memory card slots for installing memory cards 28, and a plurality of memory cards 28 can be installed at the same time.
  • the memory card 28 is configured to be removable from the memory card slot, and is used for storing various types of game data such as saved data.
  • the controller 32 is a general-purpose operation input means for the player to input various game operations.
  • the input / output processing unit 30 scans the state of each unit of the controller 32 at regular intervals (for example, every 1 Z 60 seconds), and passes an operation signal representing the scan result to the microphone processor 14 via the bus 12.
  • the microprocessor 14 determines the player's game operation based on the operation signal.
  • the home game machine 11 is configured so that a plurality of controllers 32 can be connected, and the microprocessor 14 performs game control based on an operation signal input from each controller 32.
  • a virtual three-dimensional space (virtual three-dimensional game space) is constructed in main memory 26.
  • FIG. 2 shows a part of the virtual three-dimensional space constructed in the main memory 26.
  • a field object 42 (first object) is arranged in the virtual three-dimensional space 40.
  • the field object 42 is an object representing, for example, the ground surface or the floor surface.
  • the character object 44 (second object G; objects that create shadows) are placed.
  • the state (position, shape (posture), etc.) of the character object 44 changes according to an operation on the controller 32, for example.
  • a virtual camera 46 is set in the virtual three-dimensional space 40.
  • a game screen representing the virtual three-dimensional space 40 viewed from the virtual camera 46 is generated and displayed on the monitor 18.
  • a light source 48 is set in the virtual three-dimensional space 40.
  • the shadow 45 of the character object 44 is formed on the field object 42 by the light emitted from the light source 48, and that the shadow 45 changes according to changes in the position of the light source 48, the state of the character object 44, etc. A technique for expressing will be described.
  • the shadow drawing object 50 is arranged in the virtual three-dimensional space 40 in order to display the shadow 45 of the character object 44.
  • FIG. 3 shows an example of the shadow drawing object 50.
  • the shadow drawing object 50 is a plate-like rectangular object and is an object smaller than the field object 42.
  • the shadow drawing object 50 is divided into polygons having a fine enough size to represent the shadow 45 of the character object 44, and is composed of polygons that are finer than the polygons forming the field object 42.
  • the shadow drawing object 50 is arranged so as to be superimposed on a part of the field object 42 based on the position of the character object 44. That is, the arrangement position of the shadow drawing object 50 is determined based on the current position of the character object 44, and the shadow drawing object 50 follows the character object 44. In the present embodiment, the arrangement position of the shadow drawing object 50 is determined so that the position of the representative vertex P0 of the shadow drawing object 50 and the foot position F of the character object 44 coincide.
  • the orientation (posture) of the shadow drawing object 50 is determined based on the positions of the character object 44 and the light source 48.
  • the character is calculated from the reference direction of the shadow drawing object 50 (in the case of the present embodiment, the Y-axis direction in FIG. 3) and the position of the light source 48 projected onto the field object 42. Foot position of object 44
  • the direction of the shadow drawing object 50 is determined so as to match the direction to F. For this reason, the direction of the shadow drawing object 50 changes according to the change in the relative positional relationship between the character object 44 and the light source 48 (change in the XW axis direction or the ZW axis direction).
  • the shadow drawing object 50 may be arranged in a state slightly lifted from the field object 42, and may be arranged at the same height (YW axis coordinate value) as the field object 42. May be. In the latter case, when the game screen is generated, the shadow object 50 may be drawn after the field object 42 is drawn.
  • the color (for example, RGB value) of each vertex of the polygon constituting the shadow drawing object 50 is set to black (see vertices P0 to P4 in FIG. 3). Further, the alpha value (semi-transparent synthesis rate, transparency) of each vertex of the polygon constituting the shadow drawing object 50 is determined based on the positions of the character object 44 and the light source 48, and the like. Specifically, the area on the shadow drawing object 50 where the shadow 45 of the character object 44 should be represented (the shaded area in FIG. 3; hereinafter referred to as the shadow area).
  • the shadow drawing object 50 By arranging the shadow drawing object 50 in the virtual three-dimensional space 40, an image representing the field object 42 viewed from the virtual camera 46 and a shadow drawing object are displayed on the game screen. An image that shows how 50 is viewed from the virtual camera 46 and is translucently synthesized based on the alpha value set for each vertex of the shadow drawing object 50 Is displayed. As a result, a state in which the shadow 45 of the character object 44 is formed on the field object 42 by the light emitted from the light source 48 is displayed on the game screen.
  • the game screen shows that 45 changes according to changes in the position of light source 48 and the state of character object 44.
  • the number of polygons of the shadow drawing object 50 changes according to the distance between the (viewpoint position) and the point of view.
  • the game apparatus 10 stores a polygon number control table as shown in FIG. 4, for example. Based on the polygon number control table, the number of polygons of the shadow drawing object 50 changes.
  • the polygon number control table is a table in which the range of the distance d between the character object 44 and the virtual camera 46 is associated with the number of polygons (number of divisions) of the shadow drawing object 50.
  • the division number nx indicates the division number (polygon number) of the shadow drawing object 50 in the X-axis direction (see FIG. 3)
  • the division number ny indicates the Y axis of the shadow drawing object 50.
  • the number of divisions (number of polygons) in the direction see Fig.
  • the division number nx is 10 and the division number ny is 14.
  • the values of the division numbers nx and ny are set so as to decrease as the distance d increases.
  • the distance between the character object 44 and the virtual camera 46 increases, the shadow 45 of the character object 44 appears smaller on the game screen, so the appearance of the shadow 45 of the character object 44 does not appear finely. there is no problem. That is, as the distance between the character object 44 and the virtual camera 46 increases, there is no apparent problem even if the number of polygons of the shadow drawing object 50 is reduced.
  • the polygon count control table is set so that the number of polygons of the shadow drawing object 50 decreases as the distance between the character object 44 and the virtual camera 46 increases. Note that a predetermined calculation is performed based on the distance d between the character object 44 and the virtual camera 46.
  • the values of the division numbers nx and ny may be calculated as follows. In this case, the polygon number control table is not necessary. In this way, change the number of polygons of the shadow drawing object 50.
  • the number of polygons of the shadow drawing object 50 changes according to the distance between the character object 44 and the virtual camera 46 as described above.
  • the shadow drawing object 50 is divided into fine polygons. In this case, the shadow 45 of the character object 44 is finely displayed on the game screen.
  • the shadow drawing object 50 is Divided into coarse polygons. In this case, the shadow 45 of the character object 44 is not accurately displayed on the game screen, and the processing load related to the shadow expression can be reduced.
  • FIG. 5 is a flowchart showing main processing executed at predetermined time intervals (for example, every 1Z60 seconds) in game device 10.
  • the processing shown in the figure is realized by the microprocessor 14 executing a program read from the DVD-ROM 25.
  • the game apparatus 10 first executes environmental processing (S101).
  • S101 environmental processing
  • Static objects are objects that do not change the position of a building or the like.
  • a dynamic object is an object whose position and posture change like a character object 44 that is a player's operation target.
  • the position, orientation, and angle of view of the virtual camera 46 are also calculated.
  • the position (viewpoint coordinates) of the virtual power camera 46 is set so as to follow the character object 44 based on the position of the character object 44 to be operated by the player.
  • the direction (line-of-sight direction) of the virtual camera 46 is set so as to face the representative point of the character object 44 to be operated by the player.
  • a fixed value is used for the angle of view.
  • the game apparatus 10 performs geometry processing (S102).
  • geometry processing The coordinate transformation is performed from the world coordinate system (XW, YW, ZW) to the viewpoint coordinate system, that is, the coordinate system with the viewpoint coordinate as the origin. Further, the color information of the vertexes of the polygons constituting each object is calculated based on the information on the light source 48 (color and position of the light source 48). In addition, clipping processing is also performed.
  • rendering processing is executed in the game apparatus 10 (S103).
  • the vertex coordinates, vertex color information, texture coordinates, and the like of each polygon within the imaging range of the microprocessor 14 force virtual camera 46 are passed to the image processing unit 16.
  • the image processing unit 16 forms an image representing the game screen on the VRAM based on the information. This image is formed by converting each object described in the viewpoint coordinate system to the screen coordinate system.
  • the image formed in the VRAM is output to the monitor 18 at a predetermined timing.
  • FIG. 6 is a flowchart specifically showing processing related to the shadow drawing object 50. This process is executed as a part of the environment process (S101) or the geometry process (S102), for example. This process is executed for each object (character object 44) that casts a shadow.
  • the position and orientation of the shadow drawing object 50 are determined (S201).
  • the position of the shadow drawing object 50 is determined such that the position of the representative vertex PO of the shadow drawing object 50 and the foot position F of the character object 44 coincide.
  • the direction of the shadow drawing object 50 includes the reference direction of the shadow drawing object 50, the direction from the orthogonal projection of the position of the light source 48 onto the field object 42, and the direction to the foot position F of the character object 44. It is determined to match.
  • the number of polygons of the shadow drawing object 50 is determined (S202).
  • the distance between the character object 44 and the virtual camera 46 is acquired.
  • the polygon number control table (Fig. 4) is referred to, and the values of nx and ny associated with the range including the distance are obtained.
  • the number of divisions of the shadow drawing object 50 in the X-axis and Y-axis directions is determined, and the number of polygons of the shadow drawing object 50 is determined.
  • a shadow area in the shadow drawing object 50 is specified (S203). Decided by S201 Based on the specified position and orientation of the shadow drawing object 50, the position of the light source 48, the position of the character object 44, the shape data of the character object 44, etc., the shadow drawing is performed by a known algorithm such as shadow volume. The shadow area in the object 50 is calculated.
  • the alpha value of each vertex of the polygon constituting the shadow drawing object 50 is set (S204). That is, for each vertex of the polygon constituting the shadow drawing object 50, it is determined whether or not the vertex is included in the shadow region, and the alpha value is set according to the determination result.
  • the alpha value of vertices included in the shadow area is set to 255
  • the alpha value of vertices not included in the shadow area is set to 0.
  • the shadow 45 of the character object 44 is formed on the field object 42 by the light emitted from the light source 48, and the position of the shadow 45 force light source 48 and the state of the character object 44 are The state of changing in response to changes such as is expressed.
  • the shadow expression as described above it is possible to divide the field object 42 into fine polygons. In this case, there is a problem that the data amount of the field object 42 becomes large.
  • the shadow expression as described above is realized while suppressing an increase in the amount of data!
  • the number of polygons constituting the shadow drawing object 50 (in other words, the number of polygons constituting the shadow drawing object 50). Fineness) is changing. For this reason, in the game apparatus 10, the shadow expression as described above is realized while reducing the processing load.
  • the shadow 45 of the character object 44 becomes long, so that it does not fit within the shadow drawing object 50. There is. In such a case, the shadow 45 of the character object 44 is represented in an incomplete state, which may make the player feel uncomfortable.
  • the alpha value of the vertex in the shadow area of the shadow drawing object 50 may be set to a value based on the distance of the position force of the character object 44.
  • a constant value for example, 255
  • it may be set to a value based on the distance of the position force of the character object 44.
  • Good For example, as shown in FIG. Gradually or stepwise as the alpha value of the vertex in the area moves away from the position of the character object 44 to a predetermined maximum value (255 in the example in the figure) force to a predetermined minimum value (32 in the example in the figure) You may make it set so that it may become small. In this way, the shadow 45 of the character object 44 is displayed in gradation on the game screen.
  • the shadow 45 of the character object 44 is displayed so as to fade out gradually or stepwise as it moves away from the character object 44.
  • the shadow 45 of the character object 44 is blurred and displayed as the character object 44 moves away from the character object 44, so that the shadow 45 of the character object 44 does not fit in the shadow drawing object 50.
  • the color (brightness) of the vertices in the shadow area of the shadow drawing object 50 is changed gradually or stepwise as the position force of the character object 44 is also separated, so that the character object 44 is displayed on the game screen. Let's make the shadow 45 appear gradation!
  • the length of the shadow drawing object 50 (the length in the Y-axis direction in FIG. 3) may be changed according to the height of the light source 48 (YW axis coordinate value). That is, the shadow drawing object 50 having a length corresponding to the height of the light source 48 may be arranged in the virtual three-dimensional space 40. For example, a table in which the range of the height of the light source 48 is associated with the length of the shadow drawing object 50 may be stored. The length of the shadow drawing object 50 may be determined based on this table. Further, for example, the length of the shadow drawing object 50 may be determined by performing a predetermined calculation based on the height of the light source 48. In this way, it is possible to prevent the shadow 45 of the character object 44 from being stored in the shadow drawing object 50, and to prevent the player from feeling the above-mentioned discomfort. Become.
  • a plurality of shadow drawing objects 50 may be arranged for one character object 44.
  • a shadow drawing object 50 corresponding to the light source 48 is added for each light source 48. , Its light source 48 and character You can arrange them based on the position of object 44! ,.
  • a force that increases the shadow drawing object 50 as compared to the present embodiment may be arranged with a shadow drawing object 50 as shown in FIG.
  • the shadow drawing object 50 that can cover the position force of the character object 44 within the range of the predetermined distance matches the foot position F of the character object 44 and the center point of the shadow drawing object 50. You may make it arrange
  • each character object 44 is associated with each character object 44 for shadow drawing.
  • the length of the object 50 (the length in the Y-axis direction in FIG. 3) may be stored.
  • the length of the shadow drawing object 50 may be changed for each character object 44 in accordance with the height of the character object 44.
  • a table in which the range of the height of the character object 44 is associated with the length of the shadow drawing object 50 may be stored. Based on this table, the length of the shadow drawing object 50 may be changed for each character object 44 according to the height of the character object 44 !.
  • the object that creates the shadow is not limited to the character object 44, and may be another type of object.
  • it may be a static object such as a building.
  • FIG. 9 is a diagram showing the overall configuration of a program distribution system using a communication network.
  • the program distribution method according to the present invention will be described with reference to FIG.
  • the program distribution system 100 includes a game database 102, a server 104, a communication network 106, a personal computer 108, a consumer game machine 110, and a PDA (personal digital assistant) 112.
  • the game database 102 and The server 104 constitutes a program distribution device 114.
  • the communication network 106 includes, for example, the Internet and a cable television network.
  • a game database (information storage medium) 102 stores a program similar to the storage content of the DVD-ROM 25. Then, when a consumer makes a game distribution request using the computer 108, the home game machine 110, the PDA 112, or the like, it is transmitted to the server 104 via the communication network 106. Then, the server 104 reads the program from the game database 102 in response to the game distribution request, and transmits it to the game distribution request source such as the personal computer 108, the home game machine 110, and the PDA 112. Here, it may be transmitted unilaterally from the power server 104 adapted to deliver a game in response to a game delivery request.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

 光源から発せられる光によってオブジェクトの影ができ、その影が光源の位置やそのオブジェクトの形状(姿勢)等の変化に応じて変化する様子を表現することを、処理負荷の軽減を図りつつ実現できるようになるゲーム装置を提供する。  本発明は、光源及びオブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表示するゲーム装置に関するものである。本発明では、上記オブジェクトの影を描画するための影描画用オブジェクトが配置される。影描画用オブジェクトの各頂点の透過度は、光源の位置と上記オブジェクトの位置及び形状データとに基づいて決定され、その決定された透過度に基づいてゲーム画面が生成される。影描画用オブジェクトを構成するポリゴンの数は視点及び上記オブジェクトとの間の距離に基づいて制御される。

Description

明 細 書
ゲーム装置、ゲーム装置の制御方法及び情報記憶媒体
技術分野
[0001] 本発明はゲーム装置、ゲーム装置の制御方法及び情報記憶媒体に関する。
背景技術
[0002] ゲームキャラクタ等の各種オブジェクトが配置された仮想 3次元空間を所与の視点 力 見た様子を表示し、 V、わゆる 3次元ゲームを実行するゲーム装置が知られて 、る 特許文献 1:特開 2005— 342120号公報
発明の開示
発明が解決しょうとする課題
[0003] 上記のようなゲーム装置では、仮想 3次元空間に設定される光源から発せられる光 によって各種オブジェクトの影ができ、その影が光源の位置やそのオブジェクトの形 状 (姿勢)等の変化に応じて変化する様子を表現することによって、ゲームのリアリテ ィを向上させることが可能になる。ただし、上記のような影表現を実現するにあたって は、ゲームの本質的部分に係る処理の実行を妨げてしまうことがないように、影表現 に係る処理負荷の軽減を図る必要がある。
[0004] 本発明は上記課題に鑑みてなされたものであって、その目的は、光源から発せられ る光によってオブジェクトの影ができ、その影が光源の位置やそのオブジェクトの形 状 (姿勢)等の変化に応じて変化する様子を表現することを、処理負荷の軽減を図り つつ実現できるようになるゲーム装置、ゲーム装置の制御方法及び情報記憶媒体を 提供することにある。
課題を解決するための手段
[0005] 上記課題を解決するために、本発明に係るゲーム装置は、光源及びオブジェクトが 配置された仮想 3次元空間を所与の視点力 見た様子を表すゲーム画面を表示す るゲーム装置にぉ 、て、前記オブジェクトの影を描画するための影描画用ォブジェク トを前記仮想 3次元空間に配置する影描画用オブジェ外配置手段と、前記影描画 用オブジェクトを構成するポリゴンの各頂点の透過度を、前記光源の位置と、前記ォ ブジエタトの位置と、前記オブジェクトの形状データと、に基づいて決定する透過度決 定手段と、前記透過度決定手段によって決定された透過度に基づ 、て前記ゲーム 画面を生成し、表示させる表示制御手段と、を含み、前記影描画用オブジェクト配置 手段は、前記影描画用オブジェクトを構成するポリゴンの数を、前記視点と前記ォブ ジェタトとの間の距離に基づいて制御するポリゴン数制御手段を含むことを特徴とす る。
[0006] また、本発明に係るゲーム装置の制御方法は、光源及びオブジェクトが配置された 仮想 3次元空間を所与の視点から見た様子を表すゲーム画面を表示するゲーム装 置の制御方法にぉ 、て、前記オブジェクトの影を描画するための影描画用オブジェ タトを前記仮想 3次元空間に配置するための影描画用オブジェクト配置ステップと、 前記影描画用オブジェクトを構成するポリゴンの各頂点の透過度を、前記光源の位 置と、前記オブジェクトの位置と、前記オブジェクトの形状データと、に基づいて決定 するための透過度決定ステップと、前記透過度決定ステップによって決定された透過 度に基づいて前記ゲーム画面を生成し、表示させるための表示制御ステップと、を含 み、前記影描画用オブジェクト配置ステップは、前記影描画用オブジェクトを構成す るポリゴンの数を、前記視点と前記オブジェクトとの間の距離に基づ 、て制御するポリ ゴン数制御ステップを含むことを特徴とする。
[0007] また、本発明に係るプログラムは、光源及びオブジェクトが配置された仮想 3次元空 間を所与の視点力 見た様子を表すゲーム画面を表示するゲーム装置として、家庭 用ゲーム機、携帯用ゲーム機、業務用ゲーム機、携帯電話機、携帯情報端末 (PDA )やパーソナルコンピュータなどのコンピュータを機能させるためのプログラムであつ て、前記オブジェクトの影を描画するための影描画用オブジェクトを前記仮想 3次元 空間に配置する影描画用オブジェクト配置手段、前記影描画用オブジェクトを構成 するポリゴンの各頂点の透過度を、前記光源の位置と、前記オブジェクトの位置と、 前記オブジェクトの形状データと、に基づいて決定する透過度決定手段、及び、前記 透過度決定手段によって決定された透過度に基づいて前記ゲーム画面を生成し、 表示させる表示制御手段、として前記コンピュータを機能させ、前記影描画用ォブジ ェクト配置手段は、前記影描画用オブジェクトを構成するポリゴンの数を、前記視点と 前記オブジェクトとの間の距離に基づいて制御するポリゴン数制御手段を含むことを 特徴とするプログラムである。
[0008] また、本発明に係る情報記憶媒体は、上記プログラムを記録したコンピュータ読み 取り可能な情報記憶媒体である。また、本発明に係るプログラム配信装置は、上記プ ログラムを記録した情報記憶媒体を備え、当該情報記憶媒体から上記プログラムを 読み出し、配信するプログラム配信装置である。また、本発明に係るプログラム配信 方法は、上記プログラムを記録した情報記憶媒体を備え、当該情報記憶媒体から上 記プログラムを読み出し、配信するプログラム配信方法である。
[0009] 本発明は、光源及びオブジェクトが配置された仮想 3次元空間を所与の視点から見 た様子を表すゲーム画面を表示するゲーム装置に関するものである。本発明では、 上記オブジェクトの影を描画するための影描画用オブジェクトが仮想 3次元空間に配 置される。また、影描画用オブジェクトを構成するポリゴンの各頂点の透過度が、光源 の位置と、上記オブジェクトの位置と、上記オブジェクトの形状データと、に基づいて 決定され、その決定された透過度に基づいてゲーム画面が生成され、表示される。 特に、本発明では、影描画用オブジェクトを構成するポリゴンの数が、視点と上記ォ ブジエタトとの間の距離に基づいて制御される。本発明によれば、光源から発せられ る光によってオブジェクトの影ができ、その影が光源の位置やそのオブジェクトの形 状 (姿勢)等の変化に応じて変化する様子を表現することを、処理負荷の軽減を図り つつ実現できるようになる。
図面の簡単な説明
[0010] [図 1]本実施の形態に係るゲーム装置のハードウ ア構成を示す図である。
[図 2]仮想 3次元空間の一例を示す図である。
[図 3]影描画用オブジェクトの一例を示す図である。
[図 4]ポリゴン数制御テーブルの一例を示す図である。
[図 5]ゲーム装置で実行されるメイン処理を示すフロー図である。
[図 6]影描画用オブジェクトに関連する処理を示すフロー図である。
[図 7]影描画用オブジェクトの一例を示す図である。 [図 8]仮想 3次元空間の一例を示す図である。
[図 9]本発明の他の実施形態に係るプログラム配信システムの全体構成を示す図で ある。
発明を実施するための最良の形態
[0011] 以下、本発明の実施形態の一例について図面に基づき詳細に説明する。
[0012] 図 1は、本発明の実施形態に係るゲーム装置の構成を示す図である。同図に示す ゲーム装置 10は、家庭用ゲーム機 11に情報記憶媒体たる DVD— ROM25及びメ モリカード 28が装着され、さらにモニタ 18及びスピーカ 22が接続されることによって 構成される。例えば、モニタ 18には家庭用テレビ受像機が用いられ、スピーカ 22に はその内蔵スピーカが用いられる。
[0013] 家庭用ゲーム機 11は、バス 12、マイクロプロセッサ 14、画像処理部 16、音声処理 部 20、 DVD— ROM再生部 24、主記憶 26、入出力処理部 30及びコントローラ 32を 含んで構成される公知のコンピュータゲームシステムである。コントローラ 32以外の 構成要素は筐体内に収容される。
[0014] ノ ス 12はアドレス及びデータを家庭用ゲーム機 11の各部でやり取りするためのも のである。マイクロプロセッサ 14、画像処理部 16、主記憶 26及び入出力処理部 30 は、バス 12によって相互データ通信可能に接続される。
[0015] マイクロプロセッサ 14は、図示しない ROMに格納されるオペレーティングシステム 、 DVD—ROM25から読み出されるプログラムや、メモリカード 28から読み出される データに基づいて、家庭用ゲーム機 11の各部を制御する。主記憶 26は、例えば RA Mを含んで構成されるものであり、 DVD—ROM25から読み出されたプログラムゃメ モリカード 28から読み出されたデータが必要に応じて書き込まれる。主記憶 26はマ イク口プロセッサ 14の作業用としても用いられる。
[0016] 画像処理部 16は VRAMを含んで構成されており、マイクロプロセッサ 14カゝら送ら れる画像データに基づいて VRAM上にゲーム画面を描画する。そして、その内容を ビデオ信号に変換して所定のタイミングでモニタ 18に出力する。
[0017] 入出力処理部 30は、マイクロプロセッサ 14が音声処理部 20、 DVD— ROM再生 部 24、メモリカード 28及びコントローラ 32にアクセスするためのインタフェースである 。入出力処理部 30には、音声処理部 20、 DVD— ROM再生部 24、メモリカード 28 及びコントローラ 32が接続される。
[0018] 音声処理部 20はサウンドバッファを含んで構成されており、 DVD— ROM25から 読み出され、該サウンドバッファに記憶されたゲーム音楽、ゲーム効果音、メッセージ 等の各種音声データを再生してスピーカ 22から出力する。
[0019] DVD— ROM再生部 24は、マイクロプロセッサ 14からの指示に従って DVD—RO M25に記録されたプログラムを読み取る。なお、ここではプログラムを家庭用ゲーム 機 11に供給するために DVD— ROM25を用いることとする力 CD— ROMや ROM カード等、他のあらゆる情報記憶媒体を用いるようにしてもよい。また、インターネット 等のデータ通信網を介して遠隔地力 プログラムを家庭用ゲーム機 11に供給するよ うにしてもよい。
[0020] メモリカード 28は、不揮発性メモリ(例えば EEPROM等)を含んで構成される。家 庭用ゲーム機 11は、メモリカード 28を装着するための複数のメモリカードスロットを備 えており、複数のメモリカード 28を同時に装着可能となっている。メモリカード 28は、 このメモリカードスロットに対して脱着可能に構成され、例えばセーブデータなどの各 種ゲームデータを記憶させるために用いられる。
[0021] コントローラ 32は、プレイヤが各種ゲーム操作の入力をするための汎用操作入力手 段である。入出力処理部 30は一定周期毎 (例えば 1Z60秒毎)にコントローラ 32の 各部の状態をスキャンし、そのスキャン結果を表す操作信号をバス 12を介してマイク 口プロセッサ 14に渡す。マイクロプロセッサ 14は、その操作信号に基づいてプレイヤ のゲーム操作を判定する。家庭用ゲーム機 11は複数のコントローラ 32を接続可能に 構成されており、各コントローラ 32から入力される操作信号に基づいて、マイクロプロ セッサ 14がゲーム制御を行うようになっている。
[0022] ゲーム装置 10では、仮想 3次元空間(仮想的な 3次元ゲーム空間)が主記憶 26に 構築される。図 2は、主記憶 26に構築される仮想 3次元空間の一部を示している。同 図に示すように、仮想 3次元空間 40にはフィールドオブジェクト 42 (第 1のォブジェク ト)が配置される。フィールドオブジェクト 42は例えば地面や床面等を表すオブジェク トである。フィールドオブジェクト 42上にはキャラクタオブジェクト 44 (第 2のォブジェク ト;影をつくるオブジェクト)が配置される。キャラクタオブジェクト 44の状態 (位置や形 状 (姿勢)等)は、例えばコントローラ 32に対する操作に応じて変化する。
[0023] また、仮想 3次元空間 40には仮想カメラ 46が設定される。この仮想カメラ 46から仮 想 3次元空間 40を見た様子を表すゲーム画面が生成され、モニタ 18に表示される。
[0024] また、仮想 3次元空間 40には光源 48が設定される。以下、光源 48から発せられる 光によってフィールドオブジェクト 42上にキャラクタオブジェクト 44の影 45ができ、そ の影 45が光源 48の位置やキャラクタオブジェクト 44の状態等の変化に応じて変化 する様子を好適に表現するための技術について説明する。
[0025] ゲーム装置 10では、キャラクタオブジェクト 44の影 45を表示するために、影描画用 オブジェクト 50が仮想 3次元空間 40に配置される。図 3は影描画用オブジェクト 50の 一例を示している。影描画用オブジェクト 50は板状の矩形オブジェクトであり、フィー ルドオブジェクト 42よりも小さいオブジェクトである。また、影描画用オブジェクト 50は 、キャラクタオブジェクト 44の影 45を表すのに十分な程度の細かさのポリゴンに分割 され、フィールドオブジェクト 42を構成するポリゴンよりも細力 、ポリゴンで構成される 。なお、キャラクタオブジェクト 44の影 45をより精細に表すためには、影描画用ォブ ジェタト 50をより細かいポリゴンに分割する必要があるため、図 3に示すような影 45を 表す場合、実際には、影描画用オブジェクト 50を同図に示すよりも細かいポリゴンに 分割する必要がある。
[0026] 影描画用オブジェクト 50は、キャラクタオブジェクト 44の位置に基づくフィールドォ ブジェクト 42の一部に重畳して配置される。すなわち、影描画用オブジェクト 50の配 置位置はキャラクタオブジェクト 44の現在位置に基づ 、て決定され、影描画用ォブ ジェタト 50はキャラクタオブジェクト 44に従動する。本実施の形態の場合、影描画用 オブジェクト 50の代表頂点 P0の位置と、キャラクタオブジェクト 44の足元位置 Fと、が 一致するようにして、影描画用オブジェクト 50の配置位置が決定される。
[0027] また、影描画用オブジェクト 50の向き(姿勢)は、キャラクタオブジェクト 44及び光源 48の位置に基づいて決定される。本実施の形態の場合、影描画用オブジェクト 50の 基準方向(本実施の形態の場合、図 3における Y軸方向)と、光源 48の位置をフィー ルドオブジェクト 42上に正射影した位置 から、キャラクタオブジェクト 44の足元位置 Fへの方向と、がー致するようにして、影描画用オブジェクト 50の向きが決定される。 このため、影描画用オブジェクト 50の向きは、キャラクタオブジェクト 44及び光源 48 の相対的位置関係の変化 (XW軸方向又は ZW軸方向の変化)に応じて変化する。
[0028] なお、影描画用オブジェクト 50はフィールドオブジェクト 42から少し浮かした状態で 配置されるようにしてもょ 、し、フィールドオブジェクト 42と同じ高さ(YW軸座標値)で 配置されるようにしてもよい。後者の場合、ゲーム画面を生成する際に、フィールドォ ブジェクト 42の描画を行った後に、影描画用オブジェクト 50の描画を行うようにすれ ばよい。
[0029] 影描画用オブジェクト 50を構成するポリゴンの各頂点の色 (例えば RGB値)は黒色 に設定される(図 3の頂点 P0— P4参照)。また、影描画用オブジェクト 50を構成する ポリゴンの各頂点のアルファ値(半透明合成率,透過度)は、キャラクタオブジェクト 4 4及び光源 48の位置等に基づいて決定される。具体的には、影描画用オブジェクト 5 0上の、キャラクタオブジェクト 44の影 45が表されるべき領域(図 3の斜線部分。以下 、影領域と記載する。 )力 光源 48の位置、キャラクタオブジェクト 44の位置や、キヤ ラクタオブジェクト 44の形状データ等に基づいて、シャドウボリューム等の公知のアル ゴリズムによって特定される。そして、影領域内に含まれない頂点のアルファ値が第 1 所定値 (本実施の形態では 0)に設定される(図 3の頂点 PO及び P4参照)。また、影 領域内に含まれる頂点のアルファ値が第 1所定値以外の第 2所定値 (本実施の形態 では 255)に設定される(図 3の頂点 PI— P3参照)。なお、本実施の形態では、影描 画用オブジェクト 50を構成するポリゴンの各頂点のアルファ値としては、 0以上であつ て 255以下の整数値が設定され得るようになって 、る。アルファ値力^である場合に は「完全に透明な状態」となり、アルファ値が 255である場合には「完全に不透明な状 態」となる。すなわち、アルファ値が大きくなるにつれて、透過度が減少するようになつ ている。
[0030] 上記の影描画用オブジェクト 50が仮想 3次元空間 40に配置されることによって、ゲ ーム画面には、フィールドオブジェクト 42を仮想カメラ 46から見た様子を表す画像と 、影描画用オブジェクト 50を仮想カメラ 46から見た様子を表す画像とが、影描画用 オブジェクト 50の各頂点に設定されたアルファ値に基づいて半透明合成された画像 が表示される。その結果として、光源 48から発せられる光によってフィールドオブジェ タト 42上にキャラクタオブジェクト 44の影 45ができる様子がゲーム画面に表される。 また、影描画用オブジェクト 50の位置、向き及び各頂点のアルファ値は、キャラクタォ ブジェクト 44や光源 48の状態の変化に応じて変化するため、光源 48から発せられる 光によって生じるキャラクタオブジェクト 44の影 45が光源 48の位置やキャラクタォブ ジェタト 44の状態等の変化に応じて変化する様子がゲーム画面に表されるようになる
[0031] なお、ゲーム装置 10では、キャラクタオブジェクト 44の位置と、仮想カメラ 46の位置
(視点位置)と、の間の距離に応じて、影描画用オブジェクト 50のポリゴン数が変化す るようになっている。
[0032] より具体的には、ゲーム装置 10では、例えば図 4に示すようなポリゴン数制御テー ブルが記憶されている。そして、このポリゴン数制御テーブルに基づき、影描画用ォ ブジェクト 50のポリゴン数が変化するようになっている。同図に示すように、ポリゴン数 制御テーブルは、キャラクタオブジェクト 44と仮想カメラ 46との間の距離 dの範囲と、 影描画用オブジェクト 50のポリゴン数 (分割数)と、を対応づけてなるテーブルである 。なお、同図において、分割数 nxは、影描画用オブジェクト 50の X軸方向(図 3参照 )の分割数 (ポリゴン数)を示しており、分割数 nyは、影描画用オブジェクト 50の Y軸 方向(図 3参照)の分割数 (ポリゴン数)を示している。例えば、図 3に示す影描画用ォ ブジェクト 50の場合、分割数 nxは 10であり、分割数 nyは 14である。ポリゴン数制御 テーブルにお 、て、分割数 nx及び nyの値は距離 dが大きくなるにつれて小さくなるよ うに設定されている。キャラクタオブジェクト 44と仮想カメラ 46との間の距離が大きくな ると、キャラクタオブジェクト 44の影 45はゲーム画面に小さく表されるため、キャラクタ オブジェクト 44の影 45を精細に表さなくても見た目上問題がない。すなわち、キャラ クタオブジェクト 44と仮想カメラ 46との間の距離が大きくなると、影描画用オブジェクト 50のポリゴン数を減少させても見た目上問題がない。このため、ポリゴン数制御テー ブルでは、キャラクタオブジェクト 44と仮想カメラ 46との間の距離が大きくなるにつれ て、影描画用オブジェクト 50のポリゴン数が少なくなるように設定されている。なお、 キャラクタオブジェクト 44と仮想カメラ 46との間の距離 dに基づき所定の演算を行うこ とにより分割数 nx及び nyの値を算出するようにしてもよい。この場合、ポリゴン数制御 テーブルは必要なくなる。このようにして、影描画用オブジェクト 50のポリゴン数を変 ィ匕させるようにしてちょい。
[0033] ゲーム装置 10では、以上のようにして、キャラクタオブジェクト 44と仮想カメラ 46と の間の距離に応じて影描画用オブジェクト 50のポリゴン数が変化するため、キャラク タオブジェクト 44と仮想カメラ 46との間の距離が比較的小さい場合、すなわち、キヤ ラクタオブジェクト 44の影 45がゲーム画面に比較的大きく表される場合には、影描画 用オブジェクト 50が細かいポリゴンに分割される。この場合、ゲーム画面にはキャラク タオブジェクト 44の影 45が精細に表される。一方、キャラクタオブジェクト 44と仮想力 メラ 46との間の距離が比較的大きい場合、すなわち、キャラクタオブジェクト 44の影 4 5がゲーム画面に比較的小さく表される場合には、影描画用オブジェクト 50が粗いポ リゴンに分割される。この場合、ゲーム画面にはキャラクタオブジェクト 44の影 45が精 細に表されず、影表現に係る処理負荷の軽減が図られる。
[0034] ここで、ゲーム装置 10で実行される処理について説明する。
[0035] 図 5は、ゲーム装置 10において所定時間ごと (例えば 1Z60秒ごと)に実行されるメ イン処理を示すフロー図である。同図に示す処理は、 DVD—ROM25から読み出さ れるプログラムがマイクロプロセッサ 14によって実行されることによって実現される。同 図に示すように、ゲーム装置 10では、まず環境処理が実行される(S101)。環境処 理では、仮想 3次元空間 40のすベての静的オブジェクト及び動的オブジェクトの位 置及び姿勢が算出される。静的オブジェクトは、建物等の位置を変えないオブジェク トである。これに対して動的オブジェクトは、プレイヤの操作対象のキャラクタオブジェ タト 44のように位置や姿勢が変化するオブジェクトである。
[0036] 環境処理では、仮想カメラ 46の位置、向き及び画角も算出される。例えば、仮想力 メラ 46の位置 (視点座標)は、プレイヤの操作対象のキャラクタオブジェクト 44の位置 に基づき、該キャラクタオブジェクト 44に従動するように設定される。また例えば、仮 想カメラ 46の向き(視線方向)は、プレイヤの操作対象のキャラクタオブジェクト 44の 代表点を向くように設定される。また、画角には例えば固定値が用いられる。
[0037] その後、ゲーム装置 10ではジオメトリ処理が実行される(S102)。ジオメトリ処理で は、ワールド座標系(XW, YW, ZW)カゝら視点座標系、すなわち視点座標を原点と する座標系への座標変換が行われる。また、各オブジェクトを構成するポリゴンの頂 点の色情報が、光源 48の情報 (光源 48の色及び位置)に基づいて算出される。さら に、クリッピング処理も行われる。
[0038] その後、ゲーム装置 10ではレンダリング処理が実行される(S103)。すなわち、マイ クロプロセッサ 14力 仮想カメラ 46の撮影範囲内にある各ポリゴンの頂点座標、頂点 色情報及びテクスチャ座標等を画像処理部 16に渡す。そして、画像処理部 16が、 それらの情報に基づ ヽて VRAM上にゲーム画面を表す画像を形成する。この画像 は、視点座標系で記述された各オブジェクトをスクリーン座標系に変換することによつ て形成される。こうして、 VRAMに形成される画像は所定タイミングでモニタ 18に出 力される。
[0039] 図 6は、影描画用オブジェクト 50に関連する処理を特に示すフロー図である。この 処理は、例えば環境処理 (S101)ゃジオメトリ処理 (S 102)の一部として実行される。 また、この処理は、影を落とすオブジェクト (キャラクタオブジェクト 44)ごとに実行され る。
[0040] 同図に示すように、影描画用オブジェクト 50に関連する処理としては、まず影描画 用オブジェクト 50の位置及び向きが決定される(S201)。影描画用オブジェクト 50の 位置は、影描画用オブジェクト 50の代表頂点 POの位置と、キャラクタオブジェクト 44 の足元位置 Fと、がー致するようにして決定される。また、影描画用オブジェクト 50の 向きは、影描画用オブジェクト 50の基準方向と、光源 48の位置をフィールドオブジェ タト 42上に正射影した位置 から、キャラクタオブジェクト 44の足元位置 Fへの方向と 、がー致するようにして決定される。
[0041] 次に、影描画用オブジェクト 50のポリゴン数が決定される(S202)。ここでは、まず キャラクタオブジェクト 44と仮想カメラ 46との間の距離が取得される。その後、ポリゴン 数制御テーブル(図 4)が参照され、その距離が含まれる範囲に対応づけられた nx及 び nyの値が取得される。こうして、影描画用オブジェクト 50の X軸及び Y軸方向(図 3 参照)の分割数が決定され、影描画用オブジェクト 50のポリゴン数が決定される。
[0042] 次に、影描画用オブジェクト 50における影領域が特定される(S203)。 S201で決 定された影描画用オブジェクト 50の位置及び向き、光源 48の位置、キャラクタォブジ ェクト 44の位置、キャラクタオブジェクト 44の形状データ等に基づいて、例えばシャド ゥボリューム等の公知のアルゴリズムによって、影描画用オブジェクト 50における影 領域が算出される。
[0043] 次に、影描画用オブジェクト 50を構成するポリゴンの各頂点のアルファ値が設定さ れる(S204)。すなわち、影描画用オブジェクト 50を構成するポリゴンの各頂点につ いて、その頂点が影領域内に含まれるか否かが判定され、その判定結果に応じてァ ルファ値が設定される。本実施の形態の場合、影領域内に含まれる頂点のアルファ 値は 255に設定され、影領域内に含まれない頂点のアルファ値は 0に設定される。
[0044] 以上説明したように、ゲーム装置 10では、光源 48から発せられる光によってフィー ルドオブジェクト 42上にキャラクタオブジェクト 44の影 45ができ、その影 45力光源 48 の位置やキャラクタオブジェクト 44の状態等の変化に応じて変化する様子が表現さ れるようになっている。上記のような影表現を実現するためには、フィールドオブジェ タト 42を細かいポリゴンに分割することが考えられる力 この場合、フィールドオブジェ タト 42のデータ量が大きくなつてしまうという難点がある。この点、ゲーム装置 10では 、上記のような影表現がデータ量の増大を抑制しつつ実現されるようになって!/、る。
[0045] また、ゲーム装置 10では、キャラクタオブジェクト 44と仮想カメラ 46との間の距離に 基づいて、影描画用オブジェクト 50を構成するポリゴン数 (言い換えれば、影描画用 オブジェクト 50を構成するポリゴンの細かさ)が変化するようになっている。このため、 ゲーム装置 10では、上記のような影表現が処理負荷の軽減を図りつつ実現されるよ うになつている。
[0046] なお、光源 48の高さが低 、場合 (YW軸座標値が小さ 、場合)、キャラクタオブジェ タト 44の影 45が長くなるため、影描画用オブジェクト 50内に納まらなくなってしまう場 合がある。このような場合、キャラクタオブジェクト 44の影 45が不完全な状態で表され ることになるため、プレイヤに違和感を感じさせてしまうおそれがある。
[0047] そこで、影描画用オブジェクト 50の影領域内の頂点のアルファ値を一定値 (例えば 255)に設定するのではなぐキャラクタオブジェクト 44の位置力もの距離に基づく値 に設定するようにしてもよい。例えば図 7に示すように、影描画用オブジェクト 50の影 領域内の頂点のアルファ値を、キャラクタオブジェクト 44の位置から離れるにつれて、 所定の最大値(同図の例では 255)力 所定の最小値(同図の例では 32)まで徐々 に又は段階的に小さくなるように設定するようにしてもよい。こうすれば、ゲーム画面 にお 、てキャラクタオブジェクト 44の影 45がグラデーション表示されるようになる。す なわち、キャラクタオブジェクト 44の影 45がキャラクタオブジェクト 44から離れるにつ れて徐々に又は段階的に薄くなるように表示されるようになる。その結果、キャラクタ オブジェクト 44の影 45が、キャラクタオブジェクト 44から離れるにつれてぼかされて 表示されることになるため、キャラクタオブジェクト 44の影 45が影描画用オブジェクト 50内に納まらなくなってしまう場合であっても、上記のような違和感をプレイヤに感じ させないように図ることが可能になる。なお、この場合、影描画用オブジェクト 50の影 領域内の頂点の色(明度)を、キャラクタオブジェクト 44の位置力も離れるにつれて徐 々に又は段階的に変化させることによって、ゲーム画面においてキャラクタオブジェク ト 44の影 45がグラデーション表示されるようにしてもよ!、。
[0048] または、光源 48の高さ (YW軸座標値)に応じて、影描画用オブジェクト 50の長さ( 図 3における Y軸方向の長さ)を変化させるようにしてもよい。すなわち、光源 48の高 さに応じた長さの影描画用オブジェクト 50が仮想 3次元空間 40に配置されるようにし てもよい。例えば、光源 48の高さの範囲と、影描画用オブジェクト 50の長さと、を対 応づけてなるテーブルを記憶しておくようにしてもよい。そして、このテーブルに基づ き、影描画用オブジェクト 50の長さを決定するようにしてもよい。また例えば、光源 48 の高さに基づき所定の演算を行うことによって影描画用オブジェクト 50の長さを決定 するようにしてもよい。このようにすれば、キャラクタオブジェクト 44の影 45が影描画 用オブジェクト 50内に納まらなくなってしまうことを防ぐことが可能になり、上記のよう な違和感をプレイヤに感じさせないように図ることが可能になる。
[0049] なお、本発明は以上に説明した実施の形態に限定されるものではない。
[0050] 例えば、 1体のキャラクタオブジェクト 44に対して、複数の影描画用オブジェクト 50 を配置するようにしてもよい。例えば、仮想 3次元空間 40に複数の光源 48が設定さ れており、キャラクタオブジェクト 44の影 45が複数生じる場合には、各光源 48ごとに 、その光源 48に対応する影描画用オブジェクト 50を、その光源 48及びキャラクタォ ブジェクト 44の位置に基づ!/、て配置するようにしてもよ!、。
[0051] また例えば、本実施の形態に比べて影描画用オブジェクト 50が大きくなる力 図 8 に示すような影描画用オブジェクト 50を配置するようにしてもよい。すなわち、キャラク タオブジェクト 44の位置力も所定距離の範囲内をカバー可能な影描画用ォブジェク ト 50を、キャラクタオブジェクト 44の足元位置 Fと、影描画用オブジェクト 50の中心点 と、がー致するようにして配置するようにしてもよい。こうすれば、光源 48の位置が変 化することによって、光源 48とキャラクタオブジェクト 44との相対的位置関係が変化し ても、影描画用オブジェクト 50の配置位置を変化させる必要がなくなる。その結果、 影描画用オブジェクト 50の配置位置を決定するにあたって、光源 48の位置を考慮 する必要がなくなる。
[0052] また例えば、高さ (YW軸方向の長さ)の異なる複数のキャラクタオブジェクト 44が仮 想 3次元空間 40に配置される場合には、各キャラクタオブジェクト 44に対応づけて、 影描画用オブジェクト 50の長さ(図 3における Y軸方向の長さ)を記憶しておくようにし てもよい。こうすることによって、影描画用オブジェクト 50の長さを、各キャラクタォブ ジェタト 44ごとにそのキャラクタオブジェクト 44の高さに応じて変化させるようにしても よい。或いは、キャラクタオブジェクト 44の高さの範囲と、影描画用オブジェクト 50の 長さと、を対応づけてなるテーブルを記憶させておくようにしてもよい。そして、このテ 一ブルに基づき、影描画用オブジェクト 50の長さを、各キャラクタオブジェクト 44ごと にそのキャラクタオブジェクト 44の高さに応じて変化させるようにしてもよ!、。
[0053] また例えば、影をつくるオブジェクトはキャラクタオブジェクト 44に限られず、他の種 類のオブジェクトであってもよ 、。例えば建物等の静的オブジェクトであってもよ 、。
[0054] また例えば、以上の説明では、プログラムを情報記憶媒体たる DVD— ROM25か ら家庭用ゲーム機 11に供給するようにしたが、通信ネットワークを介してプログラムを 家庭等に配信するようにしてもよい。図 9は、通信ネットワークを用いたプログラム配信 システムの全体構成を示す図である。同図に基づいて本発明に係るプログラム配信 方法を説明する。同図に示すように、このプログラム配信システム 100は、ゲームデ ータベース 102、サーバ 104、通信ネットワーク 106、パソコン 108、家庭用ゲーム機 110、 PDA (携帯情報端末) 112を含んでいる。このうち、ゲームデータベース 102と サーバ 104とによりプログラム配信装置 114が構成される。通信ネットワーク 106は、 例えばインターネットやケーブルテレビネットワークを含んで構成されて 、る。このシ ステムでは、ゲームデータベース(情報記憶媒体) 102に、 DVD— ROM25の記憶 内容と同様のプログラムが記憶されている。そして、ノ ソコン 108、家庭用ゲーム機 1 10又は PDA112等を用いて需要者がゲーム配信要求をすることにより、それが通信 ネットワーク 106を介してサーバ 104に伝えられる。そして、サーバ 104はゲーム配信 要求に応じてゲームデータベース 102からプログラムを読み出し、それをパソコン 10 8、家庭用ゲーム機 110、 PDA112等、ゲーム配信要求元に送信する。ここではゲ ーム配信要求に応じてゲーム配信するようにした力 サーバ 104から一方的に送信 するようにしてもよい。また、必ずしも一度にゲームの実現に必要な全てのプログラム を配信 (一括配信)する必要はなく、ゲームの局面に応じて必要な部分を配信 (分割 配信)するようにしてもょ 、。このように通信ネットワーク 106を介してゲーム配信する ようにすれば、プログラムを需要者は容易に入手することができるようになる。

Claims

請求の範囲
[1] 光源及びオブジェクトが配置された仮想 3次元空間を所与の視点から見た様子を 表すゲーム画面を表示するゲーム装置にお 、て、
前記オブジェクトの影を描画するための影描画用オブジェクトを前記仮想 3次元空 間に配置する影描画用オブジェクト配置手段と、
前記影描画用オブジェクトを構成するポリゴンの各頂点の透過度を、前記光源の位 置と、前記オブジェクトの位置と、前記オブジェクトの形状データと、に基づいて決定 する透過度決定手段と、
前記透過度決定手段によって決定された透過度に基づいて前記ゲーム画面を生 成し、表示させる表示制御手段と、
を含み、
前記影描画用オブジェクト配置手段は、前記影描画用オブジェクトを構成するポリ ゴンの数を、前記視点と前記オブジェクトとの間の距離に基づ 、て制御するポリゴン 数制御手段を含む、
ことを特徴とするゲーム装置。
[2] 光源及びオブジェクトが配置された仮想 3次元空間を所与の視点から見た様子を 表すゲーム画面を表示するゲーム装置の制御方法において、
前記オブジェクトの影を描画するための影描画用オブジェクトを前記仮想 3次元空 間に配置するための影描画用オブジェクト配置ステップと、
前記影描画用オブジェクトを構成するポリゴンの各頂点の透過度を、前記光源の位 置と、前記オブジェクトの位置と、前記オブジェクトの形状データと、に基づいて決定 するための透過度決定ステップと、
前記透過度決定ステップによって決定された透過度に基づいて前記ゲーム画面を 生成し、表示させるための表示制御ステップと、
を含み、
前記影描画用オブジェクト配置ステップは、前記影描画用オブジェクトを構成する ポリゴンの数を、前記視点と前記オブジェクトとの間の距離に基づ 、て制御するポリゴ ン数制御ステップを含む、 ことを特徴とするゲーム装置の制御方法。
光源及びオブジェクトが配置された仮想 3次元空間を所与の視点力 見た様子を 表すゲーム画面を表示するゲーム装置としてコンピュータを機能させるためのプログ ラムを記録したコンピュータ読み取り可能な情報記憶媒体であって、
前記オブジェクトの影を描画するための影描画用オブジェクトを前記仮想 3次元空 間に配置する影描画用オブジェクト配置手段、
前記影描画用オブジェクトを構成するポリゴンの各頂点の透過度を、前記光源の位 置と、前記オブジェクトの位置と、前記オブジェクトの形状データと、に基づいて決定 する透過度決定手段、及び、
前記透過度決定手段によって決定された透過度に基づいて前記ゲーム画面を生 成し、表示させる表示制御手段、
として前記コンピュータを機能させ、
前記影描画用オブジェクト配置手段は、前記影描画用オブジェクトを構成するポリ ゴンの数を、前記視点と前記オブジェクトとの間の距離に基づ 、て制御するポリゴン 数制御手段を含む、
ことを特徴とするプログラムを記録したコンピュータ読み取り可能な情報記憶媒体。
PCT/JP2006/325183 2006-01-26 2006-12-18 ゲーム装置、ゲーム装置の制御方法及び情報記憶媒体 WO2007086209A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN2006800518974A CN101336123B (zh) 2006-01-26 2006-12-18 游戏装置及游戏装置的控制方法
EP06834895A EP1977802A4 (en) 2006-01-26 2006-12-18 PLAYER, PLAYBACK CONTROLLER AND INFORMATION STORAGE MEDIUM
US12/162,216 US8054309B2 (en) 2006-01-26 2006-12-18 Game machine, game machine control method, and information storage medium for shadow rendering

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006018105A JP4833674B2 (ja) 2006-01-26 2006-01-26 ゲーム装置、ゲーム装置の制御方法及びプログラム
JP2006-018105 2006-01-26

Publications (1)

Publication Number Publication Date
WO2007086209A1 true WO2007086209A1 (ja) 2007-08-02

Family

ID=38309010

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/325183 WO2007086209A1 (ja) 2006-01-26 2006-12-18 ゲーム装置、ゲーム装置の制御方法及び情報記憶媒体

Country Status (7)

Country Link
US (1) US8054309B2 (ja)
EP (1) EP1977802A4 (ja)
JP (1) JP4833674B2 (ja)
KR (1) KR100987625B1 (ja)
CN (1) CN101336123B (ja)
TW (1) TWI318890B (ja)
WO (1) WO2007086209A1 (ja)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4764381B2 (ja) * 2007-06-05 2011-08-31 株式会社コナミデジタルエンタテインメント 画像処理装置、画像処理方法及びプログラム
JP4852555B2 (ja) 2008-01-11 2012-01-11 株式会社コナミデジタルエンタテインメント 画像処理装置、画像処理方法、ならびに、プログラム
JP5192874B2 (ja) * 2008-03-28 2013-05-08 株式会社コナミデジタルエンタテインメント 画像処理装置、画像処理装置の制御方法及びプログラム
JP2010033296A (ja) * 2008-07-28 2010-02-12 Namco Bandai Games Inc プログラム、情報記憶媒体及び画像生成システム
JP5256153B2 (ja) * 2009-09-16 2013-08-07 株式会社コナミデジタルエンタテインメント 画像処理装置、画像処理装置の制御方法、及びプログラム
US9070242B2 (en) * 2011-07-01 2015-06-30 Digital Creations, LLC Techniques for controlling game event influence and/or outcome in multi-player gaming environments
KR101419044B1 (ko) * 2013-06-21 2014-07-11 재단법인 실감교류인체감응솔루션연구단 3d 가상 객체의 그림자를 표시하기 위한 방법, 시스템 및 컴퓨터 판독 가능한 기록 매체
JP2015099545A (ja) * 2013-11-20 2015-05-28 株式会社東芝 画像生成システム及び画像生成プログラム
JP6662005B2 (ja) * 2015-12-03 2020-03-11 株式会社三洋物産 遊技機
US11205296B2 (en) * 2019-12-20 2021-12-21 Sap Se 3D data exploration using interactive cuboids
USD959447S1 (en) 2019-12-20 2022-08-02 Sap Se Display system or portion thereof with a virtual three-dimensional animated graphical user interface
USD959476S1 (en) 2019-12-20 2022-08-02 Sap Se Display system or portion thereof with a virtual three-dimensional animated graphical user interface
USD959477S1 (en) 2019-12-20 2022-08-02 Sap Se Display system or portion thereof with a virtual three-dimensional animated graphical user interface
WO2021149526A1 (ja) * 2020-01-23 2021-07-29 ソニーグループ株式会社 情報処理装置、情報処理方法及びプログラム
JP7283588B2 (ja) * 2020-02-12 2023-05-30 株式会社三洋物産 遊技機
CN111489430B (zh) * 2020-04-08 2024-03-01 网易(杭州)网络有限公司 游戏的光影数据处理方法、装置以及游戏设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0947576A (ja) 1995-08-04 1997-02-18 Namco Ltd 3次元ゲーム装置及び画像合成方法
JP2001101445A (ja) * 1999-10-01 2001-04-13 Tsuneo Ikedo ソフトシャドーキャスティング回路
US20030032483A1 (en) 1995-04-27 2003-02-13 Kabushiki Kaisha Sega Enterprises, D/B/A Sega Enterprises, Ltd. Picture processing device, picture processing method, and game device and storage medium using the same

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09211295A (ja) * 1996-02-07 1997-08-15 Nikon Corp ズームレンズ系
JP2001149639A (ja) 1999-11-25 2001-06-05 Sony Computer Entertainment Inc 画像処理装置、画像生成方法および記憶媒体
JP4443012B2 (ja) * 2000-07-27 2010-03-31 株式会社バンダイナムコゲームス 画像生成装置、方法および記録媒体
JP3417555B2 (ja) * 2001-06-29 2003-06-16 株式会社コナミコンピュータエンタテインメント東京 ゲーム装置、人物画像処理方法及びプログラム
GB2379848B (en) * 2001-08-17 2005-04-20 Massimo Bergamasco A rendering system
JP4001227B2 (ja) * 2002-05-16 2007-10-31 任天堂株式会社 ゲーム装置及びゲームプログラム
JP4162125B2 (ja) * 2002-08-06 2008-10-08 株式会社バンダイナムコゲームス 画像生成システム、プログラム及び情報記憶媒体
JP4350595B2 (ja) 2004-06-01 2009-10-21 株式会社コナミデジタルエンタテインメント ゲーム装置、ゲーム制御方法及びプログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030032483A1 (en) 1995-04-27 2003-02-13 Kabushiki Kaisha Sega Enterprises, D/B/A Sega Enterprises, Ltd. Picture processing device, picture processing method, and game device and storage medium using the same
JPH0947576A (ja) 1995-08-04 1997-02-18 Namco Ltd 3次元ゲーム装置及び画像合成方法
JP2001101445A (ja) * 1999-10-01 2001-04-13 Tsuneo Ikedo ソフトシャドーキャスティング回路

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JONATHAN BLOW, UNIFIED RENDERING LEVEL-OF-DETAI, 16 January 2004 (2004-01-16)
See also references of EP1977802A4

Also Published As

Publication number Publication date
EP1977802A4 (en) 2009-03-18
US8054309B2 (en) 2011-11-08
TWI318890B (en) 2010-01-01
JP4833674B2 (ja) 2011-12-07
CN101336123A (zh) 2008-12-31
KR20080080642A (ko) 2008-09-04
US20090009515A1 (en) 2009-01-08
CN101336123B (zh) 2012-03-21
TW200735933A (en) 2007-10-01
EP1977802A1 (en) 2008-10-08
KR100987625B1 (ko) 2010-10-13
JP2007195747A (ja) 2007-08-09

Similar Documents

Publication Publication Date Title
JP4833674B2 (ja) ゲーム装置、ゲーム装置の制御方法及びプログラム
JP3926828B1 (ja) ゲーム装置、ゲーム装置の制御方法及びプログラム
US20090244064A1 (en) Program, information storage medium, and image generation system
US7697015B2 (en) Storage medium and game device storing image generating program
JP4079378B2 (ja) 画像処理装置、画像処理装置の制御方法及びプログラム
JP4031509B1 (ja) 画像処理装置、画像処理装置の制御方法及びプログラム
JP3366894B2 (ja) 3次元画像合成装置及び方法、情報記憶媒体、プログラム配信装置及び方法
JP4868586B2 (ja) 画像生成システム、プログラム及び情報記憶媒体
JP2006252426A (ja) プログラム、情報記憶媒体及び画像生成システム
JP2000113226A (ja) ビデオゲーム装置、ビデオゲームにおけるモデル表示方法及びビデオゲームにおけるモデル表示プログラムが記録された可読記録媒体
JP3643036B2 (ja) 透視変換する装置及び方法
JP2001283250A (ja) 画像合成装置及び方法、情報記憶媒体、プログラム配信装置及び方法
JP2001283244A (ja) 3次元画像合成装置及び方法、情報記憶媒体、プログラム配信装置及び方法
JP3712175B2 (ja) 画像合成装置並びに方法及び情報記憶媒体
WO2005013203A1 (ja) 画像処理装置、画像処理方法及び情報記憶媒体
JP3686928B2 (ja) ゲーム装置、プログラム及び画像表示方法
JP2002251626A (ja) 画像の生成方法及びそれに用いるプログラム
JP2011107816A (ja) 画像処理装置、画像処理装置の制御方法、及びプログラム
JP2002358538A (ja) 3次元画像合成装置及び方法、情報記憶媒体、プログラム配信装置及び方法
JP2006092220A (ja) ゲーム装置、プログラム及びコンピュータの制御方法
JPH08221598A (ja) データ処理装置及びこの処理装置を用いたゲーム機並びにデータ処理方法
JP2006252424A (ja) プログラム、情報記憶媒体及び画像生成システム
JP2008027173A (ja) 画像処理装置、画像処理装置の制御方法及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2006834895

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 12162216

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 200680051897.4

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE