Graph rendering method and system based on vector analysis and terminal equipment

Through vector analysis and path mapping technology, combined with layer separation and simulation, the limitations of static pictures and high complexity of traditional rendering solutions in the virtual experimental teaching system are solved, and the efficient, high-definition and highly interactive graphics rendering effect is achieved.

CN120495492APending Publication Date: 2025-08-15GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510595201.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the existing virtual experimental teaching system, the use of static images leads to high-definition amplification and poor dynamic interactivity, and the development of traditional path-level rendering solutions is highly complex, making it difficult to meet the needs of rapid iteration and function expansion.

Method used

The graphic rendering method based on vector analysis is adopted, and by obtaining the path information and drawing information of the vector image file, the initial transformation matrix is constructed, the user's operations are monitored, the layer separation and simulation actions are triggered, and the high-definition repainting and animation effects of the graphics are achieved.

Benefits of technology

While ensuring the clarity of graphics and real-time interactivity, it significantly reduces development complexity and resource consumption, and achieves efficient, high-definition, and highly interactive experimental graphics rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120495492A_ABST
    Figure CN120495492A_ABST
Patent Text Reader

Abstract

The invention provides a graph rendering method and system based on vector analysis and terminal equipment. Relates to the technical field of vector graph generation or processing. The method comprises the following steps: acquiring graph path information and drawing information based on a vector graph file; constructing an initialized transformation matrix to obtain an initial image based on the initialized transformation matrix, the graphic path information and the drawing information; executing a monitoring interaction action to obtain real-time operation information of a user, and when the real-time operation information of the user meets a preset layer separation condition, triggering a layer separation action to obtain a real-time transformation image; and obtaining a current transformation parameter based on the graph matrix state, and when the current transformation parameter exceeds a preset transformation threshold value, executing an analogue simulation action to obtain a redrawing image, thereby realizing graph rendering based on vector analysis and path mapping. According to the graph rendering method and system based on vector analysis and the terminal equipment provided by the invention, efficient, high-definition and high-interactivity graph rendering is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vector graphics generation or processing, and in particular to a graphics rendering method, system and terminal equipment based on vector analysis. Background Art

[0002] In current virtual experiment teaching systems, the use of static images (such as bitmaps or textures) to display experimental instrument graphics is a relatively common technical implementation method. Although this method has advantages in terms of development efficiency and resource utilization, it also has significant limitations that may affect the immersiveness, interactivity, and educational effectiveness of virtual experiment teaching. For example, in application scenarios such as high-definition magnification, dynamic interaction, and complex animation simulation, traditional bitmap formats (such as JPEG and PNG) inevitably face problems such as resolution-dependent blurring and distortion, severe edge jaggedness, and excessive resource consumption at high resolutions due to their pixel-based storage characteristics. These problems significantly affect the visual experience, especially when users frequently zoom, drag, or rotate the view.

[0003] Some systems attempt to implement path-level rendering (such as dynamic drawing based on Bezier curves or SVG paths) through custom drawing methods such as Canvas. Although this can alleviate the clarity problem of bitmaps to a certain extent, this solution usually requires developers to manually parse path data and write complex rendering logic, resulting in high code maintenance costs and extended development cycles. In addition, it faces great technical challenges when implementing refined animation effects (such as path deformation, particle flow, dynamic shading, etc.), making it difficult to meet the needs of rapid product iteration and functional expansion. Therefore, in response to the above pain points, it is urgent to explore an innovative method that combines the high-definition rendering capabilities of vector graphics with the dynamic optimization characteristics of path mapping technology. By preprocessing vector path data, building a layered rendering engine, and implementing dynamic level of detail (LOD) adjustment, while ensuring graphic clarity and interactive smoothness, it significantly reduces development complexity and resource consumption, thereby providing an efficient, scalable and highly interactive solution for experimental graphics rendering. Summary of the Invention

[0004] The present invention aims to provide a graphics rendering method based on vector analysis to solve the technical problems in the above-mentioned experimental teaching system that static images are difficult to use in various teaching scenarios and the solution development is complex. While ensuring graphic clarity and real-time interaction, the development complexity and resource consumption are significantly reduced, and efficient, high-definition, and highly interactive experimental graphics rendering are achieved.

[0005] In order to solve the above technical problems, the present invention provides a graphics rendering method based on vector analysis, comprising the following steps:

[0006] Obtaining a vector graphics file to obtain graphic path information and drawing information based on the vector graphics file;

[0007] constructing an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, the graphics path information, and the drawing information;

