A virtual model processing method, device, equipment and medium

By obtaining the pivot point position, deformation end position, and deformation control parameters from the vertex attribute information of the virtual model, and calculating the vertex movement progress for rendering, the problem of large memory consumption and GPU bandwidth of textures is solved, and efficient virtual model deformation rendering is achieved.

CN123181672APending Publication Date: 2026-11-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611347939.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the current technology, during the dynamic growth of virtual models, textures occupy a large amount of memory and GPU bandwidth, resulting in high rendering overhead.

Method used

The pivot point position, deformation end position, and deformation control parameters are obtained from the vertex attribute information of the virtual model. The current vertex position is determined by calculating the vertex movement progress and then rendered, thus avoiding the sampling operation of the texture.

Benefits of technology

It significantly reduces memory and GPU bandwidth usage during virtual model deformation, improving rendering efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181672A_ABST
    Figure CN123181672A_ABST
Patent Text Reader

Abstract

Embodiments of the application disclose a virtual model processing method and device, equipment and medium, and relate to the technical field of computers. The method comprises: obtaining a pivot point position, a deformation end position and a deformation control parameter in vertex attribute information corresponding to a vertex of a virtual model; determining a vertex movement progress corresponding to the vertex according to the deformation control parameter and an overall deformation progress of the virtual model; determining a current vertex position according to the pivot point position, the deformation end position and the vertex movement progress; and rendering and outputting the virtual model based on the current vertex position corresponding to each vertex on the virtual model. The current vertex position is determined according to the pivot point position, the deformation end position and the deformation control parameter in the vertex attribute information. The entire calculation process does not involve sampling a texture map, and solves the problems of a large memory occupied by the texture map and a large GPU bandwidth occupied by the scheme in which the vertex position can be obtained only by sampling the texture map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and medium for processing virtual models. Background Technology

[0002] Currently, the solutions for achieving dynamic growth of 3D virtual models are usually based on VAT (Vertex AnimationTexture). Specifically, in DCC (Digital Content Creation), the position data of the vertices during the growth process of the virtual model are pre-baked into textures. Then, during rendering, the vertex shader samples the corresponding textures to obtain the vertex positions of the virtual model during the growth process. The virtual model can be rendered based on these vertex positions to achieve dynamic growth of the virtual model.

[0003] Current solutions for dynamic growth of virtual models suffer from problems such as large memory consumption and high GPU bandwidth usage due to the need to sample pre-baked textures during rendering. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and medium for processing virtual models, which can reduce the memory usage of textures and the GPU bandwidth usage when the virtual model is deformed.

[0005] According to one aspect of the present invention, a method for processing virtual models is provided, the method comprising: In response to a deformation command for a virtual model, the pivot point position, deformation end position, and deformation control parameters corresponding to the vertex of the virtual model are obtained from the vertex attribute information of the vertex. Based on the deformation control parameters and the overall deformation progress of the virtual model, determine the vertex movement progress corresponding to the vertex; Based on the pivot point position, the deformation end position, and the vertex movement progress, the current vertex position is determined, and the virtual model is rendered based on the current vertex position corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

[0006] According to another aspect of the present invention, a processing apparatus for a virtual model is provided, comprising: The vertex attribute information processing module is used to respond to the deformation command for the virtual model and obtain the pivot point position, deformation end position and deformation control parameters corresponding to the vertex of the virtual model from the vertex attribute information corresponding to the vertex. The vertex movement progress determination module is used to determine the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model. The current vertex position determination module is used to determine the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress, so as to render the virtual model based on the current vertex position corresponding to each vertex on the virtual model, and output the deformation animation corresponding to the virtual model.

