Model erosion effect generation method and device, electronic equipment and storage medium

By adjusting the shape and processing the noise of the target model, and combining intersection operations and material mapping rendering, the problem of the cumbersome process of creating model erosion effects is solved, and efficient and realistic erosion effects are generated.

CN121544844APending Publication Date: 2026-02-17GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511522254.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

The existing technology for creating erosion effects on models is cumbersome, requires a lot of manpower and time, and cannot preview the erosion effects in real time.

Method used

By adjusting the shape of the target model to generate a first model and a second model, noise processing and intersection calculation are performed, and combined with material texture rendering, the model erosion effect is directly generated.

Benefits of technology

It improves the efficiency of creating model erosion effects, generates effects with realistic geometric structures to enhance realism, and supports real-time simulation of dynamic erosion effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121544844A_ABST
    Figure CN121544844A_ABST
Patent Text Reader

Abstract

The invention provides a model erosion effect generation method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a target model, carrying out the form adjustment of the target model, and obtaining a first model and a second model containing a chamfering region; performing noise processing on the second model to obtain a noise model; the model vertex of the noise model corresponds to the model vertex of the second model; performing intersection operation on the noise model and the first model to obtain a composite model; the composite model comprises a first model area and a second model area, and the first model area comprises model vertexes of the first model; the second model area comprises a model vertex of the noise model; and rendering the first model region based on a first material map corresponding to the first model, and rendering the second model region based on the corresponding relation and a second material map corresponding to the second model to obtain a model erosion effect of the target model. The method does not need to draw a damaged texture map, saves a lot of manpower and time cost, and improves the effect generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of model making technology, and in particular to a method, apparatus, electronic device, and storage medium for generating model erosion effects. Background Technology

[0002] In the gaming industry, the erosion effect of a model relies on the aging and switching of model textures. Artists need to manually create the damaged form of the model in professional software such as DCC (Digital Content Creation). After the model form is determined, the UVs are flattened and damaged texture maps are drawn. Finally, the visual effect of erosion is simulated by the texture maps. The whole process is not only cumbersome to operate, but also consumes a lot of manpower and time, and is inefficient. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a method, apparatus, electronic device and storage medium for generating model erosion effects, so as to improve the efficiency of model erosion effect production.

[0004] In a first aspect, embodiments of the present invention provide a method for generating a model erosion effect. The method includes: determining a target model; performing a morphological adjustment operation on the target model to obtain a first model and a second model containing a chamfered region; wherein the number of faces of the first model is greater than the number of faces of the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping region, the partially overlapping region including: part of the model edge of the first model and part of the chamfered region of the second model; performing noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; performing an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region containing the first model vertices of the first model; the second model region containing the first noise model vertices of the noise model; rendering the first model region based on the first material texture corresponding to the first model, and rendering the second model region based on the correspondence and the second material texture corresponding to the second model to obtain the model erosion effect of the target model.

[0005] Secondly, embodiments of the present invention also provide a device for generating a model erosion effect. The device includes: a first adjustment module, configured to determine a target model and perform morphological adjustment operations on the target model to obtain a first model and a second model containing a chamfered region; wherein the number of faces in the first model is greater than the number of faces in the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping region, the partially overlapping region including: a portion of the model edges of the first model and a portion of the chamfered region of the second model; a first noise module, configured to perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; a first calculation module, configured to perform an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region containing the first model vertices of the first model; the second model region containing the first noise model vertices of the noise model; and a first rendering module, configured to render the first model region based on a first material texture corresponding to the first model, and render the second model region based on the correspondence and the second material texture corresponding to the second model, to obtain the model erosion effect of the target model.

[0006] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to realize the above-mentioned method for generating model erosion effects.

[0007] Fourthly, embodiments of the present invention provide a storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned method for generating model erosion effects.

[0008] The embodiments of the present invention bring the following beneficial effects: This invention provides a method, apparatus, electronic device, and storage medium for generating a model erosion effect. The method includes: determining a target model; performing a morphological adjustment operation on the target model to obtain a first model and a second model containing a chamfered region; wherein the number of faces in the first model is greater than the number of faces in the target model; the size of the second model is larger than the first model; the second model and the first model have a partially overlapping region, the partially overlapping region including: part of the model edge of the first model and part of the chamfered region of the second model; performing noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; performing an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region containing the first model vertices of the first model; the second model region containing the first noise model vertices of the noise model; rendering the first model region based on a first material texture corresponding to the first model, and rendering the second model region based on the correspondence and the second material texture corresponding to the second model to obtain the model erosion effect of the target model.

[0009] In this method, by performing morphological adjustments on the target model, a first model with increased facets and a second model containing chamfered areas are obtained. The first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The size of the second model is larger than that of the first model, and there is some overlap between the two models. This ensures that when the second model, after noise processing, is intersected with the first model, it can simulate the erosion state of surface edge damage and exposed internal structure. By noise processing the second model, irregular damage patterns are created on its surface, simulating the random characteristics of erosion phenomena in nature. By performing an intersection operation on the noise model and the first model, a composite model containing vertices of both the first model and the noise model is obtained. Finally, the model vertices of the first model in the composite model are rendered according to the first material map, and the model vertices of the noise model in the composite model are rendered according to the second material map, thus obtaining the model erosion effect of the target model.

