CN110580731B - 3D character rendering method, medium, device and apparatus - Google Patents

3D character rendering method, medium, device and apparatus Download PDF

Info

Publication number
CN110580731B
CN110580731B CN201910801254.6A CN201910801254A CN110580731B CN 110580731 B CN110580731 B CN 110580731B CN 201910801254 A CN201910801254 A CN 201910801254A CN 110580731 B CN110580731 B CN 110580731B
Authority
CN
China
Prior art keywords
character
rendering
cache data
data
font
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.)
Active
Application number
CN201910801254.6A
Other languages
Chinese (zh)
Other versions
CN110580731A (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.)
Gaoding Xiamen Technology Co Ltd
Original Assignee
Gaoding 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 Gaoding Xiamen Technology Co Ltd filed Critical Gaoding Xiamen Technology Co Ltd
Priority to CN201910801254.6A priority Critical patent/CN110580731B/en
Publication of CN110580731A publication Critical patent/CN110580731A/en
Application granted granted Critical
Publication of CN110580731B publication Critical patent/CN110580731B/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
    • G06T15/003D [Three Dimensional] image rendering

Abstract

The invention discloses a 3D character rendering method, medium, equipment and device, wherein the method comprises the following steps: acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction; judging whether a rendering image corresponding to the 3D character rendering parameter exists in cache data or not; if yes, calling the rendering image; if not, judging whether staged cache data corresponding to the 3D character rendering parameters exist in the cache data or not, calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exist in the cache data, and rendering the 3D characters according to the staged cache data and the 3D character rendering parameters; the rendering efficiency of the 3D characters can be effectively improved, the phenomenon that a user is stuck in the process of editing the 3D characters is prevented, and user experience is improved.

Description

