CN111145328A - Three-dimensional character surface texture coordinate calculation method, medium, equipment and device - Google Patents
Three-dimensional character surface texture coordinate calculation method, medium, equipment and device Download PDFInfo
- Publication number
- CN111145328A CN111145328A CN201911229995.8A CN201911229995A CN111145328A CN 111145328 A CN111145328 A CN 111145328A CN 201911229995 A CN201911229995 A CN 201911229995A CN 111145328 A CN111145328 A CN 111145328A
- Authority
- CN
- China
- Prior art keywords
- triangular mesh
- character
- dimensional
- vertex
- coordinates
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/04—Texture mapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a method, a medium, equipment and a device for calculating the surface texture coordinates of three-dimensional characters, wherein the method comprises the following steps: acquiring character information to be made, and acquiring a front triangular mesh of characters to be made according to the character information to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh, and unfolding the side triangular mesh according to any longitudinal edge in the side triangular mesh; moving the expanded side triangular mesh, the front triangular mesh and the back triangular mesh to the same two-dimensional coordinate space, calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh, and taking the two-dimensional coordinates as texture coordinates of the vertex; the side texture of the three-dimensional characters can be interrupted only once, and the overall display effect of the three-dimensional characters is improved.
Description
Technical Field
The invention relates to the technical field of three-dimensional image processing, in particular to a three-dimensional character surface texture coordinate calculation method, a computer readable storage medium, computer equipment and a three-dimensional character surface texture coordinate calculation device.
Background
The three-dimensional characters are an embodiment of characters, and in order to improve the display effect of the three-dimensional characters, texture mapping is often required to be performed on the surfaces of the three-dimensional characters, so that the display effect of the three-dimensional characters is richer.
In the related art, when texture mapping is performed on the surface of a three-dimensional character, the side surface of the texture on the surface of the three-dimensional character is often interrupted for multiple times, and the display effect of the three-dimensional character is greatly influenced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, one objective of the present invention is to provide a method for calculating coordinates of surface textures of three-dimensional characters, which can cause the side textures of the three-dimensional characters to be interrupted only once, thereby improving the overall display effect of the three-dimensional characters.
A second object of the invention is to propose a computer-readable storage medium.
A third object of the invention is to propose a computer device.
The fourth purpose of the invention is to provide a three-dimensional character surface texture coordinate calculation device.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for calculating coordinates of surface textures of three-dimensional characters, including the following steps: acquiring character information to be made, and acquiring a front triangular mesh of characters to be made according to the character information to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh, and unfolding the side triangular mesh according to any longitudinal edge in the side triangular mesh; and moving the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh to the same two-dimensional coordinate space, calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh, and taking the two-dimensional coordinates as texture coordinates of the vertex.
According to the method for calculating the texture coordinates of the surface of the three-dimensional character of the embodiment of the invention, firstly, the information of the character to be made is obtained, the front triangular mesh of the character to be made is obtained according to the information of the character to be made, then, the front triangular mesh of the character to be made is shifted to obtain the back triangular mesh of the character to be made, the side triangular mesh of the character to be made is obtained according to the front triangular mesh and the back triangular mesh, the side triangular mesh is unfolded according to any one longitudinal side in the side triangular mesh, then, the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh are moved to the same two-dimensional coordinate space, and the two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh are calculated, and the two-dimensional coordinates are taken as the texture coordinates of the, so as to carry out texture mapping on the surface of the three-dimensional character according to the texture coordinate; therefore, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In addition, the method for calculating the texture coordinates of the three-dimensional character surface provided by the above embodiment of the present invention may further have the following additional technical features:
optionally, obtaining a front triangular mesh of the to-be-made text according to the to-be-made text information includes: and acquiring outline information corresponding to the character to be made according to the character information to be made, sampling the outline of the character to be made according to the outline information to acquire the vertex of the character to be made, and triangularizing the outline according to the vertex to acquire the front triangular mesh of the character to be made.
Optionally, obtaining the side surface triangular mesh of the character to be made according to the front surface triangular mesh and the back surface triangular mesh, including: and connecting each vertex in the front triangular mesh with a corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
In order to achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a three-dimensional text surface texture coordinate calculation program is stored, and when the three-dimensional text surface texture coordinate calculation program is executed by a processor, the three-dimensional text surface texture coordinate calculation method is implemented.
According to the computer-readable storage medium of the embodiment of the invention, the three-dimensional character surface texture coordinate calculation program is stored, so that the processor can realize the three-dimensional character surface texture coordinate calculation method when executing the three-dimensional character surface texture coordinate calculation program, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In order to achieve the above object, a third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for calculating three-dimensional text surface texture coordinates as described above when executing the computer program.
According to the computer equipment provided by the embodiment of the invention, the memory stores the three-dimensional character surface texture coordinate calculation program, so that the processor realizes the three-dimensional character surface texture coordinate calculation method when executing the three-dimensional character surface texture coordinate calculation program stored on the memory, thereby realizing that the side texture of the three-dimensional character is interrupted only once, and improving the overall display effect of the three-dimensional character.
In order to achieve the above object, a fourth aspect of the present invention provides a device for calculating texture coordinates of a three-dimensional text surface, including: the acquisition module is used for acquiring character information to be manufactured; the triangularization module is used for acquiring a front triangular grid of the character to be made according to the information of the character to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, and obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh; and the texture coordinate calculation module is used for expanding the side triangular mesh according to any one longitudinal edge in the side triangular mesh, moving the expanded side triangular mesh, the front triangular mesh and the back triangular mesh into the same two-dimensional coordinate space, and calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh so as to take the two-dimensional coordinates as texture coordinates of the vertex.
According to the three-dimensional character surface texture coordinate calculation device provided by the embodiment of the invention, the acquisition module is arranged for acquiring the information of the character to be made, and the triangularization module acquires the front triangular mesh of the character to be made according to the information of the character to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, and obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh; the texture coordinate calculation module expands the side triangular mesh according to any one longitudinal side in the side triangular mesh, moves the expanded side triangular mesh, the front triangular mesh and the back triangular mesh into the same two-dimensional coordinate space, and calculates two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh so as to take the two-dimensional coordinates as texture coordinates of the vertex; therefore, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In addition, the three-dimensional character surface texture coordinate calculation device provided by the above embodiment of the invention may further have the following additional technical features:
optionally, obtaining a front triangular mesh of the to-be-made text according to the to-be-made text information includes: and acquiring outline information corresponding to the character to be made according to the character information to be made, sampling the outline of the character to be made according to the outline information to acquire the vertex of the character to be made, and triangularizing the outline according to the vertex to acquire the front triangular mesh of the character to be made.
Optionally, obtaining the side surface triangular mesh of the character to be made according to the front surface triangular mesh and the back surface triangular mesh, including: and connecting each vertex in the front triangular mesh with a corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
Drawings
FIG. 1 is a schematic flow chart of a method for calculating coordinates of surface textures of three-dimensional characters according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a three-dimensional text splitting method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a three-dimensional character triangularization effect according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating the effect of placing each side of a three-dimensional character in a two-dimensional space according to an embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for calculating texture coordinates of a three-dimensional text surface according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related technology, when the texture on the surface of the three-dimensional character is processed, the texture on the surface of the three-dimensional character is often discontinuous for many times, so that the display effect of the three-dimensional character is greatly influenced; according to the method for calculating the texture coordinates of the surface of the three-dimensional character according to the embodiment of the present invention, first, information of the character to be produced is acquired, a front side triangular mesh of the character to be produced is acquired according to the information of the character to be produced, then, the front side triangular mesh of the character to be produced is shifted to acquire a back side triangular mesh of the character to be produced, a side triangular mesh of the character to be produced is acquired according to the front side triangular mesh and the back side triangular mesh, the side triangular mesh is expanded according to any one of longitudinal sides in the side triangular mesh, then, the expanded side triangular mesh, the front side triangular mesh and the back side triangular mesh are moved to the same two-dimensional coordinate space, and two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front side triangular mesh and the back side triangular mesh are calculated, and the two-, so as to carry out texture mapping on the surface of the three-dimensional character according to the texture coordinate; therefore, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for calculating three-dimensional text surface texture coordinates according to an embodiment of the present invention, as shown in fig. 1, the method for calculating three-dimensional text surface texture coordinates includes the following steps:
s101, acquiring information of the character to be made, and acquiring a front triangular mesh of the character to be made according to the information of the character to be made.
The method for acquiring the character information to be made can be various.
As an example, the text content, the text font size, and the text font input by the user are acquired to complete the acquisition process of the text information to be produced.
As another example, the obtaining process of the text information to be produced is completed by obtaining the voice information of the user and performing voice recognition on the voice information.
The method for acquiring the front triangular mesh of the character to be produced according to the information of the character to be produced can be various.
In some embodiments, the manner of obtaining the front triangular mesh of the character to be produced according to the information of the character to be produced includes: acquiring outline information corresponding to the characters to be made according to the information of the characters to be made, sampling the outlines of the characters to be made according to the outline information to acquire vertexes of the characters to be made, and triangulating the outlines according to the vertexes to acquire a front triangular mesh of the characters to be made.
As an example, as shown in fig. 2, after acquiring the text information to be produced ("0 ", and the text size, text font, etc. corresponding to "0 "), a character string to be produced ("0 ") is generated according to the text information to be produced, and then the character string to be produced is split to generate a plurality of clips corresponding to the character string to be produced, where as can be seen from the figure, a clip represents a profile surface formed by splitting one or more paths (including an outer contour and a hole contour), and "0 " may be split into 4 clips; then, sampling is carried out on each shape to obtain a sampling point corresponding to the shape, and then triangularization connection is carried out on the sampling points to obtain a front triangular grid of the character to be made.
S102, shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh, and unfolding the side triangular mesh according to any longitudinal edge in the side triangular mesh.
That is to say, the acquired front triangular mesh is longitudinally offset, so that the back triangular mesh of the character to be produced can be acquired through offset, and the offset amount is the thickness of the three-dimensional character; then, a side triangular mesh of the character to be made is obtained according to the generated front triangular mesh and the back triangular mesh, and the side triangular mesh is unfolded according to any one longitudinal edge in the side triangular mesh, so that the three-dimensional side triangular mesh can be unfolded through the longitudinal edge, and each vertex in the side triangular mesh is positioned on the same plane.
The side triangular meshes of the characters to be made can be obtained according to the front triangular meshes and the back triangular meshes in various modes.
In some embodiments, obtaining the side surface triangular mesh of the character to be produced according to the front surface triangular mesh and the back surface triangular mesh comprises: and connecting each vertex in the front triangular mesh with the corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
As an example, it can be known that the back triangular mesh is obtained by shifting the front triangular mesh, and vertices in the back triangular mesh and vertices in the front triangular mesh are in a one-to-one correspondence relationship; therefore, each vertex in the back triangular mesh is connected with the corresponding vertex in the front triangular mesh to form a plurality of quadrangles; and then, connecting any pair of diagonal vertexes of the quadrangles to form two triangles for each quadrangle, thereby completing the acquisition process of the side triangular mesh of the character to be manufactured.
And S103, moving the expanded side triangular mesh, the front triangular mesh and the back triangular mesh to the same two-dimensional coordinate space, calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh, and taking the two-dimensional coordinates as texture coordinates of the vertex.
That is, the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh are placed in the same two-dimensional coordinate space, and then each vertex in the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh can obtain a unique corresponding coordinate value in the two-dimensional coordinate space, and then the coordinate value is taken as a texture coordinate of the vertex; it can be understood that after the texture material is tiled in the two-dimensional coordinate space, the texture rendering can be performed on the three-dimensional text through the texture coordinate corresponding to each vertex, and only one interruption occurs on the texture of the side surface.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating an effect of triangularization of a three-dimensional character according to an embodiment of the present invention; FIG. 3 is a schematic diagram of the effect of the unfolded side triangular mesh, front triangular mesh and back triangular mesh after being moved to the same two-dimensional coordinate space; as can be seen from fig. 3, after the three-dimensional character "0" is developed along the longitudinal sides of the side surface 0 and the side surface 1, the two-dimensional coordinate values corresponding to more vertices of the side surface 0 and the side surface 1 can be calculated by laying the developed side surface 0 and the side surface 1 in the two-dimensional coordinate space.
To sum up, according to the method for calculating texture coordinates on a surface of a three-dimensional character according to the embodiment of the present invention, first, information of a character to be produced is obtained, a front side triangular mesh of the character to be produced is obtained according to the information of the character to be produced, then, the front side triangular mesh of the character to be produced is shifted to obtain a back side triangular mesh of the character to be produced, a side triangular mesh of the character to be produced is obtained according to the front side triangular mesh and the back side triangular mesh, the side triangular mesh is expanded according to any one of longitudinal sides in the side triangular mesh, then, the expanded side triangular mesh, the front side triangular mesh and the back side triangular mesh are moved to the same two-dimensional coordinate space, and two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front side triangular mesh and the back side triangular mesh are calculated, and the two, so as to carry out texture mapping on the surface of the three-dimensional character according to the texture coordinate; therefore, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In order to achieve the above embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a three-dimensional text surface texture coordinate calculation program is stored, and when the three-dimensional text surface texture coordinate calculation program is executed by a processor, the three-dimensional text surface texture coordinate calculation method is implemented.
According to the computer-readable storage medium of the embodiment of the invention, the three-dimensional character surface texture coordinate calculation program is stored, so that the processor can realize the three-dimensional character surface texture coordinate calculation method when executing the three-dimensional character surface texture coordinate calculation program, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
In order to implement the foregoing embodiments, an embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for calculating the three-dimensional text surface texture coordinates as described above when executing the computer program.
According to the computer equipment provided by the embodiment of the invention, the memory stores the three-dimensional character surface texture coordinate calculation program, so that the processor realizes the three-dimensional character surface texture coordinate calculation method when executing the three-dimensional character surface texture coordinate calculation program stored on the memory, thereby realizing that the side texture of the three-dimensional character is interrupted only once, and improving the overall display effect of the three-dimensional character.
To achieve the above embodiments, an embodiment of the present invention provides a three-dimensional character surface texture coordinate calculation device, as shown in fig. 4, the three-dimensional character surface texture coordinate calculation device includes: an acquisition module 10, a triangularization module 20 and a texture coordinate calculation module 30.
The obtaining module 10 is used for obtaining the character information to be produced;
the triangulation module 20 is used for acquiring a front triangular mesh of the character to be made according to the information of the character to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, and obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh;
the texture coordinate calculation module 30 is configured to expand the side triangular mesh according to any one of the longitudinal sides of the side triangular mesh, move the expanded side triangular mesh, the front triangular mesh, and the back triangular mesh into the same two-dimensional coordinate space, and calculate a two-dimensional coordinate in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh, and the back triangular mesh, so as to use the two-dimensional coordinate as a texture coordinate of the vertex.
In some embodiments, obtaining a front triangular mesh of the text to be produced according to the text information to be produced includes: and acquiring outline information corresponding to the character to be made according to the character information to be made, sampling the outline of the character to be made according to the outline information to acquire the vertex of the character to be made, and triangularizing the outline according to the vertex to acquire the front triangular mesh of the character to be made.
In some embodiments, obtaining the side surface triangular mesh of the character to be produced according to the front surface triangular mesh and the back surface triangular mesh includes: and connecting each vertex in the front triangular mesh with a corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
It should be noted that the above description about the three-dimensional text surface texture coordinate calculation method in fig. 1 is also applicable to the three-dimensional text surface texture coordinate calculation apparatus, and is not repeated herein.
In summary, according to the three-dimensional character surface texture coordinate calculation apparatus of the embodiment of the present invention, the obtaining module is configured to obtain the information of the character to be produced, and the triangularization module obtains the front triangular mesh of the character to be produced according to the information of the character to be produced; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, and obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh; the texture coordinate calculation module expands the side triangular mesh according to any one longitudinal side in the side triangular mesh, moves the expanded side triangular mesh, the front triangular mesh and the back triangular mesh into the same two-dimensional coordinate space, and calculates two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh so as to take the two-dimensional coordinates as texture coordinates of the vertex; therefore, the side texture of the three-dimensional character is interrupted only once, and the overall display effect of the three-dimensional character is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (8)
1. A three-dimensional character surface texture coordinate calculation method is characterized by comprising the following steps:
acquiring character information to be made, and acquiring a front triangular mesh of characters to be made according to the character information to be made;
shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh, and unfolding the side triangular mesh according to any longitudinal edge in the side triangular mesh;
and moving the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh to the same two-dimensional coordinate space, calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the unfolded side triangular mesh, the front triangular mesh and the back triangular mesh, and taking the two-dimensional coordinates as texture coordinates of the vertex.
2. The method for calculating the coordinates of the texture on the surface of the three-dimensional character according to claim 1, wherein the step of obtaining the front triangular mesh of the character to be produced according to the information of the character to be produced comprises the following steps:
and acquiring outline information corresponding to the character to be made according to the character information to be made, sampling the outline of the character to be made according to the outline information to acquire the vertex of the character to be made, and triangularizing the outline according to the vertex to acquire the front triangular mesh of the character to be made.
3. The method for calculating the coordinates of the texture on the surface of the three-dimensional character according to claim 2, wherein the step of obtaining the side surface triangular mesh of the character to be produced according to the front surface triangular mesh and the back surface triangular mesh comprises the following steps:
and connecting each vertex in the front triangular mesh with a corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
4. A computer-readable storage medium, on which a three-dimensional text surface texture coordinate calculation program is stored, which when executed by a processor implements the three-dimensional text surface texture coordinate calculation method according to any one of claims 1 to 3.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of calculating the coordinates of the three-dimensional text surface texture according to any one of claims 1 to 3 when executing the program.
6. A three-dimensional character surface texture coordinate calculation apparatus, comprising:
the acquisition module is used for acquiring character information to be manufactured;
the triangularization module is used for acquiring a front triangular grid of the character to be made according to the information of the character to be made; shifting the front triangular mesh to obtain a back triangular mesh of the character to be made, and obtaining a side triangular mesh of the character to be made according to the front triangular mesh and the back triangular mesh;
and the texture coordinate calculation module is used for expanding the side triangular mesh according to any one longitudinal edge in the side triangular mesh, moving the expanded side triangular mesh, the front triangular mesh and the back triangular mesh into the same two-dimensional coordinate space, and calculating two-dimensional coordinates in the two-dimensional coordinate space corresponding to each vertex in the expanded side triangular mesh, the front triangular mesh and the back triangular mesh so as to take the two-dimensional coordinates as texture coordinates of the vertex.
7. The apparatus for calculating surface texture coordinates of three-dimensional characters according to claim 6, wherein obtaining the front triangular mesh of the characters to be produced according to the information of the characters to be produced comprises:
and acquiring outline information corresponding to the character to be made according to the character information to be made, sampling the outline of the character to be made according to the outline information to acquire the vertex of the character to be made, and triangularizing the outline according to the vertex to acquire the front triangular mesh of the character to be made.
8. The apparatus for calculating coordinates of surface texture of three-dimensional words according to claim 7, wherein obtaining the side surface triangular mesh of the word to be made according to the front side triangular mesh and the back side triangular mesh comprises:
and connecting each vertex in the front triangular mesh with a corresponding vertex in the back triangular mesh to obtain a plurality of side quadrangles, and connecting any pair of diagonal vertices of each side quadrangle to obtain the side triangular mesh of the character to be made.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911229995.8A CN111145328B (en) | 2019-12-04 | 2019-12-04 | Three-dimensional character surface texture coordinate calculation method, medium, equipment and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911229995.8A CN111145328B (en) | 2019-12-04 | 2019-12-04 | Three-dimensional character surface texture coordinate calculation method, medium, equipment and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111145328A true CN111145328A (en) | 2020-05-12 |
CN111145328B CN111145328B (en) | 2022-08-12 |
Family
ID=70517652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911229995.8A Active CN111145328B (en) | 2019-12-04 | 2019-12-04 | Three-dimensional character surface texture coordinate calculation method, medium, equipment and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111145328B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112085832A (en) * | 2020-08-12 | 2020-12-15 | 浙江闪铸三维科技有限公司 | Advertisement word 3D model generation method |
CN113409429A (en) * | 2021-06-24 | 2021-09-17 | 广州光锥元信息科技有限公司 | Method and device for generating 3D characters |
CN116091679A (en) * | 2023-02-20 | 2023-05-09 | 上海百琪迈科技(集团)有限公司 | Three-dimensional clothing template modeling method and system based on side texture mapping |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6437791B1 (en) * | 1999-06-11 | 2002-08-20 | Creative Technology Ltd. | Method and apparatus for supporting texture patterns larger than supported natively by a graphics chip |
JP2008059527A (en) * | 2006-09-04 | 2008-03-13 | Ricoh Co Ltd | Image processor and program |
WO2009018820A2 (en) * | 2007-08-06 | 2009-02-12 | Hochschule Fulda | Method and computer system for the three-dimensional illustration of a landscape in real time, particularly on a graphics monitor |
CN102750733A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and system used for building three-dimensional earth and based on multiple textures |
CN104754169A (en) * | 2013-12-27 | 2015-07-01 | 京瓷办公信息***株式会社 | Image forming apparatus and print position adjustment method |
US20150193975A1 (en) * | 2008-11-24 | 2015-07-09 | Mixamo, Inc. | Real Time Concurrent Design of Shape, Texture, and Motion for 3D Character Animation |
-
2019
- 2019-12-04 CN CN201911229995.8A patent/CN111145328B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6437791B1 (en) * | 1999-06-11 | 2002-08-20 | Creative Technology Ltd. | Method and apparatus for supporting texture patterns larger than supported natively by a graphics chip |
JP2008059527A (en) * | 2006-09-04 | 2008-03-13 | Ricoh Co Ltd | Image processor and program |
WO2009018820A2 (en) * | 2007-08-06 | 2009-02-12 | Hochschule Fulda | Method and computer system for the three-dimensional illustration of a landscape in real time, particularly on a graphics monitor |
US20150193975A1 (en) * | 2008-11-24 | 2015-07-09 | Mixamo, Inc. | Real Time Concurrent Design of Shape, Texture, and Motion for 3D Character Animation |
CN102750733A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and system used for building three-dimensional earth and based on multiple textures |
CN104754169A (en) * | 2013-12-27 | 2015-07-01 | 京瓷办公信息***株式会社 | Image forming apparatus and print position adjustment method |
Non-Patent Citations (1)
Title |
---|
项维康: "光场显示***中矢量文字的显示技术", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112085832A (en) * | 2020-08-12 | 2020-12-15 | 浙江闪铸三维科技有限公司 | Advertisement word 3D model generation method |
CN112085832B (en) * | 2020-08-12 | 2021-11-02 | 浙江闪铸三维科技有限公司 | Advertisement word 3D model generation method |
CN113409429A (en) * | 2021-06-24 | 2021-09-17 | 广州光锥元信息科技有限公司 | Method and device for generating 3D characters |
CN116091679A (en) * | 2023-02-20 | 2023-05-09 | 上海百琪迈科技(集团)有限公司 | Three-dimensional clothing template modeling method and system based on side texture mapping |
Also Published As
Publication number | Publication date |
---|---|
CN111145328B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111145328B (en) | Three-dimensional character surface texture coordinate calculation method, medium, equipment and device | |
JP5058831B2 (en) | Method for distributed clipping outside the view volume | |
CN110084894B (en) | Local amplification display method and device of three-dimensional model and electronic equipment | |
US20150109290A1 (en) | Device and method for removing noise points in point clouds | |
WO2016086893A1 (en) | Method and device for displaying electronic map | |
CN107622530B (en) | Efficient and robust triangulation network cutting method | |
US9405994B2 (en) | Methods and systems for characterizing concept drawings and estimating three-dimensional information therefrom | |
Governi et al. | 3D geometry reconstruction from orthographic views: A method based on 3D image processing and data fitting | |
KR101507776B1 (en) | methof for rendering outline in three dimesion map | |
CN110782534B (en) | 3D character color gradient method, medium, equipment and device | |
JP2018077830A (en) | Representation of skeleton of mechanical part | |
CN104463952A (en) | Human body scanning and modeling method | |
CN110660121B (en) | Three-dimensional font rendering method, medium, device and apparatus | |
CN113920275A (en) | Triangular mesh construction method and device, electronic equipment and readable storage medium | |
US20120026168A1 (en) | System and method for interactive live-mesh segmentation | |
CN111651055A (en) | City virtual sand table display method and device, computer equipment and storage medium | |
CN112967400B (en) | Unity 3D-based three-dimensional graph dynamic creation method and device | |
CN106611443B (en) | Three-dimensional topographic point picking method and device | |
TW201007618A (en) | Computer system and method for extracting boundary elements | |
JP2021056904A (en) | Point group data identity estimation device and point group data identity estimation system | |
CN104766367B (en) | Three-dimensional gridding topology structure chart construction method in computing three-dimensional model processing | |
KR101086228B1 (en) | Method and apparatus for providing 3d model cutting simulation | |
US8026914B2 (en) | Numerical analysis mesh generation apparatus, numerical analysis mesh generation method, and numerical analysis generation program | |
KR20130101332A (en) | Conversion system and method for 3d object represented by triangle mesh to 3d object represented by dosurface | |
KR20180117499A (en) | Apparatus and method for simplification of 3D mesh data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |