Storage medium storing information processing program, information processing apparatus, information processing system, and information processing method
A blurred image is generated by blurring an image of a virtual space in a range of view from a virtual camera with a degree of blurring depending on a distance from the virtual camera. The blurred image is generated with the degree of blurring additionally depending on an imaging direction of the virtual camera. The blurred image is output on a display screen.
1 . A non-transitory computer-readable storage medium having stored therein an information processing program that when executed by a computer of an information processing apparatus, causes the computer to perform operations comprising:
generating a blurred image by blurring an image of a virtual space in a range of view from a virtual camera with a degree of blurring depending on a distance from the virtual camera; and
performing a process of outputting the blurred image on a display screen,
wherein in the generating the blurred image,
the blurred image is generated with the degree of blurring additionally depending on an imaging direction of the virtual camera, and
in a range in which the distance from the virtual camera is longer than a first distance, the degree of blurring is changed and increased with an increase in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a second distance longer than the first distance, based on the imaging direction of the virtual camera.
2 . The non-transitory computer-readable storage medium according to claim 1 , wherein in the generating the blurred image, in a range in which the distance from the virtual camera is shorter than a first distance, the degree of blurring is changed and increased with a decrease in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a third distance shorter than the first distance, based on the imaging direction of the virtual camera.
3 . The non-transitory computer-readable storage medium according to claim 1 , wherein in the generating the blurred image,
in a range in which the distance from the virtual camera is longer than a first distance, the degree of blurring is changed and increased with an increase in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a second distance longer than the first distance, based on the imaging direction of the virtual camera, and
in a range in which the distance from the virtual camera is shorter than the first distance, the degree of blurring is changed and increased with a decrease in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a third distance shorter than the first distance, based on the imaging direction of the virtual camera.
4 . The non-transitory computer-readable storage medium according to claim 1 , wherein in the generating the blurred image, the degree of blurring is changed and decreased for the second distance with a decrease in a difference between a direction in which a reference plane extends in the virtual space and the imaging direction.
5 . The non-transitory computer-readable storage medium according to claim 2 , wherein in the generating the blurred image, the degree of blurring is changed and decreased for the third distance with a decrease in a difference between a direction in which a reference plane extends in the virtual space and the imaging direction.
6 . The non-transitory computer-readable storage medium according to claim 4 , wherein the reference plane is set such that a game object disposed further in the virtual space is imaged when the imaging direction of the virtual camera is parallel to the reference plane than when the imaging direction of the virtual camera is perpendicular to the reference plane.
7 . The non-transitory computer-readable storage medium according to claim 4 , wherein the reference plane is set perpendicular to a downward direction of the virtual space.
8 . The non-transitory computer-readable storage medium according to claim 4 , wherein the information processing program further causes the computer to perform operations comprising:
when the imaging direction of the virtual camera is changed based on a user's first input, changing a distance between a gaze point of the virtual camera and the virtual camera, depending on the imaging direction.
9 . The non-transitory computer-readable storage medium according to claim 8 , wherein in the changing the distance, the distance between the gaze point and the virtual camera is decreased with a decrease in the difference between the direction in which the reference plane extends and the imaging direction.
10 . The non-transitory computer-readable storage medium according to claim 8 , wherein
the information processing program further causes the computer to perform operations comprising: moving a player character disposed in the virtual space, based on the user's second input, and
in the changing the distance, the virtual camera is controlled with the gaze point set at the player character.
11 . The non-transitory computer-readable storage medium according to claim 1 , wherein in the generating the blurred image, the blurred image is generated by blurring the image of the virtual space in the range of view from the virtual camera, depending on a distance between a location in the virtual space of each pixel of the image and the virtual camera.
12 . An information processing apparatus, comprising:
a memory and a processor configured to cooperate to at least:
generate a blurred image by blurring an image of a virtual space in a range of view from a virtual camera with a degree of blurring depending on a distance from the virtual camera; and
perform a process of outputting the blurred image on a display screen,
wherein in the generating the blurred image,
the blurred image is generated with the degree of blurring additionally depending on an imaging direction of the virtual camera, and
in a range in which the distance from the virtual camera is longer than a first distance, the degree of blurring is changed and increased with an increase in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a second distance longer than the first distance, based on the imaging direction of the virtual camera.
13 . An information processing system, comprising:
a memory storing a program; and
a processor configured to execute the program to at least:
generate a blurred image by blurring an image of a virtual space in a range of view from a virtual camera with a degree of blurring depending on a distance from the virtual camera; and
perform a process of outputting the blurred image on a display screen,
wherein in the generating the blurred image,
the blurred image is generated with the degree of blurring additionally depending on an imaging direction of the virtual camera, and
in a range in which the distance from the virtual camera is longer than a first distance, the degree of blurring is changed and increased with an increase in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a second distance longer than the first distance, based on the imaging direction of the virtual camera.
14 . An information processing method comprising:
generating a blurred image by blurring an image of a virtual space in a range of view from a virtual camera with a degree of blurring depending on a distance from the virtual camera; and
performing a process of outputting the blurred image on a display screen,
wherein in the generating the blurred image,
the blurred image is generated with the degree of blurring additionally depending on an imaging direction of the virtual camera, and
in a range in which the distance from the virtual camera is longer than a first distance, the degree of blurring is changed and increased with an increase in the distance from the virtual camera, and is changed and decreased for a location where the distance from the virtual camera is a second distance longer than the first distance, based on the imaging direction of the virtual camera.
15 . The information processing system according to claim 13 , wherein in the generating the blurred image, the degree of blurring is changed and decreased for the second distance with a decrease in a difference between a direction in which a reference plane extends in the virtual space and the imaging direction.
16 . The information processing system according to claim 15 , wherein the reference plane is set such that a game object disposed further in the virtual space is imaged when the imaging direction of the virtual camera is parallel to the reference plane than when the imaging direction of the virtual camera is perpendicular to the reference plane.
17 . The information processing system according to claim 15 , wherein the reference plane is set perpendicular to a downward direction of the virtual space.
18 . The information processing system according to claim 15 , wherein when the imaging direction of the virtual camera is changed based on a user's first input, a distance between a gaze point of the virtual camera and the virtual camera is changed, depending on the imaging direction.
19 . The information processing system according to claim 18 , wherein in the changing the distance, the distance between the gaze point and the virtual camera is decreased with a decrease in the difference between the direction in which the reference plane extends and the imaging direction.
20 . The information processing system according to claim 18 , wherein
a player character disposed in the virtual space is moved, based on the user's second input, and
in the changing the distance, the virtual camera is controlled with the gaze point set at the player character.