Model processing method and device, equipment and storage medium

By installing the target plug-in in the three-dimensional modeling software, the model cutting preview function is provided, and the cutting efficiency problem caused by the inability to preview in the existing technology is solved, achieving a more efficient and accurate model cutting process.

CN120014211APending Publication Date: 2025-05-16NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311534415.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In existing three-dimensional modeling software, artists cannot preview the overall cutting effect of the three-dimensional model when cutting the model, resulting in cutting errors starting from scratch, which is relatively inefficient.

Method used

By installing the target plug-in on any modeling platform, it provides a preview of the overall cutting effect of the model. Users can enter the cutting size in the graphical user interface and view the cutting preview effect, and automatically cut after confirmation.

Benefits of technology

It improves the efficiency and accuracy of model cutting, reduces the repetitive operations caused by manual cutting errors, and simplifies the user's operation steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120014211A_ABST
    Figure CN120014211A_ABST
Patent Text Reader

Abstract

The invention provides a model processing method and device, equipment and a storage medium, and the model processing method comprises the steps: responding to a triggering operation for a target plug-in, and displaying a target operation window used for cutting an original model in a graphical user interface; in response to a confirmation operation aiming at the cutting preview control in the target operation window, pre-cutting the minimum bounding box corresponding to the original model according to the slices of the target cutting size, and generating and displaying a cutting preview effect picture aiming at the original model in a graphical user interface; and in response to a confirmation operation for a model cutting control in the target operation window, cutting the original model according to the cutting preview effect picture to obtain a plurality of sub-models. Thus, through the target plug-in which can be installed on any modeling platform, the preview of the overall model cutting effect can be provided for a user, and after the user confirms the cutting model, the overall model is automatically cut, so that the efficiency and accuracy of model cutting are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of three-dimensional modeling, and in particular to a model processing method, device, equipment and storage medium. Background Art

[0002] When processing a 3D model, artists sometimes need to cut the complete 3D model according to actual model cutting requirements to obtain multiple sub-models that meet the expected cutting size.

[0003] At present, in existing 3D modeling software, after selecting the 3D model to be cut, artists can use the native slice modifier in the 3D modeling software to insert the native slice modifier into the specified position in the 3D model to manually cut the 3D model. However, this manual cutting method cannot preview the overall cutting effect of the 3D model because the cutting size is completely dependent on the manual operation of the artist. Therefore, when multiple sub-models need to be cut out, once a cutting error occurs in the middle, it is necessary to start over from the first cutting, resulting in low efficiency in model cutting. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a model processing method, device, equipment and storage medium, which can provide users with a preview of the overall cutting effect of the model before cutting the model through a target plug-in that can be installed on any modeling platform, and automatically cut the entire model after the user confirms the cutting model, thereby effectively improving the efficiency and accuracy of model cutting.

[0005] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.

[0006] In a first aspect, an embodiment of the present application provides a model processing method, which is applied to a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided through the modeling platform, and the original model to be cut is displayed in the graphical user interface, and the model processing method includes:

[0007] In response to a trigger operation on the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface;

[0008] In response to a target cutting size input in the target operation window, pre-cutting a minimum bounding box corresponding to the original model according to slices of the target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface;

[0009] In response to a confirmation operation on a model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the plurality of sub-models cut out.

[0010] In a second aspect, an embodiment of the present application provides a model processing device, which is applied to a target plug-in, and the target plug-in is installed in a modeling platform. A graphical user interface is provided through the modeling platform, and the graphical user interface displays an original model to be cut. The model processing device includes:

[0011] A trigger module, configured to respond to a trigger operation on the target plug-in and display a target operation window for cutting the original model in the graphical user interface;

[0012] A preview module, configured to respond to a target cutting size input in the target operation window, pre-cut the minimum bounding box corresponding to the original model according to slices of the target cutting size, generate a cutting preview effect diagram for the original model, and display the cutting preview effect diagram in the graphical user interface;

[0013] A cutting module is used to respond to a confirmation operation on a model cutting control in the target operation window, cut the original model according to the cutting preview effect diagram, obtain a plurality of sub-models corresponding to the original model, and replace the original model displayed in the graphical user interface with the plurality of sub-models cut out.

[0014] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned model processing method when executing the computer program.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned model processing method are executed.

[0016] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0017] The embodiment of the present application provides a model processing method, device, equipment and storage medium, which responds to the trigger operation of the target plug-in, displays the target operation window for cutting the original model in the graphical user interface; responds to the confirmation operation of the cutting preview control in the target operation window, pre-cuts the minimum bounding box corresponding to the original model according to the slice of the target cutting size, generates a cutting preview effect diagram for the original model, and displays the cutting preview effect diagram in the graphical user interface; responds to the confirmation operation of the model cutting control in the target operation window, cuts the original model according to the cutting preview effect diagram, obtains multiple sub-models corresponding to the original model, and replaces the original model displayed in the graphical user interface with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through the target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A schematic diagram showing a flow chart of a model processing method provided in an embodiment of the present application is shown;

[0020] Figure 2a A schematic diagram of a graphical user interface provided by an embodiment of the present application is shown;

[0021] Figure 2b A schematic diagram of a cutting preview effect diagram provided in an embodiment of the present application is shown;

[0022] Figure 2c A schematic diagram of a cutting preview effect diagram under a forward viewing angle provided in an embodiment of the present application is shown;

[0023] Figure 3a A schematic diagram of a process flow of a file export method provided in an embodiment of the present application is shown;

[0024] Figure 3b A schematic diagram of a target operation window provided in an embodiment of the present application is shown;

[0025] Figure 4 A schematic diagram of the process of the first model reorganization method provided in an embodiment of the present application is shown;

[0026] Figure 5 A schematic diagram of a second model reorganization method provided in an embodiment of the present application is shown;

[0027] Figure 6 A schematic diagram of the process of the third model reorganization method provided in the embodiment of the present application is shown;

[0028] Figure 7 A schematic flow chart of a method for adaptively adjusting the model states of different sub-models in a reorganized model provided in an embodiment of the present application is shown;

[0029] Figure 8 A schematic diagram of the structure of a model processing device provided in an embodiment of the present application is shown;

[0030] Fig. 9 A schematic diagram of the structure of an electronic device 900 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0032] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0034] At present, in existing 3D modeling software, after selecting the 3D model to be cut, artists can use the native slice modifier in the 3D modeling software to insert the native slice modifier into the specified position in the 3D model to manually cut the 3D model. However, this manual cutting method cannot preview the overall cutting effect of the 3D model because the cutting size is completely dependent on the manual operation of the artist. Therefore, when multiple sub-models need to be cut out, once a cutting error occurs in the middle, it is necessary to start over from the first cutting, resulting in low efficiency in model cutting.

[0035] Based on this, the embodiments of the present application provide a model processing method, device, equipment and storage medium. Through a target plug-in that can be installed on any modeling platform, it provides the user with a preview of the overall cutting effect of the model before cutting the model, and automatically cuts the entire model after the user confirms the cutting of the model, thereby effectively improving the efficiency and accuracy of model cutting.