[0010] This method only requires adjusting the model shape and vertices at the model level, without drawing damaged texture maps, to directly generate the erosion effect of the model. Moreover, the erosion effect has realistic geometric structure support, which not only improves the realism of the erosion effect, but also saves a lot of manpower and time costs, and improves the efficiency of effect generation.

[0011] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0012] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0014] Figure 1 A flowchart illustrating a method for generating model erosion effects according to an embodiment of the present invention; Figure 2 A schematic diagram showing the overlapping area of ​​a first model and a second model is provided as an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the erosion effect of a target model, provided as an embodiment of the present invention. Figure 4 A schematic diagram illustrating the generation of a first model according to an embodiment of the present invention; Figure 5 A schematic diagram of a noise model provided in an embodiment of the present invention; Figure 6 A schematic diagram of a device for generating model erosion effects according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention 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, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0016] Based on this, the present invention provides a method, apparatus, electronic device and storage medium for generating model erosion effects, which can be applied to the generation of model erosion effects.

[0017] To facilitate understanding of this embodiment, a method for generating model erosion effects disclosed in this embodiment of the invention will first be described in detail, such as... Figure 1 As shown, the method includes the following steps: Step S102: Determine the target model and perform shape adjustment operations on the target model to obtain a first model and a second model containing a chamfered area; wherein, the number of faces of the first model is greater than the number of faces of the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, which includes: part of the model edge of the first model and part of the chamfered area of ​​the second model.

[0018] The aforementioned target model refers to the model for which the erosion effect is to be generated. In this invention, by adjusting the vertices of the target model, a morphological adjustment operation is completed, generating a first model and a second model: the first model matches the external material texture of the target model to present the uneroded surface morphology; the second model matches the exposed internal material after erosion to present the exposed internal structure after erosion. Based on the first and second models, the intersection operation of the models provides geometric structural support for the erosion effect, making the erosion effect closer to a real scene.

[0019] Specifically, the first model has a greater number of faces than the target model. For example, this can be achieved by segmenting the edges of the target model, dividing the original edges into multiple sub-edges, and then segmenting the faces of the target model connected to the original edges based on these sub-edges, thus obtaining a first model with an increased number of faces. Alternatively, chamfered regions can be generated at the edges of the target model to directly obtain a first model with more faces than the target model. This higher face count of the first model allows for smoother edges in the resulting composite model when it intersects with the noise model, better simulating random, irregular shapes.

[0020] To replicate the pattern of sharp edges being damaged first in realistic erosion, smooth-transition chamfered regions can be generated at the sharp corners of the target model. The second model mentioned above includes chamfered regions, and its size is larger than the first model. For example, in software such as UE (Unreal Engine), chamfer calculations can be used to control the target model to expand outwards along the surface normal direction, increasing the model size while generating smooth-transition chamfered regions. To make the erosion morphology more natural and realistic, the chamfered regions can be further rounded, ultimately resulting in the second model.

[0021] The first model mentioned above corresponds to the first material map, meaning there is a mapping relationship between the model vertices of the first model and the first material map. Here, the first material map can be the external material map of the target model. The second model mentioned above corresponds to the second material map, meaning there is a mapping relationship between the model vertices of the second model and the second material map. The second material map can be the internal material map exposed after erosion. For example, to present the effect of a wall exposing its internal cement after erosion, the first material map can be the wall material, and the second material map can be the cement material.

[0022] The second model and the first model have some overlapping areas. For example, the first model is as follows: Figure 2 As shown in (a) above, the second model is as follows: Figure 2 As shown in (b), the overlapping area between the second model and the first model in three-dimensional space can be as follows: Figure 2 As shown in (c), the design of the second model being larger than the first model and the overlapping area between the two including part of the model edge of the first model and part of the chamfer area of ​​the second model can ensure that when the second model is subjected to noise processing and intersecting with the first model, the erosion state of surface edge damage and internal structure exposure can be simulated.

[0023] Step S104: Perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model.

[0024] Specifically, a noise model can be obtained by constructing multiple sets of noise and performing multiple noise processing steps on the second model. The vertices of this noise model correspond to the vertices of the second model.

[0025] By applying noise processing to the second model and shifting its vertices multiple times to create an uneven surface, the random characteristics of erosion in nature are simulated, making the damage effect more realistic.

[0026] Step S106: Perform an intersection operation on the noise model and the first model to obtain a composite model; wherein, the composite model includes a first model region and a second model region, the first model region contains the first model vertex of the first model, and the second model region contains the first noise model vertex of the noise model.

[0027] By creating an intersection function, the intersection operation can be performed on the noise model and the first model, eliminating the non-overlapping regions of the two models in three-dimensional space, and constructing a composite model based only on the overlapping regions of the noise model and the first model in three-dimensional space.

[0028] The surface of the composite model is jointly formed by the overlapping surfaces of the noise model and the first model. Since the noise model is obtained from the second model with chamfered regions, the chamfered regions at the edges are more susceptible to noise interference during noise processing, thus enhancing the damage effect at the model edges. In this way, by performing an intersection operation with the first model, the composite model possesses both natural and random damage characteristics and displays the effect of easily damaged model edges while preserving the structure of the target model.