[0008] Execute the monitoring interaction action to obtain the user's real-time operation information. When the user's real-time operation information meets the preset layer separation conditions, trigger the layer separation action: obtain the real-time interaction transformation matrix based on the user's real-time operation information and the initialization transformation matrix, and obtain the graphics matrix state based on the real-time interaction transformation matrix and the path point coordinates; obtain the layer correction matrix corresponding to the separated layer based on the drawing information and the graphics matrix state; obtain the real-time transformation image based on the graphics matrix state, the layer correction matrix and the initial image;

[0009] The current transformation parameters are obtained based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, the simulation action is performed: the layer transformation information is obtained based on the current transformation parameters, drawing information and the preset simulation algorithm, and the redrawn image is obtained based on the layer transformation information and the real-time transformation image to realize graphics rendering based on vector analysis and path mapping.

[0010] The method provided by the present invention is based on vector analysis and path mapping. First, the vector analysis method is used to extract relevant information of the graphics and construct initialization related information. Then, simple path information mapping and matrix transformation are used during user operation to achieve redrawing when the graphics are transformed, maintaining the state consistency of the graphics and the high definition and non-deformation of the path. In addition, layer correction and layer transformation are performed in specific situations based on conditional judgment to achieve animation simulation effects. While ensuring graphics clarity and real-time interaction, the development complexity and resource consumption are significantly reduced, and efficient, high-definition, and highly interactive experimental graphics rendering are achieved.

[0011] Furthermore, executing a monitoring interaction action to obtain the user's real-time operation information, and when the user's real-time operation information meets the preset layer separation conditions, triggering the layer separation action, also includes: executing a monitoring interaction action to obtain the user's real-time operation information, and when the user's real-time operation information does not meet the preset layer separation conditions, obtaining the real-time interaction transformation matrix based on the user's real-time operation information and the initialization transformation matrix, and then obtaining the graphic matrix state based on the real-time interaction transformation matrix and the path point coordinates, and obtaining the real-time transformation image based on the graphic matrix state and the initial image.

[0012] In the above scheme, by executing monitoring interactive actions to obtain user operation information in real time and respond in time, it is possible to realize operations such as translation, conversion, and rotation of the actual image screen, and obtain and maintain the corresponding graphic matrix state, realize continuous interactive processing, and maintain the consistency of the graphic state and the high-definition and non-deformation of the path; and when the user's real-time operation information meets the preset layer separation conditions, the corresponding correction changes are achieved through the layer correction matrix and layer separation, realizing the refined processing of the actual animation or graphic transformation, and when it does not meet the preset layer separation conditions, the overall graphic transformation is directly executed to ensure the efficient graphics rendering, and realize efficient, high-definition, and highly interactive experimental graphic rendering through simple vector analysis, path mapping and matrix transformation.

[0013] Furthermore, the current transformation parameters are obtained based on the graphic matrix state, and when the current transformation parameters exceed the preset transformation threshold, the simulation action is executed. It also includes: obtaining the current transformation parameters based on the graphic matrix state, and when the current transformation parameters do not exceed the preset transformation threshold, returning to execute the monitoring interaction action.

[0014] In the above scheme, when the current transformation parameter exceeds the preset transformation threshold, the simulation action is executed to realize the corresponding transformation of the image through the matrix transformation of the simulation process, thereby realizing the animation effect of the actual image; and for the case where the current transformation parameter does not exceed the preset transformation threshold, the execution returns to execute the monitoring interaction action, thereby ensuring the sustainability of the user interaction process.

[0015] Furthermore, a layer correction matrix corresponding to the separated layer is obtained based on the drawing information and the graphic matrix state, including: the drawing information includes a layer identifier and layer separation information; the basic layer and the separated layer are obtained based on the layer identifier and the layer separation information; the basic layer transformation matrix is obtained based on the basic layer and the graphic matrix state; the separated layer inverse transformation matrix is obtained based on the graphic matrix state; and the layer correction matrix corresponding to the separated layer is obtained based on the separated layer inverse transformation matrix, the basic layer transformation matrix and a preset inverse transformation method.

[0016] Furthermore, based on the separated layer inverse transformation matrix, the basic layer transformation matrix and the preset inverse transformation method, the layer correction matrix corresponding to the separated layer is obtained, and the calculation process satisfies the following formula:

[0017] M_liquid=M_container×M_rotate(-α)

[0018] Where M_liquid represents the layer correction matrix, M_container represents the basic layer transformation matrix, and M_rotate(-α) represents the separation layer inverse transformation matrix.

[0019] In the above scheme, the layers are disassembled according to the layer identification and layer separation information, and the corresponding required separation layer inverse transformation matrix is obtained according to the graphics matrix state, and then the layer correction matrix of the separation layer is obtained based on the calculation, so that the relevant drawing information of the separation layer is determined through the matrix, thereby realizing the refined processing of actual animation or graphic transformation.

