Model processing method and device, electronic equipment and storage medium

By setting a breakage range indicator parameter on the initial model, separating and cutting the processing model area, generating multiple cutting blocks and merging them to automatically generate a model with breakage interactive effects, the problem of low generation efficiency of interactive special effects models in the prior art is solved, and efficient automatic generation is achieved.

CN121982198APending Publication Date: 2026-05-05NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2025-12-30
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing technologies, the model generation efficiency for interactive effects is low, requiring manual modeling, which leads to inefficiency.

Method used

By determining the fracture interaction model region on the initial model based on the fracture range indicator parameter, the model is separated into a first model and a second model. The first model is then cut to generate multiple cut blocks, which are then merged with the second model to obtain a target model with fracture interaction effect.

Benefits of technology

It improves the generation efficiency of interactive effect corresponding models, realizes the automatic generation of models with fragmented interactive effects, and reduces the time of manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121982198A_ABST
    Figure CN121982198A_ABST
Patent Text Reader

Abstract

The invention discloses a model processing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: determining a crushing interaction model region on an initial model based on a crushing range indication parameter set for the to-be-processed initial model; separating the fragmentation interaction model area from the initial model to obtain a first model containing the fragmentation interaction model area and a remaining second model; cutting the first model to obtain a target first model containing a plurality of cutting blocks; and combining the target first model and the second model to obtain a target model with a fragmentation interaction effect, so as to render the fragmentation interaction effect of the target model by processing the cutting blocks of the target first model. According to the embodiment, the generation efficiency of the model corresponding to the interaction special effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of model processing technology, specifically to a model processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the rise of the internet, entertainment has become increasingly important in people's lives. In order to meet the needs of certain interactive actions in some entertainment projects (such as animation movies and games) to generate corresponding interactive effects, it is necessary to use models with corresponding interactive effects for presentation.

[0003] Currently, in order to achieve interactive effects, users need to perform manual modeling, that is, manually create the model resources corresponding to the interactive effects, and then build a model that matches the interactive effects based on the corresponding model resources, which results in low generation efficiency of the model corresponding to the interactive effects. Summary of the Invention

[0004] This application provides a model processing method, apparatus, electronic device, and storage medium, which can improve the generation efficiency of models corresponding to interactive effects.

[0005] In a first aspect, embodiments of this application provide a model processing method, the method comprising: Based on the crushing range indication parameters set for the initial model to be processed, the crushing interaction model region on the initial model is determined; The broken interaction model region is separated from the initial model to obtain a first model containing the broken interaction model region and the remaining second model; The first model is cut to obtain a target first model containing multiple cut blocks; The first and second target models are merged to obtain a target model with a shattering interactive effect, and the shattering interactive effect of the target model is rendered by processing the cut blocks of the first target model.

[0006] Secondly, embodiments of this application provide a model processing apparatus, the apparatus comprising: The region determination module is used to determine the crushing interaction model region on the initial model based on the crushing range indication parameters set for the initial model to be processed; The model separation module is used to separate the broken interaction model region from the initial model to obtain a first model containing the broken interaction model region and the remaining second model; The model cutting module is used to cut the first model to obtain a target first model containing multiple cutting blocks; The model merging module is used to merge the first target model and the second target model to obtain a target model with a broken interactive effect, so as to render the broken interactive effect of the target model by processing the cut blocks of the first target model.

[0007] Thirdly, embodiments of this application also provide an electronic device, including a memory storing multiple instructions; a processor loads instructions from the memory to execute the steps of any of the model processing methods provided in embodiments of this application.

[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps of any of the model processing methods provided in embodiments of this application.

[0009] Fifthly, embodiments of this application also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in any of the model processing methods provided in embodiments of this application.

[0010] The solution adopted in this application embodiment can determine the broken interactive model region on the initial model based on the broken range indication parameter set for the initial model to be processed; separate the broken interactive model region from the initial model to obtain a first model containing the broken interactive model region and the remaining second model; cut the first model to obtain a target first model containing multiple cut blocks; merge the target first model and the second model to obtain a target model with broken interactive effect, so as to render the broken interactive effect of the target model by processing the cut blocks of the target first model. In this way, the model to be processed is automatically separated from the initial model based on parameters, and the processed model is merged with other models to automatically generate a target model with broken interactive effect, thereby improving the generation efficiency of the model corresponding to the interactive effect. Attached Figure Description 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a schematic flowchart of one embodiment of the model processing method provided in this application. Figure 2 This is a schematic diagram of the vertices of the root system type provided in the embodiments of this application; Figure 3 This is a schematic diagram of the main trunk model provided in the embodiments of this application; Figure 4 This is a schematic diagram of the target bounding box provided in the embodiments of this application; Figure 5 This is a schematic diagram of the target bounding box after displacement provided in the embodiments of this application; Figure 6 This is a schematic diagram of the deformed target bounding box provided in the embodiments of this application; Figure 7 This is a schematic diagram of the first model containing the broken interaction model region provided in the embodiments of this application; Figure 8 This is a schematic diagram of the second model provided in the embodiments of this application; Figure 9 This is a schematic diagram illustrating the generation process of the shell model provided in the embodiments of this application; Figure 10 This is a schematic diagram illustrating the generation process of the kernel model provided in the embodiments of this application; Figure 11 This is a schematic diagram of the first surface reference point located on the model surface provided in the embodiments of this application; Figure 12 This is a schematic diagram of the kernel model segmentation blocks provided in the embodiments of this application; Figure 13 This is a schematic diagram of the model size transformation process provided in the embodiments of this application; Figure 14 This is a schematic diagram of the second model behind the cover provided in the embodiments of this application; Figure 15 This is a schematic diagram of model merging provided in the embodiments of this application; Figure 16 This is a schematic diagram of the structure of the model processing device provided in the embodiments of this application; Figure 17 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0012] 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 a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. At the same time, in the description of the embodiments of this application, the terms "first," "second," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0013] This application provides a model processing method, apparatus, electronic device, and computer-readable storage medium.

[0014] Specifically, this embodiment will be described from the perspective of a model processing device, which can be integrated into an electronic device. That is, the model processing method of this embodiment can be executed by an electronic device. Optionally, the electronic device may include a terminal device. The terminal device may be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, game console, or personal computer (PC), etc.

