Program, information processing device, and polygon conversion method
By clustering vertices based on geodesic distances, the method simplifies three-dimensional models efficiently, reducing processing load and preserving model quality.
Patent Information
- Application Number
- JP2023021350
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-02-15
AI Technical Summary
Existing methods for simplifying three-dimensional models in computer graphics require repeated evaluation and removal of edges, leading to high processing loads on information processing devices.
A program and method that clusters vertices based on geodesic distances on the surface of a three-dimensional model, integrating vertices to generate new vertices and reduce polygons without evaluating individual edges, using a cluster generation unit and polygon conversion unit to simplify the model.
Reduces processing load by simplifying three-dimensional models without repeated edge evaluation, allowing for efficient conversion of polygons while preserving model shape and texture integrity.
Smart Images

Figure 2024115626000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a program, an information processing device, and a polygon conversion method. [Background technology]
[0002] When generating a three-dimensional model using computer graphics technology, a technique is known for generating a more simplified three-dimensional model from a highly detailed three-dimensional model.
[0003] Patent Document 1 discloses a method for approximating shape data, which prevents quality degradation after approximation while removing or changing the values of normals assigned to the model in order to generate an approximated model in which the details of the original model are removed. In this method, each edge of the original model is evaluated, and the polygons constituting the three-dimensional model are simplified by repeatedly removing edges based on the obtained values.
[0004] In the technology disclosed in Patent Document 1, the change in volume when an edge is removed is calculated as an evaluation value, and edges that contribute the least to the model shape are removed. This process is repeated to obtain approximate data with the desired resolution. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Publication No. 10-134208 Summary of the Invention [Problem to be solved by the invention]
[0006] In obtaining a simplified three-dimensional model, it is required to reduce the processing load. In the technology disclosed in Patent Document 1, after evaluating each edge of the three-dimensional model, the edges are sorted by the magnitude of the evaluation value, the edge with the smallest evaluation value is removed, and the position of the vertex remaining after the edge is removed is determined. Furthermore, in this technology, each edge of the three-dimensional model formed using a new vertex is evaluated again, and the edge with the smallest evaluation value is removed repeatedly to obtain a simplified three-dimensional model. In this way, in this technology, the evaluation and removal of each edge are repeated, so that the processing load of the information processing device that executes the simplification of the three-dimensional model is large.
[0007] Therefore, an object of the present invention is to simplify a three-dimensional model without evaluating edges. [Means for solving the problem]
[0008] In order to solve the above problem, a program according to one aspect of the present invention is a program to be executed by an information processing device, and is characterized in that it causes the information processing device to function as a cluster generation unit that generates, for each reference point, a cluster to which vertices of polygons constituting a three-dimensional model that are located within a predetermined distance on the surface of the three-dimensional model from a reference point on the surface of the three-dimensional model belong, and a polygon conversion unit that generates a new vertex that is a vertex obtained by integrating vertices belonging to the one cluster, and converts the polygons constituting the three-dimensional model into polygons that include the new vertex.
[0009] In the above program, the cluster generation unit may be characterized in generating the one cluster to which a vertex having an edge length equal to or less than a predetermined value belongs, the vertex being a reference point on a surface of the three-dimensional model.
[0010] In the above program, the cluster generation unit may be characterized in generating the one cluster to which a vertex having a geodesic length equal to or less than a predetermined value belongs, the vertex being derived from a point on the surface of the three-dimensional model that is a reference point.
[0011] In the above program, the three-dimensional model may be associated with one or more pieces of unfolding information used to apply textures, the unfolding information may have at least a portion of each vertex of the three-dimensional model as a vertex of the unfolding information, and the cluster generation unit may generate, for each piece of unfolding information, one cluster including the vertices of the unfolding information.
[0012] The above program may be characterized in that it causes the information processing device to function as a drawing information generation unit that generates drawing information by applying the texture corresponding to the expansion information to the three-dimensional model composed of polygons including the new vertex.
[0013] In the above program, the cluster generation unit may generate the one cluster such that a vertex corresponding to a position on a periphery of the expanded information belongs to a different cluster from the cluster generated using other vertices.
[0014] In the above program, the cluster generation unit may be characterized in that it generates a certain cluster such that a certain vertex, a first vertex belonging to three or more different pieces of expansion information, and a second vertex connected via the first vertex belong to different clusters.
[0015] In the above program, the cluster generation unit may generate the one cluster so that vertices corresponding to the outer periphery positions and belonging to a plurality of pieces of expansion information belong to a new cluster which is a product of the clusters generated for each piece of expansion information.
[0016] In the above program, the cluster generation unit may be characterized in that, for a vertex corresponding to a position on the outer periphery, if the angle between three adjacent vertices on the surface of the three-dimensional model is less than a predetermined value, the cluster generation unit generates the one cluster so that a certain vertex, a first vertex located in the center of the three vertices, and a second vertex connected via the first vertex belong to different clusters.
[0017] In the above program, the cluster generation unit may be characterized in that, when the three adjacent vertices correspond to different positions on the outer periphery of the expanded information, and an angle between the three adjacent vertices on the surface of the three-dimensional model is equal to or smaller than a predetermined value, the one cluster is generated such that a certain vertex, a first vertex located in the center of the three vertices, and a second vertex connected via the first vertex belong to different clusters.
[0018] In the above program, the polygon conversion unit may be characterized in that, when the distances between vertices corresponding to certain development information are all equal to or less than a predetermined value, the vertex corresponding to the development information is deleted.
[0019] In the above program, the polygon conversion unit may be characterized in that it detects a hole in the three-dimensional model, and uses the distance between multiple vertices that make up the hole to determine whether or not to generate a vertex to fill the hole.
[0020] The above program may be characterized in that it causes the information processing device to function as a drawing information generation unit that generates drawing information for a reference value input screen that accepts input of a reference value, and the specified value is calculated using the reference value.
[0021] In the above program, the length of the edge may be a total length of one or more edges that are edges of polygons constituting the three-dimensional model and connect two vertices.
[0022] Another aspect of the present invention that solves the above problem is an information processing device that includes a cluster generation unit that generates, for each reference point, a cluster to which vertices of polygons constituting a three-dimensional model that are located within a predetermined distance on the surface of the three-dimensional model from a reference point on the surface of the three-dimensional model belong, and a polygon conversion unit that generates a new vertex that is a vertex obtained by integrating vertices belonging to the one cluster, and converts the polygons constituting the three-dimensional model into polygons that include the new vertex.
[0023] Another aspect of the present invention that solves the above problem is a polygon conversion method executed on an information processing device, characterized by executing a cluster generation procedure that generates, for each reference point, a cluster to which vertices of polygons constituting a three-dimensional model that are located within a predetermined distance on the surface of the three-dimensional model from a reference point on the surface of the three-dimensional model belong, and a polygon conversion procedure that generates a new vertex that is a vertex obtained by integrating vertices belonging to the one cluster, and switches the polygons constituting the three-dimensional model to polygons that include the new vertex. Effect of the Invention
[0024] According to one aspect of the present invention, simplification of a three-dimensional model can be performed without evaluating edges. [Brief description of the drawings]
[0025] [Figure 1] FIG. 2 is an example of a functional block diagram of an information processing device according to the first embodiment. [Diagram 2] 2A is a diagram for explaining the distance on the surface of a three-dimensional model in the first embodiment, and FIG. 2B is a diagram for explaining the distance on the surface between vertices P1 and P2. [Diagram 3] 1 is a diagram illustrating an example of a hardware configuration of an information processing device according to a first embodiment. [Figure 4] 4 is an example of a flowchart of a cluster generation process according to the first embodiment. [Diagram 5] 5A is a diagram for explaining a cluster generation process, in which a cluster is generated using a vertex P1 as a reference vertex, and a cluster is generated using a vertex P3 as a reference vertex. [Figure 6]6A is a diagram (part 2) for explaining the cluster generation process. Fig. 6A is a diagram (part 1) for explaining the cluster allocation process of vertex P2, Fig. 6B is a diagram (part 2) for explaining the cluster allocation process of vertex P2, and Fig. 6C is a diagram showing an image after the cluster generation process is completed. [Figure 7] FIG. 13 is a diagram showing an example of a reference value input screen for accepting input of a reference value. [Figure 8] 13 is an example of a flowchart of a polygon conversion process according to the first embodiment. [Figure 9] 9A and 9B are diagrams for explaining an example of polygon conversion processing, in which Fig. 9A shows an example of a preparation state for polygon conversion processing, Fig. 9B shows an example of a state in which vertices of cluster C2 are integrated, and Fig. 9C shows an example of a state in which vertices of other clusters are integrated. [Figure 10] 13 is an example of a flowchart of a peripheral cluster generation process according to a first modified example of the first embodiment. [Figure 11] 11A and 11B are diagrams for explaining peripheral cluster generation processing in a first modified example of the first embodiment, in which Fig. 11A is a diagram for explaining the peripheral vertex cluster allocation processing in the first modified example, and Fig. 11B is a diagram showing an image after peripheral cluster generation in the first modified example is completed. [Figure 12] 13 is an example of a flowchart of a peripheral cluster generation process according to a second modified example of the first embodiment. [Figure 13] 13A and 13B are diagrams for explaining peripheral cluster generation processing in a second modified example of the first embodiment, in which Fig. 13A is a diagram for explaining the peripheral vertex cluster allocation processing in the second modified example, and Fig. 13B is a diagram showing an image after peripheral cluster generation is completed in the first modified example. [Figure 14] 13 is an example of a flowchart of a peripheral cluster generation process according to a third modified example of the first embodiment. [Figure 15]15A is a diagram (part 1) for explaining the peripheral cluster generation process in the third modified example of the first embodiment. Fig. 15A is a diagram (part 1) for explaining the peripheral vertex cluster allocation process in the third modified example, and Fig. 15B is a diagram (part 2) for explaining the peripheral vertex cluster allocation process in the third modified example. [Figure 16] Fig. 16 is a diagram (part 2) for explaining the peripheral cluster generation process in the third modified example of the first embodiment. Fig. 16(A) is a diagram (part 3) for explaining the peripheral vertex cluster allocation process in the third modified example, and Fig. 16(B) is a diagram (part 4) for explaining the peripheral vertex cluster allocation process in the third modified example. [Figure 17] 13 is an example of a flowchart of a polygon conversion process according to a fourth modified example of the first embodiment. [Figure 18] FIG. 13 is a diagram for explaining a polygon conversion process in a fourth modified example of the first embodiment. [Figure 19] 13 is an example of a flowchart of a polygon conversion process according to a fifth modified example of the first embodiment. [Figure 20] 20A and 20B are diagrams (part 1) for explaining the polygon conversion process in the fifth modified example of the first embodiment, in which Fig. 20A is a diagram for explaining a hole in a polygon, and Fig. 20B is a diagram for explaining a determination as to whether or not to fill the hole. [Figure 21] 21A is a diagram (part 1) for explaining the polygon conversion process in the fifth modified example of the first embodiment, and FIG. 21B is a diagram (part 2) for explaining the hole filling process. [Figure 22] FIG. 11 is a diagram showing an example of a hardware configuration of a game device according to a second embodiment. [Figure 23] 23A and 23B are diagrams for explaining a general polygon reduction algorithm, in which Fig. 23A shows an example of a portion of a three-dimensional model before polygon reduction, and Fig. 23B shows an example of a portion of a three-dimensional model after polygon reduction. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] <First embodiment> Hereinafter, an embodiment of the present invention will be described with reference to the drawings. When expressing a solid shape using 3D computer graphics editing software, a method of constructing a three-dimensional model using triangular and quadrilateral polygons is used. In general, in a three-dimensional model, more polygons are used to express a finer shape. However, three-dimensional model data using many polygons causes an increase in the processing load during drawing and communication.
[0027] For this reason, techniques have been developed to simplify 3D models while preserving their shape as much as possible. For example, a technique called QEM (Quadratic Error Metrics) is widely used as a technique that has high shape preservation performance for 3D models.
[0028] Fig. 23 is a diagram for explaining a general polygon reduction algorithm. Fig. 23(A) shows an example of a portion of a three-dimensional model before polygon reduction, and Fig. 23(B) shows an example of a portion of a three-dimensional model after polygon reduction. Fig. 23(B) is a diagram of a case where some polygons of the three-dimensional model in Fig. 23(A) have been reduced.
[0029] The three-dimensional model shown in FIG. 23(A) has vertices P1 and P2, which are located at both ends of edge E. A typical polygon reduction algorithm calculates the cost of reducing the two vertices at both ends of each edge in the three-dimensional model to one vertex, and determines the edges to be subject to vertex reduction in ascending order of cost. This algorithm reduces the number of vertices by generating a new vertex on the edge determined to be subject to vertex reduction and deleting the two vertices at both ends. Reducing the number of vertices reduces the number of polygons. This algorithm calculates the cost for each edge again for the three-dimensional model after vertex reduction, and repeats the process of determining the edges to be subject to vertex reduction.
[0030] In the example shown in Fig. 23, when edge E is determined to be deleted because the cost of deleting edge E is small, the algorithm deletes vertices P1 and P2 and creates a new vertex P3. In other words, vertices P1 and P2 are reduced to vertex P3. As a result, edge E is deleted.
[0031] When calculating the cost, this algorithm uses information about each face adjacent to the vertices on both ends of the edge. To explain using the example of Figure 23, in order to calculate the reduction cost of edge E, this algorithm calculates the slope (gradient) of each face in contact with vertex P1 or vertex P2, and calculates the sum of the slopes for each vertex. In addition, this algorithm determines vertex P3 that minimizes the sum of the squares of the distances between each face in contact with vertex P1 and the new vertex P3, and the sum of the squares of the distances between each face in contact with vertex P2 and vertex P3, and obtains the reduction cost of edge E using the calculated value.
[0032] In this way, in a typical polygon reduction algorithm, in order to reduce the edge with the lowest cost, a value for each face of a 3D model is calculated, a value for each vertex is calculated, and a value for each edge is calculated, and then the edge with the lowest evaluation value is identified. Furthermore, in this algorithm, in order to remove the next edge, the process needs to be repeated again, which causes an increase in the processing load.
[0033] 1 is an example of a functional block diagram of an information processing device 10 according to the first embodiment. The information processing device 10 is, for example, a device such as a PC (Personal Computer). As an example, the information processing device 10 is operated by a creator of a game program.
[0034] The information processing device 10 includes a processing unit 110, a storage unit 120, an input unit 130, an output unit 140, and a communication unit 150. The processing unit 110 performs overall control of the entire information processing device 10. The storage unit 120 stores information required for processing by the processing unit 110. The input unit 130 accepts input operations from a creator using an input device. The output unit 140 outputs information held by the information processing device 10 via the output device. The communication unit 150 mediates the transmission and reception of information to and from another information processing device (not shown) that is communicatively connected via a network.
[0035] The processing unit 110 includes a three-dimensional model acquisition unit 111, a development information acquisition unit 112, a polygon conversion unit 113, a cluster generation unit 114, a drawing information generation unit 115, and a parameter acquisition unit 116. The three-dimensional model acquisition unit 111 acquires data of a three-dimensional model composed of polygons. Hereinafter, the three-dimensional model data constituting the three-dimensional model may be simply referred to as a "three-dimensional model". For example, the three-dimensional model acquisition unit 111 acquires a three-dimensional model created by a creator who is an operator of the information processing device 10 using editing software installed in the information processing device 10 as a processing target for polygon conversion. Note that the three-dimensional model acquisition unit 111 may acquire a three-dimensional model created by another information processing device 10 via the communication unit 150.
[0036] The development information acquisition unit 112 acquires development information of the three-dimensional model. The development information is information obtained by developing a three-dimensional model in order to assign texture coordinates to the three-dimensional model. As an example, the development information acquisition unit 112 acquires two-dimensional development information in which the three-dimensional model is developed two-dimensionally in order to apply a texture to the three-dimensional model. The two-dimensional development information is information used to apply a two-dimensional texture to the three-dimensional model, and can be said to be information in which the coordinates (world coordinates) of each vertex of the three-dimensional model are associated with the texture coordinates (UV coordinates).
[0037] For example, the development information acquisition unit 112 receives an input of a cut in a three-dimensional model displayed on the editing software, and acquires two-dimensional development information developed by the input cut. In addition, when the three-dimensional model has a complex shape, it may be difficult to draw one three-dimensional model with a texture applied by one two-dimensional development information. In that case, the development information acquisition unit 112 acquires multiple pieces of development information created using one three-dimensional model. In addition, each of one or multiple pieces of two-dimensional development information created from one three-dimensional model may be called a UV island. In addition, the development information acquisition unit 112 may acquire development information created by another information processing device 10 via the communication unit 150.
[0038] The expansion information acquired by the expansion information acquisition unit 112 is not limited to information obtained by expanding a three-dimensional model into two dimensions, as long as it is information in which the coordinates of each vertex of a three-dimensional model are associated with texture coordinates. For example, if the texture coordinates are three-dimensional, the expansion information does not need to be information obtained by expanding a three-dimensional model into two dimensions.
[0039] The polygon conversion unit 113 generates a new vertex, which is a vertex obtained by integrating vertices belonging to one cluster generated by the cluster generation unit 114 described later. The polygon conversion unit 113 switches the polygons constituting the three-dimensional model to polygons including the new vertex. As a result, the number of polygons is reduced.
[0040] The cluster generating unit 114 generates, for each reference point, a cluster to which vertices located within a predetermined distance range on the surface of the three-dimensional model from the reference point on the surface of the three-dimensional model belong, among the vertices of the polygons constituting the three-dimensional model. As an example, the cluster generating unit 114 obtains the length of a geodesic line as the distance on the surface of the three-dimensional model. A geodesic line is the shortest straight line or curved line on the surface of the three-dimensional model that connects two points on the three-dimensional model. For example, the cluster generating unit 114 specifies a certain point on the surface of the three-dimensional model as a reference point, and generates, from the reference point, a cluster to which vertices belong whose geodesic line length is equal to or less than a predetermined value.
[0041] The cluster generating unit 114 may obtain the length of an edge as the distance on the surface of the three-dimensional model. An edge is a line formed by edges of a polygon that connects two vertices on the three-dimensional model with the shortest distance. In this case, for example, the cluster generating unit specifies a certain vertex of the three-dimensional model as a reference point, and generates one cluster to which a vertex whose edge length is equal to or less than a predetermined value from the reference point belongs.
[0042] Fig. 2 is a diagram for explaining the distance on the surface of a three-dimensional model in the first embodiment. Fig. 2(A) is a diagram showing an example of a part of a three-dimensional model having projections and recesses, and Fig. 2(B) is a diagram for explaining the distance on the surface between vertices P1 and P2.
[0043] In the example shown in FIG. 2(A), the three-dimensional model has a mesh M, which has vertices P1, P2, and PM. The mesh M has a vertically wavy shape, for example, like the folds of a curtain. A geodesic line R connecting vertices P1 and P2 is curved along the folds of the mesh M. In the example shown in this figure, the length of the geodesic line R is the distance on the surface of the three-dimensional model between vertices P1 and P2.
[0044] In the following description, unless otherwise specified, the distance on the surface of the three-dimensional model is assumed to be the length of a geodesic line. Note that the distance on the surface of the three-dimensional model may be the length of an edge line.
[0045] In this embodiment, the cluster generation unit 114 clusters the vertices based on the lengths of the geodesic lines. The polygon conversion unit 113 integrates the clustered vertices to generate one new vertex, thereby reducing the number of polygons.
[0046] In the example shown in Fig. 2, the range with a linear distance of R from vertex P1 is shown by a sphere X of radius N. As shown in Fig. 2(A), the linear distance from vertex P1 to vertex PM and the linear distance from vertex P1 to vertex P2 are both N or less. If the cluster generation unit 114 clusters multiple vertices with a linear distance of N or less from vertex P1, vertex P1, vertex PM, and vertex P2 all belong to the same cluster. If the polygon conversion unit 113 reduces multiple vertices that belong to the same cluster to one vertex, vertex P1 and vertex P2 will be combined, and the shape of the folds of mesh M will be damaged.
[0047] FIG. 2(B) is a diagram showing a case where the geodesic line R is extended to a straight line while maintaining the length of the geodesic line R. In the example shown in this figure, the length of the geodesic line R is the distance between vertices P1 and P2, which is the distance on the surface of the three-dimensional model. In the example shown in FIG. 2(B), the length of the geodesic line R exceeds N. When the length of the geodesic line between a certain vertex and another vertex is equal to or less than N, the cluster generating unit 114 generates a cluster to which the two vertices belong. That is, in the example shown in FIG. 2(B), the vertices P1 and P2 are not classified into the same cluster. Therefore, the vertices P1 and P2 are not integrated, and the shape of the folds of the mesh M is not damaged.
[0048] In the example shown in the figure, the length of the geodesic line between the vertex P1 and the vertex PM is less than or equal to N, so the vertex P1 and the vertex PM are classified into the same cluster. Therefore, the polygon conversion unit 113 combines the vertex P1 and the vertex PM to create a new vertex.
[0049] In addition, if two vertices located at both ends of one edge in a polygon constituting a three-dimensional model are described as two adjacent vertices, in the example shown in this figure, at least vertex PM exists between vertices P1 and P2, and vertices P1 and P2 are not adjacent to each other. When clustering a plurality of vertices using the length of a geodesic line, the vertices clustered by the cluster generation unit 114 are not limited to two adjacent vertices. The cluster generation unit 114 also determines that two vertices connected via two or more edges belong to the same cluster if the length of the geodesic line is equal to or less than a predetermined value.
[0050] As described above, the distance on the surface of the three-dimensional model may be the length of the edge. That is, in the example shown in Fig. 2, if the mesh M has only the vertex PM between the vertices P1 and P2 and has no other vertices, the distance on the surface of the three-dimensional model between the vertices P1 and P2 can be calculated by the sum of the lengths of the edge having the vertices P1 and PM at both ends and the edge having the vertices PM and P2 at both ends. Note that the method of calculating the distance on the surface of the three-dimensional model is not limited to the above example.
[0051] Returning to Fig. 1 for the explanation, the drawing information generating unit 115 generates drawing information for a three-dimensional model. As one example, the drawing information generating unit 115 generates drawing information for displaying a three-dimensional model composed of polygons including the new vertex on an editing screen of editing software. As another example, the drawing information generating unit 115 generates drawing information in which a texture corresponding to the development information is applied to a three-dimensional model composed of polygons including the new vertex. In addition, the drawing information generating unit 115 generates drawing information for a reference value input screen 141 (described later) that receives an input of a reference value that is a reference for clustering each vertex by the cluster generating unit 114.
[0052] The parameter acquisition unit 116 acquires the reference value inputted to the reference value input screen 141, and calculates a predetermined value used for determining the distance when the cluster generation unit 114 generates a cluster, by using a predetermined calculation formula. For example, the parameter acquisition unit 116 acquires the polygon reduction rate or the maximum number of polygons inputted to the reference value input screen 141 as the reference value. The parameter acquisition unit 116 applies a preset calculation formula to the inputted reference value, thereby calculating the predetermined value used for determining the distance.
[0053] The storage unit 120 stores three-dimensional model information 121 and unfolded information 122. The three-dimensional model information 121 is three-dimensional model data acquired by the three-dimensional model acquisition unit 111. The unfolded information 122 is information acquired by the unfolded information acquisition unit 112, and is information in which world coordinates and texture coordinates of vertices of the three-dimensional model data are associated with each other. In this embodiment, the unfolded information 122 is one or more UV islands created for one three-dimensional model. Each vertex included in the UV island has UV coordinates and is associated with each vertex of the three-dimensional model.
[0054] 3 is an example of a hardware configuration diagram of the information processing device 10 in the first embodiment. The information processing device 10 has a processor 11, a memory 12, a storage 13, an input interface device 14, an output interface device 15, and a communication interface device 16, and each component is connected by a bus.
[0055] The processor 11 is an arithmetic unit such as a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit), and executes processing according to a program recorded in the memory 12 or the storage 13. Each element constituting the processing unit 110 realizes its respective function by the processor 11 executing the program. The memory 12 is a storage device such as a RAM (Random Access Memory). The storage 13 is a recording device such as a HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash ROM (Read Only Memory).
[0056] The input interface device 14 is connected to an input device such as a keyboard, a mouse, a touch panel, etc., and receives operation signals from the input device. The output interface device 15 is connected to an output device such as a display, etc., and outputs to the output device. The communication interface device 16 is a device for transmitting and receiving information, including a communication device that performs wired communication via a network cable and a communication device that performs wireless communication via an antenna.
[0057] For example, the processor 11 reads a computer graphics software program stored in the storage 13 and expands it in the memory 12. The computer graphics software is pre-installed in the information processing device 10. The processor 11 executes the program to output desired information on a display screen of the computer graphics software in accordance with, for example, an input operation signal from the information processing device 10.
[0058] The processing of each component of the information processing device 10 may be executed by one piece of hardware or by multiple pieces of hardware. The processing of each component of the information processing device 10 may be realized by one program or by multiple programs. For example, after polygon reduction is performed by a certain piece of hardware, the three-dimensional model may be provided to another information processing device 10, and rendering information of the three-dimensional model may be generated by the other information processing device 10.
[0059] 4 is an example of a flowchart of a cluster generation process in the first embodiment. Before starting the process in this figure, the three-dimensional model acquisition unit 111 acquires a three-dimensional model to be subjected to polygon reduction, and stores it in the storage unit 120 as three-dimensional model information 121. In addition, the unfolded information acquisition unit 112 acquires a UV island of the three-dimensional model information 121 acquired by the three-dimensional model acquisition unit 111, and stores it in the storage unit 120 as unfolded information 122.
[0060] First, the cluster generating unit 114 specifies a UV island to be processed (step S11). Specifically, when the cluster generating unit 114 receives an input operation specifying a three-dimensional model to be processed, the cluster generating unit 114 specifies one of the UV islands obtained by developing the specified three-dimensional model as the processing target. Note that the cluster generating unit 114 may specify the UV island by receiving an input operation specifying the UV island to be processed.
[0061] Next, the cluster generation unit 114 extracts vertices included in the UV island (step S12). Specifically, the cluster generation unit 114 refers to the expansion information 122 for the UV island identified in step S11, and extracts the vertices included in the UV island. Each vertex on the extracted UV island has texture coordinates for specifying the position to which the texture is applied when the texture is applied to the three-dimensional model. The cluster generation unit 114 extracts vertices of the three-dimensional model corresponding to the vertices of the extracted UV island. Each vertex of the three-dimensional model has world coordinates indicating the position in the space in which the three-dimensional model is displayed.
[0062] Next, the cluster generating unit 114 determines, from the vertices extracted in step S12, any one vertex that is not included in a cluster as a reference vertex (step S13).
[0063] Next, the cluster generating unit 114 extracts vertices whose geodesic line lengths are equal to or less than a predetermined value to generate a cluster (step S14). Specifically, the cluster generating unit 114 extracts another vertex whose geodesic line length is equal to or less than a predetermined value from the reference vertex identified in step S13 as a starting point if such another vertex exists. The cluster generating unit 114 generates a cluster such that the reference vertex and the extracted vertex belong to the same cluster. Note that, if there is no other vertex whose geodesic line length from the reference vertex is equal to or less than a predetermined value, the cluster generating unit 114 generates a cluster including only the reference vertex.
[0064] Next, the cluster generating unit 114 determines whether or not there is a vertex that is included in multiple clusters (step S15). Specifically, the cluster generating unit 114 determines whether or not there is a vertex that overlaps and belongs to multiple clusters as a result of the cluster generation in step S14.
[0065] If the cluster generating unit 114 determines that there is a vertex that is included in multiple clusters (YES in step S15), the cluster generating unit 114 includes the vertex in the cluster to which the reference vertex is closest (step S16). Specifically, for each vertex determined in step S15 to be included in multiple clusters, the cluster generating unit 114 identifies the cluster to which the reference vertex is closest among the clusters to which the vertex belongs. The cluster determining unit assigns the vertex to belong to the cluster to which the reference vertex is closest. The cluster generating unit 114 uses the length of the geodesic line to determine which reference vertex the vertex is closest to.
[0066] As a result of this process, in step S15, each vertex that is determined to be included in multiple clusters is changed in cluster allocation so that it belongs to one cluster.
[0067] When the cluster generating unit 114 determines that there is no vertex included in multiple clusters ("NO" in step S15), or after step S16, the cluster generating unit 114 determines whether there is a vertex that is not included in a cluster (step S17). Specifically, the cluster generating unit 114 determines whether there is a vertex that is not yet included in a cluster among the vertices extracted in step S12.
[0068] If the cluster generating unit 114 determines that there is no vertex that is not yet included in a cluster ("NO" in step S17), the processing unit 110 ends the processing of this flowchart.
[0069] If the cluster generating unit 114 determines that there is a vertex that is not yet included in the cluster (YES in step S17), the cluster generating unit 114 moves the process to step S13. As a result, the cluster generating unit 114 determines one of the vertices that it has determined not yet included in the cluster as a reference vertex in step S13.
[0070] Figure 5 is a diagram (part 1) for explaining the cluster generation process. Figure 5(A) is an example of a diagram in which a cluster is generated with vertex P1 as the reference vertex, and Figure 5(B) is an example of a diagram in which a cluster is generated with vertex P3 as the reference vertex. The black dots shown in Figure 5 each indicate a vertex in the world coordinates of the three-dimensional model.
[0071] In the example shown in FIG. 5(A), the cluster generating unit 114 determines the vertex P1 as the reference vertex. In this figure, a space in which the length of a geodesic line from the vertex P1 is L is displayed as a simulated circle Y1. Note that the length of the geodesic line is affected by the unevenness of the surface of the three-dimensional model, and distortion occurs when generating the development information, so the actual circle Y1 may not be a perfect circle. The cluster generating unit 114 extracts vertices in the world coordinate system in which the length of the geodesic line from the vertex P1 is equal to or less than L, and generates one cluster to which the extracted vertices belong. As a result, the cluster generating unit 114 generates a cluster including the vertex P1, the vertex P2, and a plurality of other vertices.
[0072] 5B, the cluster generation unit 114 generates a cluster C1 including a vertex P2, with a vertex P1 as a reference vertex. After that, the cluster generation unit 114 extracts vertices having a geodesic line length L or less from the reference vertex, with a vertex P3 as a reference vertex. Note that in this figure, the vertex P2 belongs to the cluster C1, and the length of the geodesic line between the vertex P2 and the vertex P3 is L or less. That is, in the above-mentioned step S15, the cluster generation unit 114 determines that the vertex P2 is included in multiple clusters.
[0073] Fig. 6 is a diagram (part 2) for explaining the cluster generation process. Fig. 6(A) is a diagram (part 1) for explaining the cluster allocation process of vertex P2, Fig. 6(B) is a diagram (part 2) for explaining the cluster allocation process of vertex P2, and Fig. 6(C) is a diagram showing an image after the cluster generation process is completed.
[0074] In FIG. 5(B), for a vertex P2 determined to be included in multiple clusters, the cluster determination unit determines whether the vertex P2 is closer to the reference vertex P1 or the reference vertex P2, as shown in FIG. 6(A). That is, in the above-mentioned step S16, the cluster generation unit 114 specifies a geodesic line Z1 between the vertex P2 and the reference vertex P1. The cluster generation unit 114 also specifies a geodesic line Z2 between the vertex P2 and the reference vertex P3. The cluster generation unit 114 compares the geodesic line Z1 with the geodesic line Z2, and determines that the vertex P2 is closer to the reference vertex P3. Note that in FIG. 6(A), the geodesic lines Z1 and Z2 are shown as straight lines for convenience, but the actual geodesic lines Z1 and Z2 may be curved lines due to the influence of unevenness on the surface of the three-dimensional model.
[0075] As a result, as shown in FIG. 6(B), vertex P2 is clustered to belong to the same cluster C2 as reference vertex P3.
[0076] After that, the cluster generating unit 114 executes a process of generating clusters for the vertices not included in any cluster. As a result, as shown in FIG. 6C, a cluster is generated so that the extracted vertices are included in one of the clusters C1 to C4.
[0077] 4, the cluster generation unit 114 determines a reference vertex from among the vertices included in the UV island, and classifies the other vertices into clusters based on the length of a geodesic line from the reference vertex. However, the cluster generation unit 114 may classify each vertex into a cluster based on the length of a geodesic line from an arbitrary reference point located on the surface of the three-dimensional model. That is, the reference point is not limited to a vertex of the three-dimensional model. That is, the reference point includes the reference vertex.
[0078] As a result of the cluster generation process shown in Fig. 4, clusters are generated so that the vertices of the three-dimensional model corresponding to the UV islands belong to one of the clusters. For example, the cluster generation unit 114 executes the cluster generation process for all UV islands generated for the three-dimensional model to be processed. By this process, the vertices of the three-dimensional model corresponding to each UV island are classified into one of the clusters.
[0079] In other words, each UV island has at least some of the vertices of the three-dimensional model as vertices of the unfolded information. For each UV island that is the unfolded information, the cluster generator 114 generates a cluster that includes the vertices of the three-dimensional model that correspond to the vertices of the unfolded information.
[0080] When reducing some polygons of a three-dimensional model, the cluster generation unit 114 can accept the designation of a UV island to be the target of polygon conversion. In this case, the cluster generation unit 114 generates a cluster so that the vertices of the three-dimensional model corresponding to the designated UV island are included, and does not generate a cluster for the vertices corresponding to the undesignated UV island.
[0081] 7 is a diagram showing an example of a reference value input screen 141 that accepts input of a reference value. When the drawing information generating unit 115 accepts an instruction to display the reference value input screen 141 via the input unit 130, the drawing information generating unit 115 displays the reference value input screen 141 on the display.
[0082] In the example shown in the figure, the reference value input screen 141 accepts the selection of either the reduction rate or the maximum number of polygons, and accepts the input of the reference value of the selected type. The parameter acquisition unit 116 calculates a predetermined value to be used in the proximity determination by applying a predetermined formula to the reference value input on the reference value input screen 141. The predetermined value obtained as a result of the calculation is used to determine whether or not to extract a vertex in step S14 of the flowchart shown in FIG.
[0083] 8 is an example of a flowchart of the polygon conversion process in the first embodiment. Before the start of this process, one or more clusters including a plurality of vertices of at least a part of the three-dimensional model are generated. For example, when the polygon conversion unit 113 receives a designation of a three-dimensional model to be reduced in the number of polygons, this process is started.
[0084] First, the polygon conversion unit 113 identifies a cluster to be processed (step S21). For example, the polygon conversion unit 113 identifies one cluster to be processed from one or more clusters of the three-dimensional model specified before the start of this process.
[0085] Next, the polygon conversion unit 113 determines whether or not multiple vertices are present in the cluster (step S22). Specifically, the polygon conversion unit 113 determines whether or not multiple vertices of the three-dimensional model are included in the cluster identified as the processing target in step S21.
[0086] If the polygon conversion unit 113 determines that a cluster contains multiple vertices (if "YES" in step S22), the polygon conversion unit 113 calculates the arithmetic mean of the coordinates of the vertices in the cluster, sets the arithmetic mean as the coordinates of a new vertex, and deletes the original vertex (step S23). Specifically, the polygon conversion unit 113 refers to the three-dimensional model information 121 and identifies the world coordinates of each vertex included in the cluster identified as the processing target in step S21. The polygon conversion unit 113 calculates the arithmetic mean of the coordinates of each identified vertex, and determines the arithmetic mean as the coordinates of the new vertex. The polygon conversion unit 113 deletes the other vertices included in the processing target cluster, and updates the three-dimensional model information 121. That is, the polygon conversion unit 113 integrates the vertices in the cluster to generate a new vertex.
[0087] As a result of the generation of the new vertex, the polygon of the three-dimensional model is switched to a polygon including the new vertex. When there are multiple vertices in a cluster, the number of vertices in the three-dimensional model is reduced by the generation of the new vertex. When the number of vertices in the three-dimensional model is reduced, the number of polygons constituting the three-dimensional model is reduced. In addition, when there is one vertex in a cluster, the polygon conversion unit 113 treats the vertex as a new vertex.
[0088] Each vertex included in the three-dimensional model has various vertex data such as normal information, vertex color information, weight information, etc. The polygon conversion unit 113 calculates the arithmetic mean of each vertex data for the vertices in the cluster, and stores it in the three-dimensional model information 121 as the vertex data of the new vertex.
[0089] If the polygon conversion unit 113 determines that there are no vertices in the cluster (if "NO" in step S22), or after the processing of step S23, the polygon conversion unit 113 determines whether or not there is an unprocessed cluster (step S24). For example, the polygon conversion unit 113 determines whether or not there is a cluster that has not been specified as the processing target in step S21 among the clusters of the processing target 3D model.
[0090] If the polygon conversion unit 113 determines that there is an unprocessed cluster (YES in step S24), the polygon conversion unit 113 shifts the process to step S21. As a result, in step S21, the polygon conversion unit 113 specifies one of the unprocessed clusters as a processing target.
[0091] When the polygon conversion unit 113 determines that there is no unprocessed cluster ("NO" in step S24), the processing unit 110 ends the processing of this flowchart.
[0092] Fig. 9 is a diagram for explaining an example of polygon conversion processing. Fig. 9(A) shows an example of a preparation state for polygon conversion processing, Fig. 9(B) shows an example of a state in which the vertices of cluster C2 are integrated, and Fig. 9(C) shows an example of a state in which the vertices of other clusters are integrated.
[0093] 9(A), cluster C2 includes vertices P2 to P5. Polygon conversion unit 113 calculates the arithmetic mean of the coordinates of vertices P2 to P5 and determines this as the coordinates of new vertex P6. Polygon conversion unit 113 deletes the vertices other than new vertex P6 from among the vertices included in cluster C2.
[0094] 9B, as a result of the polygon conversion unit 113 deleting the vertices included in the cluster C2, only the new vertex P6 is included in the cluster C2. The polygon conversion unit 113 also performs similar polygon conversion processing on the clusters C1, C3, and C4.
[0095] As shown in Figure 9(C), as a result of the polygon conversion unit 113 integrating the vertices contained in clusters C1, C3, and C4, cluster C1 contains only new vertex P8, cluster C3 contains only new vertex P9, and cluster C4 contains only new vertex P7.
[0096] As described above, according to this embodiment, the vertices of a three-dimensional model are integrated based on the distance on the surface of the three-dimensional model, so that the number of polygons can be reduced. Also, according to this embodiment, a process is performed to switch the polygons constituting the three-dimensional model to polygons including new vertices, so that a simplified three-dimensional model can be obtained.
[0097] <First Modification> Next, a first modification of this embodiment will be described, focusing on the differences from the above embodiment.
[0098] As described above, a UV island is information in which at least a part of a three-dimensional model is expanded two-dimensionally as two-dimensional expansion information, and UV coordinates are assigned to each vertex. Since a UV island is used to apply a texture to a three-dimensional model, it is highly likely that a vertex located on the periphery of a UV island is a vertex located on the boundary of a texture or on the edge of a three-dimensional model.
[0099] If vertices located on the periphery of a UV island are classified into clusters in the same way as other vertices and then subjected to vertex reduction processing, the shape of the edge of the three-dimensional model and the boundary of the texture will be damaged, which will have a large impact on aesthetics. Therefore, in this modified example, clusters are generated so that each vertex of the three-dimensional model that corresponds to a position on the periphery of the UV island constitutes a periphery cluster that is different from other vertices that are not located on the periphery of the UV island.
[0100] As an example, when a plurality of UV islands are generated using one three-dimensional model, a vertex located on the boundary between the plurality of UV islands belongs to each of the UV islands. Therefore, the vertex may have unique UV coordinates for each of the UV islands to which it belongs. In the example shown below, when one vertex on a three-dimensional model belongs to two UV islands, the vertex has one world coordinate and two UV coordinates.
[0101] In other words, if a vertex with one world coordinate has multiple UV coordinates, there is a high possibility that the vertex is located on the boundary of multiple UV islands.
[0102] 10 is an example of a flowchart of a periphery cluster generation process in the first modified example of the first embodiment. For example, the process of this flowchart is executed for each UV island created for a three-dimensional model to be subjected to a polygon conversion process after the cluster generation process shown in FIG. 4 is completed.
[0103] The process of step S31 is similar to the process of step S11 in FIG. 4, and therefore a description thereof will be omitted.
[0104] Next, the cluster generation unit 114 extracts peripheral vertices located on the periphery of the UV island (step S32). Hereinafter, vertices of the three-dimensional model corresponding to vertices located on the periphery of the UV island will be described as "periphery vertices". The cluster generation unit 114 refers to the expansion information 122 for the UV island identified as the processing target in step S31, and extracts vertices located on the periphery. The cluster generation unit 114 extracts vertices of the three-dimensional model corresponding to the vertices of the UV island as peripheral vertices.
[0105] Next, the cluster generating unit 114 determines, as a reference vertex, one arbitrary vertex that is not included in the peripheral cluster from among the peripheral vertices (step S33). Specifically, the cluster generating unit 114 determines, as a reference vertex, one arbitrary vertex that is not included in the peripheral cluster from among the peripheral vertices extracted in step S32.
[0106] Next, the cluster generating unit 114 extracts other outer periphery vertices whose geodesic line lengths are equal to or less than a predetermined value (step S34). Specifically, the cluster generating unit 114 extracts other outer periphery vertices whose distances from the reference vertex determined in step S33 are equal to or less than a predetermined value among the outer periphery vertices extracted in step S32. Note that the length of the geodesic line used for the determination in this step is the length on the surface of the three-dimensional model, similar to the length of the geodesic line in the above-mentioned embodiment.
[0107] Next, the cluster generation unit 114 determines whether the reference vertex belongs to three or more UV islands (step S35). Specifically, the cluster generation unit 114 determines whether the reference vertex determined in step S33 belongs to three or more UV islands with reference to the expansion information 122. For example, when the vertex has three or more UV coordinates, the cluster generation unit 114 determines that the vertex belongs to three or more UV islands.
[0108] If the cluster generation unit 114 determines that the reference vertex does not belong to three or more UV islands ("NO" in step S35), the cluster generation unit 114 determines whether or not other outer periphery vertices that belong to three or more UV islands have been identified (step S36). Specifically, the cluster generation unit 114 refers to the expansion information 122 and determines whether or not there is a outer periphery vertex that belongs to three or more UV islands among the outer periphery vertices extracted in step S34.
[0109] If the cluster generation unit 114 determines that another outer periphery vertex belonging to three or more UV islands has been identified ("YES" in step S36), the cluster generation unit 114 excludes the relevant outer periphery vertex and other outer periphery vertices connected via the relevant outer periphery vertex from the extraction (step S37). Specifically, the cluster generation unit 114 excludes the outer periphery vertices belonging to three or more UV islands from the outer periphery vertices extracted in step S34. In addition, the cluster generation unit 114 excludes other outer periphery vertices connected to the reference vertex via vertices belonging to three or more UV islands from the outer periphery vertices extracted in step S34.
[0110] If it is determined that other perimeter vertices belonging to three or more UV islands have not been identified (NO in step S36), or after the processing of step S37, the cluster generating unit 114 generates a perimeter cluster including the extracted perimeter vertices (step S38). Note that the perimeter cluster generated in this step does not include vertices of the three-dimensional model that are not located on the periphery of the UV island.
[0111] Next, the cluster generating unit 114 determines whether or not there is any perimeter vertex that is not included in the perimeter cluster among the perimeter vertices (step S39). Specifically, the cluster generating unit 114 determines whether or not there is any perimeter vertex that is not included in the perimeter cluster among the perimeter vertices extracted in step S32.
[0112] If the cluster generating unit 114 determines that there is a vertex that is not included in the perimeter cluster among the perimeter vertices (YES in step S39), the cluster generating unit 114 proceeds to step S33. That is, in step S33, any one of the perimeter vertices that is not included in the perimeter cluster is determined as a reference vertex.
[0113] If the cluster generating unit 114 determines that there is no vertex that is not included in the peripheral cluster among the peripheral vertices ("NO" in step S39), the processing unit 110 ends the processing of this flowchart.
[0114] In step S35, if the cluster generation unit 114 determines that the reference vertex belongs to three or more UV islands (YES in step S35), the cluster generation unit 114 excludes vertices other than the reference vertex from extraction (step S40). That is, as a result of this step, only the reference vertex is extracted as a peripheral vertex.
[0115] The process executed in steps S41 and S42 is similar to the process executed in steps S38 and S39, and therefore the description thereof will be omitted.
[0116] Fig. 11 is a diagram for explaining peripheral cluster generation processing in a first modified example of the first embodiment. Fig. 11(A) is a diagram for explaining the peripheral vertex cluster allocation processing in the first modified example, and Fig. 11(B) is a diagram showing an image after peripheral cluster generation is completed in the first modified example.
[0117] 11A, vertices P1 to P4 each belong to UV island UV1. Vertex P1, vertex P2, and vertex P5 each belong to UV island UV2. Vertex P2, vertex P3, vertex P4, vertex P6, and vertex P7 each belong to UV island UV3. Vertex P2, vertex P5, vertex P6, and vertex P7 each belong to UV island UV4.
[0118] The cluster generating unit 114 specifies the vertex P1 as a reference vertex. The cluster generating unit 114 extracts vertices P2, P3, P4, P5, and P6 of other peripheries whose geodesic lines have lengths equal to or less than L, starting from the reference vertex P1.
[0119] 10, the cluster generation unit 114 specifies vertex P2 as a peripheral vertex belonging to three or more UV islands among the vertices near the reference vertex P1. Among the vertices near the reference vertex P1, the cluster generation unit 114 excludes vertex P2, and vertices P3, P4, P5, and P6 connected to the reference vertex P1 via vertex P2 from extraction.
[0120] 11(B), as a result of the peripheral cluster generation process by the cluster generation unit 114, vertices P2, P3, P4, P5, and P6 excluded from extraction are not included in cluster C1, which is the peripheral cluster to which reference vertex P1 belongs. Furthermore, vertex P2 which belongs to three or more UV islands belongs to cluster C2 which includes only vertex P2. In other words, as shown in this figure, the cluster generation unit 114 generates a peripheral cluster such that peripheral vertices which belong to three or more different UV islands, and other peripheral vertices connected via these peripheral vertices, belong to a different cluster from vertex P1, which is the reference vertex.
[0121] As described above, according to this modification, a cluster is generated so that the vertices of the three-dimensional model corresponding to the positions of the periphery of the UV island belong to a different periphery cluster from the cluster generated using the other vertices. Therefore, it is possible to simplify the polygons while suppressing the influence on the shapes of the polygons located at the edge of the three-dimensional model or the texture boundary. Also, in this modification, a process of switching the polygons constituting the three-dimensional model to polygons including the new vertices is performed, so that a simplified three-dimensional model can be obtained.
[0122] In addition, the vertices are clustered so that the periphery vertices that belong to three or more UV islands and the other vertices connected through the periphery vertices belong to a different cluster from the reference vertex. Therefore, when reducing the number of polygons, the effect on the appearance of the 3D model after applying textures can be suppressed.
[0123] <Second Modification> Next, a second modified example of this embodiment will be described. Below, the differences from the above embodiment will be described. In this modified example, when an angle formed by three vertices connected in series is equal to or smaller than a predetermined value, the corresponding part of the three-dimensional model is considered to have a high possibility of having a characteristic shape, and reduction of polygons is suppressed.
[0124] Fig. 12 is an example of a flowchart of a periphery cluster generation process in a second modified example of the first embodiment. For example, the process of this flowchart is executed after the cluster generation process shown in Fig. 4 is completed for each UV island created for a three-dimensional model to be subjected to polygon conversion process, similar to the periphery cluster generation process shown in Fig. 10. Note that the process of this flowchart may be executed before or after the periphery cluster generation process shown in Fig. 10.
[0125] The process from step S51 to step S54 is similar to the process from step S31 to step S34 in FIG. 10, and therefore the description thereof will be omitted.
[0126] Next, the cluster generating unit 114 extracts the angles formed by three adjacent vertices (step S55). Specifically, the cluster generating unit 114 extracts the angles formed by three vertices connected in series from among the outer perimeter vertices extracted in step S52. Note that the angle formed by three adjacent vertices refers to the angle formed by two edges having two vertices of the three vertices at both ends, and refers to the angle on the minor angle side. Also, the angle formed refers to the angle on the surface of the three-dimensional model formed by the three vertices of the three-dimensional model.
[0127] In this embodiment, an edge having each of the extracted outer periphery vertices at both ends may branch. When an edge branches, the cluster generation unit 114 extracts the angles of each of the branched edges as angles of three vertices connected in series. In the example shown in FIG. 11(A), an edge formed by the outer periphery vertices branches with vertex P2 at the center. The cluster generation unit 114 extracts the angle formed by vertex P1-vertex P2-vertex P3, the angle formed by vertex P1-vertex 2-vertex P5, the angle formed by vertex P3-vertex P2-vertex P6, and the angle formed by vertex P5-vertex P2-vertex P6.
[0128] Returning to Fig. 12 for explanation, next, the cluster generating unit 114 judges whether or not the angle between the reference vertex and two vertices adjacent to the reference vertex is equal to or smaller than a predetermined value (step S56). That is, the cluster generating unit 114 judges whether or not the angle between two edges having the reference vertex at one end is equal to or smaller than a predetermined value. In other words, the cluster generating unit 114 judges whether or not the angle between three vertices adjacent in series and having the reference vertex at the center is equal to or smaller than a predetermined value. Incidentally, "having the reference vertex at the center" means that the vertex is the second vertex among the three vertices, and does not necessarily mean that the vertex is the midpoint of the first and third outer perimeter vertices.
[0129] In other words, the predetermined value can be calculated by the parameter acquisition unit 116 by applying a predetermined formula to the reference value input by the operator, similar to the predetermined value used for cluster determination by the cluster generation unit 114. The parameter acquisition unit 116 may accept an input operation of the angle itself used for the predetermined value.
[0130] If the cluster generating unit 114 determines that the angle between the reference vertex and the two vertices adjacent to the reference vertex is not equal to or less than a predetermined value (NO in step S56), the cluster generating unit 114 determines whether or not there is another combination of outer perimeter vertices whose angle is equal to or less than a predetermined value (step S57). Specifically, the cluster generating unit 114 determines whether or not there is a combination of three outer perimeter vertices whose angle is equal to or less than a predetermined value, which were extracted in step S55.
[0131] If the cluster determination unit determines that there is another combination of outer perimeter vertices whose angle is equal to or smaller than the predetermined value (if "YES" in step S57), the cluster generation unit 114 excludes the corresponding outer perimeter vertex and other outer perimeter vertices connected via the corresponding outer perimeter vertex from the extraction (step S58). Specifically, in step S57, the cluster generation unit 114 identifies a central outer perimeter vertex among the combinations of three outer perimeter vertices whose angle is equal to or smaller than the predetermined value. The cluster generation unit 114 excludes the identified outer perimeter vertex from the outer perimeter vertices extracted in step S54. In addition, the cluster generation unit 114 excludes other outer perimeter vertices connected to the reference vertex via the identified outer perimeter vertex from the outer perimeter vertices extracted in step S54.
[0132] If it is determined that there is no other combination of perimeter vertices whose angle is equal to or smaller than the predetermined value (NO in step S57), or after the processing of step S58, the cluster generating unit 114 generates a perimeter cluster including the extracted perimeter vertices (step S59). Note that the perimeter cluster generated in this step does not include vertices of the 3D model that are not located on the perimeter of the UV island.
[0133] The process executed in steps S60 to S63 is similar to the process executed in steps S39 to S42 in FIG. 10, and therefore the description thereof will be omitted.
[0134] Fig. 13 is a diagram for explaining peripheral cluster generation processing in a second modified example of the first embodiment. Fig. 13(A) is a diagram for explaining the peripheral vertex cluster allocation processing in the second modified example, and Fig. 13(B) is a diagram showing an image after peripheral cluster generation is completed in the second modified example.
[0135] In the example shown in Fig. 13(A), vertices P1 to P4 are vertices of a three-dimensional model located on the periphery of a UV island. The cluster generation unit 114 specifies the vertex P1 as a reference vertex, and extracts the vertices P2, P3, and P4 as part of the periphery vertices whose geodesic length from the reference vertex P1 is equal to or less than L. In step S57 in Fig. 12, the cluster generation unit 114 determines that the angle θ formed by the vertices P2, P3, and P4 is equal to or less than a predetermined value T. The cluster generation unit 114 excludes, from the extraction, the vertex P3 located in the center of the angle θ and the vertex P4 connected via the vertex P3, among the vertices near the reference vertex P1.
[0136] As shown in Fig. 13(B), as a result of the peripheral cluster generation process of the cluster generation unit 114 in the second modified example, vertices P3 and P4, which were excluded from extraction, are not included in cluster C1, which is the peripheral cluster to which reference vertex P1 belongs. Furthermore, vertex P3, which is located at the center of three peripheral vertices whose angle is equal to or less than a predetermined value T, belongs to cluster C2, which includes only vertex P3. In other words, as shown in this figure, the cluster generation unit 114 generates a peripheral cluster such that vertex P3, which is located at the center of peripheral vertices whose angle is equal to or less than a predetermined value T, and vertex P4, which is another peripheral vertex connected via vertex P3, belong to a cluster different from reference vertex P1.
[0137] As described above, according to this modified example, among the vertices of the three-dimensional model corresponding to the positions of the periphery of the UV island, a cluster is generated so that the periphery vertex located at the center of three vertices that form an angle of a predetermined value or less belongs to a different periphery cluster from the other periphery vertices. If the angle formed by three adjacent vertices among the vertices of the three-dimensional model located on the periphery of the UV island is small, the shape of the polygon or the shape of the texture of the corresponding part may be characteristic, and it may not be appropriate to target it for reduction. By generating a cluster with reference to the angle formed by the periphery vertices, it is possible to suppress polygon conversion of characteristic shapes, and to obtain a three-dimensional model after polygon reduction of higher quality.
[0138] In this modification, the cluster generation unit 114 generates a perimeter cluster by referring to the angle between multiple outer perimeter vertices that belong to the same UV island. However, the cluster generation unit 114 can also refer to the angle between multiple outer perimeter vertices that belong to different UV islands. That is, when three adjacent vertices are located at the perimeter positions of different UV islands, the cluster generation unit 114 can determine whether the angle between the three vertices is equal to or smaller than a predetermined value. As a result, even when the angle between two UV islands is equal to or smaller than a predetermined value, the cluster generation unit 114 can generate a cluster such that the reference vertex belongs to a different cluster from the vertices that belong to the other UV islands.
[0139] <Third modified example> Next, a third modified example of this embodiment will be described. Below, the differences from the above-mentioned embodiment will be described. In this modified example, by appropriately generating clusters for vertices located on the boundaries of multiple UV islands, the influence on the appearance of the three-dimensional model after polygon conversion is suppressed.
[0140] Fig. 14 is an example of a flowchart of a periphery cluster generation process in a third modified example of the first embodiment. For example, the process of this flowchart is executed after the cluster generation process shown in Fig. 4 is completed for each UV island created for a three-dimensional model to be subjected to polygon conversion process, similar to the periphery cluster generation process shown in Fig. 10. Note that the process of this flowchart may be executed before or after the periphery cluster generation process shown in Fig. 10 and Fig. 12. For example, the process of this flowchart is started when an input operation for designating a target three-dimensional model is accepted.
[0141] First, the cluster generation unit 114 extracts peripheral vertices located on the periphery of a UV island (step S71). Specifically, the cluster generation unit 114 refers to the expansion information 122 and extracts peripheral vertices of a three-dimensional model located on the periphery of a UV island generated for a target three-dimensional model.
[0142] Next, the cluster generation unit 114 extracts a cluster including the peripheral vertices (step S72). Specifically, the cluster generation unit 114 extracts a cluster including the peripheral vertices extracted in step S71. The extracted cluster may include vertices other than the peripheral vertices, or may be a cluster that does not include vertices other than the peripheral vertices, like the peripheral clusters generated in the first or second modified example described above.
[0143] Next, the cluster generation unit 114 determines whether or not there are multiple clusters that include the same outer periphery vertex (step S73). As described above, in this embodiment, when one vertex of a three-dimensional model belongs to multiple UV islands, it has multiple UV coordinates. When clusters are generated based on the UV coordinates, there is a possibility that one vertex belongs to multiple clusters.
[0144] If the cluster generating unit 114 determines that there are no multiple clusters that include the same peripheral vertex ("NO" in step S73), the cluster generating unit 114 ends the processing of this flowchart.
[0145] Fig. 15 is a diagram (part 1) for explaining the peripheral cluster generation process in the third modified example of the first embodiment. Fig. 15(A) is a diagram (part 1) for explaining the peripheral vertex cluster allocation process in the third modified example, and Fig. 15(B) is a diagram (part 2) for explaining the peripheral vertex cluster allocation process in the third modified example.
[0146] 15 are vertices on a three-dimensional model and have world coordinates. The vertices located on the dotted line of UV1 are simulated vertices of the UV island UV1 that correspond to the vertices P1 to P7. Similarly, the vertices located on the dotted line of UV2 are simulated vertices of the UV island UV2 that correspond to the vertices P1 to P7.
[0147] In the example shown in the figure, vertices P2 to P5 belong to cluster C11. Also, vertices P3 to P7 belong to cluster C21. That is, vertices P3, P4, and P5 belong to different clusters. Therefore, in step S73 of Fig. 14, the cluster generating unit 114 determines that there are multiple clusters that include vertices P3, P4, and P5, which are peripheral vertices.
[0148] Returning to Fig. 14 for explanation, if the cluster generation unit 114 determines that there are multiple clusters that include the same outer periphery vertex (if "YES" in step S73), the cluster generation unit 114 generates a new cluster that is the intersection of the multiple clusters, and assigns the outer periphery vertex to it (step S74). Specifically, for the vertices of the three-dimensional model that belong to multiple UV islands, the cluster generation unit 114 generates a new cluster that is the intersection of the clusters generated for each UV island.
[0149] The cluster generation unit 114 assigns the peripheral vertices that are determined to be included in multiple clusters to a new cluster. After completing this process, the cluster generation unit 114 transitions to step S73. That is, the cluster generation unit 114 repeats the process of step S74 until it determines that there are no multiple clusters that include the same peripheral vertex.
[0150] 15B, the cluster generation unit 114 generates a new cluster C31 including vertices P3, P4, and P5 that are determined to belong to multiple clusters. That is, the cluster generation unit 114 generates a new cluster C31 that is the intersection of cluster C11 and cluster C21, and assigns vertices P3, P4, and P5 that are determined to belong to multiple clusters to the new cluster C31.
[0151] Fig. 16 is a diagram (part 2) for explaining the peripheral cluster generation process in the third modified example of the first embodiment. Fig. 16(A) is a diagram (part 3) for explaining the peripheral vertex cluster allocation process in the third modified example, and Fig. 16(B) is a diagram (part 4) for explaining the peripheral vertex cluster allocation process in the third modified example.
[0152] In the example shown in FIG. 16(A), vertex P2 belongs to clusters C11 and C22. Therefore, the cluster generation unit 114 generates cluster C32, which is the intersection of clusters C11 and C22, and assigns vertex P2. Similarly, vertices P6 and P7 belong to clusters C13 and C21. Therefore, the cluster generation unit 114 generates cluster C33, which is the intersection of clusters C13 and C21, and assigns vertices P6 and P7. Note that vertex P1 belongs to clusters C12 and C22. Therefore, similarly, the cluster generation unit 114 generates cluster C34, which is the intersection of clusters C12 and C22, and assigns vertex P1.
[0153] As a result, as shown in FIG. 16(B), vertex P1 is assigned to cluster C34, vertex P2 is assigned to cluster C32, vertices P3, P4, and P5 are assigned to cluster C31, and vertices P6 and P7 are assigned to cluster C33.
[0154] In addition, when vertices are integrated while still belonging to multiple clusters, vertices near the boundaries of UV islands are reduced using different criteria, which may have an unintended effect on the appearance of the three-dimensional model. According to this modification, vertices that belonged to multiple clusters are reassigned to belong to one cluster, which makes it possible to simplify the three-dimensional model while suppressing the effect on the appearance of the three-dimensional model.
[0155] <Fourth modified example> Next, a fourth modified example of this embodiment will be described. The differences from the above-described embodiment will be described below. In this modified example, when each vertex of a three-dimensional model corresponding to a vertex of a certain UV island forms a shape smaller than a predetermined standard, the polygon conversion unit 113 deletes the corresponding part.
[0156] 17 is an example of a flowchart of the polygon conversion process in the fourth modified example of the first embodiment. For example, the process of this flowchart is executed for each UV island created for a three-dimensional model to be subjected to the polygon conversion process after the cluster generation process shown in FIG. 4 is completed.
[0157] First, the polygon conversion unit 113 identifies a UV island to be processed (step S81). Specifically, when the polygon conversion unit 113 receives an input operation specifying a three-dimensional model to be processed, the polygon conversion unit 113 identifies one of the UV islands corresponding to the specified three-dimensional model as a processing target. As in step S11 of Fig. 4, the polygon conversion unit 113 may identify a UV island by receiving an input operation specifying a UV island to be processed.
[0158] Next, the polygon conversion unit 113 extracts vertices included in the UV island (step S82). Specifically, the polygon conversion unit 113 refers to the development information 122 for the UV island identified in step S81, and extracts vertices of the three-dimensional model corresponding to the vertices included in the UV island.
[0159] Next, the polygon conversion unit 113 determines an arbitrary vertex that has not yet been specified as a processing target as a reference vertex (step S83). Specifically, the polygon conversion unit 113 determines, from among the vertices extracted in step S82, one vertex that has not yet been specified as a processing target as a reference vertex.
[0160] Next, the polygon conversion unit 113 judges whether or not the lengths of the geodesic lines between the extracted other vertices are all equal to or less than a predetermined value (step S84). Specifically, the polygon conversion unit 113 specifies the lengths of the geodesic lines between the reference vertex determined in step S83 and one or more other vertices extracted in step S82. The polygon conversion unit 113 judges whether or not the lengths of the specified geodesic lines are all equal to or less than a predetermined value.
[0161] When the polygon conversion unit 113 determines that the lengths of the geodesic lines between the reference vertex and the other extracted vertices are all equal to or less than a predetermined value (YES in step S84), the polygon conversion unit 113 determines whether or not all the extracted vertices have been determined as processing targets (step S85). That is, when the polygon conversion unit 113 determines that the lengths of the geodesic lines between the reference vertex and the other extracted vertices are all equal to or less than a predetermined value, the polygon conversion unit 113 determines whether or not all the vertices extracted in step S82 have been determined as processing targets.
[0162] If polygon conversion unit 113 determines that all of the extracted vertices have not been determined as processing targets ("NO" in step S85), polygon conversion unit 113 moves the process to step S83. That is, in step S82, polygon conversion unit 113 determines vertices that have not yet been specified as processing targets as reference vertices.
[0163] When the polygon conversion unit 113 determines that all of the extracted vertices have been determined as processing targets ("YES" in step S85), the polygon conversion unit 113 deletes the extracted vertices (step S86). That is, when the polygon conversion unit 113 determines that the lengths of the geodesic lines between the vertices included in the UV island are all equal to or less than a predetermined value, it deletes the extracted vertices. Specifically, the polygon conversion unit 113 deletes the vertices of the three-dimensional model extracted in step S82, and updates the three-dimensional model information 121. Thereafter, the processing unit 110 ends the processing of this flowchart.
[0164] 18 is a diagram for explaining the polygon conversion process in the fourth modified example of the first embodiment. In the example shown in this figure, first, the polygon conversion unit 113 extracts vertices P1 to P9 as vertices included in the UV island. The polygon conversion unit 113 determines vertex P1 of the extracted vertices as a reference vertex, and specifies the lengths of the geodesic lines between vertex P1 and each of the extracted vertices P2 to P9. If the polygon conversion unit 113 determines that the lengths of all of the specified geodesic lines are equal to or less than a predetermined value, it determines the other vertices as the reference vertices.
[0165] In the example shown in the figure, regardless of which of vertices P1 to P9 is determined as the reference vertex, the length of the geodesic line formed by each vertex is equal to or less than a predetermined value S. Therefore, the polygon conversion unit 113 deletes vertices P1 to P9 from the three-dimensional model.
[0166] As described above, in this modified example, if the lengths on the surface of a three-dimensional model formed by the vertices of a three-dimensional model corresponding to a certain UV island are all equal to or less than a predetermined value, the size of the polygon is small enough that there is no problem in deleting it, and the vertices that make up that polygon are deleted. Since polygons that have little effect on the appearance are deleted, the three-dimensional model can be simplified.
[0167] In this modification, if the lengths of the geodesic lines between the reference vertex and other vertices included in the UV island are all equal to or less than a predetermined value, the corresponding vertex is deleted. However, the method of determining the vertex to be deleted is not limited to this example. The polygon conversion unit 113 may delete the corresponding vertex if the polygon formed by the vertices of the three-dimensional model corresponding to the UV island is small. For example, the polygon conversion unit 113 may determine whether to delete a vertex by comparing the average length of each geodesic line formed by the multiple vertices included in the UV island with a preset value.
[0168] <Fifth modified example> Next, a fifth modified example of this embodiment will be described. The following describes the differences from the above-mentioned embodiment. In this modified example, when a three-dimensional model has a hole, if the presence of the hole has little effect on the appearance, the polygon conversion unit 113 executes a process of filling the hole while integrating the vertices. Here, a hole in a three-dimensional model is, for example, a state in which a three-dimensional model is recessed due to a missing vertex, or a state in which the inside of the three-dimensional model is exposed due to a missing polygon, or a state in which the surface of the three-dimensional model is not continuously covered with polygons.
[0169] Fig. 19 is an example of a flowchart of the polygon conversion process in the fifth modified example of the first embodiment. For example, the process of this flowchart is executed for each UV island created for a three-dimensional model to be subjected to the polygon conversion process after the cluster generation process shown in Fig. 4 is completed.
[0170] The processes executed in steps S91 and S92 are similar to the processes executed in steps S81 and S82 in FIG. 17, and therefore the description thereof will be omitted.
[0171] Next, the polygon conversion unit 113 determines whether or not there is a hole in the three-dimensional model formed by the extracted vertices (step S93). Specifically, the polygon conversion unit 113 determines whether or not there is a hole in the polygon formed by the vertices extracted in step S92. The polygon conversion unit 113 detects holes using a known method and extracts the vertices that form the holes.
[0172] When the polygon conversion unit 113 judges that the three-dimensional model formed by the extracted vertices has no holes ("NO" in step S93), the processing unit 110 ends the processing of this flowchart.
[0173] If the polygon conversion unit 113 determines that the three-dimensional model formed by the extracted vertices has a hole (YES in step S93), the polygon conversion unit 113 extracts the vertices that form the hole (step S94).
[0174] The process from step S95 to step S97 is similar to the process from step S83 to step S85 in Fig. 17, and therefore the description will be omitted. That is, the polygon conversion unit 113 determines whether or not the lengths of all the geodesic lines formed by the vertices that form the hole are equal to or less than a predetermined value.
[0175] Fig. 20 is a diagram (part 1) for explaining the polygon conversion process in the fifth modified example of the first embodiment. Fig. 20(A) is a diagram for explaining a hole in a polygon, and Fig. 20(B) is a diagram for explaining a determination of whether or not to fill the hole.
[0176] In the example shown in FIG. 20(A), the three-dimensional model has a hole H. The vertices that make up the hole each belong to a UV island UV1. In the example shown in FIG. 20(B), the polygon conversion unit 113 determines the reference vertex to be vertex P1, and determines whether or not the lengths of the geodesic lines between the reference vertex P1 and the other vertices that make up the hole are all equal to or less than a predetermined value U. The polygon conversion unit 113 determines all vertices that make up the hole as reference vertices, and repeats a process of comparing the lengths of the geodesic lines with the predetermined value U, and determines that the lengths of the geodesic lines between the vertices that make up the hole are all equal to or less than the predetermined value U.
[0177] Returning to FIG. 19 for explanation, in step S97, if polygon conversion unit 113 determines that all extracted vertices have been specified as processing targets (if "YES" in step S97), polygon conversion unit 113 calculates the arithmetic mean of the coordinates of the extracted vertices, sets it as the coordinates of a new vertex, and deletes the original vertices (step S98). Specifically, polygon conversion unit 113 specifies the coordinates of each vertex extracted in step S94, similar to step S23 in FIG. 6. Polygon conversion unit 113 calculates the arithmetic mean of the coordinates of each specified vertex, sets it as the coordinates of a new vertex, and deletes each vertex extracted in step S94. As a result, the new vertex and other vertices adjacent to the vertex that constituted the hole are connected by edges, and the hole is filled.
[0178] Fig. 21 is a diagram (part 2) for explaining the polygon conversion process in the fifth modified example of the first embodiment. Fig. 21(A) is a diagram (part 1) for explaining the process of filling holes, and Fig. 21(B) is a diagram (part 2) for explaining the process of filling holes.
[0179] 21(A), the polygon conversion unit 113 calculates the arithmetic mean of the coordinates of each vertex that constitutes the hole, and determines it as the world coordinates of a new vertex P10. The polygon conversion unit 113 deletes each vertex that constitutes the hole. Note that in the example shown in this figure, each vertex that constitutes the hole belongs to cluster C1, and each vertex adjacent to that vertex belongs to one of clusters C2 to C4.
[0180] 21(B), the polygon conversion unit 113 generates a new vertex P10 and deletes the other vertices, filling the hole H. Furthermore, as a result of the polygon conversion unit 113 deleting the vertices of clusters C2 to C4, vertex P10 is connected to new vertices P11 to P13, which are obtained by taking the arithmetic mean of the vertices adjacent to the hole for each cluster.
[0181] In the example shown in this figure, each vertex that constitutes a hole belongs to one cluster C1, and cluster C1 does not contain other vertices. However, each vertex that constitutes a hole may belong to a different cluster, and a cluster that contains each vertex that constitutes a hole may contain other vertices.
[0182] As described above, in this modification, the polygon conversion unit 113 detects a hole in a three-dimensional model, and if the lengths of the geodesic lines formed by the multiple vertices that make up the hole are all equal to or less than a predetermined value, the multiple vertices are integrated to generate a new vertex. When a hole exists in a three-dimensional model, if polygons are reduced without considering the hole, the polygons around the hole are reduced, which may cause the hole to widen and affect the appearance. In this modification, when a hole in a three-dimensional model is small, filling the hole is considered to have little effect on the appearance, and a new vertex is generated to fill the hole. That is, in this modification, polygon reduction can be performed while suppressing the effect on the appearance.
[0183] In this modification, it is sufficient that the polygon conversion unit 113 executes the process of filling the hole when the size of the hole is relatively small. For example, the polygon conversion unit 113 may determine whether or not to generate a new vertex to fill the hole by comparing the average length of each geodesic line formed by each vertex constituting the hole with a preset value.
[0184] <Second embodiment> Next, a game device 20 of a second embodiment will be described. The game device 20 in this embodiment corresponds to the information processing device 10 in the first embodiment. Below, differences from the first embodiment will be described. The game device 20 may be a game machine dedicated to games, or may be a general-purpose computer such as a PC, a smartphone, or a tablet computer.
[0185] 22 is an example of a hardware configuration diagram of the game device 20 in the second embodiment. The game device 20 includes a processor 21, a main memory 22, a storage 23, a sound processing device 24, a media interface device 25, an image processor 26, an image memory 27, an input interface device 28, an output interface device 29, and a communication interface device 30.
[0186] The processor 21 is, for example, a computing unit such as a CPU. The main memory 22 is, for example, a storage device such as a RAM. The storage 23 is, for example, a recording device such as a HDD, an SSD, or a flash ROM.
[0187] The audio processing device 24 is a device, such as a DSP (Digital Signal Processor), that processes input audio data to generate an audio signal. The generated audio signal is output to a speaker (not shown) via an output interface device 29, and is output as audio.
[0188] The media interface device 25 is a device for reading information from the storage 23. The media interface device 25 may be capable of writing information to the storage 23. The media interface device 25 is, for example, a disk drive that reads an optical disk, or a reader that reads a semiconductor memory such as a Universal Serial Bus (USB) memory.
[0189] The image processor 26 is a calculation unit, such as a GPU, for generating graphics such as game images. The image memory 27 is a storage device, such as a VRAM (Video RAM), used for rendering graphics such as game images. The rendered graphics are output to a display (not shown) via an output interface device 29 and displayed.
[0190] The input interface device 28 is a device that is connected to an input device such as a game controller, a touch panel, or a mechanical key, and receives an operation signal from the input device. The output interface device 29 is a device that is connected to an output device such as a display or a speaker, and outputs to the output device. For example, the output interface device 29 outputs display data such as graphics generated by the image processor 26 to a display. The output interface device 29 also outputs an audio signal generated by the audio processing device 24 to a speaker. The communication interface device 30 is a device that transmits and receives information, including a communication device that performs wired communication via a network cable and a communication device that performs wireless communication via an antenna.
[0191] For example, the processor 21 reads at least a part of the game software (including a game program and game data) stored in the storage 23 via the media interface device 25, and develops it in the main memory 22. The processor 21 may read the game software stored in the main memory 22. In addition, for example, the processor 21 executes the read game software, and controls the progress of the game in accordance with an operation signal from an input device operated by a player.
[0192] Also, for example, processor 21 determines the content of a game image in accordance with the progress of the game, and causes image processor 26 to generate drawing data constituting the content. Image processor 26 uses the drawing data to render image data on image memory 27. The rendered image data (game image) is output to an external display. Also, for example, processor 21 determines game sound in accordance with the progress of the game, and causes sound processing device 24 to generate an audio signal of the sound, and causes it to be output to a speaker.
[0193] A processing unit (not shown) of the game device 20 is realized by the processor 21 executing a game program, similar to the processing unit 110 of the information processing device 10 in the first embodiment. At least a part of the functions of the processing unit, for example, a part of the functions of the drawing information generating unit 115, may be realized by the image processor 26. In addition, the functions of a storage unit (not shown) of the game device 20 are realized by, for example, the main memory 22 or the storage 23.
[0194] In this embodiment, the game device 20 displays a three-dimensional model with reduced polygons on a display. The game device 20 can determine a three-dimensional model to convert polygons in response to an input operation by a game player, for example. The game device 20 reduces polygons of the three-dimensional model by using distances on the surface of the three-dimensional model, similar to the information processing device 10 in the first embodiment.
[0195] In another example, the game device 20 determines the camera position of the game area to be displayed on the display in response to an input operation of the game player. The game device 20 can determine a 3D model located far from the camera position as the 3D model to be converted into a polygon.
[0196] As described above, according to this embodiment, the number of polygons of a three-dimensional model displayed on a game play screen can be reduced in real time in accordance with game play, and the model can be displayed on the game play screen. That is, the three-dimensional model can be simplified in the game device 20 as well.
[0197] Although the embodiments and modifications according to the present invention have been described above, the present invention is not limited to the above-mentioned embodiment, and various modifications are included. For example, the above-mentioned embodiment has been described in detail to make the present invention easier to understand, and the present invention is not limited to having all the configurations described here. It is also possible to replace a part of the configuration of one embodiment with the configuration of another embodiment. It is also possible to add the configuration of another embodiment to the configuration of one embodiment. It is also possible to add, delete, or replace other configurations with respect to a part of the configuration of each embodiment. In addition, the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in hardware by designing them as integrated circuits, for example, in part or in whole. In addition, the control lines and information lines in the figures are those that are considered necessary for explanation, and not all of them are necessarily shown. It may be considered that almost all of the configurations are connected to each other.
[0198] Moreover, the functional configurations of the information processing device 10 and the game device 20 described above are classified based on the main processing contents for ease of understanding. The present invention is not limited by the manner in which the components are classified or the names thereof. As described above, the configurations of the information processing device 10 and the game device 20 can be further classified into more components based on the processing contents. Also, classification can be performed so that one component executes more processes.
[0199] Furthermore, the present invention can be provided not only as a program, but also in various other forms, such as a computer-readable recording medium on which the program is recorded, an information processing device or computer that executes the program, a polygon conversion method, etc. Furthermore, the present invention may be incorporated in advance into editing software as a part of its functions, or may be incorporated later as an add-in. [Explanation of symbols]
[0200] 10: information processing device, 11-21: processor, 12: memory, 13-23: storage, 14-28: input interface device, 15-29: output interface device, 16-30: communication interface device, 20: game device, 22: main memory, 24: audio processing device, 25: media interface device, 26: image processor, 27: image memory, 110: processing unit, 111: three-dimensional model acquisition unit, 112: development information acquisition unit, 113: polygon conversion unit, 114: cluster generation unit, 115: drawing information generation unit, 116: parameter acquisition unit acquisition unit, 120: memory unit, 121: 3D model information, 122: expansion information, 130: input unit, 140: output unit, 141: reference value input screen, 150: communication unit, C1·C2·C3·C4·C11·C12·C13·C21·C22·C31·C32·C33·C34: cluster, E: edge, H: hole, L·R·Z1·Z2: geodesic line, M: mesh, N: radius, P1·P2·P3·P4·P5·P6·P7·P8·P9·P10·P11·P12·P13·PM: vertex, UV1·UV2·UV3·UV4: UV island, X: sphere, Y1·Y2: circle, θ: angle
Claims
1. A program to be executed by an information processing device, a cluster generating unit that generates, for each reference point on a surface of the three-dimensional model, one cluster to which vertices of polygons constituting the three-dimensional model that are located within a predetermined distance range on the surface of the three-dimensional model from the reference point belong; A program that causes the information processing device to function as a polygon conversion unit that generates a new vertex that is a vertex obtained by integrating vertices that belong to the one cluster, and converts polygons that constitute the three-dimensional model into polygons that include the new vertex.
2. The program according to claim 1, The program, wherein the cluster generation unit generates the one cluster to which a vertex having an edge length equal to or less than a predetermined value from a vertex of the three-dimensional model that is a reference point belongs.
3. The program according to claim 1, The program, characterized in that the cluster generation unit generates the one cluster to which a vertex whose geodesic length is equal to or less than a predetermined value belongs, from a certain point on the surface of the three-dimensional model that is a reference point.
4. The program according to claim 1, the three-dimensional model is associated with one or more pieces of unfolding information that are used to apply textures; the expanded information has at least some of the vertices of the three-dimensional model as vertices of the expanded information; the cluster generating unit generates, for each of the expansion information, the one cluster including a vertex of the expansion information.
5. The program according to claim 4, A program that causes the information processing device to function as a drawing information generation unit that generates drawing information by applying the texture corresponding to the expansion information to the three-dimensional model composed of polygons including the new vertex.
6. The program according to claim 4, the cluster generation unit generates the one cluster such that a vertex corresponding to a peripheral position of the expansion information belongs to a different cluster from a cluster generated using other vertices.
7. The program according to claim 4, The cluster generation unit A certain apex, a first vertex belonging to three or more different pieces of expansion information, and a second vertex connected via the first vertex; a program for generating the one cluster so that each of the plurality of clusters belongs to a different cluster.
8. The program according to claim 6, the cluster generation unit generates the one cluster so that vertices corresponding to the outer periphery positions and belonging to a plurality of pieces of expansion information belong to a new cluster which is a product of the clusters generated for each piece of expansion information.
9. The program according to claim 6, When an angle between three adjacent vertices of a vertex corresponding to a position of the outer periphery is equal to or smaller than a predetermined value on the surface of the three-dimensional model, the cluster generation unit: A certain apex, a first vertex located at the center of the three vertices, and a second vertex connected via the first vertex; a program for generating the one cluster so that each of the plurality of clusters belongs to a different cluster.
10. The program according to claim 9, when the three adjacent vertices correspond to positions on the outer periphery of different pieces of development information, and an angle between the three adjacent vertices on the surface of the three-dimensional model is equal to or smaller than a predetermined value, A certain apex, a first vertex located at the center of the three vertices, and a second vertex connected via the other vertex; a program for generating the one cluster so that each of the plurality of clusters belongs to a different cluster.
11. The program according to claim 4, The polygon conversion unit deletes a vertex corresponding to a certain piece of development information when the distances between the vertices corresponding to the development information are all equal to or less than a predetermined value.
12. The program according to claim 1, The polygon conversion unit detects a hole in the three-dimensional model, and determines whether or not to generate a vertex to fill the hole, using the distance between a plurality of vertices that make up the hole.
13. The program according to claim 2 or 3, causing the information processing device to function as a drawing information generating unit that generates drawing information of a reference value input screen that accepts an input of a reference value; The predetermined value is calculated using the reference value.
14. The program according to claim 2, The length of the edge is a sum of the lengths of one or more edges that connect two vertices of a polygon constituting the three-dimensional model.
15. a cluster generating unit that generates, for each reference point on a surface of the three-dimensional model, one cluster to which vertices of polygons constituting the three-dimensional model that are located within a predetermined distance range on the surface of the three-dimensional model from the reference point belong; and a polygon conversion unit that generates a new vertex that is a vertex obtained by integrating vertices that belong to the one cluster, and converts polygons that constitute the three-dimensional model into polygons that include the new vertex.
16. A polygon conversion method executed in an information processing device, comprising: a cluster generation step of generating, for each reference point on a surface of the three-dimensional model, one cluster to which vertices of polygons constituting the three-dimensional model that are located within a predetermined distance range on the surface of the three-dimensional model from the reference point belong; a polygon conversion procedure for generating a new vertex which is a vertex obtained by integrating vertices belonging to the one cluster, and for switching polygons constituting the three-dimensional model to polygons including the new vertex.
Citation Information
Patent Citations
Method and system for reconstructing a surface
US20040070585A1
Method, system and computer program product for 3D objects graphical representation
US20160335799A1
Shape data approximating method and plotting device
JP1998134208A