[0029] The composite model specifically includes a first model region and a second model region. The first model region contains the first model vertices of the first model, and the corresponding first material map of the first model can be directly called for rendering to present the original surface texture that has not been eroded. The second model region contains the first noise model vertices of the noise model, and this region is rendered using the second material map to restore the internal material features exposed after erosion. This ensures that the final erosion effect retains the basic structure of the target model while possessing natural and random damage characteristics and severe edge damage.

[0030] Step S108: Render the first model area based on the first material texture corresponding to the first model, and render the second model area based on the correspondence and the second material texture corresponding to the second model to obtain the model erosion effect of the target model.

[0031] Here, the vertices of the first model have a first mapping relationship with the first material texture; the vertices of the second model have a second mapping relationship with the second material texture.

[0032] The first sampling result of each first model vertex in the first model region to the first material texture can be determined through the first mapping relationship, and then the first sampling result can be displayed on the first model vertex.

[0033] The target vertex that corresponds to the vertex of the first noise model is determined from the second model. Based on the second mapping relationship between the target vertex and the second material map, the second sampling result of the target vertex on the second material map is obtained. Finally, the second sampling result is displayed at the vertex of the first noise model in the second model area.

[0034] In this method, materials are applied to different areas of the composite region. The first model region uses external materials to represent the uncorroded surface, while the second model region uses internal materials to represent the exposed internal structure after corrosion. This can present a natural corrosion effect, such as edge wear and the exposure of the internal material after corrosion. Figure 3 As shown, Figure 3 (a) in the image represents the un-eroded target model, whose surface is covered with the wall surface material. Figure 3 (b) in the image shows the target model after it has been eroded, revealing the effect of the wall exposing the internal cement after erosion.

[0035] In existing technologies, it is necessary to manually create the damaged shape of the model first. After the model shape is determined, the UVs are flattened and the model is switched to drawing software to draw the damaged texture map. The texture map is used to simulate the visual effect of erosion. This method is not only inefficient, but also cannot preview the erosion effect in real time.

[0036] In this application, only the target model needs to be determined. The shape adjustment operation, noise processing, and intersection calculation are determined by the program. The entire process does not require manual sculpting of the damaged shape, nor does it rely on third-party software. The model can be created entirely within UE, and the effect changes can be viewed in real time in UE after each adjustment, greatly improving production efficiency. At the same time, since the erosion effect is achieved by changing the shape of the model's vertices in three-dimensional space, the effect has realistic geometric structure support, which not only significantly enhances the realism of the erosion effect, but also reduces the need for a large investment of manpower and time, thus improving the efficiency of effect generation.

[0037] In addition, in the existing technology, manually creating model erosion in DCC software is an offline static creation. The erosion shape needs to be sculpted in advance, and then the finished model is exported to the game engine. The erosion state of the model is fixed from the beginning. When the game runs, the vertex position and material texture of the model will no longer change dynamically, and it is impossible to present a dynamic and continuously evolving erosion effect.

[0038] The solution in this application is based on program-driven dynamic generation logic: by using algorithms to adjust model vertex offset, shape adjustment parameters, and material sampling control logic in real time within a game engine, such as UE, the erosion effect can change in real time over time, truly simulating the dynamic characteristics of natural erosion's continuous action and gradual evolution.

[0039] The above method for generating the model erosion effect involves: determining the target model; performing morphological adjustments on the target model to obtain a first model and a second model containing chamfered regions; wherein the number of faces in the first model is greater than the number of faces in the target model; the size of the second model is larger than that of the first model; the second model and the first model have a partially overlapping area, which includes part of the model edges of the first model and part of the chamfered regions of the second model; performing noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; performing an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region containing the first model vertices of the first model; the second model region containing the first noise model vertices of the noise model; rendering the first model region based on the first material texture corresponding to the first model, and rendering the second model region based on the correspondence and the second material texture corresponding to the second model, thus obtaining the model erosion effect of the target model.

[0040] In this method, by performing morphological adjustments on the target model, a first model with increased facets and a second model containing chamfered areas are obtained. The first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The size of the second model is larger than that of the first model, and there is some overlap between the two models. This ensures that when the second model, after noise processing, is intersected with the first model, it can simulate the erosion state of surface edge damage and exposed internal structure. By noise processing the second model, irregular damage patterns are created on its surface, simulating the random characteristics of erosion phenomena in nature. By performing an intersection operation on the noise model and the first model, a composite model containing vertices of both the first model and the noise model is obtained. Finally, the model vertices of the first model in the composite model are rendered according to the first material map, and the model vertices of the noise model in the composite model are rendered according to the second material map, thus obtaining the model erosion effect of the target model.

[0041] This method only requires adjusting the model shape and vertices at the model level, without drawing damaged texture maps, to directly generate the erosion effect of the model. Moreover, the erosion effect has realistic geometric structure support, which not only improves the realism of the erosion effect, but also saves a lot of manpower and time costs, and improves the efficiency of effect generation.

[0042] The following embodiments provide a specific implementation of obtaining the first model.