[0036] In one embodiment of the present application, a model processing method can be applied to a target plug-in, wherein the target plug-in can be installed in a modeling platform, and a graphical user interface is provided through the modeling platform to support users to perform human-computer interaction through the graphical user interface. The modeling platform can run on a terminal device or a server; wherein the terminal device can be a local terminal device. When the modeling platform runs on the server, the model processing method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device (i.e., a terminal device).

[0037] It should be noted that in the embodiments of the present application, the target plug-in can be installed in any modeling platform, so that the model processing method provided by the target plug-in in the embodiments of the present application can be applicable to different types of modeling platforms. The embodiments of the present application do not impose any restrictions on the specific types of modeling platforms involved in the embodiments of the present application; for example, the target plug-in can be installed in a 3D max (3D Studio Max, a 3D modeling, rendering and production software) modeling platform, or in a UE4 (Unreal Engine 4, a virtual engine commonly used in game development) modeling platform, or in a NeoX (a virtual engine used for game development) modeling platform.

[0038] To facilitate understanding of the embodiments of the present application, a model processing method, device, equipment and storage medium provided in the embodiments of the present application are introduced in detail below.

[0039] Reference Figure 1 As shown, Figure 1A flow chart of a model processing method provided in an embodiment of the present application is shown, wherein the model processing method is applied to a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided through the modeling platform, and the original model to be cut is displayed in the graphical user interface, and the model processing method includes steps S101-S103; specifically:

[0040] S101, in response to a trigger operation on the target plug-in, displaying a target operation window for cutting the original model in the graphical user interface.

[0041] S102, in response to a confirmation operation on a cutting preview control in the target operation window, pre-cutting a minimum bounding box corresponding to the original model according to slices of a target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface.

[0042] S103, in response to a confirmation operation on the model cutting control in the target operation window, cutting the original model according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and replacing the original model displayed in the graphical user interface with the plurality of sub-models cut out.

[0043] The above-mentioned model processing method provided by the embodiment of the present application responds to the trigger operation for the target plug-in, and displays the target operation window for cutting the original model in the graphical user interface; responds to the confirmation operation of the cutting preview control in the target operation window, pre-cuts the minimum bounding box corresponding to the original model according to the slice of the target cutting size, generates a cutting preview effect diagram for the original model, and displays the cutting preview effect diagram in the graphical user interface; responds to the confirmation operation of the model cutting control in the target operation window, cuts the original model according to the cutting preview effect diagram, obtains multiple sub-models corresponding to the original model, and replaces the original model displayed in the graphical user interface with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through the target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting.

[0044] The following is an exemplary description of each step in the above model processing method provided in the embodiment of the present application:

[0045] S101, in response to a trigger operation on the target plug-in, displaying a target operation window for cutting the original model in the graphical user interface.

[0046] Here, the target operation window represents the operation window corresponding to the target plug-in. In the modeling platform with the target plug-in installed, the user opens the target plug-in in the toolbar (that is, the user triggers the operation on the target plug-in), and the target operation window corresponding to the target plug-in is displayed in the graphical user interface. The user can complete the cutting of the original model (that is, the original model to be cut displayed in the current graphical user interface) by interacting with the above target operation window.

[0047] It should be noted that the above-mentioned trigger operation is only used to represent an opening action of the user for the target plug-in installed in the current modeling platform, wherein, for different types of terminal devices (i.e., electronic devices running the above-mentioned modeling platform), different types of trigger operations performed by the user on the above-mentioned target plug-in can be responded to; for example, when the terminal device is a fixed terminal device such as a PC (Personal Computer) terminal, a host terminal, etc., the above-mentioned trigger operation can be a click operation triggered by the user through an external device such as a mouse or keyboard; when the terminal device is a mobile terminal device such as a mobile phone or a tablet, the above-mentioned trigger operation can also be a click operation, a sliding operation, a long press operation, etc., triggered by the user touching the target plug-in on the screen (i.e., the above-mentioned graphical user interface) with his finger (such as the display icon corresponding to the target plug-in) or a non-touch operation such as a gesture control operation suspended on the graphical user interface. The embodiment of the present application does not impose any limitation on the specific operation type to which the above-mentioned trigger operation belongs.

[0048] Specifically, Figure 2a A schematic diagram of a graphical user interface provided by an embodiment of the present application is shown, such as Figure 2a As shown, a graphical user interface 200 is provided through a modeling platform running on a terminal device, in which an original model 210 (a building model composed of multiple buildings) to be cut is displayed; a target plug-in is installed in the modeling platform, and a user clicks on the target plug-in (i.e., responds to a trigger operation for the target plug-in) to trigger a target operation window 201 (i.e., an operation window corresponding to the target plug-in) for cutting the original model 210 to be displayed on the graphical user interface 200.

[0049] S102, in response to a confirmation operation on a cutting preview control in the target operation window, pre-cutting a minimum bounding box corresponding to the original model according to slices of a target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface.

[0050] Here, the target cutting size represents the cutting size input by the user in the target operation window; Figure 2aAs shown, the target operation window 201 at least includes: a cutting size input box for determining the target cutting size, a cutting preview control 202 for viewing the cutting preview effect diagram, and a model cutting control 203 for confirming the cutting of the original model.

[0051] Specifically, Figure 2a As shown, the user can enter the target cutting size corresponding to the slice for cutting the original model in the cutting size input box in the target operation window; wherein, according to the target cutting size input by the user, the target plug-in can determine a slice whose length and width are both the above target cutting sizes. For example, if the target cutting size input by the user is 500 (the default unit is inches), the target plug-in can determine a slice whose length and width are both 500 inches.

[0052] Here, in the case where the modeling platform comes with a native slice modifier, after the user inputs the target cutting size, in addition to the above-mentioned method of creating slices based on the target cutting size, as an optional embodiment, the target plug-in can also directly assign the target cutting size to the native slice modifier in the modeling platform to reduce the hardware resources wasted due to slice creation; for example, when the modeling platform is a 3D max modeling platform, 3D max comes with a native slice modifier slice. At this time, the target cutting size can be directly assigned to the native slice modifier slice, and the slice modifier slice based on the target cutting size can also achieve the same model cutting method as the slice of the newly created target cutting size.

[0053] It should be noted that in the embodiment of the present application, the unit of the target cutting size entered in the target operation window can be the default unit of inches. In actual applications, the user can also modify the default unit corresponding to the target cutting size from the tool property information of the target plug-in according to the actual model cutting requirements (for example, inches can be changed to centimeters). The embodiment of the present application does not impose any limitation on the specific measurement unit of the above-mentioned target cutting size.