[0015] The model processing method provided in this application can be applied to a model processing system. This system can include a player terminal device and a server. The terminal can be a device that includes both receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication over a bidirectional communication link. The player terminal device and the server can communicate bidirectionally via a network.

[0016] Optionally, the server can be a standalone server, or a server network or server cluster, including but not limited to computers, network hosts, single network servers, multiple network server sets, or cloud servers composed of multiple servers. Cloud servers consist of a large number of computers or network servers based on cloud computing.

[0017] The following detailed description is provided in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the order of description in the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings.

[0018] The model processing method in this embodiment determines the broken interactive model region on the initial model based on the broken range indication parameter set for the initial model to be processed; separates the broken interactive model region from the initial model to obtain a first model containing the broken interactive model region and the remaining second model; cuts the first model to obtain a target first model containing multiple cut blocks; merges the target first model and the second model to obtain a target model with broken interactive effects. By processing the cut blocks of the target first model to render the broken interactive effect of the target model, the generation efficiency of the model corresponding to the interactive effect can be improved.

[0019] Please refer to Figure 1Taking a terminal as an example, this embodiment provides a model processing method. The specific process of this model processing method can be described in the following steps 101 to 104, wherein: Step 101: Determine the crushing interaction model region on the initial model based on the crushing range indication parameters set for the initial model to be processed.

[0020] The initial model mentioned above is the model that needs to be processed to enable it to have the ability to render the fragmentation interaction effect on the terminal. For example, the initial model can be an interactive vegetation model in the game scene, such as a tree model, so that after the character fights and causes damage in the game scene, or after large-scale deforestation and terrain modification, the fragmentation interaction effect can be rendered on the corresponding vegetation model.

[0021] The aforementioned breakage range indicator parameter is used to indicate the area on the initial model where the breakage interaction effect needs to be rendered. The breakage range indicator parameter includes, but is not limited to, range size (such as length information), height information (such as height on the initial model), and width information (such as information that is less than or equal to the width of the initial model).

[0022] Understandably, different damage range indicator parameters can be set to adapt to different types of vegetation and to render effects of different sizes or different damage patterns.

[0023] It should be noted that the aforementioned breaking interaction effects include, but are not limited to, the cutting and destruction effects when felling trees, the destruction effects when attacking virtual objects such as buildings and vehicles, etc., so that the objects to which the model belongs will produce corresponding effects when they are subjected to external forces in the game scene. For example, when the objects to which the model belongs are trees in the game scene, the game character can produce corresponding destruction effects by felling the tree, such as splitting into multiple pieces, tree trunk fragments with different fracture patterns, wood chip cutting blocks of various shapes, and residual tree stump models, etc.

[0024] In this embodiment, the terminal determines the broken interactive model area on the initial model by obtaining the range indication parameter. This broken interactive model area is the area on the initial model that needs to render the broken interactive effect. The initial model is then processed based on this broken interactive model area, thereby enabling the initial model to have the ability to render the broken interactive effect.

[0025] In some embodiments, since the initial model may contain multiple model parts, such as a vegetation model that may include model parts such as tree trunks, branches and roots, and the breaking interaction effect may only occur in a specific part of the initial model, before determining the breaking interaction model area on the initial model based on the breaking range indication parameter set for the initial model to be processed, the initial model can be extracted to extract the model parts that need to be rendered with the breaking interaction effect from the initial model.

[0026] Specifically, in a scene where the initial model is a vegetation model, vertices of the root type can be identified from the initial model. The model parts containing vertices of the root type are determined as the trunk model parts, and the trunk model parts are determined as the model parts that need to be rendered with the broken interactive effect.

[0027] Accordingly, determining the crushing interaction model region on the initial model based on the crushing range indication parameters set for the initial model to be processed may include: determining the crushing interaction model region on the main model part based on the crushing range indication parameters set for the initial model to be processed.

[0028] For example, the model information (mat_id information) of the vegetation model can be input into the content creation software (SideFXHoudini, denoted as Houdini). The vertices with negative y-coordinates determined based on the model information can be used as the vertices of the root system type. That is, since the root system part of the vegetation model is below the ground surface when it is created, the y-coordinates of the vertices of the root system type in the vegetation model can be set to negative values.

[0029] Specifically, the vertices of the root type with negative y-coordinates can be set to black via the properties panel and displayed in the graphical user interface for easy viewing by relevant personnel. Figure 2 As shown, Figure 2 The black dots in the diagram represent the vertices of the root type.

[0030] The Mat_id(material_identity) information mentioned above is typically used to identify different parts or materials of a model; for example, it can be used to identify the materials of tree trunks and leaves.

[0031] Then, using the Attribute Promote node in Houdini, within a foreach loop, you can adjust all faces associated with the vertices of the root type (i.e., all faces associated with the vertices of the root type that form the backbone model) to black, such as... Figure 3 As shown, Figure 3 The black areas in the vegetation model represent the main trunk model areas.

[0032] The Attribute Promote node described above converts the attributes of the vertices of the root type from one geometric element type to another, for example, converting point attributes to face attributes.

[0033] The foreach loop described above is a programmatic control structure used to perform a set of operations (attribute conversion operations) on each independent unit (i.e., the vertex of the root type) in the geometry, thereby finding the face associated with the vertex of the root type.

[0034] Step 102: Separate the broken interaction model region from the initial model to obtain a first model containing the broken interaction model region and the remaining second model.

[0035] In this embodiment, the terminal can perform model separation in the initial model based on the broken interaction model region, so as to separate the first model containing the broken interaction model region and the second model corresponding to other regions in the initial model.

[0036] There can be at least one second model. If the first model is located in the edge region of the initial model, then there can be one second model. The first model and the two second models can be merged at both ends to form the initial model. If the first model is located in the middle region of the initial model, the initial model is divided into two parts. Then there can be two second models. The two ends of the first model can be merged with the two second models respectively to form the initial model. The specific settings can be set according to the requirements and are not limited here.

[0037] In some embodiments, determining the fracture interaction model region on the initial model based on the fracture range indication parameters set for the initial model to be processed may include: generating a target bounding box on the initial model based on the fracture range indication parameters set for the initial model to be processed, wherein the target bounding box surrounds the fracture interaction model region on the initial model.