[0043] In one approach, the model edges of the target model are divided into multiple sub-edges; Based on sub-edges, the model faces connected to the model edges in the target model are segmented to obtain a first model with a greater number of faces than the target model.

[0044] In other words, the original continuous edges of the target model are first divided into several independent sub-edges. Then, using these newly generated sub-edges as segmentation references, cutting paths are extended into the model faces connected to the original model edges, dividing the originally complete single model face into multiple independent small faces. The final result is the first model. For example, if the target model has an edge connecting to a rectangular face, after this edge is split into 3 segments, the cutting operation will start from these 3 edge segments and cut corresponding lines into the interior of the rectangular face, ultimately dividing this rectangular face into 3 smaller faces. This makes the structure of the model at the edges and adjacent areas more refined, providing a richer geometric basis for subsequent processing. Figure 4 As shown, Figure 4 (a) is the wireframe of the target model. This model has a small number of faces and a relatively simple structure. After the above operations of splitting the model edges and dividing the model faces, the result is... Figure 4The first model shown in (b) has a significantly increased number of faces, which allows it to more finely support subsequent effects such as erosion textures.

[0045] In another approach, a first chamfering operation can be performed on the target model to generate chamfered areas at the edges of the target model, resulting in a first model with a face count greater than that of the target model.

[0046] The first chamfering operation described above can be performed directly in Unreal Engine (UE). It utilizes the ApplyMeshMorphology algorithm to calculate the chamfer, smoothing the model edges and naturally generating chamfered regions at the model's edges. A chamfered region refers to the transitional area formed after rounding or flattening the originally sharp edges, vertices, or corners of a 3D model. Essentially, it removes sharp edges and adds curved surfaces, transforming the model's corners from sharp, pointed shapes into smooth transitions. Furthermore, the generation of chamfered regions is accompanied by an increase in the model's face count.

[0047] Here, the MakeGeometryScript3DGridParameters function can be used to control the number of new faces, resulting in a first model with a greater number of faces than the target model.

[0048] The above-mentioned operation of increasing the number of facets in the model makes the edges of the composite model generated when the first model intersects with the noise model in the future smoother, and better able to simulate random irregular shapes.

[0049] The following embodiments provide a specific implementation of the second model.

[0050] Specifically, the target model is expanded outward along the surface normal direction to obtain a chamfered model containing the chamfered region; the edges of the chamfered model are rounded to obtain the second model.

[0051] In practice, a second model can be generated in the UE. Specifically, when the Operation type is set to "Dilate" in the ApplyMeshMorphology algorithm, the target model expands outward along the surface normal direction. This expansion naturally affects the edges of the model, causing the originally sharp edges to create a smooth transition surface, i.e., a chamfered region, due to geometric calculations. By adjusting the Distance parameter, the width of the chamfer and the degree of expansion of the target model are controlled, resulting in a chamfered model containing the chamfered region. With the generation of the chamfered region, the number of faces of this chamfered model is also greater than that of the target model. This method also makes the edges of the resulting composite model smoother and better able to simulate random irregular shapes when the second model is noise-processed and intersected with the first model.

[0052] Considering that the erosion boundary has a rounded feel in the actual erosion process, the chamfer model is further smoothed by the ApplyIntertiveSmoothingToMesh algorithm. The intensity of the smoothing is controlled by the ChamferScale parameter to obtain a second model. The size of the second model is larger than that of the first model and the two models have a partially overlapping area. The partially overlapping area specifically includes part of the model edge of the first model and part of the chamfer area of ​​the second model.

[0053] Here, the first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The design that the size of the second model is larger than that of the first model and the overlapping area of ​​the two models includes part of the model edge of the first model and part of the chamfer area of ​​the second model can ensure that when the second model is subjected to noise processing and intersecting with the first model, it can naturally simulate the erosion state of surface edge damage and internal structure exposure.

[0054] The following embodiments provide a specific implementation of the noise model.

[0055] Specifically, based on preset noise parameters, noise processing is performed on the second model to obtain a noise model; wherein, the noise parameters include one or more of the following: noise amplitude, noise frequency, and noise offset.

[0056] The noise parameters mentioned above include one or more of the following: noise amplitude, noise frequency, and noise offset.

[0057] In practice, the `ApplyPerlinNoiseToMesh` function in the user interface can be used to erode the second model based on preset noise parameters, causing its vertices to shift randomly, thus obtaining a noise model. The vertices of this noise model correspond to the vertices of the second model.

[0058] In one approach, a preset number of noises are generated by adjusting the parameter values ​​of at least one noise parameter; based on the preset number of noises, the model vertices of the second model are sequentially offset to obtain a noise model.

[0059] In practical implementation, multiple noise parameter sets can be constructed, each corresponding to the generation of a specific type of noise. Each noise parameter set contains one or more parameters, including noise amplitude, noise frequency, and noise offset. By changing the values ​​of these parameters, noise with differentiated characteristics can be generated. These differentiated noises are then applied sequentially to the vertices of the second model, causing them to superimpose over multiple offsets to form complex and irregular surface morphologies, thereby more accurately simulating the random diversity of erosion phenomena in nature. For example, by adjusting the noise frequencies of different parameter sets, noises with varying frequencies can be generated; these noises, when applied to the vertices of the second model, can generate holes of different sizes, thus simulating erosion holes of varying sizes in nature. Figure 5 As shown Figure 2 The second model shown is a noise model obtained after noise processing. This noise model can make the composite model have natural and random damage characteristics and make the model edges more susceptible to damage.

