Patent ID: 8749571

Claim:
A non-transitory computer-readable storage medium having stored therein an information processing program executed by a computer of an information processing apparatus which is connected to an imaging device, a display device for displaying a real space so as to be visible on a screen, and a storage device for storing object data representing a first virtual object which has inner surfaces and outer surfaces and which can form a closed space, and object data representing a second virtual object positioned in the closed space, the computer being caused to provide functionality comprising: a photographed image data acquisition for sequentially acquiring photographed image data representing a photographed image taken by the imaging device; a virtual camera setting for setting a virtual camera in a virtual space; an object positioning for positioning the first virtual object in the virtual space such that a part of the outer surfaces of the first virtual object can be captured by the virtual camera; a first object control for moving the first virtual object such that an entirety of the first virtual object can be captured by the virtual camera; a second object control for changing a shape of the first virtual object from a closed shape having the closed space formed by the inner surfaces of the first virtual object facing inward, to an opened shape formed when the first virtual object is unfolded so as to enable the inner surfaces to be captured by the virtual camera; a third object control for positioning at least one second virtual object on the inner surfaces of the first virtual object, and changing a position and an orientation of the second virtual object in cooperation with the inner surfaces of the first virtual object in accordance with the shape of the first virtual object being changed; a texture mapping for mapping, as a texture, an image of a region corresponding to a part of the outer surfaces of the first virtual object, on the outer surfaces of the first virtual object, and mapping, as a texture, an image of a region corresponding to the first virtual object of the opened shape, on the inner surfaces of the first virtual object, wherein the image of the region corresponding to the part of the outer surfaces, and the image of the region corresponding to the first virtual object are each included in the photographed image represented by the photographed image data which is sequentially acquired by the photographed image data acquisition; an object image generation for generating an object image based on each of the second virtual object, and the first virtual object on which the texture is mapped; and a display control for sequentially displaying, via the display device, a superimposed image in which the object image generated by the object image generation is superimposed on the real space on the screen.