3D character rendering method, medium, device and apparatus
Technical Field
The present invention relates to the field of 3D word processing technologies, and in particular, to a 3D word rendering method, a computer readable storage medium, a computer device, and a 3D word rendering apparatus.
Background
In the related art, when rendering a 3D text according to a user operation (for example, adding or deleting 3D text content, changing 3D text color, text font size, text font, etc.), since a data amount required to be calculated is large and steps are complicated, rendering efficiency of the 3D text is low, and in the process of rendering the 3D text, a user is prone to stumbling in a 3D text editing process due to a calculation amount, which affects user experience.
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 rendering method, which can effectively improve rendering efficiency of 3D text, prevent a pause phenomenon from occurring in a process of editing the 3D text by a user, and improve user experience.
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.
A fourth object of the present invention is to provide a 3D character rendering apparatus.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a 3D text rendering method, including the following steps: acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction; judging whether a rendering image corresponding to the 3D character rendering parameter exists in cache data or not; if so, calling the rendering image; if not, judging whether staged cache data corresponding to the 3D character rendering parameters exist in the cache data or not, calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exist in the cache data, and rendering the 3D characters according to the staged cache data and the 3D character rendering parameters.
According to the 3D character rendering method provided by the embodiment of the invention, firstly, an operation instruction input by a user is obtained, and the obtained operation instruction is analyzed to obtain a 3D character rendering parameter corresponding to the operation instruction; then, whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data or not is judged, if yes, the rendering image is called to directly display the rendering image to a user, so that a repeated calculation process is not needed according to the operation instruction, and the performance pressure brought by 3D character rendering is reduced; then, if the rendering image corresponding to the 3D character rendering parameter does not exist in the cache data, whether staged cache data corresponding to the 3D character rendering parameter exists in the cache data is judged, the staged cache data is called when the staged cache data corresponding to the 3D character rendering parameter exists in the cache data, and 3D character rendering is carried out according to the staged cache data and the 3D character rendering parameter, so that the rendering efficiency of the 3D character is effectively improved, the phenomenon of pause in the process of editing the 3D character by a user is prevented, and the user experience is improved.
In addition, the 3D text rendering method proposed by the above embodiment of the present invention may further have the following additional technical features:
optionally, the determining, by the 3D rendering parameter, whether staged cache data corresponding to the 3D rendering parameter exists in the cache data, and when staged cache data corresponding to the 3D rendering parameter exists in the cache data, calling the staged cache data includes: judging whether the cache data has character font and character vertex data corresponding to the character content; if so, calling the character vertex data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters.
Optionally, if the text font and the text vertex data corresponding to the text content do not exist in the cache data, determining whether text font data corresponding to the text font exists in the cache data, calling the text font data when the text font data corresponding to the text font exists in the cache data, and generating corresponding text vertex data according to the text font data so as to render a 3D text according to the text vertex data and the 3D text rendering parameter.
Optionally, if the cache data does not contain the character font data corresponding to the character font, a font file corresponding to the character font is obtained, and the font file is analyzed to obtain the character font data corresponding to the character font.
To achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a 3D text rendering program is stored, where the 3D text rendering program, when executed by a processor, implements the 3D text rendering method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the 3D character rendering program is stored, so that the processor can realize the 3D character rendering method when executing the 3D character rendering program, thereby effectively improving the rendering efficiency of the 3D characters, preventing the occurrence of the pause phenomenon in the process of editing the 3D characters by a user, and improving the user experience.
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 rendering method as described above when executing the program.
According to the computer equipment provided by the embodiment of the invention, the 3D character rendering program is stored through the memory, so that when the processor runs the 3D character rendering program stored on the memory, the 3D character rendering method is realized, the 3D character rendering efficiency is effectively improved, the phenomenon of Kanton during the process of editing the 3D characters by a user is prevented, and the user experience is improved.
In order to achieve the above object, a fourth aspect of the present invention provides a 3D text rendering apparatus, including: the acquisition module is used for acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction; the judging module is used for judging whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data or not; the calling module is used for calling the rendering image when the rendering image corresponding to the 3D character rendering parameter exists in the cache data; the judging module is further configured to judge whether staged cache data corresponding to the 3D text rendering parameter exists in the cache data; the calling module is further configured to call the staged cache data when staged cache data corresponding to the 3D text rendering parameter exists in the cache data; and the rendering module is used for rendering the 3D characters according to the staged cache data and the 3D character rendering parameters.
According to the 3D character rendering device provided by the embodiment of the invention, the setting acquisition module acquires an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction; the setting judgment module judges whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data or not, and when the rendering image corresponding to the 3D character rendering parameter exists in the cache data, the rendering image is called through the calling module so as to be directly displayed to a user, and the calculated data amount required by 3D rendering is saved; when the rendering image corresponding to the 3D character rendering parameter does not exist in the cache data, the judging module is further used for judging whether staged cache data corresponding to the 3D character rendering parameter exists in the cache data, if yes, the staged cache data is called through the calling module, and therefore the rendering module can render the 3D characters according to the staged cache data and the 3D character rendering parameter; therefore, the rendering efficiency of the 3D characters is effectively improved, the phenomenon that a user is stuck in the process of editing the 3D characters is prevented, and the user experience is improved.
In addition, the 3D text rendering device proposed by the above embodiment of the present invention may further have the following additional technical features:
optionally, the 3D text rendering parameter includes a text font and a text content, where determining whether the cache data includes staged cache data corresponding to the 3D text rendering parameter, and when the cache data includes staged cache data corresponding to the 3D text rendering parameter, calling the staged cache data includes: judging whether the cache data has character font and character vertex data corresponding to the character content; if so, calling the character vertex data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters.
Optionally, if the character font and the character vertex data corresponding to the character content do not exist in the cache data, determining whether the cache data contains the character font data corresponding to the character font, calling the character font data when the cache data contains the character font data corresponding to the character font, and generating the corresponding character vertex data according to the character font data so as to render the 3D character according to the character vertex data and the 3D character rendering parameter.
Optionally, if the cache data does not contain the character font data corresponding to the character font, a font file corresponding to the character font is obtained, and the font file is analyzed to obtain the character font data corresponding to the character font.
Drawings
FIG. 1 is a flowchart illustrating a 3D text rendering method according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a 3D text rendering method according to another embodiment of the invention;
fig. 3 is a block diagram of a 3D text rendering apparatus 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 accompanying drawings are illustrative and intended to explain the present invention and should not be construed as limiting the present invention.
In the related art, in the process of rendering 3D characters according to user operation, the rendering efficiency is low due to large calculated data amount and complicated steps, and the 3D character editing process is easy to jam and affects user experience; according to the 3D character rendering method provided by the embodiment of the invention, firstly, an operation instruction input by a user is obtained, and the obtained operation instruction is analyzed to obtain a 3D character rendering parameter corresponding to the operation instruction; then, whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data or not is judged, if yes, the rendering image is called to directly display the rendering image to a user, so that a repeated calculation process is not needed according to the operation instruction, and the performance pressure brought by 3D character rendering is reduced; then, if the rendering image corresponding to the 3D character rendering parameter does not exist in the cache data, whether staged cache data corresponding to the 3D character rendering parameter exists in the cache data is judged, the staged cache data is called when the staged cache data corresponding to the 3D character rendering parameter exists in the cache data, and 3D character rendering is carried out according to the staged cache data and the 3D character rendering parameter, so that the rendering efficiency of the 3D character is effectively improved, the phenomenon of pause in the process of editing the 3D character by a user is prevented, and the user experience 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 scheme, the technical scheme is described in detail in the following with reference to the attached drawings of the specification and specific embodiments.
Fig. 1 is a schematic flow diagram of a 3D text rendering method according to an embodiment of the present invention, and as shown in fig. 1, the 3D text rendering method includes the following steps:
s101, an operation instruction input by a user is obtained, so that a corresponding 3D character rendering parameter is obtained according to the operation instruction.
That is to say, in the process of editing the 3D text by the user, an operation instruction of the user is obtained (for example, adding 3D text content, deleting 3D text partial content, changing 3D text color, changing 3D text font size, and the like), and after the operation instruction of the user is obtained, a 3D text rendering parameter corresponding to the operation instruction is obtained according to the operation instruction, so that the 3D text is rendered according to the 3D text rendering parameter subsequently.
It should be noted that the data content included in the 3D rendering parameter may be various, for example, 3D text color, text font, text content, text font size, mapping information, illumination parameter, and the like; the specific data content included in the 3D rendering parameters is not limited herein.
S102, judging whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data, if so, executing a step S103, and if not, executing a step S104.
And S103, calling the rendering image.
That is to say, if the cache data is queried according to the 3D text rendering parameters and then the rendering image corresponding to the 3D text rendering parameters is determined to exist in the cache data, the rendering image is called to directly display the rendering image to the user, so that repeated 3D text rendering according to the operation instruction is not required, a large amount of computing resources can be saved, and the performance pressure caused by 3D text rendering is reduced.
And S104, judging whether staged cache data corresponding to the 3D character rendering parameters exist in the cache data, calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exist in the cache data, and rendering the 3D characters according to the staged cache data and the 3D character rendering parameters.
That is, if the cache data does not have the rendering image corresponding to the 3D text rendering parameter, further determining whether staged cache data corresponding to the 3D text rendering parameter exists in the cache data, it can be understood that during the rendering process of the 3D text, many staged data may occur, for example, text font data of the 3D text, text vertex data of the 3D text, map data of the 3D text, and illumination data of the 3D text; therefore, when the cache data is inquired according to the 3D character rendering parameters, if the staged cache data corresponding to the 3D character rendering parameters exists in the cache data, the staged cache data is called, and the 3D characters are rendered according to the staged cache data and the 3D character rendering parameters, so that the calculation amount required in the 3D rendering process can be reduced to a great extent; the 3D character rendering efficiency is improved, and the phenomenon that a user is blocked when editing the 3D characters is prevented.
It can be understood that, in the process of editing 3D text by a user, rendering parameters of the 3D text are frequently changed according to an instant visual effect in the process of editing the 3D text, and therefore, in the process of continuous operation, the computational pressure caused by 3D rendering is huge; therefore, according to the 3D text rendering method provided by the embodiment of the present invention, in the editing process, first, when a 3D text rendering parameter provided by a user is obtained for the first time, rendering of a 3D text is performed according to the 3D text rendering parameter, in the rendering process, staged data corresponding to the 3D text rendering parameter is cached to generate staged cache data, a rendering image is obtained after the rendering process is continued, and the rendering image and the 3D text rendering parameter corresponding to the rendering image are cached; then, in the process that the user continuously edits the 3D characters, if the current 3D character rendering parameters input by the user are obtained, the cache data is inquired according to the current 3D character rendering parameters to judge whether the corresponding rendering images are cached in the current 3D character rendering parameters or not, and if the corresponding rendering images are cached in the current 3D character rendering parameters, the rendering images are called; if not, whether the 3D character rendering parameter is cached with corresponding staged cache data is further judged, if yes, the staged cache data is called, and further 3D character rendering is carried out according to the staged cache data and the 3D character rendering parameter, so that the calculation resources required by a user in the process of continuously editing the 3D characters can be greatly saved, especially when the user frequently changes the 3D character rendering parameter, performance pressure is more easily caused, and the editing process is blocked.
In addition, it should be noted that, in the process of editing the 3D text through the WEB browser, due to the limitation of the performance of the WEB browser, more performance bottlenecks exist in the rendering and updating of the 3D text, so that when a user uses the WEB browser to edit the 3D text online, the stuck phenomenon caused by the calculated amount is more obvious.
In an embodiment of the present invention, as shown in fig. 2, the 3D text rendering method includes the following steps:
s201, acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction.
S202, judging whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data, if so, executing the step S203, and if not, executing the step S204.
And S203, calling the rendered image.
The steps S201 to S203 are the same as the steps S101 to S103, and are not described herein again.
S204, judging whether character font and character vertex data corresponding to the character content exist in the cache data, if so, executing the step S205, and if not, executing the step S206.
S205, calling character vertex data, and executing step S210.
That is to say, if the 3D text rendering parameter does not have a corresponding rendering image, the cache data is queried according to the text font and the text content, and it is determined whether text vertex data corresponding to the text font and the text content exists in the cache data, and if so, the text vertex data is called, so as to perform 3D text rendering according to the text vertex data and the 3D text rendering parameter in the subsequent process, thereby, the calculation of the text vertex corresponding to the 3D text does not need to be repeated in the 3D text rendering process, and the calculation resources in the 3D text rendering process are saved.
S206, judging whether character font data corresponding to the character font exists in the cache data, if so, executing the step S207, and if not, executing the step S208.
S207, the character font data is called, and step S09 is executed.
S208, obtaining a font file corresponding to the character font, and analyzing the font file to obtain character font data corresponding to the character font.
S209, generating corresponding character vertex data according to the character font data.
And S210, rendering the 3D characters according to the character vertex data and the 3D character rendering parameters.
That is, if the cache data does not have the character font and the character vertex data corresponding to the character content, the cache data is inquired according to the character font to judge whether the cache data has the character font data corresponding to the character font, if so, the character font data is called to generate the corresponding character vertex data according to the character font data, and the 3D character rendering is carried out according to the character vertex data and the 3D character rendering parameter; therefore, when the character font data exist in the cache data, the database does not need to be repeatedly inquired according to the character font to obtain the character font file, the obtained character font file does not need to be analyzed, and the calculation resources required in the 3D character rendering process can be greatly saved.
In summary, according to the 3D text rendering method in the embodiment of the present invention, first, an operation instruction input by a user is obtained, and the obtained operation instruction is analyzed to obtain a 3D text rendering parameter corresponding to the operation instruction; then, judging whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data, if so, calling the rendering image to directly display the rendering image to a user, so that a repeated calculation process is not required according to the operation instruction, and the performance pressure brought by 3D character rendering is reduced; then, if the rendering image corresponding to the 3D character rendering parameter does not exist in the cache data, whether staged cache data corresponding to the 3D character rendering parameter exists in the cache data is judged, the staged cache data is called when the staged cache data corresponding to the 3D character rendering parameter exists in the cache data, and 3D character rendering is carried out according to the staged cache data and the 3D character rendering parameter, so that the rendering efficiency of the 3D character is effectively improved, the phenomenon of pause in the process of editing the 3D character by a user is prevented, and the user experience is improved.
In order to implement the foregoing embodiment, an embodiment of the present invention provides a computer-readable storage medium, on which a 3D text rendering program is stored, where the 3D text rendering program, when executed by a processor, implements the 3D text rendering method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the 3D character rendering program is stored, so that the processor can realize the 3D character rendering method when executing the 3D character rendering program, thereby effectively improving the rendering efficiency of the 3D characters, preventing the occurrence of the pause phenomenon in the process of editing the 3D characters by a user, and improving the user experience.
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 3D text rendering method as described above when executing the program.
According to the computer equipment provided by the embodiment of the invention, the 3D character rendering program is stored through the memory, so that when the processor runs the 3D character rendering program stored on the memory, the 3D character rendering method is realized, the 3D character rendering efficiency is effectively improved, the phenomenon of pause during the process of editing the 3D characters by a user is prevented, and the user experience is improved.
In order to implement the foregoing embodiment, an embodiment of the present invention provides a 3D text rendering device, and as shown in fig. 3, the 3D text rendering device includes: the system comprises an acquisition module 10, a judgment module 20, a calling module 30 and a rendering module 40.
The obtaining module 10 is configured to obtain an operation instruction input by a user, so as to obtain a corresponding 3D text rendering parameter according to the operation instruction;
the judging module 20 is configured to judge whether a rendering image corresponding to the 3D text rendering parameter exists in the cache data;
the calling module 30 is configured to call the rendering image when the rendering image corresponding to the 3D text rendering parameter exists in the cache data;
the determining module 20 is further configured to determine whether staged cache data corresponding to the 3D text rendering parameter exists in the cache data;
the calling module 30 is further configured to call the staged cache data when the staged cache data corresponding to the 3D text rendering parameter exists in the cache data;
the rendering module 40 is configured to perform rendering of the 3D text according to the staged cache data and the 3D text rendering parameter.
In some embodiments, the 3D text rendering parameters include text fonts and text contents, where determining whether staged cache data corresponding to the 3D text rendering parameters exists in the cache data, and calling the staged cache data when staged cache data corresponding to the 3D text rendering parameters exists in the cache data includes: judging whether character font and character vertex data corresponding to the character content exist in the cache data; if so, calling the character vertex data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters.
In some embodiments, if the cache data does not contain the text vertex data corresponding to the text font and the text content, determining whether the cache data contains the text font data corresponding to the text font, calling the text font data when the cache data contains the text font data corresponding to the text font, and generating the corresponding text vertex data according to the text font data so as to render the 3D text according to the text vertex data and the 3D text rendering parameter.
In some embodiments, if there is no text font data corresponding to the text font in the cache data, a font file corresponding to the text font is obtained, and the font file is analyzed to obtain the text font data corresponding to the text font.
It should be noted that the above description about the 3D text rendering method in fig. 1 is also applicable to the 3D text rendering device, and is not repeated herein.
In summary, according to the 3D text rendering device in the embodiment of the present invention, the obtaining module is configured to obtain the operation instruction input by the user, so as to obtain the corresponding 3D text rendering parameter according to the operation instruction; the setting judgment module judges whether a rendering image corresponding to the 3D character rendering parameter exists in the cache data or not, and when the rendering image corresponding to the 3D character rendering parameter exists in the cache data, the rendering image is called through the calling module so as to be directly displayed to a user, and the calculated data amount required by 3D rendering is saved; when the rendering image corresponding to the 3D character rendering parameter does not exist in the cache data, the judging module is further used for judging whether staged cache data corresponding to the 3D character rendering parameter exists in the cache data, if yes, the staged cache data is called through the calling module, and therefore the rendering module can render the 3D characters according to the staged cache data and the 3D character rendering parameter; therefore, the rendering efficiency of the 3D characters is effectively improved, the phenomenon that a user is stuck in the process of editing the 3D characters is prevented, and the user experience 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 to imply that the number of technical features indicated are in fact significant. 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; they may be directly connected or indirectly connected through intervening media, or may be connected through the use of two elements or the interaction of two elements. 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. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
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 (4)

