A graphics rendering method, device and system based on WebGL

By encapsulating the elements drawn by WebGL into layers and mapping them to the WebGL data format, the rendering difficulties caused by the complexity of the state machine in WebGL implementation are solved, and simple and easy-to-operate rendering development is achieved.

CN113570733BActive Publication Date: 2024-08-30GAODING XIAMEN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110896610.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-05
Publication Date
2024-08-30
Estimated Expiration
2041-08-05

AI Technical Summary

Technical Problem

The implementation of WebGL is a state machine, which makes it difficult to build a complex rendering system on top of it. It requires maintaining complex states, which can easily lead to errors in rendering results.

Method used

By encapsulating the elements drawn by WebGL into layers, obtaining the layer rendering data in the preset layer encapsulation format, mapping it to the WebGL data format, and calling the WebGL interface for rendering output, the web application layer's access to the underlying drawing capabilities is simplified.

Benefits of technology

It reduces the understanding cost of web application layer rendering development, avoids manual maintenance of various properties in the state machine, and makes the operation simple and easy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113570733B
    Figure CN113570733B
Patent Text Reader

Abstract

The present application relates to a WebGL-based graphics rendering method, device and system. The method comprises: obtaining initial rendering information; converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; mapping the layer rendering data to a WebGL data format to obtain WebGL rendering data; calling a WebGL interface and rendering output according to the WebGL rendering data. The present application encapsulates elements drawn using WebGL into layers, obtains layer rendering data in the form of a preset layer encapsulation format, and then maps the layer rendering data to a WebGL data format, thereby opening the underlying drawing capabilities to the web application layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of computer technology. More specifically, the present application relates to a WebGL-based graphics rendering method, device and system. Background Art

[0002] WebGL is a drawing technology standard that combines JavaScript and OpenGL. Its purpose is to open the underlying drawing capabilities to the web application layer. This standard has been widely supported on the browser platform.

[0003] However, the implementation of WebGL is a state machine. Drawing through it requires maintaining various complex states such as vertex coordinates and texture coordinates. The slightest carelessness will lead to errors in the rendering results, making it difficult to build a more complex rendering system on it.

[0004] Based on the above technical problems, this application is specially proposed. Summary of the invention

[0005] In order to at least partially solve the technical problems mentioned in the background technology, the solution of the present application provides a WebGL-based graphics rendering method, device and system.

[0006] According to the first aspect of the present application, the present application provides a WebGL-based graphics rendering method, wherein the method comprises: obtaining initial rendering information; converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; mapping the layer rendering data to a WebGL data format to obtain WebGL rendering data; calling a WebGL interface and rendering output according to the WebGL rendering data. The present application encapsulates elements drawn using WebGL into layers, obtains layer rendering data in the form of a preset layer encapsulation format, and then maps the layer rendering data to a WebGL data format, thereby opening the underlying drawing capabilities to the web application layer, wherein the preset layer encapsulation format can be provided to the web application layer in the form of an interface.

[0007] Optionally, the initial rendering information includes data of elements to be rendered and linear transformation instructions to be performed on the elements to be rendered.

[0008] Optionally, the preset layer encapsulation format includes a preset data source format and a preset matrix format; the layer rendering data includes pixel data of the element to be rendered and transformation matrix data of the element to be rendered; converting the initial rendering information according to the preset layer encapsulation format to obtain layer rendering data includes: converting the data of the element to be rendered according to the preset data source format to obtain the pixel data; converting the linear transformation instruction according to the preset matrix format to obtain the transformation matrix data.

[0009] Optionally, converting the element data to be rendered according to the preset data source format to obtain the pixel data includes: converting the element data to be rendered by setting texture pixels and / or directly setting a frame buffer to obtain the pixel data.

[0010] Optionally, mapping the layer rendering data into a WebGL data format to obtain the WebGL rendering data includes: mapping the pixel data into a WebGL texture; and mapping the transformation matrix data into attributes in a WebGL shader.

[0011] Optionally, the initial rendering information includes global attribute data, and the method further includes: before converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data, setting a WebGL context according to the global attribute data. The WebGL context includes relevant data related to global attributes such as canvas width and height.

[0012] According to the second aspect of the present application, the present application provides a WebGL-based graphics rendering method, wherein the method includes: using the above-mentioned WebGL-based graphics rendering method to obtain a first rendering element; determining whether to retain the first rendering element, and if not, recycling the first rendering element; determining whether there is newly added initial rendering information, and if so, using the above-mentioned WebGL-based graphics rendering method to obtain a second rendering element.

