Model processing method and device, storage medium and electronic equipment

By acquiring and segmenting the bounding box model of the control model, determining the segmentation plane movement parameters, the problem of low model processing efficiency in the prior art is solved, and the target deformation motion special effect generation is achieved that simplifies generation difficulty and improves efficiency.

CN119680188AActive Publication Date: 2025-03-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411754644.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-03-25
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

The existing model processing methods have complicated processes to generate model deformation motion special effects such as spatial collapse, and are difficult to generate, resulting in low model processing efficiency.

Method used

By obtaining the control model, creating a bounding box model, segmenting the target plane based on the control point position, determining the segmented plane movement parameters, and achieving the target deformation motion special effect.

Benefits of technology

It simplifies the difficulty of generating target deformation motion special effects, improves model processing efficiency, and achieves the rapid generation of infinite loop inward collapse and other special effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119680188A_ABST
    Figure CN119680188A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a model processing method and device, a storage medium and electronic equipment. A control model is obtained, and a plurality of control points are arranged on the control model; creating a bounding box model of the bounding control model, and determining a target plane facing the virtual camera in the bounding box model; segmenting the target plane based on the current positions of the plurality of control points to obtain segmented planes corresponding to the control points in the target plane; moving parameters required by the segmented planes for achieving the target deformation motion special effect are determined, and the moving parameters of at least two segmented planes are different; and controlling the segmentation plane to move according to the movement parameters to obtain a target model with a target deformation movement special effect. Therefore, by simulating the target plane with the fission effect and moving the segmentation plane in the target plane, the target model with the target deformation motion special effect can be generated, the generation difficulty of the target deformation motion special effect is simplified, and then the model processing efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a model processing method, device, storage medium and electronic device. Background Art

[0002] With the rapid development of life and technology, people often use game applications for entertainment. In some games, it is usually necessary to create some special effects to enhance the game effect. For example, by processing the three-dimensional model to generate deformation motion effects such as ground cracks and collapses.

[0003] In the process of research and practice of existing technologies, it was found that the process of generating model deformation and motion effects such as space collapse by existing model processing methods is relatively complicated and difficult to generate, resulting in low model processing efficiency. Summary of the invention

[0004] The embodiments of the present application provide a model processing method, device, storage medium and electronic device, which can generate a target model with target deformation and motion effects, simplify the difficulty of generating target deformation and motion effects, and effectively improve the model processing efficiency.

[0005] The present application embodiment provides a model processing method, including:

[0006] Acquire a control model, wherein a plurality of control points are set on the control model;

[0007] Creating a bounding box model surrounding the control model, and determining a target plane in the bounding box model facing the virtual camera;

[0008] Based on the current positions of the plurality of control points, the target plane is segmented to obtain a segmentation plane corresponding to each control point in the target plane;

[0009] Determining movement parameters required for each of the segmentation planes to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different;

[0010] The movement of the segmentation plane is controlled according to the movement parameters to obtain a target model with target deformation motion effects.

[0011] Accordingly, an embodiment of the present application provides a model processing device, including:

[0012] An acquisition unit, used for acquiring a control model, wherein a plurality of control points are arranged on the control model;

[0013] A creating unit, used to create a bounding box model surrounding the control model, and determine a target plane in the bounding box model facing the virtual camera;

[0014] A segmentation unit, configured to segment the target plane based on current positions of the plurality of control points, to obtain a segmentation plane corresponding to each control point in the target plane;

[0015] A determination unit, used to determine movement parameters required for each of the segmentation planes to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different;

[0016] The control unit is used to control the movement of the segmentation plane according to the movement parameters to obtain a target model with target deformation motion effects.

[0017] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for loading by a processor to execute the steps in any model processing method provided in the embodiment of the present application.

[0018] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores an application, and the processor is used to run the application in the memory to implement the model processing method provided in the embodiment of the present application.

[0019] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps in the model processing method provided in the embodiment of the present application.

[0020] The embodiment of the present application obtains a control model, on which a plurality of control points are set; creates a bounding box model surrounding the control model, determines a target plane in the bounding box model facing a virtual camera; based on the current positions of the plurality of control points, segments the target plane to obtain segmentation planes corresponding to the control points in the target plane; determines the movement parameters required for each segmentation plane to achieve target deformation motion effects, wherein the movement parameters of at least two segmentation planes are different; controls the movement of the segmentation planes according to the movement parameters to obtain a target model with target deformation motion effects. In this way, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of the plurality of control points in the control model, so as to construct a plane simulating a fission effect based on each segmentation plane, so as to obtain a target model with target deformation motion effects by controlling the movement of each segmentation plane according to the movement parameters, so as to achieve the generation of target deformation motion effects such as space collapse, simplify the difficulty of generating target deformation motion effects, and thus effectively improve the model processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 It is a schematic diagram of an implementation scenario of a model processing method provided in an embodiment of the present application;

[0023] Figure 2 It is a flow chart of a model processing method provided in an embodiment of the present application;

[0024] Figure 3a It is a schematic diagram of an initial control model of a model processing method provided in an embodiment of the present application;

[0025] Figure 3b It is a control model schematic diagram of a model processing method provided in an embodiment of the present application;

[0026] Figure 3c is a target plane schematic diagram of a model processing method provided in an embodiment of the present application;

[0027] Figure 3d It is a schematic diagram of a segmentation plane of a model processing method provided in an embodiment of the present application;

