Image generation method and computer-readable medium
An image generation method of generating an image in which three-dimensional virtual spaces are captured from a virtual camera arranged at a virtual position of a user or in a periphery of the virtual position of the user, includes: identifying a first virtual space to which the user belongs; identifying one or a plurality of second virtual spaces to be an image capturing target among the virtual spaces to which the user does not belong; generating an image in which an object present in the first virtual space is captured by the virtual camera by a first image generation method; and generating an image corresponding to an image in which an object present in the second virtual space is captured by the virtual camera by a second image generation method.
1 . An image generation method of generating an image in which three-dimensional virtual spaces are captured from a virtual camera arranged at a virtual position of a user or in a periphery of the virtual position of the user, the image generation method comprising:
identifying a first virtual space to which the user belongs;
identifying one or a plurality of second virtual spaces to be an image capturing target among the virtual spaces to which the user does not belong;
generating a first partial image of the image by a first image generation method, the first partial image being an image in which an object present in the first virtual space is captured by the virtual camera; and
generating a second partial image of the image by a second image generation method, the second partial image corresponding to an image in which an object present in the one or the plurality of second virtual spaces is captured by the virtual camera, wherein
the second image generation method is an image generation method that consumes less calculation resources than the first image generation method, in calculation required to generate the image corresponding to the object, and
the second image generation method is a method of interior mapping,
the image generation method further comprising:
displaying a door that allows the user to move from the first virtual space to the one or the plurality of second virtual spaces;
generating an image that appears as if the door has a certain degree of transparency by generating an image corresponding to an image in which the object present in the one or the plurality of second virtual spaces is captured by the virtual camera through the door, by the second image generation method, to present that the door is passable by the user; and
when the user moves from the first virtual space to the one or the plurality of second virtual spaces and this movement causes the one or the plurality of second virtual spaces to become a new first virtual space and the first virtual space to become a new second virtual space, generating a new image including a third partial image in which the object present in the one or the plurality of second virtual spaces that has become the new first virtual space is captured by the virtual camera and a fourth partial image corresponding to an image in which the object present in the first virtual space that has become the new second virtual space is captured by the virtual camera, by generating the third partial image by the first image generation method and generating the fourth partial image by the second image generation method.
2 . The image generation method according to claim 1 , further comprising varying a degree of transparency of a transparent object provided in the virtual spaces depending on an angle formed between an image capturing direction of the virtual camera and a surface of the transparent object.
3 . The image generation method according to claim 1 , further comprising arranging a character corresponding to the user at the virtual position of the user in the virtual spaces.
4 . The image generation method according to claim 1 , further comprising arranging the virtual camera at the virtual position of the user in the virtual spaces.
5 . The image generation method according to claim 1 , further comprising arranging the virtual camera at a position behind the virtual position of the user in the virtual spaces.
6 . The image generation method according to claim 1 , wherein the identifying the one or the plurality of second virtual spaces includes identifying the one or the plurality of second virtual spaces depending on from which one of the virtual spaces the user has entered a current virtual space.
7 . The image generation method according to claim 1 , wherein the identifying the one or the plurality of second virtual spaces includes identifying a virtual space to which the user is movable as the one or the plurality of second virtual spaces.
8 . A non-transitory computer-readable medium storing a program that causes a computer to execute the image generation method according to claim 1 .