[0020] Furthermore, the current transformation parameters are obtained based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, after executing the simulation action, it also includes: returning to execute the monitoring interaction action to obtain the current user's real-time operation information, and then obtaining the current real-time transformation image and the current redrawing image based on the current user's real-time operation information, until the current user's real-time operation information can no longer be received, completing the interactive process of graphics rendering based on vector analysis and path mapping.

[0021] In the above scheme, after the simulation action is completed, the execution returns to perform the monitoring interaction action to achieve real-time and continuous interaction to meet different application scenarios and ensure the efficiency and high interactivity of the image rendering process.

[0022] The present invention provides a graphics rendering method based on vector analysis. The core of the invention is to extract graphic information through vector analysis technology and path mapping method, and construct initialization data based on this information. On this basis, matrix transformation technology is used to achieve high-definition redrawing of graphics, while ensuring the visual consistency of graphics in various states; in the process of interactive processing, the user's operation instructions, such as translation, rotation and other actions, are monitored in real time, and more refined animation effects are achieved through layer correction and separation technology, so that the dynamic performance of the graphics is smoother and more natural; under specific operating conditions, if the transformation parameters exceed the preset threshold, simulation is performed to ensure the accuracy of the graphics transformation; when the transformation parameters do not exceed the threshold or after the action is completed, it continues to return to the monitoring state, thereby ensuring the sustainability and responsiveness of user interaction; in the process of layer disassembly, the inverse transformation matrix is calculated by identifying and separating information, and then the correction matrix is obtained to achieve refined drawing processing and ensure the accuracy and quality of graphics rendering. In summary, the overall solution of the present invention significantly reduces the complexity and resource consumption of graphics development, while achieving efficient, high-definition, and highly interactive graphics rendering effects.

[0023] The present invention provides a graphics rendering system based on vector analysis, which is used to implement the above-mentioned graphics rendering method based on vector analysis, including:

[0024] A vector parsing module is used to obtain a vector graphics file, so as to obtain graphic path information and drawing information based on the vector graphics file;

[0025] An initialization module, configured to construct an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, the graphic path information, and the drawing information;

[0026] The monitoring interaction module is used to perform monitoring interaction actions to obtain real-time user operation information. When the real-time user operation information meets the preset layer separation conditions, the layer separation action is triggered: the real-time interaction transformation matrix is obtained based on the real-time user operation information and the initialization transformation matrix, and the graphics matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates; the layer correction matrix corresponding to the separated layer is obtained based on the drawing information and the graphics matrix state; and the real-time transformation image is obtained based on the graphics matrix state, the layer correction matrix and the initial image.

[0027] The layer transformation module is used to obtain the current transformation parameters based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, the simulation action is performed: the layer transformation information is obtained based on the current transformation parameters, drawing information and the preset simulation algorithm, and the redrawn image is obtained based on the layer transformation information and the real-time transformation image to realize graphics rendering based on vector analysis and path mapping.

[0028] The system provided by the present invention first uses a vector parsing module to extract relevant information of the graphics based on a vector parsing and path mapping method, so as to construct initialization related information through an initialization module. Then, a simple path information mapping and matrix transformation are used by a monitoring interaction module during user operation to realize redrawing when the graphics are transformed, thereby maintaining the state consistency of the graphics and the high definition and non-deformation of the path. In addition, the layer transformation module is combined to perform layer correction and layer transformation under specific circumstances according to conditional judgment to achieve animation simulation effects. While ensuring the clarity of the graphics and real-time interaction, the development complexity and resource consumption are significantly reduced, thereby realizing efficient, high-definition and highly interactive experimental graphics rendering.

[0029] Furthermore, the monitoring interaction module is also used to execute monitoring interaction actions to obtain user real-time operation information. When the user's real-time operation information does not meet the preset layer separation conditions, the real-time interaction transformation matrix is obtained based on the user's real-time operation information and the initialization transformation matrix, and then the graphic matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates, and the real-time transformation image is obtained based on the graphic matrix state and the initial image.

[0030] In the above scheme, the monitoring interaction module obtains the user's operation information in real time and responds in time by executing the monitoring interaction action, which can realize the translation, conversion, rotation and other operations of the actual image screen, and obtain and maintain the corresponding graphic matrix state, realize continuous interactive processing, and maintain the consistency of the graphic state and the high definition of the path without deformation; and when the user's real-time operation information meets the preset layer separation conditions, the layer correction matrix and layer separation are used to achieve corresponding correction changes, realizing the refined processing of the actual animation or graphic transformation, and when it does not meet the preset layer separation conditions, the overall graphic transformation is directly executed to ensure the efficient graphics rendering, and realize efficient, high-definition and highly interactive experimental graphic rendering through simple vector analysis, path mapping and matrix transformation.