[0038] Accordingly, separating the broken interaction model region from the initial model to obtain a first model containing the broken interaction model region and the remaining second model may include: first, deforming the target bounding box to obtain a deformed target bounding box; then, in the initial model, separating the parts that overlap with the deformed target bounding box into the first model containing the broken interaction model region, and separating the parts that do not overlap with the deformed target bounding box into the second model.

[0039] Understandably, by deforming the target bounding box—that is, by controlling the vertices of the target bounding box to move along the normal direction to create details and form a deformed target bounding box with natural undulations—the effect of separating the first and second models of the initial model using this target bounding box can be made more natural. For example, the boundary between the first and second models is no longer smooth, but has a naturally undulating shape. In the actual rendering scene of the fragmented interactive effect of the vegetation model, after the first and second models are completely separated, the boundary between the two models will not be rendered as a smooth shape, but as an undulating shape that is more in line with natural changes.

[0040] For example, a target bounding box can be created using the `box` node in Houdini. The specific style of the target bounding box can be created by setting bounding box parameters such as bounding box size, bounding box center point, and bounding box subdivision information within the `box` node. Figure 4 As shown, Figure 4 The bottom area displays the target bounding box created on the initial model.

[0041] Among them, Figure 4 In the box node, you can set the size of the bounding box using the Size parameter, such as setting the width (X) of the bounding box to 2.5, the height (Y) of the bounding box to 1, and the depth (Z) of the bounding box to 2.5.

[0042] Among them, Figure 4 In the bounding box, the center point (0, 0.5, 0) can be set using the Center parameter in the box node, which represents the world coordinates of the bounding box center.

[0043] Among them, Figure 4 In the bounding box, you can set the bounding box subdivision information, i.e., the number of grids in the bounding box subdivision, through the Axis Divisions parameter in the box node.

[0044] also, Figure 4 Other parameters in the box node are used to set other information about the bounding box, which will not be explained here.

[0045] It should be noted that the above target bounding box parameters can be set based on the breakage range indicator parameters. For example, the width information (model width is 2.5) in the breakage range indicator parameters can be used as part of the bounding box size information, and the range size (such as 1) in the breakage range indicator parameters can be used as part of the bounding box size information.

[0046] Then, the height of the target bounding box can be adjusted based on the height information in the breakage range indicator parameter. For example, the transform displacement node in Houdini can be used to perform displacement changes on the target bounding box, such as... Figure 5 In the process, the height of the target bounding box is adjusted based on the y-axis displacement index set in the Translate parameter of the transform displacement node, which is 0.6. Figure 5 The target bounding box after displacement on the initial model shown in the bottom region.

[0047] exist Figure 5 In the model, the region enclosed by the target bounding box after displacement on the initial model is the broken interactive model region on the initial model.

[0048] Accordingly, when deforming the target bounding box, such as Figure 6 As shown, the `mountain` node in Houdini can be used to adjust the `height` parameter to indicate the noise during target bounding box deformation. This deformation of the target bounding box increases detail and yields better results. Figure 6 The bottom area shows the deformed bounding box of the target.

[0049] Finally, using the boolean node in Houdini, the deformed target bounding box and the initial model (such as the backbone model mentioned above) can be connected to the two ports of the boolean node, and Boolean operations can be performed. Specifically, by setting the operation option of the boolean node to Intersect, the overlapping area with the deformed target bounding box can be obtained, i.e., the first model containing the broken interactive model region, as shown below. Figure 7 As shown, Figure 7 The white area in the diagram represents the first model, which contains the broken interaction model region.

[0050] Then, duplicate the boolean node again and set the operation option of the newly duplicated boolean node to Subtract to obtain the part that does not overlap with the deformed target bounding box, i.e., the second model, as shown. Figure 8 As shown, Figure 8 Both models in the model are second models.

[0051] The boolean node is used to perform Boolean operations. By setting the operation option of the boolean node to Intersect, it can be used to solve the intersection between the deformed target bounding box and the initial model, that is, to retain the overlapping part between the deformed target bounding box and the initial model to obtain the first model. By setting the operation option of the boolean node to Subtract, it can be used to solve the difference between the deformed target bounding box and the initial model, that is, to remove the part of the initial model that overlaps with the deformed target bounding box to obtain the second model.

[0052] Step 103: Cut the first model to obtain a target first model containing multiple cut blocks.

[0053] In this embodiment, the above-mentioned cutting process is used to cut the first model into blocks so that the first model can be changed into a target first model containing multiple cut blocks, thereby providing fragment resources for realizing the model's broken interactive effect, that is, rendering of at least some of the multiple cut blocks, thus realizing the broken interactive effect.

[0054] In some embodiments, since the model structure of the first model can be a nested model structure, the first model is cut to obtain a target first model containing multiple cut blocks, which includes: first, generating at least two sub-models based on the first model, wherein the at least two sub-models are nested in the first model; then, for each sub-model, the sub-model is cut to obtain a target sub-model containing multiple cut blocks, so as to obtain multiple target sub-models.

[0055] For example, in a scenario where the first model is the trunk model in a vegetation model, the trunk model can be composed of tree bark and tree core nested together. Therefore, the outer shell model corresponding to the tree bark and the core model corresponding to the tree core of the trunk model can be cut separately to improve the model accuracy and make the rendering result more realistic when rendering the broken interaction effect later.

[0056] In some embodiments, at least two sub-models include an outer shell model and a kernel model. Generating at least two sub-models based on a first model includes: first, controlling the vertices of the outer surface of the first model to move inward along the corresponding normal based on the thickness parameters configured for the outer shell model, thereby generating an inner surface of the first model; then, generating an outer shell model based on the outer surface and inner surface of the first model, and generating a kernel model by sealing the inner surface of the first model.

