主权项 |
1. A non-transitory computer-readable storage medium having stored therein an image generation program which, when executed by a computer of a display device including a display for displaying a stereoscopically visible image, causes the computer to at least:
set a virtual stereo camera, comprising right and left virtual cameras, in a virtual space; obtain a stereoscopically visible image by using the virtual stereo camera; receive an activation operation and activating, based on the activation operation, camera control for controlling an orientation of the virtual stereo camera in accordance with an orientation of the display; obtain, based on a reference orientation, which is the orientation of the display when the camera control is activated, a change amount of the orientation of the display from the reference orientation as a display orientation change amount; control the orientation of the virtual stereo camera based on the display orientation change amount; and control, based at least on a directional component in a roll direction of the display orientation change amount, a separation between the right and left virtual cameras of the virtual stereo camera, wherein when the directional component in the roll direction remains less than or equal to a threshold value, the separation is continuously adjusted within a range between a maximum separation and a minimum separation so that as the directional component in the roll direction increases, a degree of stereoscopic effect of the image obtained by using the virtual stereo camera decreases, and when the directional component in the roll direction exceeds the threshold value, the separation is controlled to be the minimum separation. |