[0031] Furthermore, the layer transformation module is further configured to obtain current transformation parameters based on the graphic matrix state, and when the current transformation parameters do not exceed a preset transformation threshold, send a feedback signal to enable the monitoring interaction module to perform a monitoring interaction action based on the feedback signal.

[0032] In the above scheme, when the current transformation parameter exceeds the preset transformation threshold, the layer transformation module performs a simulation action to realize the corresponding transformation of the image through the matrix transformation of the simulation process, thereby realizing the animation effect of the actual image; and for the case where the current transformation parameter does not exceed the preset transformation threshold, the execution returns to perform the monitoring interaction action, thereby ensuring the sustainability of the user interaction process.

[0033] The present invention provides a graphics rendering system based on vector analysis, including a vector analysis module, an initialization module, a monitoring interaction module, and a layer transformation module, which are respectively responsible for obtaining graphic information, constructing the initial image, responding to user operations, and performing simulation. The system implements operations such as translation and rotation through the monitoring interaction module to ensure the consistency of the graphic state and prevent path deformation, while triggering layer separation and correction under specific conditions; the layer transformation module determines whether to perform simulation actions based on transformation parameters to achieve animation effects or maintain efficient interactivity and resource optimization; the system combines vector analysis and path mapping to significantly reduce development complexity and achieve efficient, high-definition, and highly interactive graphics rendering effects; the module dynamically adjusts the processing method based on user operation information, performs fine-grained corrections when the separation conditions are met, and directly performs overall transformation otherwise, thereby improving rendering efficiency and flexibility.

[0034] The present invention provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned vector resolution-based graphics rendering method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1A schematic diagram of a graphics rendering method based on vector analysis provided by one embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a processing flow of a graphics rendering system based on vector analysis is provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0038] Example 1:

[0039] See also Figure 1 , this embodiment provides a graphics rendering method based on vector analysis, comprising the following steps:

[0040] S1. Obtaining a vector graphics file to obtain graphic path information and drawing information based on the vector graphics file;

[0041] S2. constructing an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, the graphics path information, and the drawing information;

[0042] S3. Execute a monitoring interaction action to obtain real-time user operation information. When the real-time user operation information meets the preset layer separation condition, trigger a layer separation action: obtain a real-time interaction transformation matrix based on the real-time user operation information and the initialization transformation matrix, and obtain a graphics matrix state based on the real-time interaction transformation matrix and the path point coordinates; obtain a layer correction matrix corresponding to the separated layer based on the drawing information and the graphics matrix state; and obtain a real-time transformed image based on the graphics matrix state, the layer correction matrix, and the initial image.

[0043] S4. Obtain current transformation parameters based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, perform simulation actions: obtain layer transformation information based on the current transformation parameters, drawing information and preset simulation algorithm, and obtain a redrawn image based on the layer transformation information and the real-time transformation image to achieve graphics rendering based on vector analysis and path mapping.

[0044] The method provided in this embodiment is based on vector parsing and path mapping. First, vector parsing is used to extract relevant information of the graphics and construct initialization related information. Then, during user operation, simple path information mapping and matrix transformation are used to achieve redrawing when the graphics are transformed, maintaining the state consistency of the graphics and the high definition and non-deformation of the path. Layer correction and layer transformation are performed in specific situations based on conditional judgment to achieve animation simulation effects. While ensuring graphic clarity and real-time interaction, development complexity and resource consumption are significantly reduced, achieving efficient, high-definition, and highly interactive experimental graphics rendering.

[0045] In the specific implementation process, obtaining a vector file to obtain graphic path information and drawing information based on the vector file is as follows: reading a graphic file (vector file) from a vector resource such as SVG, using an SVG parser to identify <path>The d attribute in the tag extracts the graphics path command and constructs the corresponding drawing structure. It also extracts the style information, such as the coordinates of each path's record points, layer identifiers, colors, and strokes, to form a graphics data model. Specifically, each path's record point coordinates and graphics path command serve as the graphics path information, and the style information, such as the layer identifiers, colors, and strokes, serve as the drawing information.

[0046] In the specific implementation process, each graphics path needs to be initialized when constructing the initialization transformation matrix. Usually, the initialization transformation matrix M can be expressed as the following formula:

[0047]

[0048] Used to control the path's rotation, scaling, translation, and other transformation operations based on subsequent real-time user operation information. When drawing the initial image, the path point coordinates are calculated using the current transformation matrix and then drawn to the canvas. The coordinate transformation calculation formula is as follows:

[0049]

[0050] The transformed coordinates are used to display the initial image through the drawing interface.