[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the virtual model processing method according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the virtual model processing method described in any embodiment of the present invention.

[0009] The technical solution of this application embodiment includes: responding to a deformation command for a virtual model, obtaining the pivot point position, deformation end position, and deformation control parameters corresponding to the vertices of the virtual model from the vertex attribute information; determining the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model; determining the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress; and rendering the virtual model based on the current vertex positions corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model. This solution determines the current vertex position based on the pivot point position, deformation end position, and deformation control parameters in the vertex attribute information; the entire calculation process does not involve sampling the texture, solving the problem of large memory and GPU bandwidth consumption associated with methods that place vertex positions in textures and require texture sampling to obtain vertex positions, thus significantly reducing the rendering overhead during the virtual model deformation process.

[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart of a virtual model processing method provided according to an optional embodiment of this application; Figure 2 This is a flowchart of a virtual model processing method provided according to an optional embodiment of this application; Figure 3 This is a schematic diagram of the structure of a virtual model processing device according to an optional embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device that implements a virtual model processing method provided in an optional embodiment of this application. Detailed Implementation

[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0014] It should be noted that the terms "first," "second," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0015] Figure 1This is a flowchart of a virtual model processing method provided in one optional embodiment. This embodiment is applicable to situations where the virtual model dynamically deforms during rendering. The method can be executed by a virtual model processing device, which can be implemented in hardware and / or software and can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes: S110, in response to a deformation command for a virtual model, obtain the pivot point position, deformation end position, and deformation control parameters corresponding to the vertex of the virtual model from the vertex attribute information corresponding to the vertex.

[0016] The deformation command is an instruction that instructs the virtual model to change its shape; specifically, the change in shape manifests as a change in the vertex position of the vertices in the virtual model. In different scenarios, the specific deformation method indicated by the deformation command varies. For example, when the virtual model is a plant model, the deformation command could be a growth command for the plant model; when the virtual model is an object model, the deformation command could be an elongation command for the object model. Therefore, the deformation command in this embodiment can be understood as an instruction that allows the virtual model to change its shape arbitrarily.

[0017] A pivot point is a reference point when a model undergoes shape changes such as rotation or scaling; the position of the pivot point is its coordinates. In this embodiment, the virtual model may include multiple components, each with a corresponding pivot point, and the pivot points for each component may be different. This design allows each component of the virtual model to deform based on its own pivot point during deformation, greatly improving its deformation flexibility.

[0018] The deformation end position refers to the position of the vertices after the virtual model has completed its deformation; this deformation end position can be predetermined and stored in the vertex attribute information. During the deformation process, each vertex of the virtual model moves to its corresponding deformation end position. Once all vertices of the virtual model have moved to their corresponding deformation end positions, the virtual model completes its deformation.

[0019] Deformation control parameters refer to parameters that affect deformation. For example, they can be parameters used to control the degree of deformation or parameters that control the start time of deformation. Deformation control parameters can be adaptively set in different scenarios. For example, in a scenario of plant model growth, deformation control parameters can be growth initiation parameters, used to control the sequential start of growth of different parts of the plant model.

[0020] In this embodiment, each vertex of the virtual model has a corresponding pivot point position, deformation end position, and deformation control parameters. These parameters can be stored in the vertex attribute information, and the specific storage location can be adaptively set; for example, it could be the vertex color, UV coordinates, or other positions within the vertex attribute information. This design eliminates the need for additional texture storage since the information is stored in the vertex attribute information. This avoids the steps of placing textures in memory and sampling them via the GPU, thus solving the problems of large memory footprints and high GPU bandwidth consumption associated with texture sampling, resulting in a significant reduction in rendering overhead.

[0021] For example, in response to a deformation command for a 3D virtual model, vertex attribute information corresponding to each vertex of the virtual model is obtained; for each vertex, the deformation end position corresponding to the vertex is obtained from its corresponding vertex attribute information, and the coordinates of the pivot point on each component are obtained from the RGB channel of the vertex color in the vertex attribute information; and deformation control parameters are read from the UV coordinates in the vertex attribute information (the UV coordinates do not store coordinate values, but may be deformation control parameters).

[0022] In this embodiment, since the pivot point position, deformation end position and deformation control parameters corresponding to each vertex of the virtual model are all located in the vertex attribute information, the components of the virtual model can still be merged into the same mesh. Therefore, when the virtual model is deformed, the rendering of the entire virtual model can be completed with only one draw call, which greatly reduces the performance overhead.

[0023] S120, determine the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model.

[0024] The overall deformation progress refers to the deformation progress of the entire virtual model, which can be calculated based on the deformation start time, deformation end time, and the current time of the virtual model. For example, the difference between the current time and the deformation start time of the virtual model can be taken as the deformation time of the virtual model; the difference between the deformation end time and the deformation start time of the virtual model can be taken as the complete deformation duration of the virtual model; and the ratio of the deformation time of the virtual model to the complete deformation duration can be taken as the overall deformation progress.

[0025] The vertex movement progress reflects the progress of the vertex in moving to the end position of the deformation. For example, when the vertex movement progress is 0, the vertex is located at the initial position (e.g., at the pivot point). As the vertex movement progress increases, the vertex approaches the end position of the deformation. When the vertex movement progress is 1, the vertex is located at the end position of the deformation.

[0026] Specifically, the vertex movement progress can be determined based on the deformation control parameters and the overall deformation progress adaptability of the virtual model. In one optional embodiment, the overall deformation progress of the virtual model can be used as the vertex movement progress. In another feasible embodiment, it is determined whether there is a delay in the movement of the vertex based on the deformation control parameters. If there is a delay, a delay factor is added to the overall deformation progress to obtain the vertex movement progress.

[0027] Based on the overall deformation progress of the virtual model, this scheme adaptively determines the vertex movement progress of each vertex according to the deformation control parameters, so that the vertex movement progress of each vertex can be different, thus presenting the effect that one part of the virtual model moves first and another part moves later; for example, in the case of a plant model, it can present the effect that the roots of the branches grow first, and the branches and leaves at the ends of the branches and the branches grow later, which greatly improves the flexibility of the virtual model deformation process.

[0028] S130, determine the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress, and render the virtual model based on the current vertex position corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

[0029] Specifically, after obtaining the vertex movement progress corresponding to the vertex, the current vertex position corresponding to the vertex is calculated by combining the pivot point position and the deformation end position; the calculation process for the current vertex positions corresponding to other vertices in the virtual model is similar, and thus the current vertex positions corresponding to each vertex in the virtual model can be calculated, and then the virtual model is rendered and displayed based on the current vertex positions corresponding to each vertex in the virtual model.

[0030] It should be noted that during the complete deformation process of the virtual model, the pivot point position, deformation end position, and deformation control parameters corresponding to each vertex can be obtained from the vertex attribute information at the beginning of the deformation. In subsequent deformation processes, these obtained parameters can be directly used to calculate the current vertex position for each vertex, without needing to be repeatedly obtained. During the virtual model deformation process, as the overall deformation progress of the virtual model increases over time, the calculated current vertex positions for each vertex will continuously change. Therefore, the shape of the rendered virtual model will continuously change until the virtual model deformation ends.

[0031] In this embodiment of the application, optionally, determining the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress includes: determining the deformation direction based on the pivot point position and the deformation end position; moving a first distance in the deformation direction with the pivot point position as a reference to obtain the current vertex position; the first distance is the movement distance indicated by the vertex movement progress.

[0032] The first distance is positively correlated with the vertex movement progress; that is, the greater the vertex movement progress, the greater the first distance. The first distance can be determined based on the total distance from the pivot point to the end of the deformation and the vertex movement progress. Specifically, it can be the product of the total distance from the pivot point to the end of the deformation and the vertex movement progress as the first distance. For example, if the total distance from the pivot point to the end of the deformation is 5 and the vertex movement progress is 20%, then the vertex should move to one-fifth of its position, and the first distance can be 5 × 20% = 1.

[0033] Specifically, the direction from the pivot point to the end of the deformation is taken as the deformation direction; then, using the pivot point as a reference, the current vertex position is determined by moving a first distance along the deformation direction. The coordinates of the current vertex position can be calculated using the following formula: p′=P+s×(pP); Where p′ is the coordinate of the current vertex position, which can be represented by p′=(p′x, p′y, p′z), P is the coordinate of the pivot point position, which can be represented by P=(Px, Py, Pz), s is the vertex movement progress, and its value ranges from 0 to 1. p is the coordinate of the deformation end position, which can be represented by p=(px, py, pz).

[0034] This solution calculates the current vertex position in real time based on the vertex movement progress, without involving bone calculations or texture sampling, significantly reducing computational overhead. Furthermore, when the vertex movement progress reaches 100%, the current vertex position is the end of the deformation, perfectly completing the virtual model's transformation and greatly improving the user experience of watching the virtual model transform.

[0035] The technical solution of this application embodiment includes: responding to a deformation command for a virtual model, obtaining the pivot point position, deformation end position, and deformation control parameters corresponding to the vertices of the virtual model from the vertex attribute information; determining the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model; determining the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress; and rendering the virtual model based on the current vertex positions corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model. This solution determines the current vertex position based on the pivot point position, deformation end position, and deformation control parameters in the vertex attribute information; the entire calculation process does not involve sampling the texture, solving the problem of large memory and GPU bandwidth consumption associated with methods that place vertex positions in textures and require texture sampling to obtain vertex positions, thus significantly reducing the rendering overhead during the virtual model deformation process.

[0036] Figure 2 This is a flowchart of a virtual model processing method provided in an optional embodiment. In this embodiment, the virtual model includes a trunk portion and leaf portions; the deformation command is a growth command; correspondingly, the vertex movement progress corresponding to the vertex is determined based on the deformation control parameters and the overall deformation progress of the virtual model, including: if the vertex is located on the trunk, then the vertex movement progress corresponding to the vertex is determined based on a first growth initiation parameter and the overall growth progress; the first growth initiation parameter reflects the order of growth of the branch position where the vertex is located; if the vertex is located on the leaf portion, then the vertex movement progress corresponding to the vertex is determined based on a second growth initiation parameter, leaf unfolding speed control parameters, and the overall growth progress; the second growth initiation parameter reflects the order of growth of the leaf portion corresponding to the vertex.

[0037] like Figure 2 As shown, the method in this embodiment of the application specifically includes the following steps: S210, in response to the growth command for the virtual model, obtain the pivot point position, deformation end position and deformation control parameters corresponding to the vertex of the virtual model from the vertex attribute information corresponding to the vertex.

[0038] For example, the virtual model can be a plant model, pre-divided into trunk and leaf sections. Each trunk segment requiring independent control and each leaf is treated as a plant component. Vertices within the same plant component correspond to the same pivot point, allowing the plant component to grow based on this shared pivot point. Different plant components do not share vertices to avoid the problem of abnormal vertex position calculations caused by two pivot points during vertex growth. The pivot point position corresponding to each vertex is saved in the vertex attribute information corresponding to that vertex, and the pre-determined deformation end position and deformation control parameters of that vertex are also saved in the vertex attribute information corresponding to that vertex.

[0039] In this embodiment of the application, optionally, the pivot point position is stored in the vertex color RGB channel in the vertex attribute information; the deformation control parameters are stored in the UV coordinates in the vertex attribute information.

[0040] For example, the pivot point position can be represented by P, with coordinates P=(Px, Py, Pz). The pivot point can be located at the junction of the petiole and the branch, or at the root of the branch and leaf. After determining the pivot point coordinates corresponding to each vertex, the three coordinate values ​​of the pivot point are stored in the RGB channel of the vertex color. Furthermore, since the value range of the RGB channel is limited, usually 0-1, the coordinate values ​​of the pivot point can be transformed. For example, the coordinate values ​​can be normalized to [-1, 1] first, and then encoded into the RGB channel of the vertex color using linear space values. Then, when obtaining the pivot point position in the vertex attribute information, the RGB channel values ​​in the vertex color are first transformed using linear space, and then decoded to obtain the coordinates of the pivot point position.

[0041] In a specific example, taking a certain shader as an example, the encoding relationship is Clinear=((1-Px) / 2, (1-Pz) / 2, (Py+1) / 2). Then, when obtaining the pivot point position from the vertex attribute information, a linear space transformation is first performed on the RGB channel values ​​in the vertex color, and then the pivot point position is restored according to P``=(1-2Cr, 2Cb-1, 1-2Cg). Here, Cr is the Clinear of the R channel, i.e., (1-Px) / 2; Cb is the Clinear of the B channel, i.e., (1-Pz) / 2; and Cg is the Clinear of the G channel, i.e., (Py+1) / 2.

[0042] Since the DCC coordinate axis and the rendering engine's local coordinate axis are not completely corresponding, the numerical conversion has been adaptively processed, so that component substitution and direction correction between the DCC coordinate axis and the engine's local coordinate axis can be completed simultaneously.

[0043] In a specific example, deformation control parameters can be stored in the UV coordinates of the vertex attribute information. For example, a new UV coordinate can be added to the vertex attribute information, and the deformation control parameters can be stored in the horizontal and vertical coordinates of the newly added UV coordinate.

[0044] It should be noted that the vertex attribute information includes vertex color, UV coordinates, instance data and / or compressed custom data, etc., and the pivot point position, deformation end position and deformation control parameter storage location can be flexibly selected.

[0045] S220: Determine whether the vertex is on a branch or a leaf. If it is on a branch, execute S230; if it is on a leaf, execute S240.

[0046] Specifically, since the branches and leaves grow differently, for example, the branches grow towards the end of the branches, while the leaves gradually unfold and become larger from a curled shape, the deformation control parameters corresponding to the two are not the same. Therefore, it is possible to first determine whether the vertex is located on the branch or the leaves, and then perform subsequent steps accordingly.

[0047] S230, determine the vertex movement progress corresponding to the vertex based on the first growth start parameters and the overall growth progress.

[0048] In this embodiment, when the deformation command is a growth command, the deformation control parameter corresponding to the vertex on the branch can be a first growth initiation parameter. The first growth initiation parameter reflects the order of growth of the vertex on the branch. The process of determining the first growth initiation parameter can be as follows: simulate the growth process of the branch in advance and record the growth order of each cross-section of the branch (usually, the cross-section near the root on the same branch grows earlier, and the cross-section near the end of the branch grows later). Based on the growth order, determine the first growth initiation parameter corresponding to the vertex on each cross-section (the growth order and the first growth initiation parameter can be positively or negatively correlated; this depends on the calculation method of vertex movement progress, so this embodiment does not limit this. For example, the growth order can be converted into a value between 0 and 1 to obtain the first growth initiation parameter). In this solution, the first growth initiation parameter is determined according to the growth order of the cross-section of the branch, so that the cross-section of the branch can gradually recover according to a preset order, achieving the effect of gradually growing a complete branch, which greatly improves the user's visual experience.

[0049] In this embodiment, when the deformation command is a growth command, the overall deformation progress of the virtual model is the overall growth progress. The calculation method for the overall growth progress is similar to that for the overall deformation progress. For example, it can be: taking the difference between the current time and the growth start time of the virtual model as the already grown time of the virtual model; taking the difference between the growth end time and the growth start time of the virtual model as the complete growth duration of the virtual model; and taking the ratio of the already grown time to the complete growth duration as the overall growth progress.

[0050] Specifically, when the deformation command is a growth command and the vertex is a vertex on a branch, the deformation control parameter is the first growth start parameter. After obtaining the first growth start parameter, the vertex movement progress corresponding to the vertex can be calculated by combining the first growth start parameter and the overall growth progress.

[0051] In this embodiment of the application, optionally, determining the vertex movement progress corresponding to the vertex based on the first growth initiation parameter and the overall growth progress includes: determining a growth initiation factor based on the first growth initiation parameter; and determining the vertex movement progress based on the growth initiation factor and the overall growth progress.

[0052] The growth initiation factor also reflects the order of growth of the branch positions where the vertex is located. In one optional embodiment, the first growth initiation parameter can be directly used as the growth initiation factor. In another optional embodiment, the nth power of the first growth initiation parameter can be used as the growth initiation factor. For example, n can be 0.25. This solution uses the nth power of the first growth initiation parameter as the growth initiation factor, so that the growth initiation factor can still reflect the order of growth of the branch positions where the vertex is located, while the growth rate of the branch can be adaptively adjusted, thus improving the flexibility of branch growth rate control.

[0053] Specifically, after obtaining the first growth initiation parameter, its value can be adjusted to obtain a growth initiation factor, thereby changing the growth rate of the branches and optimizing the visual presentation effect. Further, after obtaining the growth initiation factor, the superposition result of the growth initiation factor and the overall growth progress is calculated, and then the superposition result is normalized to obtain the vertex movement progress. The vertex movement progress corresponding to the branch portion can be calculated according to the following formula: st=saturate[(v n +T+a)×b]; Where st represents the vertex movement progress corresponding to the branch, saturate is the clamping function used to restrict the function's independent variable to the interval between 0 and 1, and v nis the growth initiation factor, v is the first growth initiation parameter, T is the overall growth progress, and a and b are constants used to adjust the branch growth effect. Their specific values ​​are set adaptively according to the actual growth effect, for example, a is -0.975 and b is 20.

[0054] For example, taking two vertices in a virtual model, if the growth initiation factor of the first vertex is 0.2 and the overall growth progress is 30%, then the calculated vertex movement progress can be 50%, reflecting that the vertex needs to move 50% towards the end of the deformation. If the growth initiation factor of the second vertex is 0.1 and the overall growth progress is 30%, then the calculated vertex movement progress can be 40%, reflecting that the vertex needs to move 40% towards the end of the deformation. In this case, the branch position corresponding to the first vertex grows faster, and it can be a vertex closer to the root of the branch.

[0055] This scheme is designed to flexibly control the growth progress of different parts of the branches through growth initiation factors, so that the branches can gradually grow from the roots to the ends.

[0056] S240, determine the vertex movement progress corresponding to the vertex based on the second growth initiation parameters, the branch and leaf unfolding speed control parameters, and the overall growth progress.

[0057] In this embodiment, when the deformation command is a growth command, the deformation control parameters corresponding to the vertices on the branches and leaves can be a second growth initiation parameter and a branch and leaf unfolding speed control parameter. The second growth initiation parameter reflects the order of growth of the branches and leaves corresponding to the vertices, with branches and leaves closer to the root of the branch growing earlier and those closer to the end of the branch growing later. The second growth initiation parameter can be the same for the same branch and leaf. This design allows the second growth initiation parameter to control the growth of branches and leaves closer to the root of the branch to grow first, and branches and leaves closer to the end of the branch to grow later, with simultaneous growth within the same branch and leaf, conforming to the natural laws of plant growth and improving the realism of plant growth.

[0058] The branch and leaf unfolding speed control parameter is used to control the unfolding speed of the branch and leaf at the vertex position; the parameter size can be flexibly set according to the actual situation; for example, the branch and leaf unfolding speed control parameter is related to the distance from the vertex position to the leaf root, so that the branch and leaf can gradually unfold from the root of the branch and leaf, improving the realism of branch and leaf growth.

[0059] In this embodiment of the application, optionally, determining the vertex movement progress corresponding to the vertex based on the second growth initiation parameter, the branch and leaf unfolding speed control parameter, and the overall growth progress includes: determining the branch and leaf unfolding speed control factor based on the branch and leaf unfolding speed control parameter; determining the branch and leaf growth progress corresponding to the vertex based on the second growth initiation parameter and the overall growth progress; and determining the vertex movement progress based on the branch and leaf unfolding speed control factor and the branch and leaf growth progress.

[0060] The branch and leaf unfolding speed control factor also reflects the unfolding speed at the vertex position of the branch and leaf. In one optional embodiment, the branch and leaf unfolding speed control parameter can be directly used as the branch and leaf unfolding speed control factor. In another optional embodiment, the branch and leaf unfolding speed control parameter can be scaled to obtain the branch and leaf unfolding speed control factor. For example, the branch and leaf unfolding speed control parameter is scaled by a factor of c (for example, c is 0.8), and then normalized to obtain the branch and leaf unfolding speed control factor.

[0061] The growth progress of branches and leaves can reflect the growth progress of the branches and leaves at the apex. For example, if the branches and leaves at the apex are close to the root of the branch, the growth sequence reflected by the second growth initiation parameter is relatively early. Therefore, when the overall growth progress is 20%, the growth progress of the branches and leaves may be 10%, and the branches and leaves have already begun to grow. If the branches and leaves at the apex are close to the end of the branch, the growth sequence reflected by the second growth initiation parameter is relatively late. Therefore, when the overall growth progress is 20%, the growth progress of the branches and leaves may be 0%, and the branches and leaves have not yet begun to grow. Obviously, the growth progress of branches and leaves can be flexibly determined based on the second growth initiation parameter and the overall growth progress. This application does not limit the method of flexibly obtaining the growth progress of branches and leaves based on the second growth initiation parameter and the overall growth progress.

[0062] Specifically, after obtaining the branch and leaf unfolding speed control factor and the branch and leaf growth progress, the two are merged. The specific merging methods include, but are not limited to, multiplying the two, adding the two, etc., and then the merged result is normalized to obtain the vertex movement progress.

[0063] For example, the vertex movement progress corresponding to the branch / leaf portion is determined according to the following formula: sl=clamp[(d-saturate(c×w))×(Tf×u), 0, 1]; Where sl represents the vertex movement progress corresponding to the branch and leaf portion, clamp is the clamping function used in the above formula to limit the value to the range of 0 to 1, w is the branch and leaf unfolding speed control parameter, (d-saturate(c×w)) is the branch and leaf unfolding speed control factor, where d and c are values ​​adaptively adjusted according to the branch and leaf growth effect; for example, d is 1 and c is 0.8. T is the overall growth progress, u is the second growth initiation parameter, (Tf×u) is the branch and leaf growth progress, where f is a value adaptively adjusted according to the branch and leaf growth effect; for example, f is 50.

[0064] This design allows for adaptive adjustments to the unfolding speed of branches and leaves, as well as the growth sequence between branches and leaves, thus improving the flexibility of branch and leaf growth control.

[0065] It should be noted that, since branches and trunks usually grow first, followed by leaves, when setting the first growth initiation parameter for the branches and trunks and the second growth initiation parameter for the leaves and branches, the growth order indicated by the second growth initiation parameter can be made to be later than the growth order indicated by the first growth initiation parameter.

[0066] This solution uses the same overall growth progress to control the growth of branches and leaves as well as branches and trunks. It calculates the apex movement progress in different ways for branches and leaves and branches and trunks, achieving the effect of branches and trunks growing segment by segment and branches and leaves unfolding in sequence. This maintains the aesthetic appeal of complete plant growth and greatly improves the user's viewing experience.

[0067] S250, determine the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress, and render the virtual model based on the current vertex position corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

[0068] In this embodiment of the application, optionally, the virtual model includes branches and leaves; the deformation command is a growth command; the method further includes: determining the color maturity progress corresponding to the vertex based on the second growth initiation parameter, the branch and leaf unfolding speed control parameter, and the overall growth progress; obtaining the first pixel value and the second pixel value corresponding to the vertex; the first pixel value is the pixel value of the initial growth stage; the second pixel value is the pixel value of the growth maturity stage; fusing the first pixel value and the second pixel value based on the color maturity progress to obtain the current pixel value corresponding to the vertex, and rendering the virtual model based on the current pixel values ​​corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

[0069] Among them, the color maturity progress can reflect the color change of branches and leaves. The lower the color maturity progress, the more it corresponds to the initial growth stage of branches and leaves, and the color of branches and leaves can be light green. The higher the color maturity progress, the more it corresponds to the mature growth stage of branches and leaves, and the color of branches and leaves can be dark green, yellowish-green, etc.

[0070] For example, the color maturation progress is determined according to the following formula: j=clamp[(d-saturate(k×w))×(Tm×(u+q)),0,1]; Where j represents the color maturation progress, clamp is the clamping function used in the above formula to limit the value to the range of 0 to 1, w is the branch and leaf unfolding speed control parameter, and d and k are values ​​adaptively adjusted according to the effect of branch and leaf color change. For example, d is 1 and k is 1.1. T represents the overall growth progress, u is the second growth initiation parameter, and m and q are values ​​adaptively adjusted according to the effect of branch and leaf color change. For example, m is 50 and q is 0.015. It should be noted that the color maturation progress matches the vertex movement progress corresponding to the branch and leaf part. In order to make the color change slightly later than the branch and leaf growth, the value of q can be flexibly set, so as to show the effect of the leaves first growing out in a light color and then gradually turning into a mature color.

[0071] Furthermore, the calculated color maturity progress j can be further processed to obtain the processed color maturity progress h. This setting increases the adjustable parameters in the color maturity progress, improving the flexibility of color control. For example, the processed color maturity progress h is: h = r × saturate(jt); Where r and t are values ​​set according to the actual effect; for example, r is 2 and t is 0.5.

[0072] The first pixel value is the pixel value of the initial growth stage, and the second pixel value is the pixel value of the mature growth stage. The colors of the branches and leaves in the initial growth stage and the colors in the mature stage can be stored in two textures respectively. Then, by sampling them, the first pixel value and the second pixel value can be obtained.

[0073] Specifically, after obtaining the color maturity progress, the first pixel value, and the second pixel value, the first pixel value and the second pixel value are fused based on the color maturity progress to obtain the current pixel value corresponding to the vertex, so that when the color maturity progress is high, the current pixel value is the color when the branches and leaves are mature; when the color maturity progress is low, the current pixel value is the color when the branches and leaves are initially growing.

[0074] There are many ways to fuse the first pixel value and the second pixel value based on the color maturity progress, which will not be described in detail in this embodiment. For example, the lerp function can be used for linear interpolation. Current pixel value = lerp(Cyoung, Cbase, j); Here, `lerp` is a function used for linear interpolation, which transitions from `Cyoung` to `Cbase` based on the value of `j`; `Cyoung` is the first pixel value, and `Cbase` is the second pixel value. For example, the color maturity progress `j` can be replaced with the processed color maturity progress `h`.

[0075] This scheme is designed so that the current pixel value matches the growth progress of the branches and leaves. In the early stage of branch and leaf growth, the current pixel value is the color of the initial growth stage of the branches and leaves, and in the mature stage of the branches and leaves, the current pixel value is the color of the mature stage of the branches and leaves, which greatly improves the artistic expression.

[0076] In this embodiment of the application, optionally, fusing the first pixel value and the second pixel value based on the color maturation progress to obtain the current pixel value corresponding to the vertex includes: fusing the first pixel value and the second pixel value based on the color maturation progress to obtain a third pixel value; and fusing the second pixel value and the third pixel value based on a preset mask value to obtain the current pixel value corresponding to the vertex.

[0077] The preset mask value is used to control whether the vertex needs to change color. Its value can be set according to the actual situation. For example, if it does not need to change color, its value can be set to 0 so that the vertex only shows the second pixel value. If it needs to change color, its value can be set to 1 so that the vertex only shows the third pixel value, that is, the current pixel value.

[0078] For example, the current pixel value = lerp[Cbase, lerp(Cyoung, Cbase, j), mask]; Where mask is the preset mask value, Cyoung is the first pixel value, Cbase is the second pixel value, and lerp(Cyoung, Cbase, j) is the third pixel value.

[0079] The technical solution of this application obtains the pivot point position, deformation end position, and deformation control parameters corresponding to the vertex from the vertex attribute information, and performs subsequent calculations to obtain the current vertex position and current pixel value corresponding to the vertex. Then, based on the current vertex position and current pixel value corresponding to each vertex, the virtual model is rendered, which can fully reflect the growth process of the branches and leaves of the virtual model. Since this solution does not configure bones for the virtual model, it does not involve steps such as bone matrix calculations, thus reducing CPU overhead. Furthermore, the vertex position calculation process of this solution does not involve texture sampling, avoiding the problems of large memory and GPU bandwidth consumption associated with solutions that place vertex positions in textures and require texture sampling to obtain vertex positions. In addition, this solution uses different algorithms to obtain vertex movement progress for the branches and leaves and the trunk, achieving the effect of branches growing segment by segment and leaves unfolding and changing colors sequentially, possessing high artistic expressiveness. In addition, when calculating the current vertex position and current pixel value corresponding to a vertex, this solution can obtain the data used in the calculation from the vertex attribute information. Therefore, all vertices of the virtual model can be placed in the same grid. That is, the CPU can initiate a drawing instruction (DrawCall) to realize the rendering of the growth animation of the entire virtual model, which greatly reduces the performance overhead in the rendering process.

[0080] Figure 3 This is a schematic diagram of a virtual model processing device provided in one optional embodiment. This device can execute the virtual model processing method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For example... Figure 3 As shown, the device includes: The vertex attribute information processing module 310 is used to respond to the deformation command for the virtual model and obtain the pivot point position, deformation end position and deformation control parameters corresponding to the vertex of the virtual model from the vertex attribute information corresponding to the vertex. Vertex movement progress determination module 320 is used to determine the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model. The current vertex position determination module 330 is used to determine the current vertex position based on the pivot point position, the deformation end position and the vertex movement progress, so as to render the virtual model based on the current vertex position corresponding to each vertex on the virtual model, and output the deformation animation corresponding to the virtual model.

[0081] The technical solution of this application embodiment includes: a vertex attribute information processing module 310, used to obtain the pivot point position, deformation end position, and deformation control parameters corresponding to the vertex in response to a deformation command for a virtual model; a vertex movement progress determination module 320, used to determine the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model; and a current vertex position determination module 330, used to determine the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress, so as to render the virtual model based on the current vertex positions corresponding to each vertex on the virtual model, and output the deformation animation corresponding to the virtual model. In this solution, the current vertex position is calculated based on the pivot point position, deformation end position, and deformation control parameters in the vertex attribute information; the entire calculation process does not involve sampling the texture, solving the problem of large memory and GPU bandwidth consumption associated with methods that place vertex positions in textures and require texture sampling to obtain vertex positions, thus greatly reducing the rendering overhead during the virtual model deformation process.

[0082] Optionally, in this embodiment of the application, the current vertex position determination module 330 includes: The deformation direction determination unit is used to determine the deformation direction based on the pivot point position and the deformation end position; The current vertex position determination unit is used to move a first distance in the deformation direction based on the pivot point position to obtain the current vertex position; the first distance is the movement distance indicated by the vertex movement progress.

[0083] Optionally, in this embodiment of the application, the virtual model includes a trunk and branches and leaves; the deformation command is a growth command. Correspondingly, the vertex movement progress determination module 320 includes: The first vertex movement progress determination unit is used to determine the vertex movement progress corresponding to the vertex based on the first growth initiation parameter and the overall growth progress if the vertex is located on the branch; the first growth initiation parameter reflects the order of growth of the branch position of the vertex. The second vertex movement progress determination unit is used to determine the vertex movement progress corresponding to the vertex based on the second growth initiation parameter, the branch and leaf unfolding speed control parameter, and the overall growth progress if the vertex is located on the branch and leaf; the second growth initiation parameter reflects the order of growth of the branch and leaf corresponding to the vertex.

[0084] Optionally, in this embodiment of the application, the first vertex movement progress determination unit includes: The growth initiation factor determination subunit is used to determine the growth initiation factor based on the first growth initiation parameter. The first vertex movement progress determination subunit is used to determine the vertex movement progress based on the growth initiation factor and the overall growth progress.

[0085] Optionally, in this embodiment of the application, the second vertex movement progress determination unit includes: The branch and leaf unfolding speed control factor determination subunit is used to determine the branch and leaf unfolding speed control factor based on the branch and leaf unfolding speed control parameters. The branch and leaf growth progress determination subunit is used to determine the branch and leaf growth progress corresponding to the vertex based on the second growth initiation parameter and the overall growth progress. The second vertex movement progress determination subunit is used to determine the vertex movement progress based on the branch and leaf unfolding speed control factor and the branch and leaf growth progress.

[0086] Optionally, in this embodiment of the application, the virtual model includes branches and leaves; the deformation command is a growth command; the device further includes: The color maturity progress determination module is used to determine the color maturity progress corresponding to the vertex based on the second growth initiation parameters, the branch and leaf unfolding speed control parameters, and the overall growth progress. A pixel value acquisition module is used to acquire a first pixel value and a second pixel value corresponding to the vertex; the first pixel value is the pixel value in the initial growth stage; the second pixel value is the pixel value in the growth and maturity stage. The current pixel value determination module is used to fuse the first pixel value and the second pixel value based on the color maturity progress to obtain the current pixel value corresponding to the vertex, and to render the virtual model based on the current pixel value corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

[0087] Optionally, in this embodiment of the application, the current pixel value determination module includes: The third pixel value determination unit is used to fuse the first pixel value and the second pixel value based on the color maturity progress to obtain a third pixel value; The current pixel value determination unit is used to fuse the second pixel value and the third pixel value based on a preset mask value to obtain the current pixel value corresponding to the vertex.

[0088] The virtual model processing apparatus provided in this application embodiment can execute the virtual model processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0089] Figure 4A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0090] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0091] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0092] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the processing methods for virtual models.