[0013] According to the third aspect of the present application, the present application provides a graphics rendering device based on WebGL, wherein the device includes: an acquisition module, used to obtain initial rendering information; a format conversion module, used to convert the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; a data processing module, used to map the layer rendering data to a WebGL data format to obtain WebGL rendering data; a rendering module, used to call a WebGL interface and perform rendering output based on the WebGL rendering data.

[0014] Optionally, the acquisition module is used to acquire the following information: data of elements to be rendered and linear transformation instructions to be performed on the elements to be rendered.

[0015] Optionally, the preset layer encapsulation format includes a preset data source format and a preset matrix format; the layer rendering data includes pixel data of the element to be rendered and transformation matrix data of the element to be rendered; the format conversion module is used to obtain the layer rendering data in the following manner: converting the element data to be rendered according to the preset data source format to obtain the pixel data; converting the linear transformation instruction according to the preset matrix format to obtain the transformation matrix data.

[0016] Optionally, the data processing module is used to obtain the WebGL rendering data in the following manner: mapping the pixel data to a WebGL texture; mapping the transformation matrix data to attributes in a WebGL shader.

[0017] Optionally, the initial rendering information includes global attribute data, and the device further includes: a setting module, configured to set the WebGL context according to the global attribute data.

[0018] According to the fourth aspect of the present application, the present application provides a WebGL-based graphics rendering system, wherein the system includes: the above-mentioned WebGL-based graphics rendering device, used to obtain rendering elements; a logic processing device, used to process logical judgments; and a recycling device, used to recycle rendering elements according to the instructions of the logic processing device.

[0019] Optionally, the logic processing device is used to process the following logical judgments: determine whether to retain the first rendering element, and if not, instruct the recycling device to recycle the first rendering element; determine whether there is new initial rendering information, and if so, instruct the WebGL-based graphics rendering device to obtain a second rendering element according to the new initial rendering information.

[0020] According to a fifth aspect of the present application, the present application provides an electronic device, wherein the device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the above-mentioned WebGL-based graphics rendering method of the present application is implemented.

[0021] According to a sixth aspect of the present application, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed, the above-mentioned WebGL-based graphics rendering method of the present application is implemented.

[0022] The WebGL-based graphics rendering method, device, and system of the present application encapsulate the elements drawn by WebGL into layers, obtain the layer rendering data in the form of a preset layer encapsulation format, and then map the layer rendering data into the WebGL data format, thereby opening the underlying drawing capabilities to the web application layer. Through the WebGL-based graphics rendering method and device of the present application, the understanding cost of developing web application layer rendering is reduced, and it is no longer necessary to manually maintain various attributes in the state machine. Only the layer attributes need to be intuitively operated, which is simple and easy to operate. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, among which:

[0024] Figure 1 is a flowchart showing a WebGL-based graphics rendering method according to an embodiment of the present application;

[0025] Figure 2 is a flowchart showing a WebGL-based graphics rendering method according to another embodiment of the present application;

[0026] Figure 3 is a flowchart showing a WebGL-based graphics rendering method according to a specific embodiment of the present application;

[0027] Figure 4 is a schematic block diagram showing a WebGL-based graphics rendering device according to an embodiment of the present application;

[0028] Figure 5 is a schematic block diagram showing a WebGL-based graphics rendering system according to another embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0030] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0031] One embodiment of the present application provides a WebGL-based graphics rendering method, such as Figure 1As shown, the method includes the following steps S101-S104. Step S101: obtaining initial rendering information; Step S102: converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; Step S103: mapping the layer rendering data to a WebGL data format to obtain WebGL rendering data; Step S104: calling a WebGL interface and performing rendering output according to the WebGL rendering data.

[0032] This application opens the underlying drawing capabilities to the web application layer by encapsulating elements drawn using WebGL into layers, obtaining layer rendering data in a preset layer encapsulation format, and then mapping the layer rendering data to the WebGL data format.

[0033] In step S101, initial rendering information is obtained.

[0034] According to an embodiment of the present application, in order to perform graphics rendering, initial rendering information should be obtained first. The initial rendering information can be obtained through any appropriate means, such as from a gallery, uploaded or input by an operator, and so on.

[0035] As a preferred embodiment, the initial rendering information includes data of elements to be rendered and linear transformation instructions to be performed on the elements to be rendered, wherein the data of elements to be rendered can be pictures or image data in any format, and the linear transformation instructions include translation, rotation, scaling and other instructions.

[0036] In step S102, the initial rendering information is converted according to a preset layer encapsulation format to obtain layer rendering data.