[0051] Optionally, executing a monitoring interaction action to obtain the user's real-time operation information, and when the user's real-time operation information meets the preset layer separation conditions, triggering the layer separation action, also includes: executing a monitoring interaction action to obtain the user's real-time operation information, and when the user's real-time operation information does not meet the preset layer separation conditions, obtaining the real-time interaction transformation matrix based on the user's real-time operation information and the initialization transformation matrix, and then obtaining the graphic matrix state based on the real-time interaction transformation matrix and the path point coordinates, and obtaining the real-time transformation image based on the graphic matrix state and the initial image.

[0052] During the specific implementation process, user operations (such as rotation, scaling, dragging and other real-time user operation information) change the transformation matrix content in real time, the system updates the matrix M, and recalculates the path coordinates to obtain the graphics matrix state for redrawing. And after each transformation, the path state is updated synchronously, and the current graphics matrix state is recorded in the path object for continuous interactive processing and subsequent animation operations, maintaining state consistency and high-definition path deformation. When the user zooms in and out, the system adjusts the scaling item in the path transformation matrix, and achieves infinite magnification effect through retransformation and drawing, without distortion or jaggedness, maintaining the high-definition characteristics of the vector graphics. For example: when zooming in twice, the scaling matrix M_scale is constructed as:

[0053]

[0054] When the rotation operation is an angle θ, the rotation matrix M_rotate(θ) is constructed as follows:

[0055]

[0056] Where M_rotate(θ) represents the rotation matrix.

[0057] Optionally, the current transformation parameters are obtained based on the graphics matrix state, and when the current transformation parameters exceed the preset transformation threshold, a simulation action is performed. It also includes: obtaining the current transformation parameters based on the graphics matrix state, and when the current transformation parameters do not exceed the preset transformation threshold, returning to perform the monitoring interaction action.

[0058] In the specific implementation process, when the current transformation parameter exceeds the preset transformation threshold, the simulation action is executed. When the user controls the container to rotate to a specific angle, the system determines the rotation threshold and triggers the liquid pouring simulation logic: the liquid level of the B container layer rises; the liquid level of the A container drops; in the actual simulation process, the degree of rise and fall of the liquid levels of the two containers is determined by the preset liquid height change formula (linear relationship between volume and height). If the container is a straight cylinder, the liquid volume and liquid level height are linearly related: h = V / A, where V is the volume (ml); A is the cross-sectional area of the container (cm 2 ); h is the liquid level height (cm).

[0059] Optionally, a layer correction matrix corresponding to the separated layer is obtained based on the drawing information and the graphics matrix state, including: the drawing information includes a layer identifier and layer separation information; the basic layer and the separated layer are obtained based on the layer identifier and the layer separation information; the basic layer transformation matrix is obtained based on the basic layer and the graphics matrix state; the separated layer inverse transformation matrix is obtained based on the graphics matrix state; and the layer correction matrix corresponding to the separated layer is obtained based on the separated layer inverse transformation matrix, the basic layer transformation matrix and a preset inverse transformation method.

[0060] Optionally, the layer correction matrix corresponding to the separated layer is obtained based on the separated layer inverse transformation matrix, the basic layer transformation matrix and a preset inverse transformation method. The calculation process satisfies the following formula:

[0061] M_liquid=M_container×M_rotate(-α)

[0062] Where M_liquid represents the layer correction matrix, M_container represents the basic layer transformation matrix, and M_rotate(-α) represents the separation layer inverse transformation matrix.

[0063] In the specific implementation process, when performing the layer separation action, the graphics are first split into multiple layers (such as instrument outlines, liquids, labels, etc.), each of which has an independent path and transformation matrix, allowing for separate control. For example, when the liquid layer remains horizontal but the container rotates, the liquid layer, as a separate graphic at this time, needs to be corrected using the reverse rotation matrix. For example: in the simulation of a virtual chemical instrument, container A (such as a beaker) can be rotated through user interaction, such as rotating 30° clockwise. In reality, when a physical container rotates, the surface of the liquid will always remain horizontal (i.e., parallel to the ground) instead of tilting as the container tilts. Therefore, at the graphic level, a reverse rotation correction needs to be applied to the liquid graphic path. Assuming that the container is rotated at an angle α, the user interactively controls the container to rotate α degrees clockwise (e.g., 30°), that is, α = +30° is the relevant transformation parameter of the liquid layer correction matrix M_liquid. Since the liquid should remain visually stationary, a rotation matrix needs to be applied to the liquid layer to offset the rotation on the container layer. When the reverse rotation angle of the liquid layer just offsets the rotation of the container, the liquid graphic does not rotate visually and remains horizontal. For example, set the center of the container as the coordinate origin (0, 0), and the container rotates counterclockwise at an angle α = 30° (i.e., π / 6 radians). At this time, the liquid layer needs to apply a reverse rotation angle of -α = -30°, where the container rotation matrix (i.e., the basic layer transformation matrix) should be:

[0064]

[0065] The calculation of the liquid reverse rotation matrix, i.e. the reverse transformation matrix of the separation layer, should satisfy the following formula:

[0066]

[0067] Multiplying the liquid reverse rotation matrix and the container rotation matrix finally gives the final transformation matrix of the liquid, which is the layer correction matrix M liquid , as shown below:

[0068] M liquid =M container ×M rotate (-α)=I

[0069] Where M liquid Represents the layer correction matrix, M container Represents the basic layer transformation matrix, M rotate (-α) represents the inverse transformation matrix of the separated layer.

[0070] Optionally, the current transformation parameters are obtained based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, after executing the simulation action, it also includes: returning to execute the monitoring interaction action to obtain the current user's real-time operation information, and then obtaining the current real-time transformation image and the current redrawing image based on the current user's real-time operation information, until the current user's real-time operation information can no longer be received, and completing the interactive process of graphics rendering based on vector resolution and path mapping.

[0071] In the specific implementation process, after the simulation action is completed, the execution returns to perform the monitoring interaction action to achieve real-time and continuous interaction to meet different application scenarios and ensure the efficiency and high interactivity of the image rendering process.

[0072] The present embodiment provides a graphics rendering method based on vector analysis. The core of the invention is to extract graphic information through vector analysis technology and path mapping method, and construct initialization data based on this information. On this basis, matrix transformation technology is used to achieve high-definition redrawing of graphics, while ensuring the visual consistency of graphics in various states; in the process of interactive processing, the user's operation instructions, such as translation, rotation and other actions, are monitored in real time, and more refined animation effects are achieved through layer correction and separation technology, making the dynamic performance of the graphics more smooth and natural; under specific operating conditions, if the transformation parameters exceed the preset threshold, simulation is performed to ensure the accuracy of the graphics transformation; when the transformation parameters do not exceed the threshold or after the action is completed, it continues to return to the monitoring state, thereby ensuring the sustainability and responsiveness of user interaction; in the process of layer disassembly, the inverse transformation matrix is calculated by identifying and separating information, and then the correction matrix is obtained to achieve refined drawing processing and ensure the accuracy and quality of graphics rendering. In summary, the overall solution of the present invention significantly reduces the complexity and resource consumption of graphics development, while achieving efficient, high-definition, and highly interactive graphics rendering effects.

[0073] Example 2:

[0074] This embodiment provides a graphics rendering system based on vector analysis, which is used to implement the above-mentioned graphics rendering method based on vector analysis, including:

[0075] A vector parsing module is used to obtain a vector graphics file, so as to obtain graphic path information and drawing information based on the vector graphics file;

[0076] An initialization module, configured to construct an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, the graphic path information, and the drawing information;

[0077] The monitoring interaction module is used to perform monitoring interaction actions to obtain real-time user operation information. When the real-time user operation information meets the preset layer separation conditions, the layer separation action is triggered: the real-time interaction transformation matrix is obtained based on the real-time user operation information and the initialization transformation matrix, and the graphics matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates; the layer correction matrix corresponding to the separated layer is obtained based on the drawing information and the graphics matrix state; and the real-time transformation image is obtained based on the graphics matrix state, the layer correction matrix and the initial image.

[0078] The layer transformation module is used to obtain the current transformation parameters based on the graphics matrix state. When the current transformation parameters exceed the preset transformation threshold, the simulation action is performed: the layer transformation information is obtained based on the current transformation parameters, drawing information and the preset simulation algorithm, and the redrawn image is obtained based on the layer transformation information and the real-time transformation image to realize graphics rendering based on vector analysis and path mapping.

[0079] The system provided in this embodiment first uses a vector parsing module to extract relevant information of the graphics based on vector parsing and path mapping methods, and then constructs initialization related information through an initialization module. Then, through the monitoring interaction module, simple path information mapping and matrix transformation are used during user operations to achieve redrawing when the graphics are transformed, thereby maintaining the state consistency of the graphics and the high definition and non-deformation of the paths. In addition, combined with the layer transformation module, layer correction and layer transformation are performed in specific situations based on conditional judgment to achieve animation simulation effects. While ensuring graphic clarity and real-time interaction, the system significantly reduces development complexity and resource consumption, and realizes efficient, high-definition, and highly interactive experimental graphics rendering.

[0080] Optionally, the monitoring interaction module is also used to execute monitoring interaction actions to obtain user real-time operation information. When the user's real-time operation information does not meet the preset layer separation conditions, the real-time interaction transformation matrix is obtained based on the user's real-time operation information and the initialization transformation matrix, and then the graphic matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates, and the real-time transformation image is obtained based on the graphic matrix state and the initial image.