[0054] After the user inputs the target cutting size, in the embodiment of the present application, Figure 2aAs shown, the target plug-in responds to the user's confirmation operation on the cutting preview control 202 in the target operation window 201. On the basis of the default cutting plane specified in the three-dimensional space, the target cutting size of the slice is used as a cutting unit, and the minimum bounding box corresponding to the original model is pre-cut in a manner that the third dimension is not cut (i.e., the dimension perpendicular to the default cutting platform in the three-dimensional space), so as to generate a cutting preview effect diagram for the original model; wherein the minimum bounding box corresponding to the original model is also equivalent to the minimum circumscribed cuboid that can contain the original model (i.e., the length, width and height of the minimum bounding box correspond to the maximum length, maximum width and maximum height in the original model, respectively).

[0055] It should be noted that, similar to the default unit of the target cutting size, in the embodiment of the present application, the above-mentioned default cutting plane can be the XY plane where the bottom of the model of the original model is located (that is, the spatial plane composed of the X-axis and the Y-axis in the model world coordinate system), wherein, in actual applications, the user can also modify the above-mentioned specified default cutting plane from the tool property information of the target plug-in according to the actual model cutting requirements; for example, the default cutting plane can be changed from the XY plane to the XZ plane (that is, the spatial plane composed of the X-axis and the Z-axis in the model world coordinate system), and the embodiment of the present application does not impose any limitation on the specific spatial plane represented by the above-mentioned default cutting plane.

[0056] For example, the target cutting size is 500 (in inches). Figure 2b A schematic diagram of a cutting preview effect diagram provided in an embodiment of the present application is shown. Figure 2b As shown, after the user inputs the target cutting size, the target plug-in responds to the user's confirmation operation on the cutting preview control 202 in the target operation window 201. If the default cutting plane is the XY plane where the bottom of the original model is located, then on the basis of the XY plane, a slice of 500 inches × 500 inches (i.e., the target cutting size) can be used as a cutting unit on the XY plane, and the minimum bounding box 220 corresponding to the original model 210 can be pre-cut in a manner of not cutting the model height (i.e., not cutting the third dimension where the Z axis is located), and the following is obtained: Figure 2b The cutting preview effect is shown.

[0057] Specifically, in the embodiment of the present application, as an optional embodiment, the above-mentioned cutting preview effect diagram can be a three-dimensional graphic, such as Figure 2b As shown, after generating the cutting preview effect diagram, the target plug-in can also display a rotation indication control 230 on the graphical user interface 200 for controlling the cutting preview effect diagram to rotate in the three-dimensional model space; Figure 2b Based on the cutting preview effect diagram from the bird's-eye view, Figure 2cA schematic diagram of a cutting preview effect diagram under a positive viewing angle provided by an embodiment of the present application is shown. Figure 2c As shown, the user can rotate the above-mentioned rotation indicator control 230 to view the cutting preview effect image displayed in the graphical user interface 200 in a 360° rotation manner in the three-dimensional model space (for example, the user can control the cutting preview effect image displayed in the graphical user interface 200 to rotate from 360° to 360° by rotating the above-mentioned rotation indicator control 230). Figure 2b The cutting preview effect image shown in the bird's-eye view is rotated to Figure 2c The cutting preview effect under the forward perspective shown in the figure) allows the user to more intuitively view the cutting preview effect after pre-cutting the original model according to the input target cutting size in the modeling platform.

[0058] S103, in response to a confirmation operation on the model cutting control in the target operation window, cutting the original model according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and replacing the original model displayed in the graphical user interface with the plurality of sub-models cut out.

[0059] Here, by displaying the cutting preview effect diagram of the original model to the user in the graphical user interface, the user can preview the overall cutting effect of the original model after being cut according to the target cutting size, so that when the cutting effect does not meet the actual cutting requirements, the user only needs to make numerical modifications to the target cutting size entered in the target operation window, and repeat the cutting preview operation shown in the above step S102, to obtain the cutting preview effect diagram after the original model is re-pre-cut according to the modified target cutting size, thereby simplifying the user's operating steps in the model cutting process, reducing repetitive operations caused by manual cutting errors, and effectively improving the efficiency and accuracy of model cutting.

[0060] Specifically, Figure 2c Taking the cutting effect preview image in the forward perspective as an example, the target plug-in responds to the user's confirmation operation on the model cutting control 203 in the target operation window 201, and can automatically cut the original model 210 according to the cutting preview image shown in the current graphical user interface 200 (i.e., according to the example shown in FIG. 2 ). Figure 2b The dotted part shown in the figure cuts the original model 210 into multiple sub-models), and obtains multiple sub-models corresponding to the original model 210; at this time, different from the cutting preview in the above step S102, step S103 is to actually cut the original model. Therefore, when the cutting is completed, the target plug-in can automatically replace the original model displayed in the graphical user interface with the multiple sub-models cut out (that is, the model cutting of the original model is completed).

[0061] It should be noted that in the embodiment of the present application, the specific implementation method of the model cutting method shown in the above steps S101-S103 has nothing to do with the platform type of the modeling platform, that is, no matter whether the modeling platform is a 3D max modeling platform, a UE4 modeling platform, or a NeoX modeling platform, it is only necessary to ensure that the target plug-in is installed in the modeling platform. The model cutting method shown in the above steps S101-S103 can be implemented through the installed target plug-in.

[0062] Based on the model cutting method shown in the above steps S101-S103, the target plug-in can also automatically record the model parameter information of each sub-model cut out, and support users to export the recorded model parameter information to local storage, obtain the export file corresponding to the original model after cutting (that is, the multiple sub-models cut out), and complete the local storage of this model cutting plan.

[0063] Based on this, in an optional implementation, Figure 3a A schematic diagram of a file export method provided in an embodiment of the present application is shown. Figure 3a As shown, the file export method includes steps S301-S303; specifically:

[0064] S301, recording the external parameter information and internal parameter information of each of the cut sub-models.

[0065] Here, the above-mentioned external parameter information at least includes: model coordinate information of each sub-model and the relative position relationship between different sub-models in the original model; wherein, based on the fact that each sub-model cut out belongs to an independent model structure (that is, after cutting, each sub-model is an independent model and no longer a part of the original model), therefore, while completing the model cutting, as an optional embodiment, the target plug-in can also automatically determine the model center position of each sub-model (that is, the center point of the sub-model), and use the coordinate information of the model center point of each sub-model in the model world coordinate system as the model coordinate information of each sub-model mentioned above.

[0066] It should be noted that, in the embodiment of the present application, the above-mentioned external parameter information is used to represent the model parameter information related to the position of the identified sub-model. On this basis, in addition to the above-mentioned model coordinate information and the above-mentioned relative position relationship, the above-mentioned external parameter information may also include: UUID (Universally Unique Identifier) ​​identifier of each sub-model, path sequence number, attribute tag (i.e., flag tag, such as a collision attribute tag used to identify whether the sub-model participates in collision, a shadow attribute tag used to identify whether the sub-model participates in rendering shadows, etc.); the embodiment of the present application does not impose any limitation on the specific information content contained in the above-mentioned external parameter information.