[0037] As a preferred embodiment, the preset layer encapsulation format includes a preset data source format and a preset matrix format, and the layer rendering data includes pixel data of the element to be rendered and transformation matrix data of the element to be rendered; converting the initial rendering information according to the preset layer encapsulation format to obtain the layer rendering data includes: converting the data of the element to be rendered according to the preset data source format to obtain the pixel data; converting the linear transformation instruction according to the preset matrix format to obtain the transformation matrix data.

[0038] As a specific embodiment, the preset data source format and the preset matrix format are provided to the web application layer through corresponding interfaces, respectively. The data of the element to be rendered is converted by setting the texture pixel and / or directly setting the frame buffer to obtain pixel data; the linear transformation instruction of the element to be rendered is converted according to the preset matrix format to obtain a 3×3 matrix, i.e., transformation matrix data.

[0039] In this specific embodiment, the preset matrix format is a 3×3 matrix, including: an initial matrix format, a translation matrix format, a rotation matrix format, and a scaling matrix format, wherein:

[0040] The diagonal elements in the initial matrix are all 1, and the remaining elements are 0. The initial matrix format is as follows:

[0041]

[0042] The translation matrix format is as follows:

[0043]

[0044] Wherein, x represents the displacement in the horizontal direction (x-axis direction), and y represents the displacement in the vertical direction (y-axis direction); the displacement unit is pixel point; the displacement in the positive direction of the x-axis or y-axis is represented by a positive number, and the displacement in the negative direction of the x-axis or y-axis is represented by a negative number;

[0045] The rotation matrix format is as follows:

[0046]

[0047] Among them, α represents the clockwise rotation angle;

[0048] The scaling matrix format is as follows:

[0049]

[0050] Wherein, m represents the scaling factor in the horizontal direction (x-axis direction), and n represents the scaling factor in the vertical direction (y-axis direction); for example, if the element to be rendered is reduced by half in both the horizontal and vertical directions, then m=n=0.5;

[0051] Converting the linear transformation instructions of the elements to be rendered according to the preset matrix format includes: obtaining the translation matrix, rotation matrix, and scaling matrix respectively according to the linear transformation instructions such as translation, rotation, and scaling of the elements to be rendered and the above-mentioned translation matrix format, rotation matrix format, and scaling matrix format, and then multiplying the initial matrix with the translation matrix, rotation matrix, and scaling matrix in the order of translation, rotation, and scaling to obtain transformation matrix data. If a linear transformation instruction of a certain type is not obtained, the matrix of that type is skipped.

[0052] In step S103, the layer rendering data is mapped into a WebGL data format to obtain WebGL rendering data.

[0053] As a preferred embodiment, the layer rendering data is mapped into a WebGL data format, and obtaining the WebGL rendering data includes: mapping the pixel data into a WebGL texture; and mapping the transformation matrix data into attributes in a WebGL shader.

[0054] As a preferred embodiment, the initial rendering information includes global attribute data. The WebGL-based graphics rendering method of this embodiment also includes: before step S102, setting the WebGL context according to the global attribute data, wherein the global attribute data includes any relevant data related to global attributes, such as canvas width and height.

[0055] The above-mentioned implementation mode of the present application can be used to render pictures or images, including rendering single elements or multiple elements in pictures or images, by encapsulating the elements to be rendered into layers, and providing the web application layer with an interface for setting data sources and linear transformations, obtaining pixel data and transformation matrix data of the elements to be rendered through the corresponding interface, and then mapping the pixel data and transformation matrix data to WebGL textures and attributes in WebGL shaders respectively, and calling the WebGL interface for rendering, thereby opening the underlying drawing capabilities to the web application layer, reducing the understanding cost of developing the rendering of the web application layer, and eliminating the need to manually maintain various attributes in the state machine, which is simple and easy to operate.

[0056] Another embodiment of the present application provides a WebGL-based graphics rendering method, such as Figure 2 As shown, the method includes: step S201: using the above-mentioned WebGL-based graphics rendering method to obtain a first rendering element; step S202: judging whether to retain the first rendering element, if not, recycling the first rendering element; step S203: judging whether there is newly added initial rendering information, if so, using the above-mentioned WebGL-based graphics rendering method to obtain a second rendering element.

[0057] As a specific embodiment, Figure 3 As shown, the WebGL-based graphics rendering method of this embodiment includes:

[0058] Step S301: obtaining initial rendering information, and setting a WebGL context according to global attribute data in the initial rendering information;

[0059] Step S302: converting the to-be-rendered element data in the initial rendering information according to a preset data source format to obtain pixel data; converting the linear transformation instruction in the initial rendering information according to a preset matrix format to obtain transformation matrix data;