[0060] The following examples provide a specific implementation of generating composite models.

[0061] In one approach, a preset intersection function is called to obtain the overlapping region of the noise model and the first model in three-dimensional space; based on the overlapping region of the noise model and the first model in three-dimensional space, a composite model is constructed.

[0062] In actual implementation, an intersection function ExecuteBoolean can be created in the UE. The intersection function first accurately calculates the overlapping part of the noise model and the first model in three-dimensional space. Then, a composite model is constructed with this overlapping area as the core. The geometry of the composite model comes entirely from the overlapping part of the two models in space. It not only retains the damage details formed after the noise model is processed, but also relies on the basic morphological framework of the first model, so that the final erosion effect has natural random damage features, edge damage features, and retains the original structure of the target model.

[0063] It should be noted that the surface of this composite model is jointly composed of the overlapping surfaces of the noise model and the first model. Specifically, it includes a first model region and a second model region. The first model region contains the first model vertices of the first model, and can directly call the corresponding first material map of the first model for rendering, thereby presenting the original surface texture that has not been eroded. The second model region contains the first noise model vertices of the noise model, and renders this region through the second material map, thereby restoring the internal material features exposed after erosion.

[0064] The following embodiments provide a specific implementation of rendering the first model region.

[0065] Specifically, there is a first mapping relationship between the model vertices of the first model and the first material texture; based on the first mapping relationship, the first sampling result of the first model vertex to the first material texture in the first model region is determined, and the first sampling result is displayed on the first model vertex.

[0066] The first material map can be the external material map of the target model, and there is a mapping relationship between the model vertices of the first model and the first material map. The second material map can be the internal material map exposed after erosion, and there is a mapping relationship between the model vertices of the second model and the second material map. For the first model region, since each vertex of the first model has a first mapping relationship with the first material map, the sampling position of the first model vertex in the first model region on the first material map can be directly determined through this relationship, thereby obtaining the first sampling results such as color and texture, and finally displaying these first sampling results on the first model vertex in the first model region, presenting the original surface texture of the target model.

[0067] In one approach, the model vertices of the second model have a second mapping relationship with the second material map. Target vertices that correspond to the vertices of the first noise model are determined from the second model. Based on the second mapping relationship between the target vertices and the second material map, the second model region is rendered.

[0068] Since the vertices of the noise model correspond to the vertices of the second model, for a first noise model vertex in the second model region, a target vertex corresponding to the first noise model vertex can be found in the second model. Then, based on the second mapping relationship between the target vertex in the second model and the second material texture, the second model region is rendered.

[0069] Specifically, based on the second mapping relationship between the target vertex and the second material map, the second sampling result of the target vertex on the second material map is obtained; the second sampling result is displayed at the first noise model vertex in the second model region.

[0070] Here, based on the second mapping relationship between the target vertex and the second material map, the second sampling result of the target vertex on the second material map can be obtained; the second sampling result is displayed at the first noise model vertex in the second model region. Since each vertex of the second model has a second mapping relationship with the second material map, the sampling position of the target vertex in the second model on the second material map can be directly determined through this mapping relationship, thereby obtaining the second sampling results such as color and texture. Finally, these second sampling results are displayed at the first noise model vertex corresponding to the target vertex in the second model region, presenting the internal structure of the target model after it has been eroded.

[0071] To further save performance or to import the model into other software, the composite model needs to be regenerated as a static model. Specifically, the composite model can be input into the CreateNewStaticMeshAssetFromMesh function, and the material information can be set to the return value of the function. It will then be automatically saved to the disk for use in other software.

[0072] For the corresponding method embodiments described above, see [link to relevant documentation]. Figure 6 The diagram shows a device for generating a model erosion effect, the device comprising: The first adjustment module 602 is used to determine the target model and perform shape adjustment operations on the target model to obtain a first model and a second model containing a chamfered area; wherein, the number of faces of the first model is greater than the number of faces of the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, which includes: part of the model edge of the first model and part of the chamfered area of ​​the second model; The first noise module 604 is used to perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model. The first operation module 606 is used to perform an intersection operation on the noise model and the first model to obtain a composite model; wherein, the composite model includes a first model region and a second model region, the first model region contains the first model vertex of the first model, and the second model region contains the first noise model vertex of the noise model; The first rendering module 608 is used to render the first model area based on the first material texture corresponding to the first model, and to render the second model area based on the correspondence and the second material texture corresponding to the second model, so as to obtain the model erosion effect of the target model.

[0073] In this method, by performing morphological adjustments on the target model, a first model with increased facets and a second model containing chamfered areas are obtained. The first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The size of the second model is larger than that of the first model, and there is some overlap between the two models. This ensures that when the second model, after noise processing, is intersected with the first model, it can simulate the erosion state of surface edge damage and exposed internal structure. By noise processing the second model, irregular damage patterns are created on its surface, simulating the random characteristics of erosion phenomena in nature. By performing an intersection operation on the noise model and the first model, a composite model containing vertices of both the first model and the noise model is obtained. Finally, the model vertices of the first model in the composite model are rendered according to the first material map, and the model vertices of the noise model in the composite model are rendered according to the second material map, thus obtaining the model erosion effect of the target model.