[0028] Figure 3e is another segmentation plane schematic diagram of a model processing method provided in an embodiment of the present application;

[0029] Figure 4a is a target model schematic diagram of a model processing method provided in an embodiment of the present application;

[0030] Figure 4b is another target model schematic diagram of a model processing method provided in an embodiment of the present application;

[0031] Figure 5 is a structural schematic diagram of a model processing device provided in an embodiment of the present application;

[0032] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0034] The embodiment of the present application provides a model processing method, device, storage medium and electronic device. The model processing device can be integrated in an electronic device, which can be a server, a terminal or other device.

[0035] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Terminals may include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminals and servers can be directly or indirectly connected via wired or wireless communications, and this application does not limit this.

[0036] See also Figure 1 , taking the integration of the model processing device into an electronic device as an example, Figure 1 A schematic diagram of an implementation scenario of the model processing method provided in an embodiment of the present application, wherein the electronic device may be a terminal or a server, and the electronic device may obtain a control model having a plurality of control points arranged on the control model; create a bounding box model surrounding the control model, and determine a target plane in the bounding box model facing a virtual camera; based on the current positions of the plurality of control points, segment the target plane to obtain segmentation planes corresponding to the control points in the target plane; determine movement parameters required for each segmentation plane to achieve target deformation motion effects, wherein the movement parameters of at least two segmentation planes are different; control the movement of the segmentation planes according to the movement parameters to obtain a target model having target deformation motion effects.

[0037] It should be noted that Figure 1 The implementation environment scenario diagram of the model processing method shown is only an example. The implementation environment scenario of the model processing method described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of data processing and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0038] The solutions provided by the embodiments of the present application are specifically described by the following embodiments. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0039] This embodiment will be described from the perspective of a model processing device. The model processing device may be integrated into an electronic device. The electronic device may be a terminal and / or a server, and this application does not limit this.

[0040] See also Figure 2 , Figure 2 : is a flow chart of the model processing method provided in the embodiment of the present application. The model processing method includes:

[0041] In step 101, a control model is obtained.

[0042] Wherein, a plurality of control points are set on the control model.

[0043] The control model may be a model for constructing a deformation effect, and the deformation effect may include a splitting effect. The control point may be a point set in the control model.

[0044] Optionally, the control point may be a point at which movement occurs in the control model.

[0045] There are many ways to obtain the control model. For example, an initial control model can be constructed, which includes multiple line segments sharing a starting endpoint. On each line segment in the initial control model, multiple control points are randomly generated to obtain a control model, wherein the control points are configured to perform circular motion along the line segments toward the starting endpoint.

[0046] The initial control model may be a model for constructing a region where a deformation effect occurs. The initial control model may include multiple line segments, each line segment may have the same length, and the number of line segments included in the initial control model may be set according to actual needs, for example, 3, 7 or 9 line segments may be included. The starting endpoint may be an endpoint serving as the starting point of the line segment.

[0047] For example, see Figure 3a , Figure 3aThis is a schematic diagram of an initial control model of a model processing method provided in an embodiment of the present application. The initial control model may include seven line segments, all of which share a common starting endpoint as the center of the initial control model. Specifically, a line segment of any length may be created, and the created line segment may be copied 6 times. Each time the line segment is copied, the line segment may be copied by moving 360° / 7=51.4286° around the starting endpoint, so that the copied line segments may be distributed around the starting endpoint to form a circle, thereby obtaining an initial control model including multiple line segments sharing a common starting endpoint.

[0048] Among them, the number of randomly generated control points on each line segment can be the same or different, and the number of generated control points can also be set according to actual needs, which is not limited in the embodiment of the present application.

[0049] For example, see Figure 3b , Figure 3b It is a control model schematic diagram of a model processing method provided in an embodiment of the present application. Multiple control points can be randomly generated on each line segment of the initial control model. The number of randomly generated control points on each line segment can be the same or different. Each control point can be configured with a corresponding point number, and each point number is used to identify a control point.

[0050] Optionally, the control points in the control model can be configured to perform circular motion along the line segment toward the starting endpoint, so as to achieve an infinite loop of inward collapse deformation motion special effects in subsequent operations. For example, each control point can be configured to move from the initial position along the line segment toward the starting endpoint, and when the control point reaches the starting endpoint, it returns to the terminal endpoint of the line segment, and then continues to move from the position of the terminal endpoint along the line segment toward the starting endpoint until the control point reaches the starting endpoint, and then the control point returns to the terminal endpoint of the line segment, and continues to move from the terminal endpoint along the line segment toward the starting endpoint, thereby achieving circular motion of the control point on the line segment.

[0051] In one embodiment, there may be multiple ways to configure a control point to perform circular motion along the line segment in which it is located toward the starting endpoint. For example, a third distance from the control point to the starting endpoint of the line segment in which it is located may be obtained; a motion control parameter of the control point at the current moment may be determined based on the third distance, and the motion control parameter may cyclically change over time within a range of 0 to a target value; based on the motion control parameter, a target distance from the control point at the current moment to the starting endpoint of the line segment in which it is located may be determined; and the control point may be controlled to perform circular motion based on the target distance.