[0081] During the specific implementation process, the monitoring interaction module obtains the user's operation information in real time and responds in time by executing monitoring interaction actions, which can realize operations such as translation, conversion, and rotation of the actual image screen, and obtain and maintain the corresponding graphic matrix state to achieve continuous interactive processing, maintaining the consistency of the graphic state and the high-definition and non-deformation of the path; and when the user's real-time operation information meets the preset layer separation conditions, the layer correction matrix and layer separation are used to achieve corresponding correction changes, realizing the refined processing of the actual animation or graphic transformation, and when the preset layer separation conditions are not met, the overall graphic transformation is directly executed to ensure the efficient graphics rendering, and through simple vector analysis, path mapping and matrix transformation, efficient, high-definition and highly interactive experimental graphic rendering is achieved.

[0082] Optionally, the layer transformation module is further configured to obtain current transformation parameters based on the graphics matrix state, and when the current transformation parameters do not exceed a preset transformation threshold, send a feedback signal to enable the monitoring interaction module to perform a monitoring interaction action based on the feedback signal.

[0083] During the specific implementation process, when the current transformation parameter exceeds the preset transformation threshold, the layer transformation module performs a simulation action to achieve the corresponding transformation of the image through the matrix transformation of the simulation process, thereby achieving the animation effect of the actual image; and for the case where the current transformation parameter does not exceed the preset transformation threshold, the execution returns to perform the monitoring interaction action, ensuring the sustainability of the user interaction process.

[0084] This embodiment provides a graphics rendering system based on vector analysis, including a vector analysis module, an initialization module, a monitoring interaction module, and a layer transformation module, which are respectively responsible for obtaining graphic information, constructing the initial image, responding to user operations, and performing simulations. The system implements operations such as translation and rotation through the monitoring interaction module to ensure the consistency of the graphic state and prevent path deformation, while triggering layer separation and correction under specific conditions; the layer transformation module determines whether to perform simulation actions based on the transformation parameters to achieve animation effects or maintain efficient interactivity and resource optimization; the system combines vector analysis and path mapping to significantly reduce development complexity and achieve efficient, high-definition, and highly interactive graphics rendering effects; the module dynamically adjusts the processing method based on user operation information, performs fine-grained corrections when the separation conditions are met, and otherwise directly performs overall transformation, thereby improving rendering efficiency and flexibility.

[0085] Example 3:

[0086] See Figure 2 This embodiment provides a process flow of a graphics rendering system based on vector parsing, including the following steps:

[0087] S31. Get the SVG vector image;

[0088] S32, parsing Path based on the SVG vector image and the SVG parser to obtain path data and graphic information;

[0089] S33, constructing a graphic data model based on the path data and graphic information;

[0090] S34, initializing the transformation matrix;

[0091] S35, performing initial drawing based on the initialization transformation matrix and the graphic data model to obtain an initial graphic;

[0092] S36. Monitor user interaction information;

[0093] S37, updating the transformation matrix based on the user interaction information;

[0094] S38, acquiring a real-time transformation graph image based on the transformation matrix and the graph data model;

[0095] S39, obtaining the current transformation parameters and determining whether they exceed the preset transformation threshold: if so, executing step S310; if not, returning to executing step S36;

[0096] S310, execute simulation action, obtain redrawn image, and return to step S36.

[0097] Example 4:

[0098] This embodiment provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned vector resolution-based graphics rendering method is implemented.

[0099] For example, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more module elements may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

[0100] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0101] The processor may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), or an application-specific integrated circuit.

[0102] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.< / path>

Claims

1. A graphics rendering method based on vector analysis, characterized in that: The following steps are involved: Acquire a vector graphics file to obtain graphic path information and drawing information based on the vector graphics file; constructing an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, the graphics path information, and the drawing information; Execute a monitoring interaction action to obtain real-time user operation information. When the real-time user operation information meets a preset layer separation condition, trigger a layer separation action: obtain a real-time interaction transformation matrix based on the real-time user operation information and an initialization transformation matrix, and obtain a graphics matrix state based on the real-time interaction transformation matrix and path point coordinates; Obtaining a layer correction matrix corresponding to the separated layer based on the drawing information and the graphics matrix state; Acquire a real-time transformed image based on the graphics matrix state, the layer correction matrix and the initial image; Current transformation parameters are obtained based on the graphics matrix state. When the current transformation parameters exceed a preset transformation threshold, a simulation action is performed: layer transformation information is obtained based on the current transformation parameters, drawing information and a preset simulation algorithm, so as to obtain a redrawn image based on the layer transformation information and the real-time transformation image, thereby realizing graphics rendering based on vector analysis and path mapping.