[0074] This method only requires adjusting the model shape and vertices at the model level, without drawing damaged texture maps, to directly generate the erosion effect of the model. Moreover, the erosion effect has realistic geometric structure support, which not only improves the realism of the erosion effect, but also saves a lot of manpower and time costs, and improves the efficiency of effect generation.

[0075] The first adjustment module mentioned above is used to divide the model edge of the target model into multiple sub-edges; based on the sub-short edges, the model faces connected to the model edge in the target model are divided to obtain a first model with a face number greater than the face number of the target model.

[0076] The aforementioned first adjustment module is used to perform a first chamfering operation on the target model, generating a chamfered area at the edge of the target model to obtain a first model with a face count greater than that of the target model.

[0077] The first adjustment module is used to expand the target model, controlling the target model to expand outward along the surface normal direction to obtain a chamfered model containing the chamfered region; the edges of the chamfered model are rounded to obtain the second model.

[0078] The first noise module is used to perform noise processing on the second model based on preset noise parameters to obtain a noise model; wherein the noise parameters include one or more of noise amplitude, noise frequency, and noise offset.

[0079] The first noise module is used to generate a preset number of noises by adjusting the parameter values ​​of at least one noise parameter; based on the preset number of noises, the model vertices of the second model are offset sequentially to obtain a noise model.

[0080] The aforementioned first calculation module is used to call a preset intersection function to obtain the overlapping area of ​​the noise model and the first model in three-dimensional space; based on the overlapping area of ​​the noise model and the first model in three-dimensional space, a composite model is formed.

[0081] The vertices of the first model and the first material map have a first mapping relationship; the vertices of the second model and the second material map have a second mapping relationship.

[0082] The aforementioned first rendering module is used to determine the first sampling result of the first model vertex in the first model region to the first material texture based on the first mapping relationship, and to display the first sampling result on the first model vertex.

[0083] The first rendering module is used to determine the target vertex that corresponds to the vertex of the first noise model from the second model, and to render the second model region based on the second mapping relationship between the target vertex and the second material texture.

[0084] The aforementioned first rendering module is used to obtain the second sampling result of the target vertex on the second material map based on the second mapping relationship between the target vertex and the second material map; and to display the second sampling result at the first noise model vertex in the second model region.

[0085] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described method for generating the model erosion effect. This electronic device can be a server or a terminal device.

[0086] See Figure 7 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described method for generating the model erosion effect.

[0087] Furthermore, Figure 7The illustrated electronic device also includes a bus 102 and a communication interface 103. The processor 100, communication interface 103, and memory 101 are connected via the bus 102. The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk drive. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless). The interface can use the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 7 The diagram uses only a single bidirectional arrow, but this does not imply a single bus or a single type of bus. Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0088] The processor in the aforementioned electronic device, by executing machine-executable instructions, can perform the following operations in the method for generating the aforementioned model erosion effect: Determine the target model; perform morphological adjustment operations on the target model to obtain a first model and a second model containing chamfered regions; wherein the number of faces in the first model is greater than the number of faces in the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, which includes: part of the model edges of the first model and part of the chamfered regions of the second model; perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; perform an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region contains the first model vertices of the first model; the second model region contains the first noise model vertices of the noise model; render the first model region based on the first material texture corresponding to the first model, and render the second model region based on the correspondence and the second material texture corresponding to the second model to obtain the model erosion effect of the target model.

[0089] In this method, by performing morphological adjustments on the target model, a first model with increased facets and a second model containing chamfered areas are obtained. The first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The size of the second model is larger than that of the first model, and there is some overlap between the two models. This ensures that when the second model, after noise processing, is intersected with the first model, it can simulate the erosion state of surface edge damage and exposed internal structure. By noise processing the second model, irregular damage patterns are created on its surface, simulating the random characteristics of erosion phenomena in nature. By performing an intersection operation on the noise model and the first model, a composite model containing vertices of both the first model and the noise model is obtained. Finally, the model vertices of the first model in the composite model are rendered according to the first material map, and the model vertices of the noise model in the composite model are rendered according to the second material map, thus obtaining the model erosion effect of the target model.

[0090] This method only requires adjusting the model shape and vertices at the model level, without drawing damaged texture maps, to directly generate the erosion effect of the model. Moreover, the erosion effect has realistic geometric structure support, which not only improves the realism of the erosion effect, but also saves a lot of manpower and time costs, and improves the efficiency of effect generation.

[0091] The processor in the aforementioned electronic device can execute machine-executable instructions to perform the following operations of the above-mentioned method for generating model erosion effects: dividing the model edge of the target model into multiple sub-edges; based on the sub-short edges, segmenting the model faces connected to the model edges in the target model to obtain a first model with a face number greater than the face number of the target model.

[0092] The processor in the aforementioned electronic device can execute machine-executable instructions to perform the following operations of the above-mentioned method for generating model erosion effects: perform a first chamfering operation on the target model, generate a chamfered region at the edge of the target model, and obtain a first model with a face number greater than the face number of the target model.