[0052] Among them, the third distance can be the distance between the control point and the starting endpoint at the current moment, the motion control parameter can be a parameter that changes cyclically over time within the range of 0 to a target value, and can be used to control the control point to perform cyclic motion on the line segment, and the target value can be a value indicating the maximum range of cyclic motion of the control point on the line segment, for example, it can be the distance value between the starting endpoint and the ending endpoint of the line segment, that is, the length of the line segment, so that 0 can indicate the location of the starting endpoint, and the target value can indicate the location of the ending endpoint. Optionally, the line segment length can also be normalized, that is, the target value can be 1, so that 0 can indicate the location of the starting endpoint, and 1 can indicate the location of the ending endpoint. The target distance can be the distance between the position that the control point should reach at the next moment of the current moment and the starting endpoint.

[0053] Among them, there can be many ways to determine the motion control parameters of the control point at the current moment based on the third distance. For example, the length of the line segment and the motion control function can be obtained, and the third distance can be divided by the length of the line segment to obtain the position ratio value corresponding to the control point. Then, the motion control parameter of the control point at the current moment can be determined based on the position ratio value and the time function through the motion control function.

[0054] The motion control function may be a function for generating a value that changes cyclically over time within a range from 0 to a target value based on a current position of the control point.

[0055] For example, the length of the line segment can be mapped to a range between 0 and 1, where 0 is the position of the starting endpoint and 1 is the position of the terminating endpoint of the line segment. That is, taking the target value of 1 as an example, all control points can be traversed. For each control point, the position of the current control point P can be obtained, so that the distance between the control point P and the starting endpoint of the line segment, that is, the third distance, can be queried. The third distance is divided by the length of the line segment to obtain the position ratio value t. The position ratio value t can indicate the ratio of the current position of the control point to the length of the line segment. For example, assuming that the length of the line segment is 2 meters and the control point is 1 meter away from the starting endpoint, the third distance is 1 meter and the position ratio value t is 0.5. Then, the motion control parameter T corresponding to the control point at the current moment can be determined based on the position ratio value t through the motion control function. The motion control function can be expressed as:

[0056] T = frac(t-(time*0.25))

[0057] Among them, frac() represents a function for taking the decimal part of a real number, time can represent a time function and can be used to obtain the current time, t can represent the position ratio value corresponding to the third distance, and T can represent the motion control parameter. In this way, based on the third distance, a value that changes in a cycle from 0 to 1 can be obtained, namely the motion control parameter. Therefore, the target distance from the control point to the starting end point of the line segment at the current moment can be calculated according to the motion control parameter and the length of the line segment. For example, assuming that the motion control parameter is 0.4 and the length of the line segment is 2 meters, the target distance can be 2×0.4=0.8, that is, at the next moment, the distance from the position of the control point to the starting end point is 0.8 meters. Therefore, the value of the target distance can be assigned to the current control point to control the movement of the control point.

[0058] In a specific embodiment, for each control point, the position P of the current control point can be obtained, the position of the starting endpoint is P0, and the ending endpoint of the line segment is P1. Let P1-P0, and the vector P0P1 with both magnitude and direction from P0 to P1 can be obtained. Let P-P0, and the vector P0P from P0 to the current control point P can be obtained. The projection length of the vector P0P on the vector P0P1 is calculated, and then the projection length is divided by the modulus length of the vector P0P1, that is, the line segment length, so that the projection length can be normalized to obtain the position ratio value t , when t=1, it means that the control point is at the end endpoint P1 of the line segment, and when t=0, it means that the control point is at the start endpoint P0 of the line segment. Then, through the motion control function T=frac(t-(time*0.25)), the motion control parameters corresponding to the control point that cycle continuously between 0 and 1 are obtained. Therefore, according to the line segment length and the motion control parameters, the target distance between the position that the control point needs to reach at the current moment and the start endpoint of the line segment can be calculated, so that the control point can be moved to a position at the target distance from the start endpoint.

[0059] In step 102, a bounding box model of the bounding control model is created, and a target plane facing the virtual camera in the bounding box model is determined.

[0060] The bounding box model may be a model that encloses the control model. The bounding box model may be configured with a material based on the effect to be achieved, so that the bounding box model is visible and has a specific material. For example, when the deformation motion special effect of ground collapse needs to be achieved, the material of the bounding box model may be set to the material of the ground model. When the collapse effect of any plane needs to be achieved, the material of the bounding box model may be set according to actual needs. The virtual camera may be a virtual camera in the virtual scene where the control model is located, and the target plane may be a plane in the bounding box model that faces the virtual camera.

[0061] Optionally, after determining the target plane, the target plane may be extracted, and other planes in the bounding box model may be deleted, leaving only the plane model of the target plane.

[0062] For example, see Figure 3c , Figure 3c It is a target plane schematic diagram of a model processing method provided in an embodiment of the present application, which can extract the target plane facing the virtual camera.

[0063] There are many ways to determine the target plane facing the virtual camera in the bounding box model. For example, the normal vector of each plane in the bounding box model and the camera direction vector of the virtual camera can be obtained, and based on the normal vector and the camera direction vector, the angle information between the normal direction of the plane and the camera direction of the virtual camera is calculated, and the target plane facing the virtual camera is determined in the plane based on the angle information.

[0064] Among them, the normal vector can be the vector of the normal of each plane in the bounding box model, the camera direction vector can be the vector of the camera direction of the virtual camera, and the angle information can be information indicating the angle between the normal of the plane and the camera direction, so that according to the angle information, the target plane facing the virtual camera can be determined among the multiple planes of the bounding box.