1. A3D text rendering method is characterized by comprising the following steps:
acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction;
judging whether a rendering image corresponding to the 3D character rendering parameter exists in cache data or not;
if yes, calling the rendering image;
if not, judging whether staged cache data corresponding to the 3D character rendering parameters exist in the cache data or not, calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exist in the cache data, and rendering the 3D characters according to the staged cache data and the 3D character rendering parameters;
the method for determining the 3D character rendering parameters includes character fonts and character contents, wherein determining whether staged cache data corresponding to the 3D character rendering parameters exists in the cache data, and calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exists in the cache data includes:
judging whether the cache data has character font and character vertex data corresponding to the character content;
if so, calling the character vertex data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters;
if the character font and the character vertex data corresponding to the character content do not exist in the cache data, judging whether the character font data corresponding to the character font exists in the cache data or not, calling the character font data when the character font data corresponding to the character font exists in the cache data, and generating corresponding character vertex data according to the character font data so as to render the 3D character according to the character vertex data and the 3D character rendering parameter;
and if the character font data corresponding to the character font does not exist in the cache data, acquiring a font file corresponding to the character font, and analyzing the font file to acquire the character font data corresponding to the character font.
2. A computer-readable storage medium on which a 3D text rendering program is stored, the 3D text rendering program, when executed by a processor, implementing the 3D text rendering method of claim 1.
3. 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 rendering method of claim 1.
4. A 3D text rendering apparatus, comprising:
the acquisition module is used for acquiring an operation instruction input by a user so as to acquire a corresponding 3D character rendering parameter according to the operation instruction;
the judging module is used for judging whether a rendering image corresponding to the 3D character rendering parameter exists in cache data or not;
the calling module is used for calling the rendering image when the rendering image corresponding to the 3D character rendering parameter exists in the cache data;
the judging module is further configured to judge whether staged cache data corresponding to the 3D text rendering parameter exists in the cache data;
the calling module is further configured to call the staged cache data when staged cache data corresponding to the 3D text rendering parameter exists in the cache data;
the rendering module is used for rendering the 3D characters according to the staged cache data and the 3D character rendering parameters;
the method for determining the 3D character rendering parameters includes character fonts and character contents, wherein determining whether staged cache data corresponding to the 3D character rendering parameters exists in the cache data, and calling the staged cache data when the staged cache data corresponding to the 3D character rendering parameters exists in the cache data includes:
judging whether the cache data has character font and character vertex data corresponding to the character content;
if so, calling the character vertex data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters;
if the character font and the character vertex data corresponding to the character content do not exist in the cache data, judging whether character font data corresponding to the character font exists in the cache data or not, calling the character font data when the character font data corresponding to the character font exists in the cache data, and generating corresponding character vertex data according to the character font data so as to render the 3D characters according to the character vertex data and the 3D character rendering parameters;
and if the character font data corresponding to the character font does not exist in the cache data, acquiring a font file corresponding to the character font, and analyzing the font file to acquire the character font data corresponding to the character font.
CN201910801254.6A 2019-08-28 2019-08-28 3D character rendering method, medium, device and apparatus Active CN110580731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910801254.6A CN110580731B (en) 2019-08-28 2019-08-28 3D character rendering method, medium, device and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910801254.6A CN110580731B (en) 2019-08-28 2019-08-28 3D character rendering method, medium, device and apparatus