[0057] For example, such as Figure 9 As shown, the polyextrude node in Houdini can be used ( Figure 9(polyextrude1 in the middle) Figure 9 The first model shown in the left-hand area serves as input to the polyextrude node, prompting the polyextrude node to base its operation on configured thickness parameters (such as...). Figure 9 The Distance is set to 0.2 as a thickness parameter. This controls the vertices of the outer surface of the first model to move inward along their corresponding normals, thus extruding a thickness of 0.2. The moved vertices then form the inner surface of the first model. Furthermore, by... Figure 9 In the settings, check "Output Back" and "Front Group" to generate an extrudeFront group for kernel model generation, in order to achieve... Figure 9 The inner and outer surfaces of the first model shown in the right-hand area combine to form the outer shell model. The thickness between the inner and outer surfaces of the first model is 0.2, which means that the thickness of the outer shell model (i.e., the bark) is 0.2.

[0058] Then, as Figure 10 As shown, the polyfill node in Houdini can be used ( Figure 10 (polyfill1 in the middle) Figure 10 The inner surface of the first model shown in the left-hand region serves as the input to the polyfill node, causing the polyfill node to seal the inner surface of the first model based on the configured Fill Mode parameters, generating... Figure 10 The kernel model (i.e., tree core) shown in the right-hand area.

[0059] In the polyextrude node, checking "Output Back" indicates that the original surface (i.e., the outer surface before stretching) should be retained.

[0060] The Front Group is an output option used to store the new faces (i.e., inner surfaces) generated after the vertices are moved. It can automatically create a primitive group (extrudeFront group) that contains the inner surfaces formed by all the moved vertices.

[0061] The polyfill node is used to automatically fill open boundaries, that is, by detecting... Figure 10 The open edge (unclosed boundary) of the inner surface of the middle, to... Figure 10 The inner surface of the middle is sealed at both the top and bottom ends.

[0062] In some embodiments, in a scenario where the sub-model includes an outer shell model, cutting the sub-model to obtain a target sub-model containing multiple cutting blocks may include: first, performing a point-sprinkling process on the model surface of the outer shell model to obtain multiple first surface reference points located on the model surface; then, generating multiple cutting blocks on the model surface of the outer shell model based on the multiple first surface reference points.

[0063] Specifically, the above-mentioned point-scattering process can be random point-scattering or point-scattering according to preset rules. The specific processing method can be determined according to the needs, and there is no limitation here.

[0064] Specifically, the methods for generating multiple cutting blocks on the model surface of the shell model based on multiple first surface reference points include, but are not limited to: connecting the first surface reference points to each other on the model surface of the shell model to generate multiple cutting blocks, or generating cutting blocks corresponding to the first surface reference points around the first surface reference points on the model surface of the shell model.

[0065] For example, the scatter node in Houdini can be used, with the shell model as input. This causes the scatter node to perform point-scattering processing on the surface of the shell model based on configured scattering parameters (e.g., setting the Force Total Count value in the scatter node to 80 as the scattering parameter), to obtain 80 first surface reference points located on the model surface. Figure 11 As shown, Figure 11 The image shows multiple first surface reference points located on the model surface.

[0066] Then, using the voronoifracture node in Houdini, the shell model can be connected to port 1 as an input to the voronoifracture node, and multiple first surface reference points located on the model surface can be connected to port 2 as inputs to the voronoifracture node. Based on the multiple first surface reference points located on the model surface, the voronoifracture node can divide the model surface of the shell model into natural irregular fragments to generate multiple cut blocks on the model surface of the shell model. The number of first surface reference points is the number of cut blocks on the model surface of the shell model.

[0067] In some embodiments, in a scenario where the sub-model includes a kernel model, the sub-model is cut to obtain a target sub-model containing multiple cut blocks. This may include: first, determining multiple internal reference points inside the kernel model and multiple second surface reference points on the surface of the kernel model; then, generating multiple cut blocks inside and on the surface of the kernel model based on the multiple internal reference points and the second surface reference points.

[0068] Specifically, the aforementioned multiple second surface reference points located on the model surface of the kernel model can include: performing a point-scattering process on the model surface of the kernel model to obtain multiple second surface reference points located on the model surface of the kernel model. The point-scattering process can be random or based on preset rules; the specific method can be determined according to requirements and is not limited here.

[0069] Specifically, based on multiple internal reference points and second surface reference points, the methods for generating multiple cutting blocks inside and on the surface of the kernel model include, but are not limited to: connecting the internal reference points and second surface reference points to each other inside and on the surface of the kernel model to generate multiple cutting blocks, or generating corresponding cutting blocks around the internal reference points and second surface reference points inside and on the surface of the kernel model.

[0070] Specifically, determining multiple internal reference points within the kernel model can include: first, determining the central axis of the bounding box surrounding the kernel model and selecting multiple key points on the central axis; then, creating a facet facing a preset direction at each key point on the central axis and dividing the kernel model into multiple kernel sub-models based on the facets; finally, using the centroid of the kernel sub-model as the internal reference point within the kernel model.

[0071] All the panels are oriented in the same way, and the orientation of the panels matches the orientation of the central axis. For example, if the central axis is the horizontal central axis of the bounding box, then the panel is oriented upwards along the horizontal direction.

[0072] Optionally, since the two ends of the kernel model may have a smaller area due to the sealing process, such as a tip, in order to optimize the algorithm, the kernel sub-model can be updated based on the surface area of ​​multiple kernel sub-models, such as removing kernel sub-models whose surface area is less than or equal to a preset area threshold from multiple kernel sub-models.

[0073] For example, such as Figure 12 As shown, in scenarios where the sub-model includes the kernel model, the bound node in Houdini can be used to... Figure 12The kernel model in the left region is used as the input of the bound node. The bound node generates a bounding box around the kernel model. Then, the top and bottom faces of the bounding box are taken, and the center points of the two faces are connected to form a line as the central axis.

[0074] Then, you can use the resample node in Houdini, taking the center axis as input to the resample node, and subdivide the center axis through the resample node to select multiple key points on the center axis.

[0075] Then, you can use the grid node in Houdini to create a planar grid, that is, generate a quadrilateral grid on the XY plane.

[0076] Then, using the copytopoints node in Houdini, a line segment formed by selecting multiple key points on the central axis can be used as an input to the copytopoints node and connected to port 2. The grid node can be connected to port 1 of the copytopoints node, and a face facing a preset direction can be created at each key point on the central axis of the copytopoints node.

[0077] Then, the matchzise node in Houdini can be used to create patches at each keypoint on the central axis that face the preset direction and match the size of the bounding box around the kernel model.

[0078] Then, the boolean node in Houdini can be used to perform boolean operations between the output of the matchzise node and the kernel model to divide the kernel model into multiple kernel sub-models (similar to the multiple layers of a mille-feuille). Based on the surface area of ​​the kernel sub-models, kernel sub-models with a surface area less than or equal to a preset area threshold can be removed from the multiple kernel sub-models.

[0079] Then, the foreach node in Houdini can be used to operate on each kernel sub-model, that is, to delete the top and bottom faces of the kernel sub-model within the foreach node, and only keep the side faces of the kernel sub-model.

[0080] Then, the centroid point on the side of the kernel submodel can be obtained using the extra centroid node in Houdini. This centroid point is located inside the kernel submodel and serves as an internal reference point.

[0081] Then, the scatter node in Houdini can be used to take the side of the kernel sub-model as input to the scatter node, so that the scatter node can perform scattering on the side of the kernel sub-model based on the configured scattering parameters (such as setting the Force TotalCount value in the scatter node to 4 as the scattering parameter) to obtain multiple second surface reference points on the model surface of the kernel model.

[0082] Then, the fuse node in Houdini can be used to take the centroid of the side of the kernel sub-model as input to the fuse node, and the centroids that are less than the preset distance threshold (such as 0.5 meters) can be merged to reduce the number of internal cuts.

[0083] Finally, the voronoifracture node in Houdini can be used. The kernel model can be connected to port 1 as one input to the voronoifracture node, and the internal reference point and multiple second surface reference points located on the model surface can be connected to port 2 as inputs to the voronoifracture node. Based on the internal reference point and the multiple second surface reference points on the model surface, the voronoifracture node can segment the kernel model into natural, irregular fragments, generating multiple cut blocks on the surface and inside the kernel model. Figure 12 The right-hand area shows a kernel model containing multiple cut blocks. The number of internal reference points and the number of second surface reference points represent the number of cut blocks in the kernel model.

[0084] In some embodiments, to cut out the shape of a felled tree, the first model can be stretched vertically first, then cut using the Voronoi method, and finally scaled back to its original size. The Voronoi method is used to instruct the model to be cut into multiple irregular polygonal blocks.

[0085] Specifically, the first model is cut to obtain a target first model containing multiple cut blocks, including: first, the first model is stretched to obtain a stretched third model; then, the third model is marked with points to obtain multiple reference points on the third model; then, corresponding cut blocks are generated based on the reference points on the third model to obtain a fourth model containing multiple cut blocks; finally, the fourth model is restored to its original size to obtain the target first model containing multiple cut blocks.

[0086] The step of performing point-spreading processing on the third model to obtain multiple reference points located on the third model can be found in the above-described process of generating the first surface reference point, the second surface reference point, and the internal reference point.

[0087] The step of generating corresponding cutting blocks based on reference points on the third model to obtain a fourth model containing multiple cutting blocks can be found in the process of generating corresponding cutting blocks based on the first surface reference point, the second surface reference point, and the internal reference point mentioned above.

[0088] For example, if the first model includes an outer shell model and a kernel model, the outer shell model and the kernel model can be resized separately during the generation of the segmentation blocks of the first model, such as... Figure 13 As shown, they can be respectively... Figure 13 The original bark (i.e., the outer shell model) and the original core (i.e., the kernel model) are longitudinally stretched. Then, the stretched bark and core are cut separately to generate multiple cut blocks on the stretched bark and core. Finally, the dimensions of the stretched bark and core containing multiple cut blocks are restored. Figure 13 It is evident that the cut blocks produced after cutting the stretched bark and core are relatively uniform, and the horizontal stretching of the cut blocks on the bark and core after size restoration is more consistent with the effect of the vegetation model after being cut down.

[0089] For example, if the shell model and kernel model are stretched vertically by 5 times, then the shell model and kernel model containing the cutting blocks can be restored to their original size using the transform node in Houdini. For example, the scale of the axis can be set to 1 / 5, which is 0.2, in the transform node to achieve a vertical scaling of 5 times.

[0090] In some embodiments, after cutting the first model to obtain a target first model containing multiple cut blocks, the method further includes: for each cut block on the target first model, calculating the vertex distance between vertices on the cut block; and then merging vertices on the cut block whose vertex distance is less than a preset distance threshold to obtain an updated cut block.

[0091] For example, for a shell model, the shell model containing multiple cut blocks is connected to a foreach node. Each individual cut block can be processed. Within the foreach loop, a grouppromote node is created to convert the extrudeFront group (which may include the shell model or the faces generated by the extrude shell model) from a face group to a point group. A fuse node is created to process the point group, that is, to merge the internal points (extrudeFront group) according to the minimum distance. For example, it can be set to 0.05 to indicate that points with a distance of less than 0.05 meters are merged. Finally, a divide node is connected to convert the model's faces into triangles.

[0092] For example, for a kernel model, a kernel model containing multiple cut blocks is connected to a foreach node. The foreach node can process each individual cut block. A fuse node is created within the foreach loop to merge points according to the minimum distance. For example, 0.02 can be set to indicate that points with a distance of less than 0.02 meters are merged. Finally, a divide node is connected to convert the model's faces into triangles.

[0093] Understandably, merging points on cut blocks can optimize model rendering performance. For example, in some scenarios, it can reduce the number of points in the shell model from 3759 to 2651 and the number of points in the kernel model from 3146 to 2225, achieving an optimization of 30%.

[0094] Step 104: Merge the first target model and the second target model to obtain a target model with a broken interactive effect, so as to render the broken interactive effect of the target model by processing the cut blocks of the first target model.

[0095] In this embodiment, by merging the processed model with other models, a target model with fragmented interactive effects is automatically generated, thereby improving the generation efficiency of the model corresponding to the interactive effects.

[0096] Optionally, before merging the target first model and the second model, the second model can be processed by applying a cover, such as... Figure 14 As shown, the second model is covered using a polyfill node. This allows the gap created at the junction of the second and first models to be covered when the second and first models separate. Figure 14 The fill mode set in the polyfill node ( Figure 14 The Fill Mode in the diagram can be a triangle ( Figure 14 (triangles in the text).

[0097] For example, the first and second target models are merged, such as... Figure 15 As shown, Figure 15 For the merged target model, Figure 15 The region containing multiple cut blocks is the location of the target first model.

[0098] In some embodiments, in a scenario where at least two sub-models are generated based on a first model and the sub-models are cut to obtain a target sub-model containing multiple cut blocks, merging the target first model and the second model to obtain a target model with a shattering interaction effect may include: merging the target sub-model and the second model to obtain a target model with a shattering interaction effect.

[0099] This can be done simultaneously by merging the target sub-model and the second model; or, multiple target sub-models can be merged into a target first model first, and then the target first model and the second model can be merged. The specific configuration can be set according to the requirements and is not limited here.

[0100] In some embodiments, after merging the first target model and the second target model to obtain a target model with a shattering interaction effect, the method further includes: in response to a triggering event for the shattering interaction effect on the target model, determining an effect indication parameter indicated by the triggering event; based on the effect indication parameter, determining a target segment to be rendered from the segmented blocks of the first target model; and rendering the target segment on the target model to generate the shattering interaction effect of the target model.

[0101] The effect indication parameters may include, but are not limited to, the number of attacks on the target model, the attack damage attribute, and the attack location on the target model.

[0102] It is understandable that the more times the same attack location is attacked and / or the more attack damage attributes there are, the larger the range of the cutting block selection centered on the attack location will be, and the cutting blocks within the cutting block selection range will be determined as the target cutting blocks.

[0103] Specifically, multiple target models can be configured with the first target model at different positions. Then, based on the attack position in the effect indicator parameter, the target model with the attack position on the first target model can be selected. Based on the effect indicator parameter, the target cutting block to be rendered is determined from the selected target model. Then, the cutting blocks other than the target cutting block are removed, so that the target model with only the target cutting block is rendered, thereby generating a target model with a broken interactive effect at a specific position.

[0104] Specifically, during the rendering process of the target segment on the target model, a two-dimensional texture image can be obtained. Through UV mapping, the two-dimensional texture image can be mapped onto the target segment of the three-dimensional target model to achieve surface texture mapping of the segment.

[0105] Understandably, by completing the most resource-intensive and time-consuming model generation and optimization work—that is, generating the target model—offline (i.e., during game development), the game engine can minimize runtime overhead by simply obtaining effect indicator parameters and rendering the existing model. The game engine only needs to perform simple model instantiation, without needing to perform complex real-time geometric calculations or mesh simplification. This ensures both visual quality and smooth game operation, supporting game platforms with varying performance sensitivities, such as large open-world games or mobile platforms.

[0106] In some embodiments, the target model can be encapsulated using HDA (Houdini Digital Asset), which packages and encapsulates a complex network of nodes into a single, clean node. This allows for the output of the corresponding target model simply by setting the appropriate parameters. By utilizing procedural tools like Houdini to build an automated generation pipeline, the time spent on manual operations is avoided. By simply setting the parameters, a target model with fragmented interactive effects can be generated, significantly improving production efficiency, shortening the asset creation cycle, and reducing development costs. During the encapsulation process, the HDA display mode is divided into four types: breakage range indication parameter setting mode, cutting parameter setting mode, tree preview mode, and output mode.

[0107] In the crushing range indication parameter setting mode, a first parameter setting panel is displayed to set the crushing range indication parameters, such as setting the height information in the crushing range indication parameters to 0.6, setting the width information in the crushing range indication parameters to 2.5, and setting the range size in the crushing range indication parameters to 1.

[0108] In the cutting parameter setting mode, a first parameter setting panel is displayed, in which cutting parameters are set, such as setting the thickness parameter in the cutting parameters to 2 cm (i.e., the thickness of the shell model is 2 cm) and setting the scattering parameter in the cutting parameters to 80 (i.e., the number of cutting blocks of the model is 80).

[0109] In the tree preview mode, a visual representation of the target model after merging the first and second target models can be previewed, allowing users to check whether the currently generated target model meets their expectations.

[0110] In the output mode, temporary attribute parameters generated during the creation of the first target model (such as the value of calculating the surface area of ​​the kernel model) can be deleted, and only the final target model can be output to reduce the model's space footprint.

[0111] As can be seen from the above, by using the fracture range indicator parameter set for the initial model to be processed, the fracture interaction model area on the initial model is determined; the fracture interaction model area is separated from the initial model to obtain a first model containing the fracture interaction model area and the remaining second model; the first model is cut to obtain a target first model containing multiple cut blocks; the target first model and the second model are merged to obtain a target model with fracture interaction effect, so as to render the fracture interaction effect of the target model by processing the cut blocks of the target first model. Thus, by automatically separating the model to be processed from the initial model based on parameters and merging the processed model with other models, the target model with fracture interaction effect is automatically generated, thereby improving the generation efficiency of the model corresponding to the interaction effect.

[0112] This embodiment also provides a model processing device, which can be integrated into a terminal device. For example, such as Figure 16 As shown, the model processing device may include: The region determination module 1601 is used to determine the crushing interaction model region on the initial model based on the crushing range indication parameters set for the initial model to be processed. The model separation module 1602 is used to separate the broken interactive model region from the initial model to obtain a first model containing the broken interactive model region and the remaining second model; The model cutting module 1603 is used to cut the first model to obtain a target first model containing multiple cutting blocks; The model merging module 1604 is used to merge the first target model and the second target model to obtain a target model with a shattering interactive effect, so as to render the shattering interactive effect of the target model by processing the cut blocks of the first target model.

[0113] In some embodiments, the model cutting module 1603 is specifically used for: At least two sub-models are generated based on the first model, and the at least two sub-models are nested within the first model. The sub-model is cut to obtain a target sub-model containing multiple cut blocks; Model merging module 1604 is specifically used for: The target sub-model and the second model are merged to obtain a target model with fragmented interaction effects.

[0114] In some embodiments, at least two sub-models include a shell model and a kernel model, and the model cutting module 1603 is specifically used for: Based on the thickness parameters configured for the shell model, the vertices of the outer surface of the first model are controlled to move inward along the corresponding normals to generate the inner surface of the first model. Based on the outer and inner surfaces of the first model, a shell model is generated; The inner surface of the first model is sealed to generate the kernel model.

[0115] In some embodiments, the model cutting module 1603 is specifically used for: The surface of the shell model is marked with points to obtain multiple first surface reference points located on the model surface; Based on multiple first surface reference points, multiple cutting blocks are generated on the model surface of the shell model.

[0116] In some embodiments, the model cutting module 1603 is specifically used for: Identify multiple internal reference points within the kernel model and multiple second surface reference points on the surface of the kernel model; Based on multiple internal reference points and a second surface reference point, multiple cutting blocks are generated inside the kernel model and on the model surface.

[0117] In some embodiments, the model cutting module 1603 is specifically used for: Determine the central axis of the bounding box around the kernel model, and select multiple key points on the central axis; Create a facet facing a preset direction at each key point on the central axis, and divide the kernel model into multiple kernel sub-models based on the facets; The centroid of the kernel sub-model is used as the internal reference point within the kernel model.

[0118] In some embodiments, the model cutting module 1603 is specifically used for: The first model is stretched to obtain the stretched third model; The third model is processed by scattering points to obtain multiple reference points located on the third model; Based on the reference points on the third model, corresponding cutting blocks are generated to obtain a fourth model containing multiple cutting blocks; The fourth model is subjected to size restoration processing to obtain the target first model containing multiple cutting blocks.

[0119] In some embodiments, the model processing apparatus further includes an update module, which is specifically used for: For each cut block on the target first model, calculate the vertex distance between each vertex on the cut block; Vertices in the cut block whose vertex distance is less than a preset distance threshold are merged to obtain the updated cut block.

[0120] In some embodiments, the region determination module 1601 is specifically used for: Based on the breakage range indication parameters set for the initial model to be processed, a target bounding box is generated on the initial model, wherein the target bounding box surrounds the breakage interaction model region on the initial model; The model separation module 1602 is specifically used for: The target bounding box is deformed to obtain the deformed target bounding box; In the initial model, the parts that overlap with the deformed target bounding box are separated into a first model containing the broken interactive model region, and the parts that do not overlap with the deformed target bounding box are separated into a second model.

[0121] In some embodiments, the model processing apparatus further includes a rendering module, which is specifically used for: In response to a trigger event for a breakage interaction effect on the target model, determine the effect indication parameters indicated by the trigger event; Based on the effect indication parameters, the target cut block to be rendered is determined from the cut blocks of the target first model; The target cut blocks on the target model are rendered to generate a broken interactive effect of the target model.

[0122] As can be seen from the above, by using the fracture range indicator parameter set for the initial model to be processed, the fracture interaction model area on the initial model is determined; the fracture interaction model area is separated from the initial model to obtain a first model containing the fracture interaction model area and the remaining second model; the first model is cut to obtain a target first model containing multiple cut blocks; the target first model and the second model are merged to obtain a target model with fracture interaction effect, so as to render the fracture interaction effect of the target model by processing the cut blocks of the target first model. Thus, by automatically separating the model to be processed from the initial model based on parameters and merging the processed model with other models, the target model with fracture interaction effect is automatically generated, thereby improving the generation efficiency of the model corresponding to the interaction effect.

[0123] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Alternatively, the electronic device can be a server.

[0124] like Figure 17 As shown, Figure 17This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 1700 includes a processor 1701 with one or more processing cores, a memory 1702 with one or more computer-readable storage media, and a computer program stored on the memory 1702 and executable on the processor. The processor 1701 and the memory 1702 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0125] The processor 1701 is the control center of the electronic device 1700. It connects various parts of the electronic device 1700 via various interfaces and lines. By running or loading software programs and / or units stored in the memory 1702, and by calling data stored in the memory 1702, it executes various functions and processes data of the electronic device 1700, thereby providing overall monitoring of the electronic device 1700. The processor 1701 can be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc., and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application.

[0126] In this embodiment, the processor 1701 in the electronic device 1700 loads the instructions corresponding to the processes of one or more applications into the memory 1702 according to the following steps, and the processor 1701 runs the applications stored in the memory 1702 to realize various functions, such as: Based on the crushing range indication parameters set for the initial model to be processed, the crushing interaction model region on the initial model is determined; The broken interaction model region is separated from the initial model to obtain a first model containing the broken interaction model region and the remaining second model; The first model is cut to obtain a target first model containing multiple cut blocks; The first and second target models are merged to obtain a target model with a shattering interactive effect, and the shattering interactive effect of the target model is rendered by processing the cut blocks of the first target model.

[0127] Therefore, the electronic device 1700 provided in this embodiment can bring the following technical effects: improve the generation efficiency of the model corresponding to the interactive special effects.

[0128] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0129] Optional, such as Figure 17As shown, the electronic device 1700 also includes: a touch display screen 1703, a radio frequency circuit 1704, an audio circuit 1705, an input unit 1706, and a power supply 1707. The processor 1701 is electrically connected to the touch display screen 1703, the radio frequency circuit 1704, the audio circuit 1705, the input unit 1706, and the power supply 1707. Those skilled in the art will understand that... Figure 17 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0130] The touch display screen 1703 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 1703 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1701. It can also receive and execute commands from the processor 1701. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1701 to determine the type of touch event. Subsequently, the processor 1701 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 1703 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 1703 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 1703 can also be used as part of the input unit 1706 to achieve input functions.

[0131] The radio frequency circuit 1704 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0132] Audio circuitry 1705 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuitry 1705 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 1705, converted back into audio data, and processed by processor 1701 before being transmitted via radio frequency circuitry 1704 to, for example, another electronic device, or output to memory 1702 for further processing. Audio circuitry 1705 may also include an earphone jack to facilitate communication between peripheral headphones and electronic devices.

