Search

CN-121982198-A - Model processing method and device, electronic equipment and storage medium

CN121982198ACN 121982198 ACN121982198 ACN 121982198ACN-121982198-A

Abstract

The embodiment of the application discloses a model processing method, a device, electronic equipment and a computer readable storage medium, wherein a crushing interactive model area on an initial model to be processed is determined based on crushing range indication parameters set for the initial model; separating the crushing interaction model area from the initial model to obtain a first model containing the crushing 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 the crushing interaction effect so as to render the crushing interaction effect of the target model through the cutting blocks for processing the target first model. The method and the device can improve the generation efficiency of the model corresponding to the interaction special effect.

Inventors

  • Li Chensi
  • YU JIALING
  • SUN YAN

Assignees

  • 网易(杭州)网络有限公司

Dates

Publication Date
20260505
Application Date
20251230

Claims (13)

  1. 1. A method of model processing, the method comprising: Determining a crushing interaction model area on an initial model to be processed based on a crushing range indication parameter set for the initial model; separating the broken interaction model region from the initial model to obtain a first model containing the broken interaction model region 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 crushing interaction effect, so as to render the crushing interaction effect of the target model by processing the cutting block of the target first model.
  2. 2. The model processing method according to claim 1, wherein the performing a cutting process on the first model to obtain a target first model including a plurality of cutting blocks includes: Generating at least two sub-models based on the first model, the at least two sub-models being nested within each other in the first model; Cutting the submodel to obtain a target submodel comprising a plurality of cutting blocks; Combining the target first model and the second model to obtain a target model with a crushing interaction effect, wherein the method comprises the following steps: And merging the target sub-model and the second model to obtain a target model with a crushing interaction effect.
  3. 3. The model processing method of claim 2, wherein the at least two sub-models include an outer shell model and an inner core model, the generating at least two sub-models based on the first model comprising: controlling vertices of an outer surface of the first model to move inward along corresponding normals based on thickness parameters configured for the shell model, generating an inner surface of the first model; generating the shell model based on the outer surface and the inner surface of the first model; and sealing the inner surface of the first model to generate the kernel model.
  4. 4. A model processing method according to claim 3, wherein said performing a cutting process on said submodel to obtain a target submodel comprising a plurality of cut blocks comprises: Performing point scattering treatment on the model surface of the shell model to obtain a plurality of first surface reference points positioned on the model surface; a plurality of cutting blocks is generated at a model surface of the housing model based on a plurality of the first surface reference points.
  5. 5. A model processing method according to claim 3, wherein said performing a cutting process on said submodel to obtain a target submodel comprising a plurality of cut blocks comprises: determining a plurality of internal reference points internal to a model of the kernel model, and a plurality of second surface reference points at a model surface of the kernel model; A plurality of cutting blocks are generated within and on a model surface of the core model based on a plurality of the internal reference points and the second surface reference points.
  6. 6. The model processing method of claim 5, wherein said determining a plurality of internal reference points within a model of said kernel model comprises: determining a central axis of a bounding box surrounding the kernel model, and selecting a plurality of key points on the central axis; Creating a patch facing a preset direction at each key point on the central axis, and dividing the kernel model into a plurality of kernel sub-models based on the patch; And taking the gravity center point of the kernel sub-model as an internal reference point inside the model of the kernel model.
  7. 7. The model processing method according to claim 1, wherein the performing a cutting process on the first model to obtain a target first model including a plurality of cutting blocks includes: Stretching the first model to obtain a stretched third model; Performing point scattering processing on the third model to obtain a plurality of reference points positioned on the third model; generating corresponding cutting blocks based on the reference points on the third model to obtain a fourth model containing a plurality of cutting blocks; and performing size reduction treatment on the fourth model to obtain a target first model containing a plurality of cutting blocks.
  8. 8. The model processing method according to claim 1, further comprising, after performing a cutting process on the first model to obtain a target first model including a plurality of cutting blocks: Calculating vertex distances between vertices on the cutting blocks for each cutting block on the target first model; and combining the vertexes with the vertex distances smaller than a preset distance threshold value on the cutting blocks to obtain updated cutting blocks.
  9. 9. The model processing method according to claim 1, wherein the determining a crush interaction model region on an initial model to be processed based on a crush range indicating parameter set for the initial model includes: Generating a target bounding box on an initial model to be processed based on a crushing range indication parameter set for the initial model, wherein the target bounding box encloses a crushing interaction model area on the initial model; said separating the crushed interaction model region from the initial model resulting in a first model comprising the crushed interaction model region and a remaining second model comprising: Performing deformation treatment on the target bounding box to obtain a deformed target bounding box; In the initial model, a part overlapping the deformed target bounding box is separated into a first model including the broken interaction model region, and a part not overlapping the deformed target bounding box is separated into a second model.
  10. 10. The model processing method according to any one of claims 1 to 9, characterized by further comprising, after merging the target first model and the second model to obtain a target model having a crushing interaction effect: determining an effect indication parameter indicated by a trigger event in response to the trigger event of the crushing interaction effect aiming at the target model; determining a target cutting block to be rendered from the cutting blocks of the target first model based on the effect indication parameter; and rendering the target cutting block on the target model to generate a crushing interaction effect of the target model.
  11. 11. A model processing apparatus, characterized in that the apparatus comprises: The region determining module is used for determining a crushing interaction model region on the initial model based on crushing range indication parameters set for the initial model to be processed; a model separation module for separating the broken interaction model region from the initial model to obtain a first model containing the broken interaction model region and a remaining second model; the model cutting module is used for cutting the first model to obtain a target first model comprising a plurality of cutting blocks; And the model merging module is used for merging the target first model and the second model to obtain a target model with a crushing interaction effect, so as to render the crushing interaction effect of the target model by processing the cutting block of the target first model.
  12. 12. An electronic device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and wherein the processor loads instructions from the memory to perform the steps of the model processing method according to any one of claims 1 to 10.
  13. 13. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor for performing the steps of the model processing method according to any one of claims 1 to 10.