[0065] Among them, based on the normal vector and the camera direction vector, there are many ways to calculate the angle information between the normal direction of the plane and the camera direction of the virtual camera. For example, the dot product of the normal vector and the camera direction vector can be calculated to obtain the cosine value of the angle between the normal direction of the plane and the camera direction of the virtual camera, that is, to obtain the angle information between the normal direction of the plane and the camera direction of the virtual camera.

[0066] In step 103, the target plane is segmented based on the current positions of the multiple control points to obtain the segmentation plane corresponding to each control point in the target plane.

[0067] The segmentation plane may be a plurality of planes obtained by segmenting the target plane. Thus, the plurality of segmentation planes segmented in the target plane may be used to simulate a region with a splitting effect, so that target deformation motion effects may be achieved based on the plurality of segmentation planes, such as ground cracking and collapse, space collapse, object explosion, and the like.

[0068] Among them, there are many ways to segment the target plane based on the current positions of multiple control points to obtain the segmentation plane corresponding to each control point in the target plane. For example, based on the current positions of multiple control points, the segmentation indication information corresponding to the target plane can be calculated; based on the segmentation indication information, the target plane is segmented to obtain the segmentation plane corresponding to each control point in the target plane.

[0069] The segmentation indication information may be information indicating how to segment the target plane based on each control point, and may indicate an area corresponding to each control point in the target plane.

[0070] There are multiple ways to calculate the segmentation indication information corresponding to the target plane based on the current positions of multiple control points. For example, the first distance between each position point and each control point in the target plane can be calculated based on the current positions of multiple control points; the target position point corresponding to each control point is determined according to the first distance; and the segmentation indication information corresponding to the target plane is generated based on the target position point corresponding to each control point, and the segmentation indication information indicates the area corresponding to each control point in the target plane.

[0071] The first distance may be the distance between each position point and each control point in the target plane, and the position point may be a point in the target plane. The first distance between each position point and each control point in the target plane may be calculated by acquiring the world coordinates of each control point and the world coordinates of each position point in the target plane. The target position point corresponding to each control point may be a position point on a segmentation plane that is assigned to the control point when segmenting the target plane.

[0072] Optionally, the distance between the target position point corresponding to each control point and its corresponding control point is smaller than the distance between the target position point and other control points.

[0073] In one embodiment, the segmentation indication information may be Voronoi noise, which may also be called cell noise, etc. For example, each control point may be used as a seed point to divide the position points in the space corresponding to the target plane to obtain Voronoi noise. The Voronoi noise may indicate the target position points in the segmentation plane corresponding to each control point among the position points of the target plane. Optionally, the Voronoi noise may be a noise map, in which unit areas corresponding to each control point are distributed, and the target position points corresponding to each control point are located in the unit area corresponding to the corresponding control point. Thus, based on Voronoi noise, the target plane may be divided into a plurality of unit areas, each unit area being a segmentation plane, each segmentation plane corresponding to a control point, and the distance between any position point in each segmentation plane and its corresponding control point is less than the distance between any other control points, so that a target plane simulating the splitting effect may be obtained.

[0074] For example, see Figure 3d , Figure 3d is a schematic diagram of a segmentation plane of a model processing method provided in an embodiment of the present application. Based on the segmentation indication information, the target plane can be segmented into multiple segmentation planes to obtain a target plane that simulates the splitting effect. Figure 3dIn the example, the point number of the corresponding control point can be displayed in each split plane.

[0075] Optionally, since the control points perform cyclic motion in the control model, the current positions of multiple control points in the control model can be obtained in real time, so that the target plane can be dynamically segmented based on the current positions of multiple control points in real time to obtain the segmentation plane corresponding to each control point in the target plane. Therefore, the segmentation plane corresponding to the target plane is dynamically changing, which can be used to achieve dynamic splitting and cyclic collapse target deformation motion effects. For example, please refer to Figure 3e , Figure 3e is another segmentation plane schematic diagram of a model processing method provided by an embodiment of the present application. Since the control points are in continuous cyclic motion, the positions of the control points acquired at different times are dynamically changing. Figure 3d The splitting plane shown is Figure 3e There are differences in the segmentation planes shown. Therefore, the target plane is segmented based on the positions of the dynamically changing control points, and the dynamically changing segmentation planes in the target plane can be segmented.

[0076] In step 104, the movement parameters required for each segmentation plane to achieve the target deformation motion effect are determined.

[0077] Wherein, the movement parameters of at least two segmentation planes are different. The target deformation motion special effect may be a special effect for simulating the deformation motion of an object, for example, it may include special effects such as ground cracking and collapsing, space collapse, and object explosion. The movement parameter may be a parameter for controlling the segmentation plane determined based on the target deformation motion special effect to be achieved.

[0078] Among them, there may be multiple ways to determine the movement parameters required for each segmentation plane to achieve the target deformation motion effect. For example, the movement parameters may include a movement direction and a movement distance, and a second distance between each segmentation plane and the center position of the target plane may be calculated; based on the second distance, the movement distance required for each segmentation plane to achieve the target deformation motion effect is determined, and the movement direction of each segmentation plane that matches the target deformation motion effect is obtained.

