Patent ID: 8259107

Claim:
A non-transitory computer readable storage medium having stored thereon an image processing program for drawing an image of a curved surface as viewed from a virtual camera situated in a virtual three-dimensional space, an undulation of the curved surface being defined by a distance from a virtual plane surface arranged in the virtual three-dimensional space, the image processing program causing a computer to execute instructions comprising: dividing the virtual plane surface into a plurality of polygonal shape regions such that the closer a region is to the virtual camera, the smaller areas the region is divided into; calculating a size evaluation value indicative of a size of an image of each of the plurality of the polygonal shape regions based on a distance of the virtual camera with respect to each of the plurality of the polygonal shape regions; dividing each of the plurality of the polygonal shape regions such that the calculated size evaluation value becomes equal to or lower than a predetermined threshold value; reading, from a storage unit, distance information indicative of distance from the virtual plane surface, with respect to respective vertices of the plurality of polygonal shape regions; calculating coordinate points of position which are respectively distanced from the vertices composing the plurality of polygonal shape regions by distances indicated by the distance information in a direction perpendicular to the virtual plane surface; generating polygons by using the calculated coordinate points as polygon vertices which define the polygons, the number of the polygons being substantially constant in each of the plurality of the polygonal shape regions; and drawing an image of the generated polygons, the image drawn as being viewed from the virtual camera.