Description

Model processing method and device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of model processing, and in particular relates to a model processing method, a device, electronic equipment and a storage medium. Background In the wave of the internet, entertainment projects are becoming more and more important in people's life, and in order to meet the requirement that specific interaction actions in some entertainment projects (such as cartoon movies and games) produce corresponding interaction special effects, the entertainment projects need to be presented by using a model with the corresponding interaction special effects. At present, in order to realize the interactive special effect, a user needs to manually model, namely manually make model resources corresponding to the interactive special effect, and then construct a model matched with the interactive special effect based on the corresponding model resources, so that the generation efficiency of the model corresponding to the interactive special effect is lower. Disclosure of Invention The embodiment of the application provides a model processing method, a device, electronic equipment and a storage medium, which can improve the generation efficiency of a model corresponding to an interactive special effect. In a first aspect, an embodiment of the present application provides a method for processing a model, where the method includes: determining a crushing interaction model area on an initial model based on crushing range indication parameters set for the initial model to be processed; separating the broken interaction model region from the initial model to obtain a first model comprising the broken interaction model region 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 crushing interaction effect, so as to render the crushing interaction effect of the target model by processing the cutting block of the target first model. In a second aspect, an embodiment of the present application provides a model processing apparatus, where the apparatus includes: the area determining module is used for determining a crushing interactive model area on the initial model based on crushing range indication parameters set for the initial model to be processed; The model separation module is used for separating the broken interaction model area from the initial model to obtain a first model containing the broken interaction model area and a remaining second model; The model cutting module is used for cutting the first model to obtain a target first model containing a plurality of cutting blocks; And the model merging module is used for merging the target first model and the second model to obtain a target model with a crushing interaction effect, so as to render the crushing interaction effect of the target model through a cutting block for processing the target first model. In a third aspect, an embodiment of the present application further provides an electronic device, including a memory storing a plurality of instructions, and a processor loading the instructions from the memory to execute the steps of any one of the model processing methods provided in the embodiments of the present application. In a fourth aspect, embodiments of the present application further provide a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of any of the model processing methods provided by the embodiments of the present application. In a fifth aspect, embodiments of the present application further provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of any of the model processing methods provided by the embodiments of the present application. By adopting the scheme of the embodiment of the application, the crushing interaction model area on the initial model can be determined based on the crushing range indication parameters set for the initial model to be processed, the crushing interaction model area is separated from the initial model to obtain the first model containing the crushing interaction model area and the rest second model, the first model is cut to obtain the target first model containing a plurality of cutting blocks, the target first model and the second model are combined to obtain the target model with the crushing interaction effect, the crushing interaction effect of the target model is rendered through the cutting blocks for processing the target first model, the model to be processed is automatically separated from the initial model based on the parameters, the processed model is combined with other models, the target model with the crushing interaction effect is automatically gene