Storage medium having stored thereon image processing program and image processing apparatus
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
A virtual plane surface PL is divided into a plurality of square regions such that the closer distance to a virtual camera VP a square region is located at, the smaller areas the square region is divided into. Distance information 41 indicative of distances of respective vertices composing each of the square regions from the virtual plane surface PL is read from the internal main memory 11e. Further, coordinate points of positions, which are distanced from respective vertices, which compose polygonal shape regions included in each of the square regions, by distances indicated by the read distance information in a direction perpendicular to the virtual plane surface PL, are used as polygon vertices, which define polygons, whereby the polygons corresponding to the curved surface SF are generated. From each of the square regions, substantially a common number of polygons are generated. In this manner, appropriate polygon information of the curved surface SF which is capable of securing a drawing quality can be generated.
10 Citations
18 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. An image processing apparatus 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 apparatus having one or more processors and comprising:
-
a plane surface division unit for 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, and 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; a first distance reading unit for reading, from a storage unit, distance information indicative of the distance from the virtual plane surface, with respect to respective vertices of the plurality of polygonal shape regions; a first coordinate point calculation unit for calculating coordinate points of positions which are respectively distanced from each of the vertices composing the polygons corresponding to the plurality of polygonal shape regions by distances indicated by the distance information read by the first distance reading unit in a direction perpendicular to the virtual plane surface; a polygon generation unit for generating polygons by using the coordinate points calculated by the first coordinate point calculation unit as polygon vertices defining each of the polygons, the number of the polygons being substantially constant in each of the plurality of the polygonal shape regions; and a drawing unit for drawing an image of the polygons which are generated by the polygon generation unit, the image as being viewed from the virtual camera.
-
-
17. A method 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 method being executed using a computer having one or more processors, the method 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.
-
-
18. An image processing system, comprising:
-
a display device configured to display image data; and an image processing apparatus for drawing an image of a curved surface as viewed from a virtual camera situated in a virtual three-dimensional space on the display device, 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 apparatus having one or more processors and comprising; a plane surface division unit for 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, and 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; a first distance reading unit for reading, from a storage unit, distance information indicative of the distance from the virtual plane surface, with respect to respective vertices of the plurality of polygonal shape regions; a first coordinate point calculation unit for calculating coordinate points of positions which are respectively distanced from each of the vertices composing the polygons corresponding to the plurality of polygonal shape regions by distances indicated by the distance information read by the first distance reading unit in a direction perpendicular to the virtual plane surface; a polygon generation unit for generating polygons by using the coordinate points calculated by the first coordinate point calculation unit as polygon vertices defining each of the polygons, the number of the polygons being substantially constant in each of the plurality of the polygonal shape regions; and a drawing unit for drawing an image of the polygons which are generated by the polygon generation unit, the image as being viewed from the virtual camera.
-
Specification