[0067] Here, unlike the above-mentioned external parameter information, the above-mentioned internal parameter information represents model parameter information related to model rendering; for example, the internal parameter information may include: the shader name (i.e., shader name) used by each sub-model when rendering the model, material information, bone information, bone weight information, vertex coordinate information of the mesh body, and a second set of UV coordinate information corresponding to each sub-model after cutting (UV coordinates are a two-dimensional coordinate system used in computer graphics to determine a point on a texture image, U represents the position in the horizontal direction, and V represents the position in the vertical direction); the embodiments of the present application also do not impose any limitations on the specific information content contained in the above-mentioned internal parameter information.

[0068] It should be noted that, in the original model before cutting, the topological structure of the model surface is composed of multiple meshes, wherein the material corresponding to the original model when the model is rendered is the original texture image, and based on the mapping relationship between the vertex coordinates of each mesh on the model surface of the original model and the pixel points in the original texture image, each sub-model in the original model before cutting, and the pixel points corresponding to the original texture image are the first set of UV coordinate information for each sub-model; and after the model is cut, each sub-model after cutting belongs to an independent model structure and is no longer a part of the original model. Therefore, after the model is cut, the vertices of each sub-model after cutting change (for example, after an original model is cut into two halves, each sub-model will have at least one more model outer surface, and thus one more mesh on the model surface), and the target plug-in can automatically re-determine the above-mentioned second set of UV coordinate information for each sub-model after cutting based on the material information of each sub-model after cutting.

[0069] S302, in response to the confirmation operation of the file export control in the target operation window, generates an external export file corresponding to the multiple sub-models cut out according to the external parameter information of each sub-model, and generates an internal export file corresponding to the multiple sub-models cut out according to the internal parameter information of each sub-model.

[0070] here, Figure 3b A schematic diagram of a target operation window provided in an embodiment of the present application is shown. Figure 3b As shown, in addition to the cutting size input box, cutting preview control 202, and model cutting control 203 related to model cutting, the target operation window 201 may also include: an export path selection box for supporting users to select and confirm the file export path, a file export control 204, an import path selection box for supporting users to select and confirm the file import path, and a model reorganization control 205.

[0071] Specifically, after the cutting is completed, the user can pre-select the target storage path for indicating the storage of the subsequently generated external export file and the internal export file from the export path selection box in the target operation window 201; after the user selects the target storage path, the target plug-in responds to the user's confirmation operation on the file export control 204, and can write the external parameter information of each sub-model recorded previously into the group type external export file in XML format (that is, the file suffix of the external export file is .group), and generate the gim model file, mesh mesh file and mtg material file of each sub-model based on the internal parameter information of each sub-model recorded previously, and save the gim model file, mesh mesh file and mtg material file of each sub-model together to obtain the internal export file corresponding to multiple sub-models.

[0072] S303, in response to the completion of the confirmation operation on the file export control, according to the target storage path previously indicated by the user in the target operation window, the external export file and the internal export file are exported and stored in the target storage path.

[0073] Here, in combination with the aforementioned step S302, it can be known that before confirming to export the file, the user can pre-select the target storage path for indicating the storage of the subsequently generated external export file and the internal export file in the export path selection box inside the target operation window. Therefore, the target plug-in responds to the completion of the confirmation operation for the file import control, and can directly store the external export file and the internal export file in the target storage path specified by the user, thereby completing the local storage of the model cutting plan.

[0074] It should be noted that, for the above-mentioned group-type external export files, the group-type external export files can be imported into any modeling platform that has the target plug-in installed. Therefore, even if the user subsequently reorganizes the above-mentioned multiple sub-models through a cross-platform approach (that is, the modeling platform for model reorganization is not the same modeling platform for model cutting), as long as the target plug-in is also installed in the other modeling platform for model reorganization, the user can import the above-mentioned external export files saved previously into the new modeling platform, so that the new modeling platform can quickly lock the model position of each sub-model and the relative position relationship of each sub-model in the original model based on the imported external export files, which is conducive to improving the efficiency of model reorganization and the compatibility of model cutting and model reorganization across platforms.

[0075] It should be noted that for the gim model file, mesh mesh file and mtg material file of each sub-model in the above-mentioned internal export file, in the field of 3D modeling, if the modeling platform wants to determine the specific rendering method of a model in order to display the model on the graphical user interface, it is necessary to at least obtain the above-mentioned gim model file, mesh mesh file and mtg material file of the model, and none of them can be missing.

[0076] Specifically, since the sub-model in the embodiment of the present application is cut from the original model, in determining the mtg material file of each sub-model, the target plug-in can give priority to obtaining the mtg material file of the original model to determine whether there is a material inheritance relationship between the sub-model and the original model. If so, the mtg material file of the original model can be parsed to read the key information related to the material information of the sub-model and write it into the mtg material file of the sub-model; if not, the mtg material file of the sub-model can be generated directly according to the material information of the sub-model itself.

[0077] Based on the implementation of the above steps S301-S303, the user can locally store the model cutting scheme for the original model (i.e., the external export file and the internal export file corresponding to the multiple sub-models after the cutting) (i.e., store it in the target storage path). After that, based on the subsequent model modification requirements, the user can also reorganize the multiple sub-models previously cut out by importing the locally stored external export file in any modeling platform installed with the target plug-in to obtain a reorganized model with the same appearance as the original model. At this time, different from the model cutting method shown in the above steps S101-S103, different types of modeling platforms have different ways of importing the external export file, so that different types of modeling platforms have different specific implementation methods for model reorganization. Here, taking the multiple sub-models cut out as an example, the specific implementation methods of model reorganization in different types of modeling platforms are described in detail as follows:

[0078] 1. When reorganizing the multiple sub-models cut out in the 3D Max modeling platform with the target plug-in installed, in an optional implementation scheme, Figure 4 The schematic diagram of the process of the first model reorganization method provided in the embodiment of the present application is shown as follows: Figure 4 As shown, the model reorganization method includes steps S401-S403; specifically:

[0079] S401, in response to the file import path input in the target operation window being the target storage path, determining the external export file and the internal export file stored in the target storage path.

[0080] Here, if Figure 3b As shown, in the target operation window 201, the user can input / select the target storage path storing the above-mentioned external export files as the file import path in the import path selection box. At this time, the target plug-in responds to the file import path input by the user in the target operation window 201 as the target storage path, and can determine the above-mentioned external export files and the above-mentioned internal export files used for model reorganization from the target storage path.

[0081] S402, in response to a confirmation operation on a model reorganization control in the target operation window, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model.

[0082] Here, unlike the original model, within the reorganized model, each of the sub-models cut out retains its own independent model structure; that is, in the reorganized model obtained after the model is reorganized, each sub-model is still an independent model, rather than a part of the reorganized model (equivalent to the reorganized model being a plurality of sub-models spliced ​​together according to the appearance of the original model, rather than re-merging the plurality of sub-models into a complete original model).

[0083] S403: In response to completion of the confirmation operation on the model reorganization control, display the reorganized model in the graphical user interface.

