3D Model Processing Method, Device, Electronic Device and Storage Medium
By introducing a group processing window into the three-dimensional model processing, the automation, batch grouping and ungrouping of the three-dimensional model is realized, which solves the problems of boring and error-prone problems in the existing technology, and improves the efficiency and standardization of art resource production.
Patent Information
- Application Number
- CN202111350023.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-11-15
AI Technical Summary
In the prior art, artists need to manually perform multiple set operations when creating or modifying three-dimensional models, resulting in boring operation and error-proneness, and affecting the efficiency of art resource production.
By providing a group processing window, artists can enter group operation in this window. The system will simulate click operation, automatically and batch group and ungroup multiple groups of three-dimensional models, and generate target three-dimensional models and multi-detail hierarchy sets.
The three-dimensional model processing process is automated and batched, which reduces the repeated operations of artists, improves the efficiency of art resource production, and ensures the standardization of grouping results.
Smart Images

Figure CN113936102B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a three-dimensional model processing method, apparatus, electronic device, and storage medium. Background Art
[0002] 3D Studio Max (3ds Max) is a three-dimensional animation rendering and production software, and is a necessary tool for artists to create or modify art resources.
[0003] During the process of artists creating new art resources or modifying existing resources, for a large number of three-dimensional models that need to be grouped, artists can only mechanically and repeatedly select the three-dimensional models that need to be grouped, and then select the grouping function to group them.
[0004] The above operation process is completely manually executed by artists. This process is not only boring and repetitive, but also prone to errors during the operation, which not only affects the efficiency of the art resource production process, but also may lead to non-standard exported art resources. Summary of the Invention
[0005] The purpose of the present invention is to provide a three-dimensional model processing method, apparatus, electronic device, and storage medium for the above-mentioned deficiencies in the prior art, so as to achieve batch processing and automation of the three-dimensional model processing process and improve the production efficiency of art resources.
[0006] To achieve the above object, the technical solutions adopted in the embodiments of the present invention are as follows:
[0007] In a first aspect, an embodiment of the present invention provides a three-dimensional model processing method. A model operation interface is displayed through an electronic device. At least one group of three-dimensional models is displayed in a model display area of the model operation interface. Different three-dimensional models in each group of three-dimensional models are models of different detail levels for the same target object. The model operation interface displays: a group processing window; the method includes:
[0008] In response to a grouping operation input through the group processing window, a setting panel is displayed on the model operation interface. Multiple window information is displayed in the setting panel;
[0009] Determine multiple first target window information associated with the grouping operation from the multiple window information;
[0010] Simulate the click operations on the windows corresponding to the multiple pieces of first target window information, perform combinations of different levels of detail on different 3D models in each group of 3D models, and generate a target 3D model corresponding to each group of 3D models and a set of levels of detail corresponding to each group of 3D models; the target 3D model has the levels of detail of different 3D models in each group of 3D models, and the set of levels of detail includes: the level-of-detail information of different 3D models in each group of 3D models.
[0011] Optionally, the method further includes:
[0012] Display the target 3D model in the model display area;
[0013] Display the set of levels of detail in the level-set display area of the model operation interface.
[0014] Optionally, the method further includes:
[0015] Respond to the ungrouping operation input through the group processing window, and display the setting panel on the model operation interface, where the following are displayed in the setting panel: the multiple pieces of window information;
[0016] Determine multiple pieces of second target window information associated with the ungrouping operation from the multiple pieces of window information;
[0017] Simulate the click operations on the windows corresponding to the multiple pieces of second target window information, perform ungrouping of different levels of detail on the target 3D model, and obtain a group of 3D models with different levels of detail of the target object corresponding to the target 3D model.
[0018] Optionally, the method further includes:
[0019] Display each group of 3D models after ungrouping in the model display area;
[0020] Cancel the display of the set of levels of detail in the level-set display area.
[0021] Optionally, determining multiple pieces of first target window information associated with the grouping operation from the multiple pieces of window information includes:
[0022] Determine first target parent window information corresponding to the parent handle from the multiple pieces of window information according to the window handles of the multiple pieces of window information; the list box to which the first target parent window information belongs includes multiple pieces of first child window information;
[0023] Determine first target child window information corresponding to the child handle from the multiple pieces of first child window information according to the window handles of the multiple pieces of first child window information.
[0024] Optionally, the window handle includes: a window class, and the parent handle includes: a target parent window class. Determining, from the multiple window information, first target parent window information corresponding to the parent handle by the window handle of the multiple window information includes:
[0025] Determining, from the multiple window information, the first target parent window information corresponding to the target parent window class according to the window class of the multiple window information.
[0026] Optionally, the window handle includes: a window field definition, and the child handle includes: a target parent window field definition. Determining, from the multiple first sub-window information, first target sub-window information corresponding to the child handle by the window handle of the multiple first sub-window information includes:
[0027] Determining, from the multiple first sub-window information, the first target sub-window information corresponding to the target window field definition according to the window field definition of the multiple first sub-window information.
[0028] Optionally, the method further includes:
[0029] Displaying a level set creation control corresponding to the first target sub-window information in a level set operation area of the model operation interface;
[0030] Simulating a click operation on the windows corresponding to the multiple first target window information, and performing a multi-level-of-detail combination on different 3D models in each group of 3D models to generate a target 3D model corresponding to each group of 3D models and a multi-level-of-detail set corresponding to each group of 3D models, includes:
[0031] Simulating a click operation on the level set creation control, and performing a multi-level-of-detail combination on different 3D models in each group of 3D models to generate the target 3D model and the multi-level-of-detail set.
[0032] Optionally, determining multiple second target window information associated with the ungrouping operation from the multiple window information includes:
[0033] Determining, from the multiple window information, second target parent window information corresponding to the parent handle according to the window handle of the multiple window information; the list box to which the second target parent window information belongs includes multiple second sub-window information;
[0034] Determining, from the multiple second sub-window information, second target sub-window information corresponding to the child handle according to the window handle of the multiple second sub-window information.
[0035] Optionally, the method further includes:
[0036] In response to an export operation input through the group processing window, export the target 3D model to a preset storage path.
[0037] In a second aspect, an embodiment of the present invention further provides a 3D model processing device. A model operation interface is displayed through an electronic device. At least one group of 3D models is displayed in the model display area of the model operation interface. Different 3D models in each group of 3D models are models of different levels of detail for the same target object. The model operation interface displays: a group processing window; the device includes:
[0038] A grouping display module, configured to, in response to a grouping operation input through the group processing window, display a setting panel on the model operation interface, and multiple window information is displayed in the setting panel;
[0039] A first target window information determination module, configured to determine multiple first target window information associated with the grouping operation from the multiple window information;
[0040] A combination module, configured to simulate click operations on the windows corresponding to the multiple first target window information, perform multi-level-of-detail combination on different 3D models in each group of 3D models, generate a target 3D model corresponding to each group of 3D models and a multi-level-of-detail set corresponding to each group of 3D models; the target 3D model has the levels of detail of different 3D models in each group of 3D models, and the multi-level-of-detail set includes: level-of-detail information of different 3D models in each group of 3D models.
[0041] Optionally, the device further includes:
[0042] A first display module, configured to display the target 3D model in the model display area;
[0043] A second display module, configured to display the multi-level-of-detail set in the level-of-detail set display area of the model operation interface.
[0044] Optionally, the device further includes:
[0045] An ungrouping display module, configured to, in response to an ungrouping operation input through the group processing window, display the setting panel on the model operation interface, and the multiple window information is displayed in the setting panel;
[0046] A second target window information determination module, configured to determine multiple second target window information associated with the ungrouping operation from the multiple window information;
[0047] The ungrouping module is used to simulate the click operations on the windows corresponding to the multiple second target window information, ungroup the target 3D model at multiple levels of detail, and obtain a set of 3D models of the target object corresponding to the target 3D model with different levels of detail.
[0048] Optionally, the device further includes:
[0049] The third display module is used to display each group of 3D models after ungrouping in the model display area;
[0050] The cancellation display module is used to cancel the display of the multiple levels of detail set in the level set display area.
[0051] Optionally, the first target window information determination module includes:
[0052] The first target parent window information determination unit is used to determine the first target parent window information corresponding to the parent handle from the multiple window information according to the window handles of the multiple window information; the list box to which the first target parent window information belongs includes multiple first sub-window information;
[0053] The first target sub-window information determination unit is used to determine the first target sub-window information corresponding to the child handle from the multiple first sub-window information according to the window handles of the multiple first sub-window information.
[0054] Optionally, the window handle includes: window category, and the parent handle includes: target parent window category. The first target parent window information determination unit is specifically used to determine the first target parent window information corresponding to the target parent window category from the multiple window information according to the window categories of the multiple window information.
[0055] Optionally, the window handle includes: window field definition, and the child handle includes: target sub-window field definition. The first target sub-window information determination unit is specifically used to determine the first target sub-window information corresponding to the target sub-window field definition from the multiple first sub-window information according to the window field definitions of the multiple first sub-window information.
[0056] Optionally, the device further includes:
[0057] The control display module is used to display the level set creation control corresponding to the first target sub-window information in the level set operation area of the model operation interface;
[0058] The combination module is specifically used to simulate the click operation of the level set creation control, combine the different 3D models in each group of 3D models at multiple levels of detail, and generate the target 3D model and the multiple levels of detail set.
[0059] Optionally, the second target window information determination module includes:
[0060] A second target parent window information determination unit, configured to determine, according to the window handles of the multiple window information, second target parent window information corresponding to the parent handle from the multiple window information; the list box to which the second target parent window information belongs includes multiple second sub-window information;
[0061] A second target sub-window information determination unit, configured to determine, according to the window handles of the multiple second sub-window information, second target sub-window information corresponding to the child handle from the multiple second sub-window information.
[0062] Optionally, the device further includes:
[0063] An export module, configured to respond to an export operation input through the group processing window, and export the target 3D model to a preset storage path.
[0064] In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the 3D model processing method according to any one of the above embodiments.
[0065] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the steps of the 3D model processing method according to any one of the above embodiments.
[0066] The beneficial effects of this application are:
[0067] The present application provides a three-dimensional model processing method, apparatus, electronic device, and storage medium. The electronic device displays a model operation interface, and at least one group of three-dimensional models is displayed in the model display area of the model operation interface. Different three-dimensional models in each three-dimensional model are models of different levels of detail for the same target object. The model operation interface displays: a group processing window. The method includes: responding to a grouping operation input through a sub-export window, displaying a device panel on the model operation interface, and the setting panel displays: a plurality of window information; determining a plurality of first target window information associated with the grouping operation from the plurality of window information; simulating click operations on the windows corresponding to the plurality of first target window information, performing multi-level-of-detail combination on different three-dimensional models in each group of three-dimensional models, generating a target three-dimensional model corresponding to each group of three-dimensional models and a multi-level-of-detail set corresponding to each group of three-dimensional models. By providing a group processing window, the present application can achieve one-key batch grouping of multiple groups of three-dimensional models based on the grouping operation of the group processing window, eliminating the need for artists to perform repetitive and boring clicks, simplifying the operation process, and improving the production efficiency of art resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0069] Figure 1 It is a schematic diagram of the interface of the model operation interface of a three-dimensional model production software;
[0070] Figure 2 It is a flowchart of the method of the first embodiment of the three-dimensional model processing method of the present invention;
[0071] Figure 3 It is a flowchart of the method of the second embodiment of the three-dimensional model processing method of the present invention;
[0072] Figure 4 It is a schematic diagram of the interface of the model operation interface after successful grouping;
[0073] Figure 5 It is a flowchart of the method of the third embodiment of the three-dimensional model processing method of the present invention;
[0074] Figure 6 It is a flowchart of the method of the fourth embodiment of the three-dimensional model processing method of the present invention;
[0075] Figure 7 It is a flowchart of the method of the fifth embodiment of the three-dimensional model processing method of the present invention;
[0076] Figure 8 It is a flowchart of the method according to the sixth embodiment of the three-dimensional model processing method of the present invention;
[0077] Figure 9 It is a schematic structural diagram of a three-dimensional model processing device provided by an embodiment of the present application;
[0078] Figure 10 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0079] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention.
[0080] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the scope of protection of the present application.
[0081] The terms "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data may be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0082] It should be noted that, without conflict, the features in the embodiments of the present application may be combined with each other.
[0083] To better understand the technical solutions of the present invention, the related technologies involved in the present invention will be further introduced in detail below.
[0084] 3D model production software is a tool for artists to create art resources. For example, common software such as 3ds Max. 3ds Max software generally runs on electronic devices and displays an operation interface on the electronic device. The operation interface includes a model display area and a toolbar. The model display area displays multiple groups of 3D models to be operated on. Different 3D models in each group of 3D models are models of different levels of detail for the same target object. The toolbar includes various tools for processing 3D models. During the grouping process, the artist needs to select each group of 3D models and select the grouping operation from the toolbar to combine a group of 3D models. If grouping operations need to be performed on multiple groups of 3D models, the above operations need to be executed for each group of 3D models. The entire operation process is boring and repetitive. When the artist performs a large number of grouping operations, it is very easy to make operation mistakes. After an operation mistake, the artist also needs to ungroup the generated incorrect resources. This not only affects the efficiency of the art resource production process but also may lead to non-standard exported art resources.
[0085] For ease of understanding, please refer to Figure 1 , which is a schematic diagram of the interface of the model operation interface of a 3D model production software. As Figure 1 shown, the model operation interface of this 3D model production software generally includes: a model display area 11, an outline information display area 12, a layer information display area 13, a panel area 14, a main function display area 15, a hierarchy set operation area 16, a hierarchy set display area 17, etc.
[0086] As Figure 1 shown, the model display area 11 is usually located in the central area of the model operation interface. The model display area 11 displays at least one group of 3D models. Each group of 3D models is a model of different levels of detail for the same target object. The artist can modify the level of detail of each group of 3D models in the model display area 11 or create a group of 3D models of different levels of detail for the same target object in the model display area 11. It should be noted that when the artist modifies or creates a group of 3D models for the target object, the details shown by the models of different levels of detail in each group of 3D models are different. The lower the model, the fewer details it has, and the higher the model, the more details it has.
[0087] The outline information display area 12 is generally displayed in the left area of the model operation interface and is used to display information about all 3D models in the model display area 11. Generally, it displays the naming information of all 3D models to indicate which 3D models the artist currently has in the model operation interface. Generally, the naming rules for a group of 3D models for the same target object are the same. As Figure 1 shown, in Figure 1The "UCX_" in it represents the collision results of a group of 3D models, which need not be considered when grouping.
[0088] The layer information display area 13 is generally displayed in the lower right area of the model operation interface and is used to display layer information. For example, before grouping, all the 3D models in the model display area are on the same layer, and the layer information display area only displays the default layer information. The layers of all the 3D models are under the default layer "0".
[0089] The panel area 14 is generally displayed in the upper right area of the model operation interface and is used to display multiple function controls for the panel, including creating a panel, modifying a panel, a hierarchy panel, a motion panel, a display icon panel, and a settings panel. By clicking on each function control, the functions of different panels can be realized. Among them, the settings panel includes a variety of utility programs, and the various utility programs in the settings panel can be selected to display multiple main functions corresponding to each application program in the main function display area 15. The main function display area 15 is located below the panel area 14. By clicking on each main function, at least one sub-function under the main function is displayed at the hierarchy set operation area 16.
[0090] The hierarchy set display area 17 is located below the main function display area 15 and is used to display the level of detail information of a group of combined 3D models in the model display area.
[0091] It should be noted that the positions of the above-mentioned model display area 11, outline information display area 12, layer information display area 13, panel area 14, main function display area 15, hierarchy set operation area 16, and hierarchy set display area 17 in the model operation interface are not limited. Usually, artists can customize the design according to their own operation habits, and this application does not make any restrictions on this.
[0092] During the existing process of grouping art resources, an artist selects a group of 3D models in the model display area 11, then clicks on the settings panel in the panel area 14, selects the application to which the grouping function belongs on the page of the settings panel, and multiple main functions under this application are displayed in the main function display area 15. By clicking on the main function to which the grouping function belongs among the multiple main functions, at least one sub-function under this main function is displayed in the hierarchy set operation area 16. By clicking on the grouping function among the at least one sub-functions, grouping of the selected group of 3D models is achieved. After successful grouping, the combined target 3D model is displayed in the model display area 11, and the level-of-detail information of the multiple 3D models corresponding to this target 3D model is displayed in the hierarchy set display area 17. For artists, the number of models that need to be grouped during the work process is very large, and the entire grouping process is completely manually executed by the artists. This process is not only boring and repetitive but also prone to errors during operation, seriously affecting the efficiency of the art production process.
[0093] In view of the above problems in the prior art, the present invention proposes the following technical concept: by providing a grouping processing window, an artist inputs grouping operations in this grouping processing window to achieve the programming, automation, and batch processing of the above grouping process, thereby improving the production efficiency of art resources.
[0094] Based on the above introduction, a 3D model processing method, device, electronic device, and storage medium provided by the present invention will be introduced in detail below.
[0095] Figure 1 The interface of a grouping processing window 18 provided by an embodiment of the present invention is also shown, as Figure 1 shown. The grouping processing window includes: a group and generate hierarchy set control, a disassemble hierarchy set and ungroup control, an export control, and an export path selection control. Since grouping and generating the hierarchy set are related actions, the hierarchy set must be generated while grouping the 3D models, and disassembling the hierarchy set and ungrouping are also related actions. Before ungrouping the combined 3D models, the hierarchy set must be split first. Therefore, the functions of grouping and generating the hierarchy set are integrated into one control, and the functions of disassembling the hierarchy set and ungrouping are integrated into one control.
[0096] The 3D model processing method of the present invention displays a model operation interface through an electronic device. At least one group of 3D models is displayed in the model display area of the model operation interface. Different 3D models in each group of 3D models are models of different levels of detail for the same target object. A grouping processing window is displayed on the model operation connection. Figure 2 The flowchart of the method for the first embodiment of the 3D model processing method of the present invention is shown, as Figure 2 shown. The method includes:
[0097] S10: In response to the grouping operation input through the group processing window, display a settings panel on the model operation interface. The following are displayed in the settings panel: multiple window information items.
[0098] Specifically, as Figure 1 shown in the interface of the group processing window, the artist selects multiple 3D models that need to be grouped in the model operation interface, or selects the level-of-detail information of multiple 3D models that need to be grouped in the outline information display area 12 or the layer information display area 13. By clicking on the group and generate hierarchy set control in the group processing window, the electronic device responds to this grouping operation, calls the application programming interface (API) of the settings panel in the panel area, and executes the display program of the settings panel to display multiple window information items under the settings panel on the model operation interface. Each window information item is used to provide a type of operation function for the 3D model.
[0099] S20: Determine multiple first target window information items associated with the grouping operation from the multiple window information items.
[0100] Specifically, in this 3D model production software, to reduce the number of window information items in the settings panel, window information items with a certain degree of relevance are usually grouped under a window information set. The window information items associated with the grouping operation are not directly located under the settings panel. Instead, the window information items associated with the grouping operation and other window information items associated with group processing are unified and grouped under the window information items associated with hierarchy set processing, and the window information items associated with hierarchy set processing are further unified and grouped with other window information items associated with model processing under the hierarchy set processing window information set. Therefore, it is necessary to determine the hierarchy set processing window information set from the multiple window information items, determine the window information items associated with hierarchy set processing under the hierarchy set processing window information set, and then determine the window information items associated with the grouping operation from the window information items associated with hierarchy set processing. That is, the multiple first target window information items include: the hierarchy set processing window information set, the window information items associated with hierarchy set processing, and the window information items associated with the grouping operation.
[0101] S30: Simulate the click operations on the windows corresponding to the multiple first target window information items, perform multi-level-of-detail combination on different 3D models in each group of 3D models, and generate the target 3D model and the multi-level-of-detail set corresponding to each group of 3D models.
[0102] Specifically, according to the positions and hierarchies of multiple first target window information under the setting panel, the simulated click operations are sequentially performed. The detailed process is as follows: By performing a simulated click operation on the hierarchical set processing window information set, the window information associated with hierarchical set processing and the window information associated with other model processing under the hierarchical set processing window information set are opened and displayed at the main function display area 15. By performing a simulated click operation on the window information associated with hierarchical set processing, the window information associated with grouping operation and other window information associated with group processing are opened and displayed at the hierarchical set operation area 16. By performing a simulated click operation on the window information associated with the grouping operation, the selected multiple 3D models are combined according to the preset combination rules.
[0103] Further explanation, the preset combination rule is a naming rule. The naming rules for multiple 3D models of the same target object are the same. For the selected multiple 3D models, different 3D models in a group of 3D models with the same naming rule are combined at multiple levels of detail (LOD) to generate the target 3D model corresponding to each group of 3D models and the multi-level-of-detail set corresponding to each group of 3D models. Among them, the target 3D model has the detail levels of different 3D models in each group of 3D models, and the multi-level-of-detail set includes: the detail level information of different 3D models in each group of 3D models. More preferably, in addition to the naming rule, a configuration function for other combination rules can also be provided for artists, and the artists can set the combination rules by themselves, improving the versatility and reusability of the group processing window in the embodiments of the present invention.
[0104] It should be noted that the target 3D model is obtained by combining and overlapping different 3D models of the same target object at different detail levels. The 3D model with more detail levels is closer to the top layer in the target 3D model, and the 3D model with fewer detail levels is closer to the bottom layer in the target 3D model. The multi-level-of-detail set is used to indicate to the artist the multiple 3D models that make up the multi-level of detail of the target 3D model.
[0105] The 3D model processing method provided in the above embodiment responds to the grouping operation input through the group processing window, displays the device panel on the model operation interface, and the setting panel displays: multiple window information; determining multiple first target window information associated with the grouping operation from the multiple window information; simulating click operations on the windows corresponding to the multiple first target window information, performing multi-level-of-detail combination on different 3D models in each group of 3D models, and generating the target 3D model corresponding to each group of 3D models and the multi-level-of-detail set corresponding to each group of 3D models. This embodiment can achieve one-key batch grouping of multiple groups of 3D models based on the grouping operation of the group processing window, without the need for artists to perform repetitive and boring click operations, simplifies the operation process, and improves the efficiency of art production.
[0106] Based on the above embodiments, after generating the target 3D model and the multi-level-of-detail set based on the grouping operation, the present invention further provides an embodiment for displaying the processing result of the 3D model. Figure 3 It is a flowchart of the method of the second embodiment of the 3D model processing method of the present invention, as Figure 3 shown, and this method further includes:
[0107] S41: Display the target 3D model within the model display area.
[0108] Specifically, as Figure 1 shown, what is displayed in the model display area 11 is a group of 3D models for the same target object before grouping. The group of 3D models can be displayed at any position within the model display area 11. After the grouping operation of the above S10 - S30, what is displayed within the model display area 11 is the target 3D model for this target object. By way of example, Figure 4 is a schematic diagram of the interface of the model operation interface after successful grouping, as Figure 4 shown, Figure 1 the group of 3D models in Figure 4 is displayed in the form of a single target 3D model in
[0109] Regarding the display position of the target 3D model within the model display area 11, the embodiments of the present invention need to be further described.
[0110] Since when general 3D model making software performs grouping, it will automatically assign the pivot point of the target 3D model after grouping to the origin of the software's world coordinate system. If the automatic grouping method of the present application is used to batch group multiple groups of 3D models, the pivot points of the multiple target 3D models after grouping will all be at the origin of the world coordinate system, resulting in the coincidence of the pivot points of the multiple target 3D models, and the multiple target 3D models will also overlap within the model display area 11. Artists need to manually drag the multiple target 3D models located at the origin of the world coordinate system to any position within the model display area 11 in sequence to display them separately.
[0111] To solve the above technical problem, after inputting the grouping operation based on the group processing window, before grouping, record the coordinates of the pivot points of different 3D models in each group of 3D models, and select a target pivot point coordinate from the coordinates of the pivot points of different 3D models based on a preset rule. After grouping, replace the coordinates of the pivot point of the generated target 3D model corresponding to each group of 3D models with the target pivot point coordinate of this group to avoid the overlap of multiple target 3D models within the model display area 11.
[0112] S42: Display the multi-level-of-detail set within the level set display area of the model operation interface.
[0113] Specifically, as Figure 1 shown, before grouping, no multi-level-of-detail information is displayed in the level set display area 17. After the grouping operation of the above S10-S30, the multi-level-of-detail set of each target 3D model will be displayed in the level set display area, and the multi-level-of-detail sets of each target 3D model will be distinguished by unique identifiers. By way of example, Figure 4 shows the multi-level-of-detail set of a target 3D model. The identifier of this level of detail set is "100.0". This level of detail set displays the level of detail information of different 3D models in a group of 3D models corresponding to this target 3D model. It can be seen that the level of detail information of different models displayed in this level of detail set is the same as that Figure 1 displayed in the outline information display area 12 and the layer information display area 13 before grouping for this group of 3D models.
[0114] In addition, after grouping, the outline information display area 12 generates detailed information of a target 3D model. As can be seen from the Figure 4 outline information display area 12 shown, the name of the target 3D model is "SM_023_Group", which subordinates three 3D models before grouping. The layer information display area 13 generates a new layer "Low_SM_023", and this layer includes the target 3D model, each 3D model before grouping, and the collision results.
[0115] For the 3D model processing method provided in the above embodiments, after grouping is completed based on the grouping operation, the target 3D model is displayed in the model display area, and the multi-level-of-detail set is displayed in the level set display area of the model operation interface to realize the visualization of the grouping result.
[0116] Similar to the existing process of grouping art resources, during the process of ungrouping art resources, artists also need to select a target 3D model in the model display area 11, then click on the settings panel in the panel area 14, select the application to which the ungrouping function belongs under the page of the settings panel, and display multiple main functions under this application in the main function display area 15. By clicking on the main function corresponding to the ungrouping function among the multiple main functions, at least one sub-function under this main function is displayed in the hierarchy set operation area 16. By clicking on the ungrouping function among the at least one sub-functions, the selected target 3D model is ungrouped. After successful ungrouping, a set of 3D models with different levels of detail corresponding to the target object of the selected target 3D model is displayed in the model display area, and the multi-level detail set of the target 3D model is cancelled from display in the hierarchy set display area 17. For artists, the number of models that need to be ungrouped during the work process is very large, and the entire ungrouping process is completely manually executed by the artists. This process is not only boring and repetitive but also prone to errors during operation, seriously affecting the efficiency of the art production process.
[0117] In view of the above problems in the prior art, the present invention proposes the following technical concept: by providing a group processing window, the artist inputs the ungrouping operation in this group processing window to achieve the programming, automation, and batch processing of the above ungrouping process, thereby improving the production efficiency of art resources.
[0118] Based on any of the above embodiments, the present invention also provides an embodiment of a 3D model processing method. Figure 5 As the method flowchart of the third embodiment of the 3D model processing method of the present invention, as Figure 5 shown, the method further includes:
[0119] S50: In response to the ungrouping operation input through the group processing window, a settings panel is displayed on the model operation interface, and multiple window information is displayed in the settings panel.
[0120] Specifically, as Figure 1 shown in the interface of the group processing window, the artist selects at least one target 3D model that needs to be group-processed in the model operation interface, or selects at least one target 3D model that needs to be ungrouped in the outline information display area 12 or the layer information display area 13. By clicking on the split hierarchy set and ungrouping controls in the group processing window, the electronic device responds to this ungrouping operation, calls the application programming interface of the settings panel in the panel area, and executes the display program of the settings panel to display multiple window information under the settings panel in the model operation interface.
[0121] It should be noted that the target 3D model to be ungrouped can be the target 3D model made and grouped by the artist in 3D model making software, or the target 3D model imported by the artist from the outside. The prerequisite for the artist to modify the level of detail of the target 3D model is to ungroup the target 3D model into multiple 3D models.
[0122] S60: Determine multiple second target window information associated with the ungrouping operation from the multiple window information.
[0123] Specifically, based on the description of the multiple window information above, the window information associated with the grouping operation and the window information associated with the ungrouping operation are combined under the window information associated with the level set processing. It is necessary to determine the level set processing window information set from the multiple window information, determine the window information associated with the level set processing under the level set processing window information set, and then determine the window information associated with the ungrouping operation under the window information associated with the level set processing. That is, the multiple second target window information includes: the level set processing window information set, the window information associated with the level set processing, and the window information associated with the ungrouping operation.
[0124] S70: Simulate the click operations on the windows corresponding to the multiple second target window information, perform multi-level ungrouping on the target 3D model, and obtain a set of 3D models with different levels of detail of the target object corresponding to the target 3D model.
[0125] Specifically, perform the simulated click operations in sequence according to the positions and levels of the multiple second target window information in the setting panel. The detailed process is as follows: By simulating the click operation on the level set processing window information set, open and display the window information associated with the level set processing and the window information associated with other model processing in the main function display area 15. By simulating the click operation on the window information associated with the level set processing, open and display the window information associated with the ungrouping operation and other window information associated with group processing (such as the window information associated with the grouping operation) in the level set operation area 16. By simulating the click operation on the window information associated with the ungrouping operation, ungroup at least one selected target 3D model to obtain a set of multiple 3D models with different levels of detail of the target object corresponding to each target 3D model.
[0126] It should be noted that when disassembling the multi-level set, by automatically selecting the first level of detail information in the level set display area each time, and then performing the simulated click operations on the windows corresponding to the multiple second target window information, each level of detail information is deleted from the level set display area in sequence until there is no multi-level detail corresponding to the target 3D model in the level set display area, and the disassembly of the multi-level detail is completed.
[0127] The 3D model processing method provided by the above embodiment responds to the ungrouping operation input through the group processing window, and displays a setting panel on the model operation interface. The setting panel displays: a plurality of window information, and determines a plurality of second target window information managed by the ungrouping operation from the plurality of window information; simulates click operations on the windows corresponding to the plurality of second target window information, and performs multi-level ungrouping on the target 3D model to obtain a group of 3D models with different levels of detail of the target object corresponding to the target 3D model. This embodiment can achieve one-key batch ungrouping of multiple target 3D models based on the ungrouping operation of the group processing window, without the need for artists to perform repetitive and boring click operations, simplifies the operation process, and improves the efficiency of art production.
[0128] Based on the above embodiment, after ungrouping the target 3D model based on the ungrouping operation, the present invention also provides an embodiment of a 3D model processing method. Figure 6 It is a flowchart of the method of the fourth embodiment of the 3D model processing method of the present invention, as Figure 6 shown, the method further includes:
[0129] S81: Display each group of ungrouped 3D models in the model display area.
[0130] Specifically, after ungrouping the target 3D model based on the ungrouping operation, a group of 3D models with different levels of detail of the target object corresponding to the target 3D model is obtained, that is, a plurality of 3D models corresponding to the target 3D model are displayed in the model display area. By way of example, after ungrouping, the model display area redisplayed Figure 1 a group of 3D models as shown.
[0131] S82: Cancel the display of the multi-level detail set in the level set display area.
[0132] Specifically, since the target 3D model is ungrouped, there is no multi-level detail set of the target 3D model. Therefore, it is necessary to cancel the display of the multi-level detail set in the level set display area 17. By way of example, after ungrouping, the level set display area 17 redisplayed Figure 1 a blank interface as shown.
[0133] The 3D model processing method provided by the above embodiment, after completing ungrouping based on the ungrouping operation, displays each group of ungrouped 3D models in the model display area, and cancels the display of the multi-level detail set in the level set display area, realizing the visualization of the ungrouping result.
[0134] Based on the above first embodiment, the embodiment of the present invention also provides a specific implementation manner for determining the first target window information. Figure 7 It is a flowchart of the method of the fifth embodiment of the 3D model processing method of the present invention, as Figure 7As shown above, the above S20 includes:
[0135] S21: Determine the first target parent window information corresponding to the parent handle from multiple window information according to the window handles of the multiple window information; The list box to which the first target parent window information belongs includes multiple first sub-window information.
[0136] Specifically, the window handle (Handle to A Window, HWND) is a unique identifier specified by the 3D model making software for each window information. Taking the window handle of the first target parent window information determined in advance as the parent handle, after the group processing window input and grouping operation, the electronic device searches for the first target parent window information corresponding to the parent handle in the multiple window information. The list box to which the first target parent window information belongs includes multiple first sub-window information, and the first target parent window information is the hierarchical set processing window information set in the foregoing embodiment. By way of example, as Figure 1 shown, the list box to which the first target parent window information belongs is displayed in the main function display area 15, and the list box includes multiple first sub-window information. For example, "level of detail" represents the perspective matching function, "collapse" represents the folding / collapsing function, "colorclipboard" represents the color clipboard function, "measure" represents the annotation / measurement plug-in function, "motion capture" represents the motion capture function, "Reset Xform" represents the reset transformation function, and "maxscript" represents the MAX script function.
[0137] S22: Determine the first target sub-window information corresponding to the child handle from the multiple first sub-window information according to the window handles of the multiple first sub-window information.
[0138] Specifically, after finding the first target parent window information, taking the window handle of the first target sub-window information determined in advance as the child handle, searching for the first target sub-window information corresponding to the child handle in the multiple first sub-window information in the list box of the first target parent window information. The first target sub-window information is the window information associated with the hierarchical set processing in the foregoing embodiment. By way of example, the first target sub-window information in the embodiments of the present invention is Figure 1 the "level ofdetail" shown.
[0139] In an alternative embodiment, the window handle includes: window class, and the parent handle includes: target parent window class. The above S21 includes:
[0140] Determine the first target parent window information corresponding to the target parent window class from the multiple window information according to the window classes of the multiple window information.
[0141] Specifically, due to the particularity of 3D model making software, the window categories of multiple window information under the setting panel are all different. Therefore, the window handle can be defined according to the window category. The window category of the pre-determined first target parent window information is used as the target parent window category, and the first target parent window information corresponding to the target parent window category is searched for among the multiple window information.
[0142] It can be conceived that if the window categories of multiple first sub-window information are also all different, the window category of the first target sub-window information can also be used as the target sub-window category, and the first target sub-window information corresponding to the target sub-window category is searched for among the multiple first sub-window information.
[0143] In another alternative implementation, the window handle includes: window field definition, and the sub-handle includes: target sub-window field definition. The above S22 includes:
[0144] According to the window field definitions of the multiple first sub-window information, the first target sub-window information corresponding to the target sub-window field definition is determined from the multiple first sub-window information.
[0145] Specifically, in order to distinguish the functions provided by different sub-window information, during the design phase, different window field definitions are determined for all sub-window information. The window field definitions of the sub-window information included under each parent window information are unique. Therefore, the window handle can also be defined according to the window field settlement. The window category of the pre-determined first target sub-window information is used as the target sub-window field definition, and the first target sub-window information corresponding to the target sub-window field definition is searched for among the multiple first sub-window information.
[0146] It can be conceived that if the window field definitions of multiple first parent window information are also all different, the window field definition of the first target parent window information can also be used as the target parent window field definition, and the first target parent window information corresponding to the target parent window field definition is searched for among the multiple first parent window information.
[0147] Furthermore, in order to improve the generality of this group of processing windows in different types of 3D model making software, the rule for determining window information through the window handle can be configured according to the software, so as to improve the generality and reusability of this group of processing windows.
[0148] The 3D model processing method provided by the above embodiments determines the first target parent window information corresponding to the parent handle from multiple window information according to the window handles of the multiple window information. The list box to which the first target parent window information belongs includes multiple first sub-window information. The first target sub-window information corresponding to the child handle is determined from the multiple first sub-window information. The first target parent window information and the first target sub-window information are found through the window handle, so as to realize the automatic grouping operation by simulating click operations and improve the production efficiency of art resources.
[0149] On the basis of the above embodiments, after determining the first target sub-window information, the present invention also provides an embodiment of a 3D model processing method, and the method further includes:
[0150] Display a level set creation control corresponding to the first target sub-window information in the level set operation area of the model operation interface.
[0151] Specifically, according to the window handles of multiple window information, the first target window information corresponding to the parent handle is determined from the multiple window information. The list box to which the first target parent window information belongs is displayed in the main function display area 15. The list box includes multiple first sub-window information. The first target sub-window information corresponding to the child handle is determined from the multiple first sub-window information. A click operation on the first target sub-window information is simulated, and a level set creation control corresponding to the first target sub-window information is displayed in the level set operation area 16 of the model operation interface. The level set creation control is window information associated with the grouping operation, and is used to combine each group of 3D models and create a multi-level detail level set in the level set display area 17. Exemplarily, the level set creation control is like Figure 1 "Create New Set" shown in
[0152] The above S30 includes:
[0153] Simulate a click operation on the level set creation control to combine different 3D models in each group of 3D models at multiple levels of detail to generate a target 3D model and a multi-level detail level set.
[0154] Specifically, by simulating a click operation on the level set creation control, the electronic device automatically combines different 3D models in each selected group of 3D models at multiple levels of detail to generate a target 3D model and generates a multi-level detail level set in the level set display area.
[0155] The 3D model processing method provided by the above embodiments displays the level set creation control corresponding to the first target sub-window information in the level set operation area of the model operation interface, simulates the click operation of the level set creation control, combines different 3D models in each group of 3D models with multiple levels of detail, generates the target 3D model and the multi-level set, realizes automatic grouping by simulating click operations, and improves the production efficiency of art resources.
[0156] Based on the above third embodiment, the embodiment of the present invention further provides a specific implementation manner for determining the second target window information. Figure 8 It is a flowchart of the method of the sixth embodiment of the 3D model processing method of the present invention. As Figure 8 shown, the above S60 includes:
[0157] S61: According to the window handles of multiple window information, determine the second target parent window information corresponding to the parent handle from the multiple window information; the list box to which the second target parent window information belongs includes multiple second sub-window information.
[0158] Specifically, taking the window handle of the second target parent window information determined in advance as the parent handle, after inputting a grouping operation based on the group processing window, the electronic device searches for the second target parent window information corresponding to the parent handle in the multiple window information. The list box to which the second target parent window information belongs includes multiple second sub-window information, and the second target parent window information is the level set processing window information set in the foregoing embodiments.
[0159] In the embodiment of the present invention, since the window information associated with the level set processing is unified and collected under the level set processing window information set with the window information associated with other model processing, the first target parent window information and the second target parent window information are the same target parent window information, that is, the level set processing window information set.
[0160] S62: According to the window handles of multiple second sub-window information, determine the second target sub-window information corresponding to the child handle from the multiple second sub-window information.
[0161] Specifically, after finding the second target parent window information, taking the window handle of the second target sub-window information determined in advance as the child handle, search for the second target sub-window information corresponding to the child handle in the multiple second sub-window information in the list box of the second target parent window information. The second target sub-window information is the window information associated with the level set processing in the foregoing embodiments.
[0162] In the embodiment of the present invention, since the window information associated with the grouping operation and the window information associated with the ungrouping operation are unified and collected under the window information associated with the level set processing, the first target sub-window information and the second target sub-window information are the same target sub-window information, that is, the window information managed by the level set processing.
[0163] In other cases, if the window information associated with the grouping operation and the window information associated with the ungrouping operation belong to different window information sets, then the first target parent window information and the second target parent window information are different window information, and the first target child window information and the second target child window information are also different window information.
[0164] After determining the second target child window information, the method further includes:
[0165] Displaying a level set ungrouping control corresponding to the second target child window information in the level set operation area of the model operation interface.
[0166] Specifically, according to the window handles of multiple window information, the second target window information corresponding to the parent handle is determined from the multiple window information. A list box belonging to the second target parent window information is displayed in the main function display area 15. The list box includes multiple second child window information. The second target child window information corresponding to the child handle is determined from the multiple second child window information. A click operation on the second target child window information is simulated, and a level set ungrouping control corresponding to the second target child window information is displayed in the level set operation area 16 of the model operation interface. The level set ungrouping control is window information associated with the ungrouping operation, and is used to ungroup the target 3D model and cancel the multi-level set of the target 3D model in the level set display area 17. By way of example, the level set ungrouping control is such as Figure 1 "Remove From Set" shown in
[0167] Further, as described above, the window handle includes: window category, and the parent handle includes: target parent window category. The second target parent window information corresponding to the target parent window category can be determined from the multiple window information according to the window categories of the multiple window information. Similarly, the window handle includes: window field definition, and the child handle includes: target child window field definition. The second target child window information corresponding to the target child window field definition can be determined from the multiple second child window information according to the window field definitions of the multiple second child window information. This is not elaborated in the embodiments of the present invention.
[0168] For the 3D model processing method provided in the above embodiments, according to the window handles of multiple window information, the second target parent window information corresponding to the parent handle is determined from the multiple window information; the list box belonging to the second target parent window information includes multiple second child window information. According to the window handles of the multiple second child window information, the second target child window information corresponding to the child handle is determined from the multiple second child window information. The second target parent window information and the second target child window information are found through the window handles, so as to realize the automatic ungrouping operation by simulating the click operation and improve the production efficiency of art resources.
[0169] Based on any of the above embodiments, an embodiment of the present invention further provides a three-dimensional model processing method, which includes:
[0170] In response to an export operation input through a group processing window, export the target three-dimensional model to a preset storage path.
[0171] Specifically, as Figure 1 shown, the group processing window provides an export control for artists. By clicking the export control, the selected target three-dimensional model is exported to a preset storage path. If the storage path needs to be changed, any export path can be selected through the export path selection control.
[0172] The three-dimensional model processing method provided in the above embodiment exports the target three-dimensional model to a preset storage path in response to an export operation input through a group processing window, making the grouping, ungrouping, and exporting of art resources programmable and simplifying the production process of art resources.
[0173] In any of the above embodiments, the simulated click operation is to simulate the click operation of an electronic device by using the accessor (UIAccessor) of the three-dimensional model making software to perform the operation that was originally manually clicked by an artist.
[0174] More preferably, if the electronic device is a computer device, the click operation is a mouse click operation, and the simulated mouse click operation can be implemented by using, but not limited to, hexadecimal mouse event encoding to achieve the click operation.
[0175] Based on the above embodiments, an embodiment of the present invention further provides a three-dimensional model processing device. A model operation interface is displayed through an electronic device. At least one group of three-dimensional models is displayed in the model display area of the model operation interface. Different three-dimensional models in each group of three-dimensional models are models of different detail levels for the same target object. The model operation interface displays: a group processing window; Figure 9 This is a schematic structural diagram of a three-dimensional model processing device provided by an embodiment of the present application. As Figure 9 shown, the device includes:
[0176] A grouping display module 100, configured to display a setting panel on the model operation interface in response to a grouping operation input through the group processing window. Multiple window information is displayed in the setting panel;
[0177] A first target window information determination module 200, configured to determine multiple first target window information associated with the grouping operation from the multiple window information;
[0178] The combined module 300 is used to simulate the click operations on the windows corresponding to multiple pieces of first target window information, combine different 3D models in each group of 3D models at multiple levels of detail, generate the target 3D model corresponding to each group of 3D models and the multi-level-of-detail set corresponding to each group of 3D models; the target 3D model has the levels of detail of different 3D models in each group of 3D models, and the multi-level-of-detail set includes: the level-of-detail information of different 3D models in each group of 3D models.
[0179] Optionally, the device further includes:
[0180] The first display module is used to display the target 3D model in the model display area;
[0181] The second display module is used to display the multi-level-of-detail set in the level-set display area of the model operation interface.
[0182] Optionally, the device further includes:
[0183] The ungrouping display module is used to respond to the ungrouping operation input through the group processing window, display the setting panel on the model operation interface, and the following are displayed in the setting panel: multiple pieces of window information;
[0184] The second target window information determination module is used to determine multiple pieces of second target window information associated with the ungrouping operation from the multiple pieces of window information;
[0185] The ungrouping module is used to simulate the click operations on the windows corresponding to multiple pieces of second target window information, perform multi-level-of-detail ungrouping on the target 3D model, and obtain a group of 3D models with different levels of detail of the target object corresponding to the target 3D model.
[0186] Optionally, the device further includes:
[0187] The third display module is used to display each group of ungrouped 3D models in the model display area;
[0188] The cancellation display module is used to cancel the display of the multi-level-of-detail set in the level-set display area.
[0189] Optionally, the first target window information determination module 200 includes:
[0190] The first target parent window information determination unit is used to determine the first target parent window information corresponding to the parent handle from the multiple pieces of window information according to the window handles of the multiple pieces of window information; the list box to which the first target parent window information belongs includes multiple pieces of first child window information;
[0191] The first target child window information determination unit is used to determine the first target child window information corresponding to the child handle from the multiple pieces of first child window information according to the window handles of the multiple pieces of first child window information.
[0192] Optionally, the window handle includes: a window class, the parent handle includes: a target parent window class, and a first target parent window information determination unit, specifically configured to determine, according to the window classes of multiple window information, the first target parent window information corresponding to the target parent window class from the multiple window information.
[0193] Optionally, the window handle includes: a window field definition, the child handle includes: a target sub-window field definition, and a first target sub-window information determination unit, specifically configured to determine, according to the window field definitions of multiple first sub-window information, the first target sub-window information corresponding to the target sub-window field definition from the multiple first sub-window information.
[0194] Optionally, the apparatus further includes:
[0195] A control display module, configured to display a level set creation control corresponding to the first target sub-window information in a level set operation area of a model operation interface;
[0196] A combination module 300, specifically configured to simulate a click operation on the level set creation control, perform multi-level-of-detail combination on different 3D models in each group of 3D models, and generate a target 3D model and a multi-level-of-detail set.
[0197] Optionally, the second target window information determination module includes:
[0198] A second target parent window information determination unit, configured to determine, according to the window handles of multiple window information, the second target parent window information corresponding to the parent handle from the multiple window information; the list box to which the second target parent window information belongs includes multiple second sub-window information;
[0199] A second target sub-window information determination unit, configured to determine, according to the window handles of multiple second sub-window information, the second target sub-window information corresponding to the child handle from the multiple second sub-window information.
[0200] Optionally, the apparatus further includes:
[0201] An export module, configured to respond to an export operation input through a group processing window, and export the target 3D model to a preset storage path.
[0202] The above-mentioned apparatus is used to execute the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be elaborated here.
[0203] The above-mentioned modules may be one or more integrated circuits configured to implement the above methods. For example: one or more Application Specific Integrated Circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0204] Figure 10 Schematic diagram of the electronic device provided by the embodiment of the present invention, as Figure 10 shown, the electronic device 400 includes: a processor 401, a storage medium 402, and a bus. The storage medium 402 stores program instructions executable by the processor 401. When the electronic device 400 runs, the processor 401 communicates with the storage medium 402 through the bus, and the processor 401 executes the program instructions to execute the above method embodiment. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0205] Optionally, the present invention further provides a program product, such as a computer-readable storage medium, including a program that is used to execute the above method embodiment when executed by a processor.
[0206] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.
[0207] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0208] In addition, each functional unit in various embodiments of the present invention may be integrated into a processing unit, may exist separately as individual physical units, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.
[0209] The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units stored in a storage medium include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (abbreviation: ROM), random access memories (abbreviation: RAM), magnetic disks, or optical discs and other various media that can store program codes.
[0210] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A three-dimensional model processing method, characterized in that, a model operation interface is displayed through an electronic device, and at least one group of three-dimensional models is displayed in the model display area of the model operation interface. Different three-dimensional models in each group of three-dimensional models are models of different levels of detail for the same target object. The model operation interface displays: a group processing window; the method includes: responding to a grouping operation input through the group processing window, displaying a setting panel on the model operation interface, and the following are displayed in the setting panel: a plurality of window information; determining a plurality of first target window information associated with the grouping operation from the plurality of window information, wherein, determining a set of hierarchical set processing window information from the plurality of window information, determining window information associated with hierarchical set processing under the set of hierarchical set processing window information, and determining window information associated with the grouping operation under the window information associated with hierarchical set processing. The plurality of first target window information includes: the set of hierarchical set processing window information, the window information associated with hierarchical set processing, and the window information associated with the grouping operation; simulating click operations on the windows corresponding to the plurality of first target window information, performing multi-level-of-detail combination on different three-dimensional models in each group of three-dimensional models, generating a target three-dimensional model corresponding to each group of three-dimensional models and a multi-level-of-detail set corresponding to each group of three-dimensional models; the target three-dimensional model has the levels of detail of different three-dimensional models in each group of three-dimensional models, and the multi-level-of-detail set includes: level-of-detail information of different three-dimensional models in each group of three-dimensional models.
2. The method according to claim 1, characterized in that, the method further includes: displaying the target three-dimensional model in the model display area; displaying the multi-level-of-detail set in the hierarchical set display area of the model operation interface.
3. The method according to claim 2, characterized in that, the method further includes: responding to an ungrouping operation input through the group processing window, displaying the setting panel on the model operation interface, and the following are displayed in the setting panel: the plurality of window information; determining a plurality of second target window information associated with the ungrouping operation from the plurality of window information; simulating click operations on the windows corresponding to the plurality of second target window information, performing multi-level-of-detail ungrouping on the target three-dimensional model, and obtaining a group of three-dimensional models with different levels of detail of the target object corresponding to the target three-dimensional model.
4. The method according to claim 3, characterized in that, the method further includes: displaying each group of ungrouped three-dimensional models in the model display area; canceling the display of the multi-level-of-detail set in the hierarchical set display area.
5. The method according to claim 1, characterized in that, determining a plurality of first target window information associated with the grouping operation from the plurality of window information includes: determining first target parent window information corresponding to the parent handle from the plurality of window information according to the window handles of the plurality of window information; the list box to which the first target parent window information belongs includes a plurality of first child window information; Determine the first target sub-window information corresponding to the sub-handle from the multiple first sub-window information according to the window handle of the multiple first sub-window information.
6. The method according to claim 5, wherein, the window handle includes: window category, the parent handle includes: target parent window category, and the step of determining the first target parent window information corresponding to the parent handle from the multiple window information according to the window handle of the multiple window information includes: Determine the first target parent window information corresponding to the target parent window category from the multiple window information according to the window category of the multiple window information.
7. The method as claimed in claim 5, wherein, the window handle includes: window field definition, the sub-handle includes: target sub-window field definition, and the step of determining the first target sub-window information corresponding to the sub-handle from the multiple first sub-window information according to the window handle of the multiple first sub-window information includes: Determine the first target sub-window information corresponding to the target sub-window field definition from the multiple first sub-window information according to the window field definition of the multiple first sub-window information.
8. The method according to claim 5, wherein, the method further includes: Display a level set creation control corresponding to the first target sub-window information in the level set operation area of the model operation interface; The step of simulating click operations on the windows corresponding to the multiple first target window information, performing multi-detail level combination on different 3D models in each group of 3D models, and generating a target 3D model corresponding to each group of 3D models and a multi-detail level set corresponding to each group of 3D models includes: Simulate a click operation on the level set creation control, perform multi-detail level combination on different 3D models in each group of 3D models, and generate the target 3D model and the multi-detail level set.
9. The method according to claim 3, wherein, Determining multiple second target window information associated with the disassembly operation from the multiple window information includes: Determine the second target parent window information corresponding to the parent handle from the multiple window information according to the window handle of the multiple window information; the list box to which the second target parent window information belongs includes multiple second sub-window information; Determine the second target sub-window information corresponding to the sub-handle from the multiple second sub-window information according to the window handle of the multiple second sub-window information.
10. The method according to claim 1, wherein, the method further includes: Respond to an export operation input through the group processing window, and export the target 3D model to a preset storage path.
11. A 3D model processing device, wherein, A model operation interface is displayed through an electronic device, at least one group of 3D models is displayed in the model display area of the model operation interface, different 3D models in each group of 3D models are models of different detail levels for the same target object, and the model operation interface displays: a group processing window; the device includes: The grouping display module is used to respond to the grouping operation input through the group processing window and display a setting panel on the model operation interface. Multiple window information is displayed in the setting panel; The first target window information determination module is used to determine multiple first target window information associated with the grouping operation from the multiple window information. Specifically, a hierarchical set processing window information set is determined from the multiple window information, window information associated with hierarchical set processing is determined under the hierarchical set processing window information set, and window information associated with the grouping operation is determined under the window information associated with hierarchical set processing. The multiple first target window information includes: the hierarchical set processing window information set, the window information associated with hierarchical set processing, and the window information associated with the grouping operation; The combination module is used to simulate the click operations of the windows corresponding to the multiple first target window information, perform multi-level-of-detail combination on different 3D models in each group of 3D models, and generate a target 3D model corresponding to each group of 3D models and a multi-level-of-detail set corresponding to each group of 3D models; the target 3D model has the levels of detail of different 3D models in each group of 3D models, and the multi-level-of-detail set includes: the level-of-detail information of different 3D models in each group of 3D models.
12. An electronic device, Characterized in that, It includes: A processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the 3D model processing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, Characterized in that, A computer program is stored on the storage medium, and when the computer program is run by a processor, it performs the steps of the 3D model processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Hydropower station maintenance simulation training system based on virtual reality technology
CN110379240A
3d-rendering method and device for logical window
US20140225894A1