[0093] The processor in the aforementioned electronic device can execute machine-executable instructions to perform the following operations of the above-mentioned method for generating the model erosion effect: dilate the target model, control the target model to expand outward along the surface normal direction to obtain a chamfered model containing a chamfered region; smooth the edges of the chamfered model to obtain a second model.

[0094] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: performing noise processing on the second model based on preset noise parameters to obtain a noise model; wherein, the noise parameters include one or more of the following: noise amplitude, noise frequency, and noise offset.

[0095] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: generating a preset number of noises by adjusting the parameter values ​​of at least one noise parameter; and sequentially offsetting the model vertices of the second model based on the preset number of noises to obtain a noise model.

[0096] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: calling a preset intersection function to obtain the overlapping area of ​​the noise model and the first model in three-dimensional space; and constructing a composite model based on the overlapping area of ​​the noise model and the first model in three-dimensional space.

[0097] The vertices of the first model and the first material map have a first mapping relationship; the vertices of the second model and the second material map have a second mapping relationship.

[0098] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: based on the first mapping relationship, determine the first sampling result of the first model vertex in the first model region to the first material texture, and display the first sampling result at the first model vertex.

[0099] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: determining the target vertex that corresponds to the vertex of the first noise model from the second model, and rendering the second model region based on the second mapping relationship between the target vertex and the second material texture.

[0100] The processor in the aforementioned electronic device can perform the following operations of the above-mentioned model erosion effect generation method by executing machine-executable instructions: obtaining the second sampling result of the target vertex on the second material map based on the second mapping relationship between the target vertex and the second material map; and displaying the second sampling result at the first noise model vertex in the second model region.

[0101] This embodiment also provides a storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-described method for generating the model erosion effect.

[0102] The machine-executable instructions stored in the aforementioned storage medium can be executed to perform the following operations in the method for generating the model erosion effect: Determine the target model; perform morphological adjustment operations on the target model to obtain a first model and a second model containing chamfered regions; wherein the number of faces in the first model is greater than the number of faces in the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, including: part of the model edges of the first model and part of the chamfered regions of the second model; perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model; perform an intersection operation on the noise model and the first model to obtain a composite model; wherein the composite model includes a first model region and a second model region, the first model region contains the first model vertices of the first model; the second model region contains the first noise model vertices of the noise model; render the first model region based on the first material texture corresponding to the first model, and render the second model region based on the correspondence and the second material texture corresponding to the second model to obtain the model erosion effect of the target model.

[0103] In this method, by performing shape adjustments on the target model, a first model with increased facets and a second model containing chamfered areas are obtained. The first material map corresponding to the first model can be the external material map of the target model, and the second material map corresponding to the second model can be the internal material map exposed after erosion. The second model is larger than the first model, and the two models have some overlapping areas. This ensures that when the second model, after noise processing, is intersected with the first model, it can naturally simulate the erosion state of surface edge damage and exposed internal structure. By noise processing the second model, irregular damage patterns are created on its surface, simulating the random characteristics of erosion phenomena in nature. By performing an intersection operation on the noise model and the first model, a composite model containing vertices of both the first model and the noise model is obtained. Finally, the model vertices of the first model in the composite model are rendered according to the first material map, and the model vertices of the noise model in the composite model are rendered according to the second material map, thus obtaining the model erosion effect of the target model.

[0104] This method achieves morphological changes of model vertices in three-dimensional space, giving the erosion effect realistic geometric structure support. This significantly enhances the realism of the erosion effect without requiring a large investment of manpower and time, thus improving the efficiency of effect generation.

[0105] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: dividing the model edge of the target model into multiple sub-edges; based on the sub-short edges, segmenting the model faces connected to the model edges in the target model to obtain a first model with a face number greater than the face number of the target model.

[0106] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: performing a first chamfering operation on the target model to generate a chamfered region at the edge of the target model, thereby obtaining a first model with a face count greater than that of the target model.

[0107] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the method for generating the above-mentioned model erosion effect: dilate the target model and control the target model to expand outward along the surface normal direction to obtain a chamfered model containing a chamfered region; smooth the edges of the chamfered model to obtain a second model.

[0108] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operation in the method for generating the model erosion effect: based on preset noise parameters, noise processing is performed on the second model to obtain a noise model; wherein, the noise parameters include one or more of noise amplitude, noise frequency, and noise offset.

[0109] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: by adjusting the parameter values ​​of at least one noise parameter, a preset number of noises are generated; based on the preset number of noises, the model vertices of the second model are sequentially offset to obtain a noise model.

[0110] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: calling a preset intersection function to obtain the overlapping area of ​​the noise model and the first model in three-dimensional space; and constructing a composite model based on the overlapping area of ​​the noise model and the first model in three-dimensional space.

[0111] The vertices of the first model and the first material map have a first mapping relationship; the vertices of the second model and the second material map have a second mapping relationship.

[0112] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: based on the first mapping relationship, determine the first sampling result of the first model vertex in the first model region on the first material texture, and display the first sampling result on the first model vertex.