[0079] The moving direction may be the direction in which the splitting plane is moved, and the moving distance may be the distance in which the splitting plane is moved. The second distance may be the distance between each splitting plane and the center position of the target plane. The second distance between each splitting plane and the center position of the target plane may be calculated by obtaining the world coordinates of the center position of the target plane and the world coordinates of the center position of the splitting plane. The second distance between each splitting plane and the center position of the target plane may also be calculated by obtaining the world coordinates of the starting endpoint in the control model and the world coordinates of the control point corresponding to the splitting plane.

[0080] Among them, there can be many ways to determine the moving distance required for each segmentation plane to achieve the target deformation motion effect based on the second distance, and to obtain the moving direction of each segmentation plane that matches the target deformation motion effect. For example, the second distance can be used as the moving distance required for each segmentation plane to achieve the target deformation motion effect, and to obtain the moving direction of each segmentation plane that matches the target deformation motion effect. For example, if the target deformation motion effect is an inward circular collapse effect, the moving direction can be upward, and the closer the segmentation plane is to the center of the target plane, the smaller the moving distance, and the farther the segmentation plane is from the center of the target plane, the larger the moving distance. Therefore, the target deformation motion effect of the object collapsing inward can be achieved by controlling the dynamically changing segmentation plane to move a corresponding moving distance in the upward direction. For another example, if the target deformation motion effect is an outward explosion effect, the moving direction may be obliquely upward, and the moving directions corresponding to each segmentation plane may be offset; the closer the segmentation plane is to the center of the target plane, the closer its moving direction is to directly upward; the farther the segmentation plane is from the center of the target plane, the more its moving direction deviates from directly upward; the closer the segmentation plane is to the center of the target plane, the greater its moving distance; the farther the segmentation plane is from the center of the target plane, the smaller its moving distance, etc., thereby achieving the target deformation motion effect of the object exploding outward by controlling the dynamically changing segmentation plane to move the corresponding moving distance in the upward direction.

[0081] In step 105, the movement of the segmentation plane is controlled according to the movement parameters to obtain a target model with target deformation motion effects.

[0082] Among them, the target model can be a model with target deformation motion effects. In the target model, there are multiple segmentation planes that move according to corresponding movement parameters, thereby simulating the target deformation motion effects of splitting multiple blocks in the object and moving.

[0083] There are many ways to control the movement of the segmentation plane according to the movement parameters to obtain a target model with target deformation motion effects. For example, each segmentation plane can be controlled to move a certain distance along the movement direction according to the movement parameters to obtain a target model with target deformation motion effects.

[0084] Among them, there are many ways to control each segmentation plane to move a moving distance along a moving direction according to the moving parameters, and obtain a target model with a target deformation motion effect. For example, according to the moving parameters, the moving distance can be used as the extrusion height, and an extrusion operation can be performed on each segmentation plane in the moving direction to obtain a target model with a target deformation motion effect.

[0085] The extrusion operation may be an operation of extending the plane along the normal direction to create a three-dimensional model with thickness. The extrusion height may be the height of the extrusion of the segmentation plane. For example, taking the target deformation motion special effect as the special effect of inward circular collapse as an example, the extrusion operation may be performed on each segmentation plane in the upward direction according to the moving parameter and the moving distance as the extrusion height, so as to obtain a target model with the target deformation motion special effect based on the segmentation planes with different extrusion heights and three-dimensional effects.

[0086] Optionally, there are multiple ways to obtain a target model with target deformation motion effects by controlling each segmentation plane to move a distance along a moving direction according to a moving parameter. For example, for each segmentation plane, the segmentation plane can be copied to obtain a copy plane; according to the moving parameter, based on the initial position of the segmentation plane, the copy plane can be moved the distance along the moving direction; the corresponding vertices on the copy plane and the segmentation plane are connected to form a facade connecting the copy plane and the segmentation plane, thereby obtaining a target model with target deformation motion effects.

[0087] The copy plane may be a plane obtained by copying the split plane, the initial position may be the position of the split plane, and the elevation may be a plane connecting the copy plane and the split plane, so that a three-dimensional model corresponding to the split plane can be obtained to more realistically simulate the target deformation and motion effects. Since the vertices on the copy plane have the same serial number as the corresponding vertices on the corresponding split plane, before rendering, it can be declared that the copy plane and the corresponding vertices on the split plane are in the same plane, so that a elevation connecting the copy plane and the split plane can be rendered.

[0088] In one embodiment, the target deformation motion special effect is an inward loop collapse special effect as an example, please refer to Figure 4a , Figure 4a It is a schematic diagram of a target model of a model processing method provided in an embodiment of the present application. After the target plane is segmented to obtain multiple segmentation planes, the moving distance can be used as the extrusion height, or the moving distance can be normalized and the normalized moving distance can be used as the extrusion height, thereby performing an extrusion operation on each segmentation plane in an upward direction. Since the moving distances corresponding to segmentation planes with different distances from the center position of the target plane are also different, based on the extrusion heights and three-dimensional effects corresponding to each segmentation plane, the special effects of inward circular collapse can be simulated more realistically and accurately, thereby obtaining a target model with target deformation motion special effects and better effects.

[0089] In addition, since the control points in the control model perform cyclic motion, the segmentation plane obtained by segmenting the target plane based on the moving control points also changes in real time, so the process of moving the segmentation plane according to the movement parameters also changes dynamically. For example, please refer to Figure 4b , Figure 4b is another target model schematic diagram of a model processing method provided in an embodiment of the present application. It can be seen that: Figure 4a and Figure 4b The target model shown has different target deformation motion effects. Based on this, dynamically changing target deformation motion effects can be generated based on the control points that control the cyclic motion in the model, which simplifies the difficulty of generating the target deformation motion effects and effectively improves the model processing efficiency.