[0133] The input unit 1706 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0134] Power supply 1707 is used to power the various components of electronic device 1700. Optionally, power supply 1707 can be logically connected to processor 1701 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 1707 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0135] although Figure 17 As not shown in the diagram, the electronic device 1700 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0136] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0137] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0138] Therefore, embodiments of this application provide a computer-readable storage medium storing multiple computer programs that can be loaded by a processor to execute any of the model processing methods provided in this application. The computer program can execute the steps of the following model processing method: Based on the crushing range indication parameters set for the initial model to be processed, the crushing interaction model region on the initial model is determined; The broken interaction model region is separated from the initial model to obtain a first model containing the broken interaction model region and the remaining second model; The first model is cut to obtain a target first model containing multiple cut blocks; The first and second target models are merged to obtain a target model with a shattering interactive effect, and the shattering interactive effect of the target model is rendered by processing the cut blocks of the first target model.

[0139] As can be seen, the computer program can be loaded by the processor to execute any of the model processing methods provided in the embodiments of this application, thereby bringing about the following technical effects: improving the generation efficiency of the model corresponding to the interactive effects.

[0140] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0141] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0142] Since the computer program stored in the computer-readable storage medium can execute any of the model processing methods provided in the embodiments of this application, it can achieve the beneficial effects that any of the model processing methods provided in the embodiments of this application can achieve, as detailed in the preceding embodiments, and will not be repeated here.