[0084] Specifically, Figure 3b As shown, the target plug-in responds to the user's confirmation operation on the model reorganization control 205, and can determine the model coordinate position of each sub-model and the relative position relationship of different sub-models in the original model based on the above-mentioned external export file, so that based on the above-mentioned external export file, the target plug-in can determine the specific position of each sub-model in the reorganized model; and based on the above-mentioned internal export file, the target plug-in can determine the specific model rendering method of each sub-model, so that at the position of each sub-model in the reorganized model, based on the model rendering method of each sub-model determined in the internal export file, the specific sub-model can be rendered and displayed in the graphical user interface, thereby completing the model reorganization of multiple sub-models.

[0085] 2. When the multiple sub-models cut out are reorganized in the NeoX modeling platform with the target plug-in installed, in an optional implementation scheme, Figure 5 A schematic diagram of the process of the second model reorganization method provided in the embodiment of the present application is shown, as follows: Figure 5 As shown, the model reorganization method includes steps S501-S502; specifically:

[0086] S501, in response to the external export file being dragged into the graphical user interface, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model.

[0087] Here, unlike the model reorganization by selecting a file import path in the above step S401, in the NeoX modeling platform, the user can directly drag the above external export file (file suffix is ​​.group) stored locally from the local target storage path to the graphical user interface. At this time, the target plug-in responds to the above external export file being dragged into the graphical user interface, and determines that the multiple sub-models corresponding to the external export file need to be reorganized.

[0088] It should be noted that, regardless of the type of modeling platform, the reorganized model after reorganization in step S501 is the same as the reorganized model obtained in the above steps S401-S403, that is, within the reorganized model, each of the sub-models cut out also retains its own independent model structure.

[0089] S502, in response to the end of the drag-in operation, displaying the reorganized model at the end position of the drag-in operation in the graphical user interface.

[0090] Specifically, the specific reorganization method of reorganizing the model according to the external export file and the internal export file in steps S501-S502 and the method of displaying the reorganized model in the graphical user interface are the same as the above steps S402-S403, and the repeated parts are not repeated here.

[0091] 3. When the multiple sub-models cut out are reorganized in the UE4 modeling platform with the target plug-in installed, in an optional implementation scheme, Figure 6 A schematic diagram of a third model reorganization method provided in an embodiment of the present application is shown, wherein, based on the original model displayed in the graphical user interface, as shown in FIG. Figure 6 As shown, the model reorganization method includes steps S601-S603; specifically:

[0092] S601, in response to a confirmation operation on the original model in the graphical user interface, obtaining a model position of the original model in the graphical user interface, and obtaining the external export file and the internal export file according to an asset path of the original model.

[0093] Here, since the multiple sub-models after cutting are also related resources of the original model, the target storage path for storing the above-mentioned external export files and internal export files belongs to the asset path corresponding to the original model (that is, the storage path of the resources related to the original model is stored in the local res directory). The target plug-in can search for the model cutting plan (that is, the above-mentioned external export files and internal export files) from the asset path of the original model.

[0094] Different from the above steps S401-S403 and S501-S502 which reorganize the model by importing files, in the UE4 modeling platform, when the original model (i.e., the original model before cutting) is displayed in the graphical user interface, the target plug-in responds to the user's confirmation operation on the original model (i.e., the user selects the original model), and can obtain the asset path of the original model locally, and search and obtain the above external export files and internal export files.

[0095] S602, in response to the model replacement operation on the original model, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model.

[0096] Here, the target plug-in responds to the user's model replacement operation on the original model. In the same manner as steps S402-S403 above, the multiple sub-models cut out can be reorganized according to the external export file and the internal export file to obtain a reorganized model. The repetition will not be repeated here.

[0097] S603, in response to the completion of the model replacement operation, using the model position of the original model in the graphical user interface as the display position of the reorganized model, and replacing the original model displayed in the graphical user interface with the reorganized model.

[0098] Here, when the model replacement operation is completed, the target plug-in can replace the original model displayed in the graphical user interface with the reorganized model, that is, the target plug-in uses the model position of the original model in the graphical user interface as the display position of the reorganized model, replaces the original model displayed in the graphical user interface with the reorganized model, and deletes the original model.

[0099] Based on the model reconstruction method shown in the above steps, no matter in which modeling platform the model reconstruction is performed, the finally obtained reconstructed model retains the independent model structure of each sub-model internally, that is, unlike the original model, in the reconstructed model obtained after the model reconstruction, each sub-model is still an independent model, rather than a part of the reconstructed model (equivalent to the reconstructed model being a plurality of sub-models spliced ​​together according to the appearance of the original model, rather than re-melting the plurality of sub-models into a complete original model); at this time, based on this feature of the reconstructed model, when there is a main virtual object in the modeling scene (that is, a target virtual object is displayed in the graphical user interface), the embodiment of the present application also provides a method for adaptively adjusting the model status of different sub-models in the reconstructed model.

[0100] Here, in an optional embodiment, Figure 7 A flow chart of a method for adaptively adjusting the model states of different sub-models in a reorganized model provided in an embodiment of the present application is shown, such as Figure 7 As shown, the method includes steps S701-S703; specifically:

[0101] S701, determining the model center position of each of the sub-models from the reorganized model.

[0102] Specifically, the model coordinate information of each sub-model is recorded in the external export file; wherein the model coordinate information represents the coordinate information of the model center point of each sub-model in the model world coordinate system, and in the reorganized model, each sub-model still retains an independent model structure, therefore, the target plug-in can obtain the model center point coordinates of each sub-model from the reorganized model as the model center position.

[0103] S702: For each of the sub-models, when it is detected that the distance between the model center position of the sub-model and the target virtual object is greater than or equal to a preset distance threshold, display the low-poly model of the sub-model in the reconstructed model.

[0104] Here, in the field of 3D modeling, a model usually has two different model states: high poly and low poly. Among them, high poly refers to a model with high resolution, high precision and a large number of model surface details; while low poly refers to a model with low resolution, low precision and relatively simple model surface details.

[0105] S703: When it is detected that the distance between the model center position of the sub-model and the target virtual object is less than a preset distance threshold, the high-poly model of the sub-model is displayed in the reconstructed model.

[0106] Specifically, since each sub-model still retains an independent model structure in the reorganized model, some sub-models in the reorganized model (i.e., sub-models whose distance to the target virtual object is greater than or equal to the preset distance threshold) can be displayed as low-poly models; and some sub-models in the reorganized model (i.e., sub-models whose distance to the target virtual object is less than the preset distance threshold) can be displayed as high-poly models by determining whether the distance between the model center position of each sub-model and the target virtual object exceeds (i.e., is greater than or equal to) the preset distance threshold.

[0107] Here, for the original model that has not been cut, since the original model is a complete model, that is, the central axis in the original model is unique (that is, the original model has only one model center point), therefore, unlike the method shown in the above steps S701-S703, when the target virtual object is also displayed in the graphical user interface, the prior art can only determine the overall model state of the original model according to the method shown in the following steps a1-a3, specifically:

[0108] Step a1: determine whether the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold.

