CN110782534A - 3D character color gradient method, medium, equipment and device - Google Patents

3D character color gradient method, medium, equipment and device Download PDF

Info

Publication number
CN110782534A
CN110782534A CN201910887772.4A CN201910887772A CN110782534A CN 110782534 A CN110782534 A CN 110782534A CN 201910887772 A CN201910887772 A CN 201910887772A CN 110782534 A CN110782534 A CN 110782534A
Authority
CN
China
Prior art keywords
color
color gradient
character
point
value
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
Application number
CN201910887772.4A
Other languages
Chinese (zh)
Other versions
CN110782534B (en
Inventor
曹达宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Manuscript (xiamen) Technology Co Ltd
Original Assignee
Manuscript (xiamen) Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Manuscript (xiamen) Technology Co Ltd filed Critical Manuscript (xiamen) Technology Co Ltd
Priority to CN201910887772.4A priority Critical patent/CN110782534B/en
Publication of CN110782534A publication Critical patent/CN110782534A/en
Application granted granted Critical
Publication of CN110782534B publication Critical patent/CN110782534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a method, a medium, equipment and a device for gradually changing the color of a 3D character, wherein the method comprises the following steps: acquiring 3D character information to be manufactured; extracting path information corresponding to the 3D character information to be made, and generating three-dimensional vertex data of the 3D character to be made according to the path information; acquiring an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D characters to be manufactured according to the operation instruction; calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradient direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point; the color gradient of the 3D characters can be performed according to any direction, the user operation is simplified, and the final color gradient effect of the 3D characters is improved.

Description

3D character color gradient method, medium, equipment and device
Technical Field
The invention relates to the technical field of three-dimensional graphic processing, in particular to a 3D character color gradient method, a computer readable storage medium, computer equipment and a 3D character color gradient device.
Background
The 3D character color gradual change is a method for carrying out graphic processing on the 3D character to enable the color of the 3D character to be changed regularly, so that after the color is gradually changed, the 3D character can bring stronger visual impact force to people.
In the related art, when performing color gradation processing on a 3D character, gradation can be performed only in a specific direction, for example, along the front surface of the character (XY plane) or along the vertical plane (YZ plane), so that the user is cumbersome to operate when performing color gradation and the final 3D character color gradation effect is not good.
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, an object of the present invention is to provide a 3D text color gradient method, which can perform color gradient on 3D text according to any direction, simplify user operation, and improve the final 3D text color gradient effect.
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 3D character color gradient device.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for gradually changing a color of a 3D text, including: acquiring 3D character information to be manufactured; extracting path information corresponding to the 3D character information to be made, and generating three-dimensional vertex data of the 3D character to be made according to the path information; acquiring an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D characters to be manufactured according to the operation instruction; and calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradient direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point.
According to the 3D character color gradient method provided by the embodiment of the invention, firstly, 3D character information to be manufactured is obtained, then, path information corresponding to the 3D character information to be manufactured is extracted, three-dimensional vertex data of the 3D character to be manufactured is generated according to the path information, then, an operation instruction of a user is obtained so as to determine the color gradient direction and the color gradient value of the 3D character to be manufactured according to the operation instruction, then, the color value corresponding to each point on the 3D character to be manufactured is calculated according to the three-dimensional vertex data and the color gradient direction, and the color of the 3D character to be manufactured is adjusted according to the color value corresponding to each point, so that the color gradient of the 3D character is realized according to any direction, the user operation is simplified, and the final 3D character color gradient effect is improved.
In addition, the 3D text color gradient method proposed according to the above embodiment of the present invention may further have the following additional technical features:
optionally, calculating a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction, including: calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate; calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient end point according to the first projection length; and calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
Optionally, the color value of each point on the 3D text to be produced is calculated according to the following formula:
wherein, A represents the color value of any point on the 3D character to be made, P 0The method comprises the steps of representing the color value of a color gradient starting point, D representing the projection length of a vector formed by the color gradient starting point and a point of the color value to be calculated in the color gradient direction, S representing the length from the color gradient starting point to the color gradient end point, and P 1A color value representing a color fade endpoint.
In order to achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a 3D text color gradient program is stored, wherein the 3D text color gradient program, when executed by a processor, implements the 3D text color gradient method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the 3D character color gradient program is stored, so that when the processor executes the 3D character color gradient program, the 3D character color gradient method is realized, the color gradient of the 3D character is realized according to any direction, the user operation is simplified, and the final 3D character color gradient effect 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 3D text color gradient method as described above when executing the program.
According to the computer equipment provided by the embodiment of the invention, the 3D character color gradient program is stored through the memory, so that when the processor runs the computer program stored on the memory, the 3D character color gradient method is realized, the color gradient of the 3D character is realized according to any direction, the user operation is simplified, and the final 3D character color gradient effect is improved.
In order to achieve the above object, a fourth aspect of the present invention provides a 3D text color gradually changing apparatus, including: the acquisition module is used for acquiring 3D character information to be manufactured; the generating module is used for extracting path information corresponding to the 3D character information to be made and generating three-dimensional vertex data of the 3D character to be made according to the path information; the obtaining module is further used for obtaining an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D text to be made according to the operation instruction; and the gradual change module is used for calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradual change direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point.
According to the 3D character color gradient device provided by the embodiment of the invention, the acquisition module acquires the information of the 3D character to be manufactured, the generation module extracts corresponding path information according to the information of the 3D character to be manufactured and generates three-dimensional vertex data of the 3D character to be manufactured according to the extracted path information, and the acquisition module is also used for acquiring an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D character to be manufactured according to the operation instruction; the gradual change module calculates a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradual change direction, and adjusts the color of the 3D character to be manufactured according to the color value corresponding to each point; therefore, color gradient of the 3D characters is realized according to any direction, user operation is simplified, and the final color gradient effect of the 3D characters is improved.
In addition, the 3D text color gradient device proposed according to the above embodiment of the present invention may further have the following additional technical features:
optionally, calculating a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction, including: calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate; calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient end point according to the first projection length; and calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
Optionally, the color value of each point on the 3D text to be produced is calculated according to the following formula:
Figure BDA0002207838730000031
wherein, A represents the color value of any point on the 3D character to be made, P 0A color value representing a color fade start point, D represents a color fade start pointThe projection length of a vector formed by points and points of color values to be calculated in the color gradient direction, S represents the length from a color gradient starting point to a color gradient ending point, P 1A color value representing a color fade endpoint.
Drawings
FIG. 1 is a flowchart illustrating a 3D text color gradient method according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a 3D text color gradient method according to another embodiment of the invention;
fig. 3 is a block diagram of a 3D text color gradient device according to an embodiment of the 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 art, when performing color gradient processing on a 3D character, the color gradient processing needs to be performed according to a specified direction, the user operation is complicated, and the final color gradient effect of the 3D character is poor, according to the color gradient method of the 3D character of the embodiment of the present invention, firstly, information of the 3D character to be made is obtained, then, path information corresponding to the information of the 3D character to be made is extracted, three-dimensional vertex data of the 3D character to be made is generated according to the path information, then, an operation instruction of the user is obtained, so as to determine the color gradient direction and the color gradient value of the 3D character to be made according to the operation instruction, then, a color value corresponding to each point on the 3D character to be made is calculated according to the three-dimensional vertex data and the color gradient direction, and the color of the 3D character to be made is adjusted according to the color value corresponding to each point, so as to realize color gradient of the, the user operation is simplified, and the final 3D character color gradient effect 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 3D text color gradient method according to an embodiment of the invention, as shown in fig. 1, the 3D text color gradient method includes the following steps:
s101, 3D character information to be manufactured is obtained.
That is, information related to 3D text to be produced is acquired.
The 3D text information to be produced can contain various data; for example, the text content, text font size, text color, etc. of the 3D text to be produced.
And S102, extracting path information corresponding to the 3D character information to be produced, and generating three-dimensional vertex data of the 3D character to be produced according to the path information.
That is to say, the font file is queried according to the acquired 3D text information to be produced to acquire path information corresponding to the 3D text information to be produced, and three-dimensional vertex data corresponding to the 3D text to be produced is generated according to the acquired path information.
S103, acquiring an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D characters to be produced according to the operation instruction.
That is, when the user performs the operation of color gradient, the operation instruction of the user is acquired, so as to determine the color gradient direction and the color gradient value of the 3D text to be produced according to the operation instruction of the user.
As an example, a color value of a fade start point and a color value of a fade end point input by a user are obtained to obtain a corresponding color fade value, and when the user needs to fade the 3D text, a selection of the user about the fade start point and the fade end point is obtained to determine a fade direction according to the fade start point and the fade end point.
As another example, when the user needs to perform color gradient, the palette is presented to the user to obtain a gradient color value through the user's selection of a color on the palette, then, the rotation of the user for the 3D text is obtained, and after the user stops rotating and issues a confirmation instruction, the current rotation direction is taken as the gradient direction.
And S104, calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradient direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point.
That is to say, the color value corresponding to each point on the 3D character to be made is calculated according to the three-dimensional vertex data and the color gradient direction of the 3D character to be made, and the color of the 3D character to be made is adjusted according to the calculation result, so that the color on the surface of the 3D character is in a gradient effect.
In some embodiments, as shown in fig. 2, to ensure the color gradient effect of the 3D text, calculating a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction includes:
s201, calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate.
That is, the three-dimensional vertex data includes coordinates of each vertex of the 3D text to be produced, so that a plurality of extreme value coordinates of the 3D text to be produced on the three-dimensional coordinate axis can be calculated according to the three-dimensional vertex data, and a corresponding extreme value vector can be calculated according to each extreme value coordinate.
As an example, the three-dimensional structure of the 3D text to be produced is abstracted to a hexahedral structure, such that the hexahedral structure has eight extreme points on three-dimensional coordinate axes (X-axis, Y-axis, and Z-axis), extreme coordinates corresponding to the eight extreme points are calculated from the three-dimensional vertex data of the 3D text to be produced, and a vector composed of each extreme point and the center point of the 3D text to be produced is taken as a corresponding extreme vector.
S202, calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient ending point according to the first projection length.
That is, after the extremum vectors are acquired, a first projection length of each extremum vector in the color gradation direction is calculated, and the color gradation starting point and the color gradation ending point are determined according to the size of the first projection length.
As an example, first, the projection lengths of eight extreme value vectors in the gradient direction are calculated according to the extreme value vectors, then, the central point of the 3D character is used as the origin, the point with the maximum projection in the forward direction is selected as the color gradient end point, and the point with the maximum projection in the reverse direction is selected as the color gradient start point.
And S203, calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
That is to say, after the color gradient starting point and the color gradient ending point are determined, a second projection length of a vector in the gradient direction, the vector being composed of the color gradient starting point and any point on the 3D character to be produced, is calculated, so that the color value of the corresponding point is calculated according to the second projection length, and thus, the calculation of the color value of each point on the 3D character to be produced is completed.
And calculating the color value of each point on the 3D character to be manufactured according to the second projection length in various modes.
As an example, the color value of each point on the 3D text to be produced is calculated according to the following formula:
Figure BDA0002207838730000061
wherein, A represents the color value of any point on the 3D character to be made, P 0Color value representing the start of a color gradient, D tableShowing the projection length of a vector consisting of a color gradient starting point and a point of a color value to be calculated in the color gradient direction, S showing the length from the color gradient starting point to the color gradient end point, P 1A color value representing a color fade endpoint.
In summary, according to the 3D text color gradient method of the embodiment of the present invention, first, 3D text information to be created is obtained, then, path information corresponding to the 3D text information to be created is extracted, three-dimensional vertex data of the 3D text to be created is generated according to the path information, then, an operation instruction of a user is obtained, so as to determine a color gradient direction and a color gradient value of the 3D text to be created according to the operation instruction, then, a color value corresponding to each point on the 3D text to be created is calculated according to the three-dimensional vertex data and the color gradient direction, and a color of the 3D text to be created is adjusted according to the color value corresponding to each point, so that color gradient of the 3D text according to any direction is achieved, user operation is simplified, and a final color gradient effect of the 3D text is improved.
In order to achieve the above embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a 3D text color gradient program is stored, where the 3D text color gradient program, when executed by a processor, implements the 3D text color gradient method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the 3D character color gradient program is stored, so that when the processor executes the 3D character color gradient program, the 3D character color gradient method is realized, the color gradient of the 3D character is realized according to any direction, the user operation is simplified, and the final 3D character color gradient effect 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 executes the computer program to implement the 3D text color gradient method as described above.
According to the computer equipment provided by the embodiment of the invention, the 3D character color gradient program is stored through the memory, so that when the processor runs the computer program stored on the memory, the 3D character color gradient method is realized, the color gradient of the 3D character is realized according to any direction, the user operation is simplified, and the final 3D character color gradient effect is improved.
In order to implement the foregoing embodiment, an embodiment of the present invention provides a 3D text color gradient apparatus, as shown in fig. 3, the 3D text color gradient apparatus includes: an acquisition module 10, a generation module 20 and a tapering module 30.
The obtaining module 10 is configured to obtain 3D text information to be produced;
the generating module 20 is configured to extract path information corresponding to the information of the 3D text to be produced, and generate three-dimensional vertex data of the 3D text to be produced according to the path information;
the obtaining module 10 is further configured to obtain an operation instruction of a user, so as to determine a color gradient direction and a color gradient value of the 3D text to be produced according to the operation instruction;
the gradient module 30 is configured to calculate a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction, and adjust a color of the 3D text to be produced according to the color value corresponding to each point.
In some embodiments, calculating a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction includes: calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate; calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient end point according to the first projection length; and calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
In some embodiments, the color value of each point on the 3D text to be produced is calculated according to the following formula:
Figure BDA0002207838730000071
wherein, A represents the color value of any point on the 3D character to be made, P 0The color value of the color gradient starting point is represented, D represents the projection length of a vector formed by the color gradient starting point and a point of the color value to be calculated in the color gradient direction, S represents the length from the color gradient starting point to the color gradient end point, and P represents the projection length of the vector from the color gradient starting point to the color gradient end point 1A color value representing a color fade endpoint.
It should be noted that the above description about the 3D text color gradient method in fig. 1 is also applicable to the 3D text color gradient device, and is not repeated herein.
In summary, according to the 3D text color gradient device in the embodiment of the present invention, the obtaining module obtains the information of the 3D text to be produced, the generating module extracts corresponding path information according to the information of the 3D text to be produced, and generates three-dimensional vertex data of the 3D text to be produced according to the extracted path information, and the obtaining module is further configured to obtain an operation instruction of a user, so as to determine a color gradient direction and a color gradient value of the 3D text to be produced according to the operation instruction; the gradual change module calculates a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradual change direction, and adjusts the color of the 3D character to be manufactured according to the color value corresponding to each point; therefore, color gradient of the 3D characters is realized according to any direction, user operation is simplified, and the final color gradient effect of the 3D characters 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. A3D character color gradient method is characterized by comprising the following steps:
acquiring 3D character information to be manufactured;
extracting path information corresponding to the 3D character information to be made, and generating three-dimensional vertex data of the 3D character to be made according to the path information;
acquiring an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D characters to be manufactured according to the operation instruction;
and calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradient direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point.
2. The method for gradually changing the color of a 3D character according to claim 1, wherein the calculating the color value corresponding to each point on the 3D character to be produced according to the three-dimensional vertex data and the color gradually changing direction comprises:
calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate;
calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient end point according to the first projection length;
and calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
3. The method for gradually changing the color of 3D characters according to claim 2, wherein the color value of each point on the 3D characters to be made is calculated according to the following formula:
Figure FDA0002207838720000011
wherein, A represents the color value of any point on the 3D character to be made, P 0The method comprises the steps of representing the color value of a color gradient starting point, D representing the projection length of a vector formed by the color gradient starting point and a point of the color value to be calculated in the color gradient direction, S representing the length from the color gradient starting point to the color gradient end point, and P 1A color value representing a color fade endpoint.
4. A computer-readable storage medium, having stored thereon a 3D text color gradient program, the 3D text color gradient program, when executed by a processor, implementing the 3D text color gradient method according to any one of claims 1-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, when executing the program, implements the 3D text color gradient method of any one of claims 1-3.
6. A3D characters color gradual change device, characterized by comprising:
the acquisition module is used for acquiring 3D character information to be manufactured;
the generating module is used for extracting path information corresponding to the 3D character information to be made and generating three-dimensional vertex data of the 3D character to be made according to the path information;
the obtaining module is further used for obtaining an operation instruction of a user so as to determine the color gradient direction and the color gradient value of the 3D text to be made according to the operation instruction;
and the gradual change module is used for calculating a color value corresponding to each point on the 3D character to be manufactured according to the three-dimensional vertex data and the color gradual change direction, and adjusting the color of the 3D character to be manufactured according to the color value corresponding to each point.
7. The apparatus for 3D text color gradient of claim 6, wherein calculating a color value corresponding to each point on the 3D text to be produced according to the three-dimensional vertex data and the color gradient direction comprises:
calculating a plurality of extreme value coordinates of the 3D characters to be manufactured on a three-dimensional coordinate axis according to the three-dimensional vertex data, and calculating corresponding extreme value vectors according to each extreme value coordinate;
calculating a first projection length of each extreme value vector in the color gradient direction, and determining a color gradient starting point and a color gradient end point according to the first projection length;
and calculating a second projection length of a vector formed by the color gradient starting point and any point on the 3D character to be manufactured in the color gradient direction, and calculating the color value of each point on the 3D character to be manufactured according to the second projection length.
8. The 3D text color gradient apparatus according to claim 7, wherein the color value of each point on the 3D text to be produced is calculated according to the following formula:
Figure FDA0002207838720000021
wherein, A represents the color value of any point on the 3D character to be made, P 0The method comprises the steps of representing the color value of a color gradient starting point, D representing the projection length of a vector formed by the color gradient starting point and a point of the color value to be calculated in the color gradient direction, S representing the length from the color gradient starting point to the color gradient end point, and P 1A color value representing a color fade endpoint.
CN201910887772.4A 2019-09-19 2019-09-19 3D character color gradient method, medium, equipment and device Active CN110782534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910887772.4A CN110782534B (en) 2019-09-19 2019-09-19 3D character color gradient method, medium, equipment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910887772.4A CN110782534B (en) 2019-09-19 2019-09-19 3D character color gradient method, medium, equipment and device

Publications (2)

Publication Number Publication Date
CN110782534A true CN110782534A (en) 2020-02-11
CN110782534B CN110782534B (en) 2023-04-07

Family

ID=69383613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910887772.4A Active CN110782534B (en) 2019-09-19 2019-09-19 3D character color gradient method, medium, equipment and device

Country Status (1)

Country Link
CN (1) CN110782534B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932640A (en) * 2020-09-25 2020-11-13 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN112435324A (en) * 2020-11-23 2021-03-02 上海莉莉丝科技股份有限公司 Method, system, device and medium for coloring pixel points in three-dimensional virtual space
WO2022160945A1 (en) * 2021-01-28 2022-08-04 北京字跳网络技术有限公司 Gradient color effect processing method and apparatus, and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1125282A (en) * 1997-06-30 1999-01-29 Fuji Xerox Co Ltd Picture forming device and method for generating gradation pattern
US20110248999A1 (en) * 2010-04-12 2011-10-13 Nintendo Co., Ltd. Storage medium having stored thereon image display program, image display system, image display method, and image display apparatus
US20110317231A1 (en) * 2010-06-29 2011-12-29 Kyocera Mita Corporation Image processing apparatus and method for discriminating whether document is color document or black and white document, image forming apparatus and facsimile machine including the image processing apparatus and a computer readable recording medium storing image processing program
JP2012247673A (en) * 2011-05-30 2012-12-13 Dainippon Printing Co Ltd Two-dimensional color gradation display device
CN103116905A (en) * 2012-12-17 2013-05-22 天津大学 Gradual change coloring effect achievement method of mountain three-dimensional model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1125282A (en) * 1997-06-30 1999-01-29 Fuji Xerox Co Ltd Picture forming device and method for generating gradation pattern
US20110248999A1 (en) * 2010-04-12 2011-10-13 Nintendo Co., Ltd. Storage medium having stored thereon image display program, image display system, image display method, and image display apparatus
US20110317231A1 (en) * 2010-06-29 2011-12-29 Kyocera Mita Corporation Image processing apparatus and method for discriminating whether document is color document or black and white document, image forming apparatus and facsimile machine including the image processing apparatus and a computer readable recording medium storing image processing program
JP2012247673A (en) * 2011-05-30 2012-12-13 Dainippon Printing Co Ltd Two-dimensional color gradation display device
CN103116905A (en) * 2012-12-17 2013-05-22 天津大学 Gradual change coloring effect achievement method of mountain three-dimensional model

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932640A (en) * 2020-09-25 2020-11-13 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN111932640B (en) * 2020-09-25 2021-02-09 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN112435324A (en) * 2020-11-23 2021-03-02 上海莉莉丝科技股份有限公司 Method, system, device and medium for coloring pixel points in three-dimensional virtual space
WO2022105182A1 (en) * 2020-11-23 2022-05-27 上海莉莉丝科技股份有限公司 Coloring method for pixel point in three-dimensional virtual space, system, device, and medium
WO2022160945A1 (en) * 2021-01-28 2022-08-04 北京字跳网络技术有限公司 Gradient color effect processing method and apparatus, and device and storage medium

Also Published As

Publication number Publication date
CN110782534B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110782534B (en) 3D character color gradient method, medium, equipment and device
US8624901B2 (en) Apparatus and method for generating facial animation
US20150134302A1 (en) 3-dimensional digital garment creation from planar garment photographs
WO2018108536A1 (en) Method and device for a placement of a virtual object of an augmented or mixed reality application in a real-world 3d environment
CN112288665B (en) Image fusion method and device, storage medium and electronic equipment
KR20170073623A (en) Fast 3d model fitting and anthropometrics
AU2006287351B2 (en) 2D editing metaphor for 3D graphics
US8564590B2 (en) Imparting three-dimensional characteristics in a two-dimensional space
US9965843B2 (en) Methods and systems for characterizing concept drawings and estimating three-dimensional information therefrom
CN111145328B (en) Three-dimensional character surface texture coordinate calculation method, medium, equipment and device
US20150269759A1 (en) Image processing apparatus, image processing system, and image processing method
CN107203962B (en) Method for making pseudo-3D image by using 2D picture and electronic equipment
CN110751730A (en) Dressing human body shape estimation method based on deep neural network
JP2008140385A (en) Real-time representation method and device of skin wrinkle at character animation time
CN111651055A (en) City virtual sand table display method and device, computer equipment and storage medium
CN104183002B (en) Three-dimensional model changing method and device
CN113034582A (en) Pose optimization device and method, electronic device and computer readable storage medium
CN104766083A (en) Method and device for obtaining human body clothes size
CN107590298A (en) Voxelization method and information processor
CN103700129A (en) Random human head and random human body 3D (three-dimensional) combination method
KR101359661B1 (en) conversion system and method for 3D object represented by triangle mesh to 3D object represented by DoSurface
CN115937299B (en) Method for placing virtual object in video and related equipment
JP2019032713A5 (en)
CN110008911B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112750156B (en) Light field imaging system, processing method and device

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