[0143] According to one aspect of this application, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations of the above embodiments.

[0144] In the above embodiments of the model processing apparatus, computer-readable storage medium, electronic device, and computer program product, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the model processing apparatus, computer-readable storage medium, computer program product, electronic device, and their corresponding units described above can be referred to the description of the model processing method in the above embodiments, and will not be repeated here.

[0145] The foregoing has provided a detailed description of a model processing method, apparatus, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A model processing method, characterized in that, The method includes: Based on the crushing range indication parameters set for the initial model to be processed, the crushing interaction model region on the initial model is determined; The broken interaction model region is separated from the initial model to obtain a first model containing the broken interaction model region and the remaining second model; The first model is cut to obtain a target first model containing multiple cut blocks; The first target model and the second target model are merged to obtain a target model with a shattering interactive effect, so as to render the shattering interactive effect of the target model by processing the cut blocks of the first target model.

2. The model processing method as described in claim 1, characterized in that, The step of cutting the first model to obtain a target first model containing multiple cut blocks includes: At least two sub-models are generated based on the first model, and the at least two sub-models are nested within the first model; The sub-model is cut to obtain a target sub-model containing multiple cut blocks; The step of merging the first target model and the second target model to obtain a target model with fragmented interaction effects includes: The target sub-model and the second model are merged to obtain a target model with fragmented interaction effects.