[0109] Here, unlike the reconstructed model in the above steps S701-S703, since the original model is a complete model, that is, there is only one center point in the original model (that is, the above model center position is unique), therefore, no matter what the judgment result is (that is, no matter whether the distance between the model center position of the original model and the target virtual object is greater than or equal to the preset distance threshold), the original model will only be displayed as one model state (that is, low-poly or high-poly), and there will be no situation where part of the low-poly or part of the high-poly exists in the original model at the same time, which results in a relatively monotonous modeling effect and is difficult to meet more abundant modeling needs.

[0110] Step a2: If the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold, display the low-poly model of the original model in the graphical user interface.

[0111] Specifically, the judgment process for a sub-model in the above steps S701-S703 is the same. When the distance between the model center position of the original model and the target virtual object is greater than or equal to the preset distance threshold, the low-poly model of the original model is displayed in the graphical user interface.

[0112] Step a3: If the distance between the model center position of the original model and the target virtual object is less than a preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

[0113] Specifically, the same as the judgment process for a sub-model in the above steps S701-S703, when the distance between the model center position of the original model and the target virtual object is less than the preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

[0114] Based on the above model processing method provided by the embodiment of the present application, in response to the trigger operation for the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface; in response to the confirmation operation of the cutting preview control in the target operation window, the minimum bounding box corresponding to the original model is pre-cut according to the slice of the target cutting size, and a cutting preview effect diagram for the original model is generated, and the cutting preview effect diagram is displayed in the graphical user interface; in response to the confirmation operation of the model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain multiple sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through a target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting.

[0115] Based on the same inventive concept, the present application also provides a model processing device corresponding to the above-mentioned model processing method. Since the principle of solving the problem by the model processing device in the embodiment of the present application is similar to the above-mentioned model processing method in the embodiment of the present application, the implementation of the model processing device can refer to the implementation of the above-mentioned model processing method, and the repeated parts will not be repeated.

[0116] Reference Figure 8 As shown, Figure 8 A schematic diagram of the structure of a model processing device provided in an embodiment of the present application is shown, wherein the model processing device is applied to a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided through the modeling platform, and the original model to be cut is displayed in the graphical user interface, and the model processing device includes:

[0117] A trigger module 801 is used to respond to a trigger operation on the target plug-in and display a target operation window for cutting the original model in the graphical user interface;

[0118] The preview module 802 is used to respond to the confirmation operation of the cutting preview control in the target operation window, pre-cut the minimum bounding box corresponding to the original model according to the slice of the target cutting size, generate a cutting preview effect diagram for the original model, and display the cutting preview effect diagram in the graphical user interface; wherein the target cutting size represents the cutting size input by the user in the target operation window;

[0119] The cutting module 803 is used to respond to the confirmation operation of the model cutting control in the target operation window, cut the original model according to the cutting preview effect diagram, obtain multiple sub-models corresponding to the original model, and replace the original model displayed in the graphical user interface with the multiple sub-models cut out.

[0120] In an optional implementation, the model processing device further includes: a file export module; wherein the file export module is used to:

[0121] Recording the external parameter information and internal parameter information of each of the sub-models cut out; wherein the external parameter information at least includes: model coordinate information of each of the sub-models and the relative position relationship of different sub-models in the original model; the internal parameter information represents model parameter information related to model rendering;

[0122] In response to a confirmation operation on a file export control in the target operation window, an external export file corresponding to the plurality of sub-models cut out is generated according to the external parameter information of each of the sub-models, and an internal export file corresponding to the plurality of sub-models cut out is generated according to the internal parameter information of each of the sub-models;

[0123] In response to the completion of the confirmation operation on the file export control, the external export file and the internal export file are exported and stored in the target storage path according to the target storage path previously indicated by the user in the target operation window.

[0124] In an optional embodiment, the model processing device further includes: a first reorganization module, the first reorganization module is used to reorganize the multiple sub-models cut out by the following method:

[0125] In response to the file import path input in the target operation window being the target storage path, determining the external export file and the internal export file stored in the target storage path;

[0126] In response to a confirmation operation on a model reorganization control in the target operation window, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model with the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0127] In response to completion of the confirmation operation on the model reorganization control, the reorganized model is displayed in the graphical user interface.

[0128] In an optional implementation, the model processing device further includes: a second reorganization module, the second reorganization module is used to reorganize the multiple sub-models cut out by the following method:

[0129] In response to the external export file being dragged into the graphical user interface, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0130] In response to the end of the drag-in operation, the reorganized model is displayed at the end position of the drag-in operation in the graphical user interface.

[0131] In an optional implementation, the original model is displayed in the graphical user interface, and the model processing device further includes: a third reorganization module, the third reorganization module is used to reorganize the multiple sub-models cut out by the following method:

[0132] The original model displayed in the graphical user interface is replaced by the multiple cut sub-models by the following method:

[0133] In response to a confirmation operation on the original model in the graphical user interface, a model position of the original model in the graphical user interface is obtained, and according to the asset path of the original model, the external export file and the internal export file are obtained; wherein the target storage path belongs to the asset path corresponding to the original model;

[0134] In response to the model replacement operation for the original model, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0135] In response to the completion of the model replacement operation, the model position of the original model in the graphical user interface is used as the display position of the reorganized model, and the original model displayed in the graphical user interface is replaced with the reorganized model.

[0136] In an optional implementation, the graphical user interface displays a target virtual object, and the model processing device further includes a first processing module, wherein the first processing module is used to:

[0137] Determining the model center position of each of the sub-models from the reorganized model;

[0138] For each of the sub-models, when it is detected that the distance between the model center position of the sub-model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the sub-model in the reconstructed model;

[0139] When it is detected that the distance between the model center position of the sub-model and the target virtual object is less than a preset distance threshold, the high-poly model of the sub-model is displayed in the reconstructed model.

[0140] In an optional implementation, the graphical user interface displays a target virtual object, and the model processing device further includes a second processing module, wherein the second processing module is used to:

[0141] Determine whether the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold;

[0142] If the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the original model in the graphical user interface;

[0143] If the distance between the model center position of the original model and the target virtual object is less than a preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

[0144] Based on the above-mentioned model processing device provided by the embodiment of the present application, in response to the trigger operation for the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface; in response to the confirmation operation of the cutting preview control in the target operation window, the minimum bounding box corresponding to the original model is pre-cut according to the slice of the target cutting size, and a cutting preview effect diagram for the original model is generated, and the cutting preview effect diagram is displayed in the graphical user interface; in response to the confirmation operation of the model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain multiple sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through a target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting.

[0145] Based on the same inventive concept, the present application also provides an electronic device corresponding to the above-mentioned model processing method. Since the principle of solving the problem by the electronic device in the embodiment of the present application is similar to the above-mentioned model processing method in the embodiment of the present application, the implementation of the electronic device can refer to the implementation of the above-mentioned model processing method, and the repeated parts will not be repeated.