[0093] In some embodiments, the virtual model processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the virtual model processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the virtual model processing method by any other suitable means (e.g., by means of firmware).

[0094] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0095] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0096] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0099] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0100] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0101] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for processing virtual models, characterized in that, include: In response to a deformation command for a virtual model, the pivot point position, deformation end position, and deformation control parameters corresponding to the vertex of the virtual model are obtained from the vertex attribute information of the vertex. Based on the deformation control parameters and the overall deformation progress of the virtual model, determine the vertex movement progress corresponding to the vertex; Based on the pivot point position, the deformation end position, and the vertex movement progress, the current vertex position is determined, and the virtual model is rendered based on the current vertex position corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

2. The method according to claim 1, characterized in that, The current vertex position is determined based on the pivot point position, the deformation end position, and the vertex movement progress, including: The deformation direction is determined based on the pivot point position and the deformation end position; Using the pivot point position as a reference, the vertex position is obtained by moving a first distance in the deformation direction; the first distance is the moving distance indicated by the vertex movement progress.

3. The method according to claim 1, characterized in that, The virtual model includes a trunk and branches; the deformation command is a growth command. Accordingly, based on the deformation control parameters and the overall deformation progress of the virtual model, the vertex movement progress corresponding to the vertex is determined, including: If the vertex is located on the branch, the vertex movement progress corresponding to the vertex is determined according to the first growth initiation parameter and the overall growth progress; the first growth initiation parameter reflects the order of growth of the branch position of the vertex. If the vertex is located on the branch or leaf, the vertex movement progress corresponding to the vertex is determined according to the second growth initiation parameter, the branch and leaf unfolding speed control parameter, and the overall growth progress; the second growth initiation parameter reflects the order of growth of the branch and leaf corresponding to the vertex.