3. The model processing method as described in claim 2, characterized in that, The at least two sub-models include a shell model and a kernel model, and the generation of at least two sub-models based on the first model includes: Based on the thickness parameters configured for the shell model, the vertices of the outer surface of the first model are controlled to move inward along the corresponding normal to generate the inner surface of the first model. The outer shell model is generated based on the outer surface and the inner surface of the first model; The inner surface of the first model is sealed to generate the kernel model.

4. The model processing method as described in claim 3, characterized in that, The process of cutting the sub-model to obtain a target sub-model containing multiple cut blocks includes: The surface of the shell model is marked with dots to obtain multiple first surface reference points located on the surface of the model. Based on multiple first surface reference points, multiple cutting blocks are generated on the model surface of the shell model.

5. The model processing method as described in claim 3, characterized in that, The process of cutting the sub-model to obtain a target sub-model containing multiple cut blocks includes: Determine multiple internal reference points located inside the model of the kernel model, and multiple second surface reference points located on the model surface of the kernel model; Based on the multiple internal reference points and the second surface reference point, multiple cutting blocks are generated inside the kernel model and on the model surface.

6. The model processing method as described in claim 5, characterized in that, The determination of multiple internal reference points located within the kernel model includes: Determine the central axis of the bounding box surrounding the kernel model, and select multiple key points on the central axis; Create a facet facing a preset direction at each key point on the central axis, and divide the kernel model into multiple kernel sub-models based on the facets; The centroid of the kernel sub-model is used as the internal reference point within the kernel model.