[0146] Fig. 9 A structural diagram of an electronic device 900 provided in an embodiment of the present application includes: a processor 901, a memory 902 and a bus 903, the memory 902 stores machine-readable instructions executable by the processor 901, when the electronic device runs a model processing method as in the embodiment, the processor 901 communicates with the memory 902 through the bus 903, and the processor 901 executes the machine-readable instructions, wherein the processor 901 can control a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided through the modeling platform, and the original model to be cut is displayed in the graphical user interface, and the processor 901 implements the following steps when executing the machine-readable instructions, specifically:

[0147] In response to a trigger operation on the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface;

[0148] In response to a confirmation operation on a cutting preview control in the target operation window, pre-cutting the minimum bounding box corresponding to the original model according to the slices of the target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface; wherein the target cutting size represents the cutting size input by the user in the target operation window;

[0149] In response to a confirmation operation on a model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the plurality of sub-models cut out.

[0150] In an optional implementation, the processor 901 is further configured to:

[0151] Recording the external parameter information and internal parameter information of each of the sub-models cut out; wherein the external parameter information at least includes: model coordinate information of each of the sub-models and the relative position relationship of different sub-models in the original model; the internal parameter information represents model parameter information related to model rendering;

[0152] In response to a confirmation operation on a file export control in the target operation window, an external export file corresponding to the plurality of sub-models cut out is generated according to the external parameter information of each of the sub-models, and an internal export file corresponding to the plurality of sub-models cut out is generated according to the internal parameter information of each of the sub-models;

[0153] In response to the completion of the confirmation operation on the file export control, the external export file and the internal export file are exported and stored in the target storage path according to the target storage path previously indicated by the user in the target operation window.

[0154] In an optional implementation, the processor 901 is configured to reorganize the multiple sub-models cut out by the following method:

[0155] In response to the file import path input in the target operation window being the target storage path, determining the external export file and the internal export file stored in the target storage path;

[0156] In response to a confirmation operation on a model reorganization control in the target operation window, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model with the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0157] In response to completion of the confirmation operation on the model reorganization control, the reorganized model is displayed in the graphical user interface.

[0158] In an optional implementation, the processor 901 is configured to reorganize the multiple sub-models cut out by the following method:

[0159] In response to the external export file being dragged into the graphical user interface, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0160] In response to the end of the drag-in operation, the reorganized model is displayed at the end position of the drag-in operation in the graphical user interface.

[0161] In an optional implementation, the original model is displayed in the graphical user interface, and the processor 901 replaces the original model displayed in the graphical user interface with the multiple cut sub-models by the following method:

[0162] In response to a confirmation operation on the original model in the graphical user interface, a model position of the original model in the graphical user interface is obtained, and according to the asset path of the original model, the external export file and the internal export file are obtained; wherein the target storage path belongs to the asset path corresponding to the original model;

[0163] In response to the model replacement operation for the original model, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0164] In response to the completion of the model replacement operation, the model position of the original model in the graphical user interface is used as the display position of the reorganized model, and the original model displayed in the graphical user interface is replaced with the reorganized model.

[0165] In an optional implementation, the graphical user interface displays a target virtual object. After the reorganized model is displayed in the graphical user interface, the processor 901 is further configured to:

[0166] Determining the model center position of each of the sub-models from the reorganized model;

[0167] For each of the sub-models, when it is detected that the distance between the model center position of the sub-model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the sub-model in the reconstructed model;

[0168] When it is detected that the distance between the model center position of the sub-model and the target virtual object is less than a preset distance threshold, the high-poly model of the sub-model is displayed in the reconstructed model.

[0169] In an optional implementation manner, the graphical user interface displays a target virtual object, and before cutting the original model, the processor 901 is further configured to:

[0170] Determine whether the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold;

[0171] If the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the original model in the graphical user interface;

[0172] If the distance between the model center position of the original model and the target virtual object is less than a preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

[0173] The electronic device provided by the embodiment of the present application responds to the trigger operation of the target plug-in, and displays the target operation window for cutting the original model in the graphical user interface; responds to the confirmation operation of the cutting preview control in the target operation window, pre-cuts the minimum bounding box corresponding to the original model according to the slice of the target cutting size, generates a cutting preview effect diagram for the original model, and displays the cutting preview effect diagram in the graphical user interface; responds to the confirmation operation of the model cutting control in the target operation window, cuts the original model according to the cutting preview effect diagram, obtains multiple sub-models corresponding to the original model, and replaces the original model displayed in the graphical user interface with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through the target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting.

[0174] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed when a processor is running, the processor can control a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided through the modeling platform, and an original model to be cut is displayed in the graphical user interface, and the processor performs the following steps:

[0175] In response to a trigger operation on the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface;

[0176] In response to a confirmation operation on a cutting preview control in the target operation window, pre-cutting the minimum bounding box corresponding to the original model according to the slices of the target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface; wherein the target cutting size represents the cutting size input by the user in the target operation window;

[0177] In response to a confirmation operation on a model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the plurality of sub-models cut out.

[0178] In an optional implementation, the processor is further configured to:

[0179] Recording the external parameter information and internal parameter information of each of the sub-models cut out; wherein the external parameter information at least includes: model coordinate information of each of the sub-models and the relative position relationship of different sub-models in the original model; the internal parameter information represents model parameter information related to model rendering;

[0180] In response to a confirmation operation on a file export control in the target operation window, an external export file corresponding to the plurality of sub-models cut out is generated according to the external parameter information of each of the sub-models, and an internal export file corresponding to the plurality of sub-models cut out is generated according to the internal parameter information of each of the sub-models;

[0181] In response to the completion of the confirmation operation on the file export control, the external export file and the internal export file are exported and stored in the target storage path according to the target storage path previously indicated by the user in the target operation window.

[0182] In an optional implementation, the processor is used to reorganize the multiple sub-models cut out by the following method:

[0183] In response to the file import path input in the target operation window being the target storage path, determining the external export file and the internal export file stored in the target storage path;

[0184] In response to a confirmation operation on a model reorganization control in the target operation window, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model with the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0185] In response to completion of the confirmation operation on the model reorganization control, the reorganized model is displayed in the graphical user interface.

[0186] In an optional implementation, the processor is used to reorganize the multiple sub-models cut out by the following method:

[0187] In response to the external export file being dragged into the graphical user interface, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0188] In response to the end of the drag-in operation, the reorganized model is displayed at the end position of the drag-in operation in the graphical user interface.

[0189] In an optional implementation, the original model is displayed in the graphical user interface, and the processor replaces the original model displayed in the graphical user interface with the multiple cut sub-models by the following method:

[0190] In response to a confirmation operation on the original model in the graphical user interface, a model position of the original model in the graphical user interface is obtained, and according to the asset path of the original model, the external export file and the internal export file are obtained; wherein the target storage path belongs to the asset path corresponding to the original model;

[0191] In response to the model replacement operation for the original model, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure;

[0192] In response to the completion of the model replacement operation, the model position of the original model in the graphical user interface is used as the display position of the reorganized model, and the original model displayed in the graphical user interface is replaced with the reorganized model.