4. The method according to claim 3, characterized in that, Based on the first growth initiation parameters and the overall growth progress, the vertex movement progress corresponding to the vertex is determined, including: The growth initiation factor is determined based on the first growth initiation parameter; The vertex movement progress is determined based on the growth initiation factor and the overall growth progress.

5. The method according to claim 3, characterized in that, Based on the second growth initiation parameters, the branch and leaf unfolding speed control parameters, and the overall growth progress, the vertex movement progress corresponding to the vertex is determined, including: Determine the branch and leaf unfolding speed control factor based on the branch and leaf unfolding speed control parameters; Based on the second growth initiation parameters and the overall growth progress, determine the branch and leaf growth progress corresponding to the vertex; The vertex movement progress is determined based on the branch and leaf unfolding speed control factor and the branch and leaf growth progress.

6. The method according to claim 1, characterized in that, The virtual model includes branches and leaves; the deformation command is a growth command; the method further includes: The color maturity progress corresponding to the vertex is determined based on the second growth initiation parameters, the branch and leaf unfolding speed control parameters, and the overall growth progress. Obtain the first pixel value and the second pixel value corresponding to the vertex; the first pixel value is the pixel value of the initial growth stage; the second pixel value is the pixel value of the growth and maturity stage. The first pixel value and the second pixel value are fused based on the color maturity progress to obtain the current pixel value corresponding to the vertex. The virtual model is then rendered based on the current pixel values ​​corresponding to each vertex on the virtual model to output the deformation animation corresponding to the virtual model.