[0090] In game development projects, it is usually necessary to create some special special effects to enhance the game effect. For example, by processing the three-dimensional model to generate deformation motion special effects such as ground cracks and collapse. However, the existing model processing method generates model deformation motion special effects such as space collapse, which is relatively complicated and difficult to generate, resulting in low model processing efficiency. To this end, the embodiment of the present application proposes a model processing method that can programmatically and quickly generate special effects such as infinite loop inward collapse, so that such special effects requirements can be quickly realized, greatly reducing the development difficulty and manufacturing cycle of such special effects.

[0091] As can be seen from the above, the embodiment of the present application obtains a control model, and a plurality of control points are set on the control model; creates a bounding box model surrounding the control model, and determines the target plane facing the virtual camera in the bounding box model; based on the current positions of the plurality of control points, the target plane is segmented to obtain the segmentation plane corresponding to each control point in the target plane; determines the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; controls the movement of the segmentation plane according to the movement parameters to obtain a target model with the target deformation motion effect. In this way, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of the plurality of control points in the control model, so as to construct a plane simulating the fission effect based on each segmentation plane, so as to obtain a target model with the target deformation motion effect by controlling the movement of each segmentation plane according to the movement parameters, so as to achieve the generation of target deformation motion effects such as space collapse, simplify the difficulty of generating target deformation motion effects, and thus effectively improve the model processing efficiency.

[0092] In order to better implement the above method, an embodiment of the present invention further provides a model processing device, which can be integrated in an electronic device, and the electronic device can be a terminal or a server.

[0093] For example, Figure 5 As shown, it is a schematic diagram of the structure of the model processing device provided in an embodiment of the present application. The model processing device may include an acquisition unit 201, a creation unit 202, a segmentation unit 203, a determination unit 204 and a control unit 205, as follows:

[0094] An acquisition unit 201 is used to acquire a control model, where a plurality of control points are set on the control model;

[0095] A creating unit 202 is used to create a bounding box model of the bounding control model, and determine a target plane in the bounding box model that faces the virtual camera;

[0096] A segmentation unit 203 is used to segment the target plane based on the current positions of the multiple control points to obtain a segmentation plane corresponding to each control point in the target plane;

[0097] A determination unit 204 is used to determine the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different;

[0098] The control unit 205 is used to control the movement of the segmentation plane according to the movement parameters to obtain a target model with target deformation motion effects.

[0099] In some embodiments, the segmentation unit 203 includes:

[0100] A calculation subunit, used for calculating segmentation indication information corresponding to the target plane based on the current positions of the multiple control points;

[0101] The segmentation subunit is used to segment the target plane based on the segmentation indication information to obtain the segmentation plane corresponding to each control point in the target plane.

[0102] In some embodiments, the computing subunit is configured to:

[0103] Based on the current positions of the multiple control points, calculate the first distance between each position point and each control point in the target plane;

[0104] Determine the target position point corresponding to each control point according to the first distance, the target position point corresponding to each control point being a position point on the segmentation plane corresponding to the control point when segmenting the target plane;

[0105] Segmentation indication information corresponding to the target plane is generated based on the target position point corresponding to each control point, and the segmentation indication information indicates the area corresponding to each control point in the target plane.

[0106] In some embodiments, the movement parameters include a movement direction and a movement distance, and the determination unit 204 is configured to:

[0107] Calculate the second distance between each segmentation plane and the center position of the target plane;

[0108] Based on the second distance, the moving distance required for each segmentation plane to achieve the target deformation motion effect is determined, and the moving direction of each segmentation plane matching the target deformation motion effect is obtained.

[0109] In some embodiments, the control unit 205 includes:

[0110] The control subunit is used to control each segmentation plane to move along the moving direction and the moving distance according to the moving parameters, so as to obtain a target model with target deformation motion effects.

[0111] In some embodiments, the control subunit is used to:

[0112] According to the moving parameters, the moving distance is used as the extrusion height, and each segmentation plane is extruded in the moving direction to obtain a target model with target deformation motion effects.

[0113] In some embodiments, the control subunit is used to:

[0114] For each segmentation plane, the segmentation plane is copied to obtain a copy plane;

[0115] According to the movement parameter, based on the initial position of the split plane, the copy plane is moved along the movement direction by the movement distance;

[0116] The corresponding vertices on the copy plane and the split plane are connected to form a facade connecting the copy plane and the split plane, thereby obtaining a target model with target deformation and motion effects.

[0117] In some embodiments, the acquisition unit 201 is used to:

[0118] Constructing an initial control model, the initial control model includes a plurality of line segments sharing a starting endpoint;

[0119] On each line segment in the initial control model, a plurality of control points are randomly generated to obtain a control model, wherein the control points are configured to perform a cyclic motion along the line segment toward the starting endpoint.

[0120] In some embodiments, the model processing device further includes a motion control unit for:

[0121] Get the third distance from the control point to the starting end point of the line segment;

[0122] Determine the motion control parameter of the control point at the current moment based on the third distance, and the motion control parameter changes cyclically within a range from 0 to a target value over time;

[0123] Based on the motion control parameters, determine the target distance from the control point at the current moment to the starting end point of the line segment;