[0193] In an optional implementation, the graphical user interface displays a target virtual object, and after the reorganized model is displayed in the graphical user interface, the processor is further configured to:

[0194] Determining the model center position of each of the sub-models from the reorganized model;

[0195] For each of the sub-models, when it is detected that the distance between the model center position of the sub-model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the sub-model in the reconstructed model;

[0196] When it is detected that the distance between the model center position of the sub-model and the target virtual object is less than a preset distance threshold, the high-poly model of the sub-model is displayed in the reconstructed model.

[0197] In an optional implementation, the graphical user interface displays a target virtual object, and before cutting the original model, the processor is further configured to:

[0198] Determine whether the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold;

[0199] If the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the original model in the graphical user interface;

[0200] If the distance between the model center position of the original model and the target virtual object is less than a preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

[0201] Through the above-mentioned computer-readable storage medium provided by the embodiment of the present application, in response to the trigger operation for the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface; in response to the confirmation operation of the cutting preview control in the target operation window, the minimum bounding box corresponding to the original model is pre-cut according to the slice of the target cutting size, and a cutting preview effect diagram for the original model is generated, and the cutting preview effect diagram is displayed in the graphical user interface; in response to the confirmation operation of the model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain multiple sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the multiple sub-models cut out. In this way, the present application provides the user with a preview of the overall cutting effect of the model before cutting the model through a target plug-in that can be installed on any modeling platform, and automatically cuts the overall model after the user confirms the cutting model, which effectively improves the efficiency and accuracy of model cutting.

[0202] In an embodiment of the present application, the computer-readable storage medium can also execute other machine-readable instructions when run by the processor to execute the model processing method as described in other embodiments. For the specific steps and principles of the model processing method, please refer to the description of the method side embodiment, which will not be repeated here.

[0203] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the system or unit can be electrical, mechanical or other forms.

[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0205] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0206] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0207] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0208] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A model processing method, characterized in that: The model processing method is applied to a target plug-in, the target plug-in is installed in a modeling platform, a graphical user interface is provided by the modeling platform, and the graphical user interface displays an original model to be cut. The model processing method includes: In response to a trigger operation on the target plug-in, a target operation window for cutting the original model is displayed in the graphical user interface; In response to a confirmation operation on a cutting preview control in the target operation window, pre-cutting the minimum bounding box corresponding to the original model according to the slices of the target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface; wherein the target cutting size represents the cutting size input by the user in the target operation window; In response to a confirmation operation on a model cutting control in the target operation window, the original model is cut according to the cutting preview effect diagram to obtain a plurality of sub-models corresponding to the original model, and the original model displayed in the graphical user interface is replaced with the plurality of sub-models cut out.

2. The model processing method according to claim 1, characterized in that: The model processing method further includes: Recording the external parameter information and internal parameter information of each of the sub-models cut out; wherein the external parameter information at least includes: model coordinate information of each of the sub-models and the relative position relationship of different sub-models in the original model; the internal parameter information represents model parameter information related to model rendering; In response to a confirmation operation on a file export control in the target operation window, an external export file corresponding to the plurality of sub-models cut out is generated according to the external parameter information of each of the sub-models, and an internal export file corresponding to the plurality of sub-models cut out is generated according to the internal parameter information of each of the sub-models; In response to the completion of the confirmation operation on the file export control, the external export file and the internal export file are exported and stored in the target storage path according to the target storage path previously indicated by the user in the target operation window.

3. The model processing method according to claim 2, characterized in that: The multiple sub-models cut out are reorganized by the following method: In response to the file import path input in the target operation window being the target storage path, determining the external export file and the internal export file stored in the target storage path; In response to a confirmation operation on a model reorganization control in the target operation window, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model with the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure; In response to completion of the confirmation operation on the model reorganization control, the reorganized model is displayed in the graphical user interface.

4. The model processing method according to claim 2, characterized in that: The multiple sub-models cut out are reorganized by the following method: In response to the external export file being dragged into the graphical user interface, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure; In response to the end of the drag-in operation, the reorganized model is displayed at the end position of the drag-in operation in the graphical user interface.

5. The model processing method according to claim 2, characterized in that: The original model is displayed in the graphical user interface, and the original model displayed in the graphical user interface is replaced with the multiple sub-models cut out by the following method: In response to a confirmation operation on the original model in the graphical user interface, a model position of the original model in the graphical user interface is obtained, and according to the asset path of the original model, the external export file and the internal export file are obtained; wherein the target storage path belongs to the asset path corresponding to the original model; In response to the model replacement operation for the original model, the plurality of sub-models cut out are reorganized according to the external export file and the internal export file to obtain a reorganized model having the same appearance as the original model; wherein, inside the reorganized model, each of the sub-models cut out retains its own independent model structure; In response to the completion of the model replacement operation, the model position of the original model in the graphical user interface is used as the display position of the reorganized model, and the original model displayed in the graphical user interface is replaced with the reorganized model.

6. The model processing method according to claim 3 or claim 4 or claim 5, characterized in that: The target virtual object is displayed in the graphical user interface. After the reorganized model is displayed in the graphical user interface, the model processing method further includes: Determining the model center position of each of the sub-models from the reorganized model; For each of the sub-models, when it is detected that the distance between the model center position of the sub-model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the sub-model in the reconstructed model; When it is detected that the distance between the model center position of the sub-model and the target virtual object is less than a preset distance threshold, the high-poly model of the sub-model is displayed in the reconstructed model.

7. The model processing method according to claim 1, characterized in that: The target virtual object is displayed in the graphical user interface. Before cutting the original model, the model processing method further includes: Determine whether the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold; If the distance between the model center position of the original model and the target virtual object is greater than or equal to a preset distance threshold, displaying a low-poly model of the original model in the graphical user interface; If the distance between the model center position of the original model and the target virtual object is less than a preset distance threshold, the high-poly model of the original model is displayed in the graphical user interface.

8. A model processing device, characterized in that: The model processing device is applied to a target plug-in, and the target plug-in is installed in a modeling platform. A graphical user interface is provided by the modeling platform, and the graphical user interface displays an original model to be cut. The model processing device includes: A trigger module, configured to respond to a trigger operation on the target plug-in and display a target operation window for cutting the original model in the graphical user interface; A preview module, for responding to a confirmation operation on a cutting preview control in the target operation window, pre-cutting a minimum bounding box corresponding to the original model according to a slice of a target cutting size, generating a cutting preview effect diagram for the original model, and displaying the cutting preview effect diagram in the graphical user interface; wherein the target cutting size represents a cutting size input by a user in the target operation window; A cutting module is used to respond to a confirmation operation on a model cutting control in the target operation window, cut the original model according to the cutting preview effect diagram, obtain a plurality of sub-models corresponding to the original model, and replace the original model displayed in the graphical user interface with the plurality of sub-models cut out.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the model processing method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the model processing method according to any one of claims 1 to 7 are executed.