[0060] Step S303: Mapping the pixel data and the transformation matrix data to the WebGL texture and the attributes in the WebGL shader respectively, and calling the WebGL interface for rendering to obtain a first rendering element;

[0061] Step S304: determining whether to retain the first rendering element, and if not, recycling the first rendering element;

[0062] Step S305: determine whether there is newly added initial rendering information, if yes, repeat steps S301 to S303 to obtain a second rendering element; if no, output the rendering result.

[0063] Those skilled in the art can understand that the order of "determining whether to retain the first rendering element" in step 304 and "determining whether there is newly added initial rendering information" in step 305 can be interchanged, and no special limitation is made here. It should be noted that if the order of the above embodiment is followed, step 304 is first performed to determine whether to retain the first rendering element, and if not, the first rendering element is recycled to release the storage space and the processing thread, and then step 305 is performed to determine whether there is newly added initial rendering information, so that the processing efficiency is higher.

[0064] The above implementation of the present application can be used to render different elements to be rendered in multiple cycles. Different cycles may include different elements to be rendered. The above method can realize effective management of multi-cycle element rendering.

[0065] Another embodiment of the present application provides a WebGL-based graphics rendering device. The device is used to perform the above combined Figure 1 The steps in the described WebGL-based graphics rendering method embodiment.

[0066] like Figure 4 As shown, the device 100 includes an acquisition module 101, a format conversion module 102, a data processing module 103, and a rendering module 104, wherein the acquisition module 101 is used to acquire initial rendering information; the format conversion module 102 is used to convert the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; the data processing module 103 is used to map the layer rendering data to a WebGL data format to obtain WebGL rendering data; the rendering module 104 is used to call a WebGL interface and perform rendering output according to the WebGL rendering data.

[0067] As a preferred embodiment, the acquisition module 101 is used to obtain the following information: the data of the element to be rendered and the linear transformation instruction to be performed on the element to be rendered; the preset layer encapsulation format includes a preset data source format and a preset matrix format; the layer rendering data includes the pixel data of the element to be rendered and the transformation matrix data of the element to be rendered; the format conversion module 102 is used to obtain the layer rendering data in the following manner: converting the data of the element to be rendered according to the preset data source format to obtain pixel data; converting the linear transformation instruction according to the preset matrix format to obtain transformation matrix data.

[0068] As a specific embodiment, the format conversion module 102 includes a data processing unit, a data source interface, and a transformation matrix interface, wherein the data processing unit is used to convert the data of the element to be rendered obtained by the acquisition module 101 and the linear transformation instructions such as translation, rotation, and scaling to be performed on the element to be rendered according to a preset data source format and a preset matrix format, respectively, to obtain pixel data and transformation matrix data of the element to be rendered; the data source interface is used to obtain pixel data of the element to be rendered; and the transformation matrix interface is used to obtain transformation matrix data of the element to be rendered.

[0069] As a preferred embodiment, the data processing module 103 is used to obtain WebGL rendering data in the following manner: mapping the pixel data to a WebGL texture; mapping the transformation matrix data to attributes in a WebGL shader.

[0070] As a preferred embodiment, the initial rendering information also includes global attribute data. The WebGL-based graphics rendering device of this embodiment also includes: a setting module, which is used to set the WebGL context according to the global attribute data.

[0071] It is understandable that the above reference Figure 4 In the WebGL-based graphics rendering device described in the embodiment, the specific way in which each module performs operations has been described in conjunction with Figure 1 The described embodiment of the WebGL-based graphics rendering method is described in detail and will not be elaborated here.

[0072] Another embodiment of the present application further provides a WebGL-based graphics rendering system, such as Figure 5 As shown, the system includes: the above-mentioned WebGL-based graphics rendering device 100, a logic processing device 200, and a recycling device 300, wherein the WebGL-based graphics rendering device 100 is used to obtain rendering elements; the logic processing device 200 is used to process logical judgments; and the recycling device 300 is used to recycle rendering elements according to the instructions of the logic processing device 200.

[0073] Those skilled in the art will appreciate that the logic processing device 200 may be used to process any necessary logic judgments related to the process management of WebGL-based graphics rendering, including but not limited to: judging whether to retain the first rendering element, and if not, instructing the recycling device 300 to recycle the first rendering element; and / or judging whether there is newly added initial rendering information, and if so, instructing the WebGL-based graphics rendering device 100 to obtain a second rendering element based on the newly added initial rendering information.

[0074] It is understandable that the above reference Figure 5In the WebGL-based graphics rendering system described in the embodiment, the specific way in which each device performs operations has been combined with Figure 1-3 The described embodiment of the WebGL-based graphics rendering method is described in detail and will not be elaborated here.