[0124] Control points to perform circular motion based on target distance.

[0125] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0126] From the above, it can be seen that the embodiment of the present application obtains the control model through the acquisition unit 201, and a plurality of control points are set on the control model; the creation unit 202 creates a bounding box model surrounding the control model, and determines the target plane facing the virtual camera in the bounding box model; the segmentation unit 203 segments the target plane based on the current positions of the plurality of control points, and obtains the segmentation plane corresponding to each control point in the target plane; the determination unit 204 determines the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; the control unit 205 controls the movement of the segmentation plane according to the movement parameters, and obtains the target model with the target deformation motion effect. Therefore, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of multiple control points in the control model, so as to construct a plane simulating the fission effect based on each segmented plane, and thus by controlling the movement of each segmented plane according to the moving parameters, a target model with target deformation motion effects can be obtained, and the generation of target deformation motion effects such as space collapse can be realized, which simplifies the difficulty of generating target deformation motion effects and effectively improves the model processing efficiency.

[0127] The present application also provides an electronic device, such as Figure 6 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal or a server. Specifically:

[0128] The electronic device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate 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 in the figure, or combine certain components, or arrange the components differently.

[0129] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device 300, executes various functions of the electronic device 300 and processes data by running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device 300 as a whole.

[0130] In the embodiment of the present application, the processor 301 in the electronic device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:

[0131] A control model is obtained, where a plurality of control points are set on the control model;

[0132] Creating a bounding box model of the bounding control model, and determining a target plane in the bounding box model facing the virtual camera;

[0133] Based on the current positions of multiple control points, the target plane is segmented to obtain the segmentation plane corresponding to each control point in the target plane;

[0134] Determining movement parameters required for each segmentation plane to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different;

[0135] The movement of the segmentation plane is controlled according to the movement parameters to obtain a target model with target deformation and motion effects.

[0136] This solution can be achieved by obtaining a control model, on which a plurality of control points are set; creating a bounding box model surrounding the control model, determining a target plane in the bounding box model facing the virtual camera; segmenting the target plane based on the current positions of the plurality of control points, obtaining segmentation planes corresponding to the control points in the target plane; determining the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; controlling the movement of the segmentation planes according to the movement parameters, and obtaining a target model with the target deformation motion effect. In this way, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of the plurality of control points in the control model, so as to construct a plane simulating the fission effect based on each segmentation plane, so as to obtain a target model with the target deformation motion effect by controlling the movement of each segmentation plane according to the movement parameters, and realizing the generation of target deformation motion effects such as space collapse, simplifying the difficulty of generating target deformation motion effects, and thus effectively improving the model processing efficiency.

[0137] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0138] Optional, such as Figure 6 As shown, the electronic device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0139] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.

[0140] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.

[0141] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another electronic device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earplug jack to provide communication between an external headset and the electronic device.

[0142] The input unit 306 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0143] The power supply 307 is used to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0144] although Figure 6 Not shown, the electronic device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0145] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be noted that the electronic device provided in the embodiment of the present application and the model processing method in the above embodiment belong to the same concept. The specific implementation process is detailed in the above method embodiment, which will not be repeated here.

[0146] As can be seen from the above, the electronic device provided by the embodiment of the present application can obtain a control model, and a plurality of control points are set on the control model; create a bounding box model surrounding the control model, determine the target plane facing the virtual camera in the bounding box model; segment the target plane based on the current positions of the plurality of control points, and obtain the segmentation plane corresponding to each control point in the target plane; determine the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; control the movement of the segmentation plane according to the movement parameters, and obtain the target model with the target deformation motion effect. In this way, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of the plurality of control points in the control model, so as to construct a plane simulating the fission effect based on each segmentation plane, so as to obtain a target model with the target deformation motion effect by controlling the movement of each segmentation plane according to the movement parameters, so as to achieve the generation of target deformation motion effects such as space collapse, simplify the difficulty of generating target deformation motion effects, and effectively improve the model processing efficiency.

[0147] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0148] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any model processing method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0149] A control model is obtained, where a plurality of control points are set on the control model;

[0150] Creating a bounding box model of the bounding control model, and determining a target plane in the bounding box model facing the virtual camera;

[0151] Based on the current positions of multiple control points, the target plane is segmented to obtain the segmentation plane corresponding to each control point in the target plane;

[0152] Determining movement parameters required for each segmentation plane to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different;

[0153] The movement of the segmentation plane is controlled according to the movement parameters to obtain a target model with target deformation and motion effects.

[0154] This solution can be achieved by obtaining a control model, on which a plurality of control points are set; creating a bounding box model surrounding the control model, determining a target plane in the bounding box model facing the virtual camera; segmenting the target plane based on the current positions of the plurality of control points, obtaining segmentation planes corresponding to the control points in the target plane; determining the movement parameters required for each segmentation plane to achieve the target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; controlling the movement of the segmentation planes according to the movement parameters, and obtaining a target model with the target deformation motion effect. In this way, by constructing a control model and a bounding box model surrounding the control model, the target plane facing the camera in the bounding box model is segmented based on the current positions of the plurality of control points in the control model, so as to construct a plane simulating the fission effect based on each segmentation plane, so as to obtain a target model with the target deformation motion effect by controlling the movement of each segmentation plane according to the movement parameters, and realizing the generation of target deformation motion effects such as space collapse, simplifying the difficulty of generating target deformation motion effects, and thus effectively improving the model processing efficiency.