[0113] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: determining target vertices that correspond to the vertices of the first noise model from the second model, and rendering the second model region based on the second mapping relationship between the target vertices and the second material texture.

[0114] The machine-executable instructions stored in the aforementioned storage medium can be executed to achieve the following operations in the above-mentioned method for generating model erosion effects: based on the second mapping relationship between the target vertex and the second material map, obtain the second sampling result of the target vertex on the second material map; display the second sampling result at the first noise model vertex in the second model region.

[0115] The computer program products of the model erosion effect generation method, apparatus, electronic device and storage medium provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0117] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0118] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0119] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0120] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for generating model erosion effects, characterized in that, The method includes: A target model is determined, and a shape adjustment operation is performed on the target model to obtain a first model and a second model containing a chamfered area; wherein, the number of faces of the first model is greater than the number of faces of the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, the partially overlapping area including: part of the model edge of the first model and part of the chamfered area of ​​the second model; The second model is subjected to noise processing to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model. An intersection operation is performed on the noise model and the first model to obtain a composite model; wherein, the composite model includes a first model region and a second model region, the first model region contains the first model vertex of the first model; the second model region contains the first noise model vertex of the noise model; Based on the first material texture corresponding to the first model, the first model area is rendered, and based on the correspondence and the second material texture corresponding to the second model, the second model area is rendered to obtain the model erosion effect of the target model.

2. The method according to claim 1, characterized in that, The steps of performing morphological adjustments on the target model to obtain the first model include: The model edge of the target model is divided into multiple sub-edges; Based on the sub-edges, the model faces connected to the model edges in the target model are segmented to obtain a first model with a face count greater than that of the target model.

3. The method according to claim 1, characterized in that, The steps of performing morphological adjustments on the target model to obtain the first model include: A first chamfering operation is performed on the target model to generate chamfered regions at the edges of the target model, resulting in a first model with a face count greater than that of the target model.

4. The method according to claim 1, characterized in that, The step of performing shape adjustment operations on the target model to obtain a second model containing a chamfered region includes: The target model is subjected to dilation, and the target model is controlled to expand outward along the surface normal direction to obtain a chamfered model containing the chamfered region; The edges of the chamfered model are rounded to obtain the second model.

5. The method according to claim 1, characterized in that, The step of performing noise processing on the second model to obtain a noise model includes: Based on preset noise parameters, the second model is subjected to noise processing to obtain a noise model; wherein, the noise parameters include one or more of noise amplitude, noise frequency, and noise offset.

6. The method according to claim 5, characterized in that, The step of performing noise processing on the second model based on preset noise parameters to obtain a noise model includes: A preset number of noise waves are generated by adjusting the parameter values ​​of at least one of the noise parameters; Based on the preset number of noise waves, the model vertices of the second model are sequentially offset to obtain the noise wave model.

7. The method according to claim 1, characterized in that, The step of performing an intersection operation on the noise model and the first model to obtain a composite model includes: Call the preset intersection function to obtain the overlapping area of ​​the noise model and the first model in three-dimensional space; The composite model is formed based on the overlapping region of the noise model and the first model in three-dimensional space.

8. The method according to claim 1, characterized in that, The model vertices of the first model have a first mapping relationship with the first material texture; the step of rendering the region of the first model based on the first material texture corresponding to the first model includes: Based on the first mapping relationship, the first sampling result of the first model vertex in the first model region on the first material texture is determined, and the first sampling result is displayed on the first model vertex.

9. The method according to claim 1, characterized in that, The second model's vertices and the second material map have a second mapping relationship; the step of rendering the second model region based on the second material map corresponding to the second model includes: From the second model, a target vertex that corresponds to the vertex of the first noise model is determined, and the second model region is rendered based on the second mapping relationship between the target vertex and the second material map.

10. The method according to claim 9, characterized in that, The step of rendering the second model region based on the second mapping relationship between the target vertex and the second material map includes: Based on the second mapping relationship between the target vertex and the second material map, the second sampling result of the target vertex on the second material map is obtained; The second sampling result is displayed at the first noise model vertex in the second model region.

11. A device for generating model erosion effects, characterized in that, The device includes: The first adjustment module is used to determine the target model, perform shape adjustment operations on the target model, and obtain a first model and a second model containing a chamfered area; wherein, the number of faces of the first model is greater than the number of faces of the target model; the size of the second model is greater than that of the first model; the second model and the first model have a partially overlapping area, the partially overlapping area including: part of the model edge of the first model and part of the chamfered area of ​​the second model; The first noise module is used to perform noise processing on the second model to obtain a noise model; wherein the model vertices of the noise model correspond to the model vertices of the second model. The first calculation module is used to perform an intersection operation on the noise model and the first model to obtain a composite model; wherein, the composite model includes a first model region and a second model region, the first model region contains the first model vertex of the first model; the second model region contains the first noise model vertex of the noise model; The first rendering module is used to render the first model region based on the first material texture corresponding to the first model, and to render the second model region based on the correspondence and the second material texture corresponding to the second model, so as to obtain the model erosion effect of the target model.

12. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the method for generating the model erosion effect according to any one of claims 1-10.

13. A storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for generating the model erosion effect according to any one of claims 1-10.