[0075] Another embodiment of the present application also provides an electronic device, wherein the device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented: obtaining initial rendering information; converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; mapping the layer rendering data to a WebGL data format to obtain WebGL rendering data; calling a WebGL interface and performing rendering output based on the WebGL rendering data.

[0076] It can be understood that the steps implemented by the processor when executing the computer program are basically consistent with the implementation methods of the various steps in the above method. The specific methods have been described in detail in the embodiments of the WebGL-based graphics rendering method and will not be elaborated here.

[0077] Another embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed, the following steps are implemented: obtaining initial rendering information; converting the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data; mapping the layer rendering data to a WebGL data format to obtain WebGL rendering data; calling a WebGL interface and performing rendering output based on the WebGL rendering data.

[0078] It can be understood that the steps implemented by the processor when executing the computer program are basically consistent with the implementation methods of the various steps in the above method. The specific methods have been described in detail in the embodiments of the WebGL-based graphics rendering method and will not be elaborated here.

[0079] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0080] It should be understood that the terms "first" and "second", etc. in the claims, specification and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0081] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

Claims

1. A graphics rendering method based on WebGL, wherein: The method comprises: Acquire initial rendering information, the initial rendering information including data of elements to be rendered and linear transformation instructions to be performed on the elements to be rendered, the initial rendering information including global attribute data; Setting a WebGL context according to the global attribute data; The initial rendering information is converted according to a preset layer encapsulation format to obtain layer rendering data, wherein the preset layer encapsulation format includes a preset data source format and a preset matrix format, and the layer rendering data includes pixel data of the element to be rendered and transformation matrix data of the element to be rendered; the converting the initial rendering information according to the preset layer encapsulation format to obtain layer rendering data includes: converting the element data to be rendered according to the preset data source format to obtain the pixel data; converting the linear transformation instruction according to the preset matrix format to obtain the transformation matrix data; the converting the element data to be rendered according to the preset data source format to obtain the pixel data includes: converting the element data to be rendered by setting the texture pixel and / or directly setting the frame buffer to obtain the pixel data; Mapping the layer rendering data into a WebGL data format to obtain WebGL rendering data, including: mapping the pixel data into a WebGL texture; mapping the transformation matrix data into attributes in a WebGL shader; Call the WebGL interface and perform rendering output according to the WebGL rendering data.

2. A graphics rendering method based on WebGL, wherein: The method comprises: Obtaining a first rendering element using the WebGL-based graphics rendering method as claimed in claim 1; Determine whether to retain the first rendering element, and if not, recycle the first rendering element; Determine whether there is newly added initial rendering information, and if so, obtain the second rendering element using the WebGL-based graphics rendering method as claimed in claim 1.

3. A graphics rendering device based on WebGL, wherein: The device comprises: An acquisition module, used for acquiring initial rendering information, wherein the acquisition module is used for acquiring the following information: data of elements to be rendered and linear transformation instructions to be performed on the elements to be rendered, wherein the initial rendering information includes global attribute data; A setting module, used for setting a WebGL context according to the global attribute data; A format conversion module is used to convert the initial rendering information according to a preset layer encapsulation format to obtain layer rendering data, wherein the preset layer encapsulation format includes a preset data source format and a preset matrix format; the layer rendering data includes pixel data of the element to be rendered and transformation matrix data of the element to be rendered, and the format conversion module is used to obtain the layer rendering data in the following manner: converting the element data to be rendered according to the preset data source format to obtain the pixel data; converting the linear transformation instruction according to the preset matrix format to obtain the transformation matrix data; A data processing module is used to map the layer rendering data into a WebGL data format to obtain WebGL rendering data. The data processing module is used to obtain the WebGL rendering data in the following manner: mapping the pixel data into a WebGL texture; mapping the transformation matrix data into attributes in a WebGL shader; The rendering module is used to call the WebGL interface and perform rendering output according to the WebGL rendering data.

4. A graphics rendering system based on WebGL, wherein: The system comprises: The WebGL-based graphics rendering device according to claim 1, used to obtain rendering elements; A logic processing device, used for processing logic judgment; The recycling device is used to recycle the rendering elements according to the instruction of the logic processing device.

5. An electronic device, wherein: The device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.

6. A computer-readable storage medium, wherein: The storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Page rendering method and device

    CN103678631A

  • A WebGL graphic rendering engine building method

    CN106990961A

  • 3D canvas webpage element rendering method and device and electronic equipment

    CN107832108A

  • Rendering method and device and storage medium

    CN111127608A

  • Map rendering method and device, equipment and storage medium

    CN112862940A