[0155] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

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

[0157] Since the computer program stored in the computer-readable storage medium can execute the steps in any one of the model processing methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the model processing methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0158] Among them, according to one aspect of the present application, a computer program product is provided, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the methods provided in the various optional implementations provided in the above embodiments.

[0159] The above is a detailed introduction to a model processing method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A model processing method, characterized in that: include: Acquire a control model, wherein a plurality of control points are set on the control model; Creating a bounding box model surrounding the control model, and determining a target plane in the bounding box model facing the virtual camera; Based on the current positions of the plurality of control points, the target plane is segmented to obtain a segmentation plane corresponding to each control point in the target plane; Determining movement parameters required for each of the segmentation planes to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; The movement of the segmentation plane is controlled according to the movement parameters to obtain a target model with target deformation motion effects.

2. The model processing method according to claim 1, characterized in that: The step of segmenting the target plane based on the current positions of the plurality of control points to obtain a segmentation plane corresponding to each control point in the target plane includes: Based on the current positions of the plurality of control points, calculating segmentation indication information corresponding to the target plane; The target plane is segmented based on the segmentation indication information to obtain a segmentation plane corresponding to each control point in the target plane.

3. The model processing method according to claim 2, characterized in that: The calculating the segmentation indication information corresponding to the target plane based on the current positions of the plurality of control points includes: Based on the current positions of the plurality of control points, calculating a first distance between each position point in the target plane and each of the control points; Determine the target position point corresponding to each of the control points according to the first distance, the target position point corresponding to each of the control points being the position point on the segmentation plane corresponding to the control point when segmenting the target plane; The segmentation indication information corresponding to the target plane is generated based on the target position point corresponding to each of the control points, and the segmentation indication information indicates the area corresponding to each of the control points in the target plane.

4. The model processing method according to claim 1, characterized in that: The movement parameters include a movement direction and a movement distance, and the determination of the movement parameters required for each segmentation plane to achieve the target deformation motion effect includes: Calculating a second distance between each of the segmentation planes and the center position of the target plane; Based on the second distance, the moving distance required for each of the segmentation planes to achieve the target deformation motion effect is determined, and the moving direction of each of the segmentation planes matching the target deformation motion effect is obtained.

5. The model processing method according to claim 4, characterized in that: The step of controlling the movement of the segmentation plane according to the movement parameter to obtain a target model with target deformation motion effects includes: According to the movement parameters, each of the segmentation planes is controlled to move the movement distance along the movement direction to obtain a target model with target deformation motion effects.

6. The model processing method according to claim 5, characterized in that: According to the movement parameter, each of the segmentation planes is controlled to move along the movement direction by the movement distance to obtain a target model with target deformation motion effects, including: According to the movement parameters, taking the movement distance as the extrusion height, an extrusion operation is performed on each of the segmentation planes in the movement direction to obtain a target model with target deformation motion effects.

7. The model processing method according to claim 5, characterized in that: According to the movement parameter, each of the segmentation planes is controlled to move along the movement direction by the movement distance to obtain a target model with target deformation motion effects, including: For each of the split planes, copy the split plane to obtain a copy plane; According to the movement parameter, based on the initial position of the split plane, the copy plane is moved along the movement direction by the movement distance; The corresponding vertices on the copy plane and the split plane are connected to form a vertical surface connecting the copy plane and the split plane, thereby obtaining a target model with target deformation and motion effects.

8. The model processing method according to any one of claims 1 to 7, characterized in that: The acquisition control model includes: Constructing an initial control model, wherein the initial control model includes a plurality of line segments sharing a starting endpoint; On each line segment in the initial control model, a plurality of control points are randomly generated to obtain a control model, wherein the control points are configured to perform a cyclic motion along the line segment toward the starting endpoint.

9. The model processing method according to claim 8, characterized in that: Before segmenting the target plane based on the current positions of the plurality of control points, the method further comprises: Obtaining a third distance from the control point to the starting end point of the line segment; Determine a motion control parameter of the control point at the current moment based on the third distance, wherein the motion control parameter changes cyclically within a range from 0 to a target value over time; Based on the motion control parameters, determining a target distance from the control point to the starting end point of the line segment at the current moment; The control point is controlled to perform the cyclic motion based on the target distance.

10. A model processing device, characterized in that: include: An acquisition unit, used for acquiring a control model, wherein a plurality of control points are arranged on the control model; A creating unit, used to create a bounding box model surrounding the control model, and determine a target plane in the bounding box model facing the virtual camera; A segmentation unit, configured to segment the target plane based on current positions of the plurality of control points, to obtain a segmentation plane corresponding to each control point in the target plane; A determination unit, used to determine movement parameters required for each of the segmentation planes to achieve a target deformation motion effect, wherein the movement parameters of at least two segmentation planes are different; The control unit is used to control the movement of the segmentation plane according to the movement parameters to obtain a target model with target deformation motion effects.

11. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: It comprises a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 9.

Citation Information

Patent Citations

  • Bounding box and space partitioning-based virtual object collision detection method

    CN105469406A

  • Virtual terrain generation method and system, storage medium and electronic equipment

    CN115512057A

  • Building complex roof modeling method and system

    CN116933359A

  • Special effect generation method and device, computer equipment and computer readable storage medium

    CN117523042A

  • Three-dimensional model processing method and device

    CN117593495A