7. The model processing method as described in claim 1, characterized in that, The step of cutting the first model to obtain a target first model containing multiple cut blocks includes: The first model is stretched to obtain the stretched third model; The third model is subjected to a point-spreading process to obtain multiple reference points located on the third model; Based on the reference points on the third model, corresponding cutting blocks are generated to obtain a fourth model containing multiple cutting blocks; The fourth model is subjected to size restoration processing to obtain a target first model containing multiple cutting blocks.

8. The model processing method as described in claim 1, characterized in that, After cutting the first model to obtain a target first model containing multiple cut blocks, the process further includes: For each cut block on the target first model, calculate the vertex distance between each vertex on the cut block; Vertices in the cutting block whose vertex distance is less than a preset distance threshold are merged to obtain an updated cutting block.

9. The model processing method as described in claim 1, characterized in that, The determination of the breakage interaction model region on the initial model based on the breakage range indication parameters set for the initial model to be processed includes: Based on the breakage range indication parameters set for the initial model to be processed, a target bounding box is generated on the initial model, wherein the target bounding box surrounds the breakage interaction model region on the initial model; The step of separating the fragmented interaction model region from the initial model to obtain a first model containing the fragmented interaction model region and the remaining second model includes: The target bounding box is deformed to obtain the deformed target bounding box; In the initial model, the parts that overlap with the deformed target bounding box are separated into a first model containing the broken interactive model region, and the parts that do not overlap with the deformed target bounding box are separated into a second model.

10. The model processing method according to any one of claims 1 to 9, characterized in that, After merging the first target model and the second target model to obtain a target model with fragmented interaction effects, the method further includes: In response to a trigger event for a breaking interaction effect on the target model, determine the effect indication parameters indicated by the trigger event; Based on the effect indication parameters, the target cut block to be rendered is determined from the cut blocks of the target first model; The target segment on the target model is rendered to generate a broken interactive effect of the target model.

11. A model processing device, characterized in that, The device includes: The region determination module is used to determine the crushing interaction model region on the initial model based on the crushing range indication parameter set for the initial model to be processed; The model separation module is used to separate the broken interactive model region from the initial model to obtain a first model containing the broken interactive model region and the remaining second model; The model cutting module is used to cut the first model to obtain a target first model containing multiple cutting blocks; The model merging module is used to merge the target first model and the second model to obtain a target model with a shattering interactive effect, so as to render the shattering interactive effect of the target model by processing the cut blocks of the target first model.

12. An electronic device, characterized in that, It includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps of the model processing method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the model processing method as described in any one of claims 1 to 10.