2. A graphics rendering method based on vector analysis according to claim 1, characterized in that: The executing of the monitoring interaction action to obtain the user's real-time operation information, and triggering the layer separation action when the user's real-time operation information meets the preset layer separation condition, further includes: Execute a monitoring interaction action to obtain the user's real-time operation information. When the user's real-time operation information does not meet the preset layer separation conditions, obtain the real-time interaction transformation matrix based on the user's real-time operation information and the initialization transformation matrix, and then obtain the graphic matrix state based on the real-time interaction transformation matrix and the path point coordinates, and obtain the real-time transformation image based on the graphic matrix state and the initial image.

3. The graphics rendering method based on vector analysis according to claim 1, characterized in that: The method of obtaining the current transformation parameters based on the graphic matrix state and executing the simulation action when the current transformation parameters exceed the preset transformation threshold value also includes: obtaining the current transformation parameters based on the graphic matrix state and returning to execute the monitoring interaction action when the current transformation parameters do not exceed the preset transformation threshold value.

4. The graphics rendering method based on vector analysis according to claim 1, characterized in that: In the layer separation action, obtaining a layer correction matrix corresponding to the separated layer based on the drawing information and the graphics matrix state includes: The drawing information includes layer identification and layer separation information; Acquire a basic layer and a separation layer based on the layer identifier and the layer separation information; Obtaining a base layer transformation matrix based on the base layer and graphics matrix states; Obtaining a separation layer inverse transformation matrix based on the graphics matrix state; A layer correction matrix corresponding to the separated layer is obtained based on the separated layer inverse transformation matrix, the basic layer transformation matrix and a preset inverse transformation method.

5. The method for rendering graphics based on vector analysis according to claim 4, characterized in that: The layer correction matrix corresponding to the separated layer is obtained based on the separated layer inverse transformation matrix, the basic layer transformation matrix and the preset inverse transformation method, and the calculation process satisfies the following formula: M_liquid=M_container×M_rotate(-α) Where M_liquid represents the layer correction matrix, M_container represents the basic layer transformation matrix, and M_rotate(-α) represents the separation layer inverse transformation matrix.

6. The method for rendering graphics based on vector analysis according to claim 1, characterized in that: The method further includes: obtaining the current transformation parameters based on the graphics matrix state, and when the current transformation parameters exceed the preset transformation threshold, executing the simulation action, returning to execute the monitoring interaction action to obtain the current user's real-time operation information, and then obtaining the current real-time transformation image and the current redrawing image based on the current user's real-time operation information, until the current user's real-time operation information can no longer be received, completing the interactive process of graphics rendering based on vector parsing and path mapping.

7. A graphics rendering system based on vector analysis, characterized in that: A method for implementing a graphics rendering method based on vector analysis as claimed in any one of claims 1 to 6, the system comprising: A vector parsing module, configured to obtain a vector graphics file, and obtain graphic path information and drawing information based on the vector graphics file; An initialization module, configured to construct an initialization transformation matrix to obtain an initial image based on the initialization transformation matrix, graphic path information, and drawing information; The monitoring interaction module is used to perform monitoring interaction actions to obtain real-time user operation information. When the real-time user operation information meets the preset layer separation conditions, the layer separation action is triggered: a real-time interaction transformation matrix is obtained based on the real-time user operation information and the initialization transformation matrix, and a graphics matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates; a layer correction matrix corresponding to the separated layer is obtained based on the drawing information and the graphics matrix state; and a real-time transformed image is obtained based on the graphics matrix state, the layer correction matrix, and the initial image. The layer transformation module is used to obtain current transformation parameters based on the graphics matrix state, and when the current transformation parameters exceed a preset transformation threshold, perform a simulation action: obtain layer transformation information based on the current transformation parameters, drawing information and a preset simulation algorithm, and obtain a redrawn image based on the layer transformation information and the real-time transformation image to achieve graphics rendering based on vector analysis and path mapping.

8. A graphics rendering system based on vector analysis according to claim 7, characterized in that: The monitoring interaction module is also used to execute monitoring interaction actions to obtain user real-time operation information. When the user real-time operation information does not meet the preset layer separation conditions, the real-time interaction transformation matrix is obtained based on the user real-time operation information and the initialization transformation matrix, and then the graphic matrix state is obtained based on the real-time interaction transformation matrix and the path point coordinates, and the real-time transformation image is obtained based on the graphic matrix state and the initial image.

9. The vector analysis-based graphics rendering system according to claim 7, characterized in that: The layer transformation module is further configured to obtain current transformation parameters based on the graphic matrix state, and when the current transformation parameters do not exceed the preset transformation threshold, send a feedback signal to enable the monitoring interaction module to perform the monitoring interaction action based on the feedback signal.

10. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method implements a graphics rendering method based on vector resolution according to any one of claims 1 to 7.