7. The method according to claim 6, characterized in that, Based on the color maturation progress, the first pixel value and the second pixel value are fused to obtain the current pixel value corresponding to the vertex, including: The first pixel value and the second pixel value are fused based on the color maturity progress to obtain the third pixel value; The second pixel value and the third pixel value are fused based on a preset mask value to obtain the current pixel value corresponding to the vertex.

8. The method according to claim 1, characterized in that, The pivot point position is stored in the vertex color RGB channel in the vertex attribute information; the deformation control parameters are stored in the UV coordinates in the vertex attribute information.

9. A processing apparatus for a virtual model, characterized in that, include: The vertex attribute information processing module is used to respond to the deformation command for the virtual model and obtain the pivot point position, deformation end position and deformation control parameters corresponding to the vertex of the virtual model from the vertex attribute information corresponding to the vertex. The vertex movement progress determination module is used to determine the vertex movement progress corresponding to the vertex based on the deformation control parameters and the overall deformation progress of the virtual model. The current vertex position determination module is used to determine the current vertex position based on the pivot point position, the deformation end position, and the vertex movement progress, so as to render the virtual model based on the current vertex position corresponding to each vertex on the virtual model, and output the deformation animation corresponding to the virtual model.

10. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the processing method of the virtual model according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the processing method of the virtual model according to any one of claims 1-8.