Publications (2)

Publication Number Publication Date
CN110580731A CN110580731A (en) 2019-12-17
CN110580731B true CN110580731B (en) 2023-03-14

Family

ID=68812007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910801254.6A Active CN110580731B (en) 2019-08-28 2019-08-28 3D character rendering method, medium, device and apparatus

Country Status (1)

Country Link
CN (1) CN110580731B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256758B (en) * 2021-05-20 2023-08-18 稿定(厦门)科技有限公司 Graphic smoothing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186919A (en) * 2011-12-28 2013-07-03 腾讯科技(深圳)有限公司 Method and device for rendering characters
JP5706956B1 (en) * 2013-12-13 2015-04-22 エヌ・ティ・ティ・アドバンステクノロジ株式会社 Database system and database control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007094986A (en) * 2005-09-30 2007-04-12 Fujitsu Ltd Simulation apparatus and simulation method
FR2999005B1 (en) * 2012-11-30 2022-06-10 Thales Sa METHOD FOR RENDERING A TERRAIN STORED IN A MASSIVE DATABASE
US10757142B2 (en) * 2017-09-01 2020-08-25 Financial Crime Intelligence Ltd Assimilated economic crime intelligence system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186919A (en) * 2011-12-28 2013-07-03 腾讯科技(深圳)有限公司 Method and device for rendering characters
JP5706956B1 (en) * 2013-12-13 2015-04-22 エヌ・ティ・ティ・アドバンステクノロジ株式会社 Database system and database control method

Also Published As

Publication number Publication date
CN110580731A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN109816762B (en) Image rendering method and device, electronic equipment and storage medium
CN103678631B (en) page rendering method and device
CN103177709B (en) Method and device for displaying characters
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
CN108122266B (en) Method, device and storage medium for caching rendering textures of skeleton animation
CN104850388B (en) web page rendering method and device
US9558542B2 (en) Method and device for image processing
JP2015531921A5 (en)
CN108846791B (en) Rendering method and device of physical model and electronic equipment
CN109389659B (en) Rendering method and device of mathematical formula in PPT, storage medium and terminal equipment
CN110309463B (en) Floor page optimization method and device, computer storage medium and network equipment
CN110580731B (en) 3D character rendering method, medium, device and apparatus
KR20180117619A (en) Object management and visualization using computing devices
CN105824843B (en) Map rendering method and device for geographic information system
CN115439609A (en) Three-dimensional model rendering method, system, device and medium based on map service
CN107103010B (en) Visualized data processing method and device
CN107168961B (en) Data display method and device for chart
CN111445562B (en) Character animation generation method and device
JP2019066266A (en) Crack detector, crack detection method, and computer program
CN111311720A (en) Texture image processing method and device
CN107621951B (en) View level optimization method and device
CN113592714A (en) Image amplification method, module and system
CN111462278B (en) Depth-based material sequencing rendering method, medium, equipment and device
US9613427B2 (en) Information processing method and electronic device
CN110796115A (en) Image detection method and device, electronic equipment and readable storage medium

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