3D modeling method and device
By displaying 3D modules and heterogeneous elements, users can build 3D heterogeneous modules and models, solving the problem that 3D modeling software in the prior art cannot implement simple and highly applicable 3D heterogeneous modeling, and implementing the application of 3D modeling software to Efficient modeling of users at different levels of experience.
Patent Information
- Application Number
- CN202310971144.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-12-23
AI Technical Summary
Existing 3D modeling software cannot implement simple and highly applicable 3D heterogeneous modeling, especially for inexperienced users, it is difficult to perform three-dimensional modeling.
By displaying the target 3D module and its corresponding multiple 3D heterogeneous elements, users can build 3D heterogeneous modules and submodules to generate 3D heterogeneous models and build 3D object heterogeneous models based on the model.
It realizes simple and highly applicable 3D heterogeneous modeling, suitable for users with modeling experience and users with insufficient experience, and improves the versatility and ease of use of modeling.
Smart Images

Figure CN116934978B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention application with the application date of December 23, 2022, the Chinese application number 202211663339.0, and the invention name “A 3D heterogeneous modeling method and device”. Technical Field
[0002] The present application relates to the field of 3D modeling technology, and in particular to a 3D heterogeneous modeling method and device. Background Art
[0003] 3D (3D is the abbreviation of three-dimensional, that is, three-dimensional graphics) modeling uses three-dimensional production software to construct a model with three-dimensional data in a virtual three-dimensional space.
[0004] In the related art, there are a large number of 3D production software that can realize 3D modeling. However, these 3D production software, on the one hand, cannot realize 3D heterogeneous modeling; on the other hand, they are suitable for users with rich 3D modeling experience. For users with less experience, it is difficult to realize 3D modeling based on 3D production software.
[0005] Therefore, the related technology cannot realize simple and highly applicable 3D heterogeneous modeling. Summary of the invention
[0006] The purpose of the present application is to provide a 3D heterogeneous modeling method and device, which can realize simple and highly applicable 3D heterogeneous modeling.
[0007] To achieve the above-mentioned objectives, an embodiment of the present application provides a 3D heterogeneous modeling method, comprising: in response to detecting a modeling request, displaying a target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module; the target 3D module corresponds to multiple 3D sub-modules; in response to a second processing operation on the 3D heterogeneous module and the multiple 3D sub-modules, generating a 3D heterogeneous model corresponding to the second processing operation; determining a 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library; and generating a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model.
[0008] In one or more embodiments of the present application, the display of a target 3D module and a plurality of 3D heterogeneous elements corresponding to the target 3D module includes: displaying the target 3D module at a first display position, and displaying first guide information of the target 3D module at the first display position; the first guide information is used to indicate the number of 3D sub-modules corresponding to the target 3D module and basic information of the target 3D module; displaying each 3D sub-module at a second display position corresponding to each of the plurality of 3D sub-modules, and displaying second guide information corresponding to each 3D sub-module at each of the second display positions; the second guide information is used to indicate the position of each 3D sub-module in the target 3D module, and the importance of each 3D sub-module in the target 3D module; displaying each 3D heterogeneous element at a third display position corresponding to each of the plurality of 3D heterogeneous elements, and displaying third guide information corresponding to each 3D heterogeneous element at each of the third display positions; the third guide information is used to indicate the modeling purpose and modeling difficulty of each 3D heterogeneous element.
[0009] In one or more embodiments of the present application, the display of the target 3D module and the multiple 3D heterogeneous elements corresponding to the target 3D module also includes: displaying a preset list at a fourth display position; the preset list includes: multiple preset 3D heterogeneous elements and 3D sub-modules corresponding to the multiple preset 3D heterogeneous elements respectively; wherein each preset 3D heterogeneous element corresponds to at least two 3D sub-modules, and, among the 3D sub-modules corresponding to any two 3D heterogeneous elements respectively, there is at least one identical 3D sub-module.
[0010] In one or more embodiments of the present application, the 3D heterogeneous modeling method also includes: determining invalid operation steps and valid operation steps in the first processing operation; for the invalid operation step, determining the invalidity reason of the invalid operation step; for the valid operation step, obtaining the operation information corresponding to the valid operation step; generating an invalid operation record based on the invalid operation step and the invalidity reason of the invalid operation step; generating a valid operation record based on the valid operation step and the operation information corresponding to the valid operation step; generating an operation flow corresponding to the first processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation step and the invalid operation step.
[0011] In one or more embodiments of the present application, the 3D heterogeneous modeling method further includes: in response to receiving a change instruction for a target operation step in an operation flow corresponding to the first processing operation; the change instruction includes: a changed 3D heterogeneous element and a change operation corresponding to the changed 3D heterogeneous element; based on the change instruction, updating the 3D heterogeneous module corresponding to the first processing operation, and using the updated 3D heterogeneous module corresponding to the first processing operation as the final 3D heterogeneous module.
[0012] In one or more embodiments of the present application, the 3D heterogeneous modeling method also includes: determining invalid operation steps and valid operation steps in the second processing operation; for the invalid operation step, determining the invalidity reason of the invalid operation step; for the valid operation step, obtaining the operation information corresponding to the valid operation step; generating an invalid operation record based on the invalid operation step and the invalidity reason of the invalid operation step; generating a valid operation record based on the valid operation step and the operation information corresponding to the valid operation step; generating an operation flow corresponding to the second processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation step and the invalid operation step.
[0013] In one or more embodiments of the present application, the 3D heterogeneous modeling method also includes: in response to receiving a change instruction for a target operation step in the operation flow corresponding to the second processing operation; the change instruction includes: a changed 3D sub-module and a change operation corresponding to the changed 3D sub-module; based on the change instruction, updating the 3D heterogeneous model corresponding to the second processing operation, and using the updated 3D heterogeneous model corresponding to the second processing operation as the final 3D heterogeneous model.
[0014] In one or more embodiments of the present application, determining the 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library includes: comparing the 3D heterogeneous model with a preset 3D model corresponding to the preset 3D object in the preset 3D object model library to determine the target 3D object; wherein the model similarity between the preset 3D model corresponding to the target 3D object and the 3D heterogeneous model is greater than a first preset similarity, and the model information similarity between the model information of the preset 3D model and the model information of the 3D heterogeneous model is greater than a second preset similarity.
[0015] In one or more embodiments of the present application, generating a 3D object heterogeneous model based on a 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model includes: obtaining modeling information of the 3D object corresponding to the 3D heterogeneous model; the modeling information includes: texture modeling information, image modeling information and model basic information, and the model basic information includes: model transparency, model color, model size and model identification; adding model texture to the 3D heterogeneous model based on the texture modeling information; adding a model image to the 3D heterogeneous model with added model texture based on the image modeling information; adjusting the 3D heterogeneous model with added model image based on the model basic information, and determining the adjusted 3D heterogeneous model as the 3D object heterogeneous model.
[0016] An embodiment of the present application also provides a 3D heterogeneous modeling device, comprising: a display unit, for displaying a target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module in response to detecting a modeling request; the target 3D module corresponds to multiple 3D sub-modules; a processing unit, for generating a 3D heterogeneous module corresponding to the first processing operation in response to a first processing operation on the multiple 3D heterogeneous elements; the processing unit is also used to: in response to a second processing operation on the 3D heterogeneous module and the multiple 3D sub-modules, generate a 3D heterogeneous model corresponding to the second processing operation; the processing unit is also used to: determine the 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library; the processing unit is also used to generate a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model.
[0017] Compared with the prior art, according to the 3D heterogeneous modeling method and device of the embodiment of the present application, when a modeling request is detected, a target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module are displayed, and the target 3D module corresponds to multiple 3D sub-modules; then, for the user, the corresponding 3D heterogeneous module can be constructed by processing multiple 3D heterogeneous elements; then the 3D heterogeneous model is constructed by the 3D heterogeneous module and multiple 3D sub-modules; thus, a 3D object heterogeneous model is constructed based on the 3D heterogeneous model and the corresponding 3D object. In the construction process of the entire 3D object heterogeneous model, each 3D module or element is subdivided, which is not only suitable for users with modeling experience, but also for users with slightly insufficient modeling experience; and 3D heterogeneous elements are configured in the construction process, which can realize the construction of a heterogeneous model based on heterogeneous elements. Therefore, the 3D heterogeneous modeling method and device can realize simple and highly applicable 3D heterogeneous modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flow chart of a 3D heterogeneous modeling method according to an embodiment of the present application;
[0019] Figure 2 is a schematic structural diagram of a 3D heterogeneous modeling device according to an embodiment of the present application;
[0020] Figure 3 It is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present application is not limited by the specific implementation methods.
[0022] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0023] The 3D heterogeneous modeling solution provided in the embodiments of the present application can be applied to various 3D modeling scenarios. In these 3D modeling scenarios, users implement 3D modeling through 3D modeling software. Moreover, the implemented 3D modeling is 3D heterogeneous modeling; in some embodiments, 3D heterogeneous modeling can be understood as 3D modeling for structural objects with irregular shapes or uncommon shapes.
[0024] Therefore, the hardware environment corresponding to the 3D heterogeneous modeling solution provided in the embodiment of the present application is: a terminal device with 3D modeling software installed. In addition, the 3D heterogeneous modeling solution provided in the embodiment of the present application can be applied to various 3D modeling software, or can be 3D modeling software involved in the 3D heterogeneous modeling solution, etc., which is not limited here.
[0025] When performing 3D heterogeneous modeling, since the shape of the modeled object is irregular or uncommon, experienced users may not have difficulty in modeling. However, inexperienced users may have difficulty in modeling.
[0026] In the related art, the modeling differences among users with different experience are not taken into consideration, and the modeling software designed is not universal and difficult to use. As a result, it is impossible to achieve simple and highly applicable 3D heterogeneous modeling.
[0027] Based on this, the embodiment of the present application provides a 3D heterogeneous modeling solution, which subdivides each 3D module or element in the construction process of the entire 3D object heterogeneous model, and is suitable not only for users with modeling experience, but also for users with less modeling experience; and, in the construction process, 3D heterogeneous elements are configured, which can realize the construction of heterogeneous models based on heterogeneous elements. Therefore, the 3D heterogeneous modeling method and device can realize simple and highly applicable 3D heterogeneous modeling.
[0028] Please refer to Figure 1 , is a flow chart of a 3D heterogeneous modeling method provided in an embodiment of the present application, and the 3D heterogeneous modeling method can be applied to a terminal device. Figure 1 As shown, the 3D heterogeneous modeling method includes:
[0029] Step 101 : in response to detecting a modeling request, displaying a target 3D module and a plurality of 3D heterogeneous elements corresponding to the target 3D module.
[0030] In some embodiments, the 3D modeling software first displays a modeling page or a modeling guide page; the modeling page or the modeling guide page includes a guide control for indicating the start of modeling. For the user, a modeling request can be generated by initiating a trigger operation on the guide control. Correspondingly, when the terminal device detects the modeling request, the target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module are displayed.
[0031] In some embodiments, the target 3D module and the multiple 3D heterogeneous elements corresponding to the target 3D module can be displayed in the same display page or in different display pages. Alternatively, in the same display page, the guide controls of the target 3D module and the multiple 3D heterogeneous elements corresponding to the target 3D module are displayed, and the display page corresponding to the target 3D module and the multiple 3D heterogeneous elements corresponding to the target 3D module can be entered through the corresponding guide controls.
[0032] In some embodiments, the target 3D module corresponds to a plurality of 3D sub-modules, and the plurality of 3D sub-modules can be understood as small modules constituting the target 3D module.
[0033] In some embodiments, when developing 3D modeling software, multiple 3D modules and 3D submodules corresponding to the multiple 3D modules are configured in advance. When a user initiates a modeling request, a target 3D module corresponding to the modeling request and multiple 3D heterogeneous elements corresponding to the target 3D module are displayed.
[0034] Therefore, in some embodiments, when the user triggers a modeling request through a guide control, the user can also select the type of modeling object. Different modeling object types correspond to different target 3D modules. Thus, based on the modeling request, the target 3D module corresponding to the modeling object type and multiple sub-3D heterogeneous elements corresponding to the target 3D module can be displayed.
[0035] As an optional implementation, step 101 includes: displaying a target 3D module at a first display position, and displaying first guide information of the target 3D module at the first display position; the first guide information is used to indicate the number of 3D sub-modules corresponding to the target 3D module and basic information of the target 3D module; displaying each 3D sub-module at a second display position corresponding to a plurality of 3D sub-modules, and displaying second guide information corresponding to each 3D sub-module at each second display position; the second guide information is used to indicate the position of each 3D sub-module in the target 3D module, and the importance of each 3D sub-module in the target 3D module; displaying each 3D heterogeneous element at a third display position corresponding to a plurality of 3D heterogeneous elements, and displaying third guide information corresponding to each 3D heterogeneous element at each third display position; the third guide information is used to indicate the modeling purpose and modeling difficulty of each 3D heterogeneous element.
[0036] In this embodiment, each object to be displayed is provided with guidance information, based on which the user can better perform 3D modeling. Thus, even users with insufficient modeling experience can complete modeling well.
[0037] In some embodiments, the first display position may be a display position in the display area where the target 3D module is located; the second display position may be a display position in the display area where the 3D submodule is located; and the third display position may be a display position in the display area where the 3D heterogeneous element is located.
[0038] In some embodiments, the first display position, the second display position and the third display position may belong to the same display page or different display pages. That is, the target 3D module, the 3D sub-module and the 3D heterogeneous element may be displayed on one display page or on multiple display pages.
[0039] In some embodiments, the first guide information is used to indicate the number of 3D submodules corresponding to the target 3D module and basic information of the target 3D module. The basic information includes but is not limited to: the name of the target 3D module, the corresponding heterogeneous object, the modeling method, etc. The basic information can be pre-configured, and when the target 3D module is displayed, the basic information can be displayed together.
[0040] In some embodiments, the basic information can be directly displayed as part of the first guide information, or can be displayed through relevant identifiers in the first guide information, such as links, etc. Similarly, the number of 3D sub-modules can also be directly displayed as part of the first guide information, or can be displayed through relevant identifiers in the first guide information.
[0041] In some embodiments, the second guide information is used to indicate the position of each 3D sub-module in the target 3D module, and the importance of each 3D sub-module in the target 3D module.
[0042] The position of each 3D submodule in the target 3D module can be indicated by a position identifier, for example, after the target 3D module is divided into multiple submodules, the multiple submodules are sorted by position numbers according to their positions, and each position number can represent the position of the submodule in the target 3D module. Therefore, in the second guidance information, the position of the submodule in the target 3D module is identified by the position number.
[0043] And, the importance of the 3D submodule in the target 3D module can be represented by an importance level. For example, assuming that the importance level is divided into four levels from A to D, level A represents very important, level B represents relatively important, level C represents generally important, and level D represents unimportant.
[0044] Through the second guidance information, the user can understand the position and importance of the 3D submodule in the target 3D module, so that based on the position and importance, the user can be assisted in performing 3D heterogeneous modeling based on the 3D submodule.
[0045] In some embodiments, the third guidance information is used to indicate the modeling purpose and modeling difficulty of each 3D heterogeneous element. Among them, the modeling purpose can characterize the role of the 3D heterogeneous element in the 3D heterogeneous model, and can be configured in combination with different 3D modeling scenarios. For example: for some 3D heterogeneous elements, their role in the 3D heterogeneous model is to build a central module or an edge module; other 3D heterogeneous elements, in the 3D heterogeneous model, act as a separate element module, or fill in a vacant element module, etc.
[0046] Modeling difficulty can characterize the difficulty of constructing 3D heterogeneous elements to achieve corresponding modeling purposes in 3D heterogeneous models. For example, for building a central module, it is difficult to use 3D heterogeneous elements to build it; for building an edge module, it is difficult to use 3D heterogeneous elements to build it.
[0047] In some embodiments, the modeling difficulty can also be represented by a difficulty level. For example, the difficulty level is divided into four levels: A to D, where difficulty level A represents very difficult, difficulty level B represents relatively difficult, difficulty level C represents moderately difficult, and difficulty level D represents not difficult.
[0048] Therefore, through the modeling difficulty and modeling level, users can be assisted in selecting different 3D heterogeneous elements to construct 3D modules.
[0049] In some embodiments, in addition to displaying the target 3D module and multiple 3D heterogeneous elements, a preset list may also be displayed, and the preset list may assist the user in selecting the 3D heterogeneous elements and 3D sub-modules.
[0050] Therefore, as an optional implementation, step 101 also includes: displaying a preset list at a fourth display position; the preset list includes: multiple preset 3D heterogeneous elements and 3D sub-modules corresponding to the multiple preset 3D heterogeneous elements; wherein each preset 3D heterogeneous element corresponds to at least two 3D sub-modules, and, among the 3D sub-modules corresponding to any two 3D heterogeneous elements, there is at least one identical 3D sub-module.
[0051] In some embodiments, the fourth display position may be a display position in the display area where the target 3D module, or the 3D sub-module, or the 3D heterogeneous element is located.
[0052] In some embodiments, the first display position, the second display position, the third display position, and the fourth display position may belong to the same display page or different display pages. That is, the target 3D module, the 3D sub-module, the 3D heterogeneous element, and the preset list may be displayed on one display page or on multiple display pages.
[0053] The preset list includes: a plurality of preset 3D heterogeneous elements and 3D sub-modules corresponding to the plurality of preset 3D heterogeneous elements, that is, the preset list can be understood as a correspondence table between the preset 3D heterogeneous elements and the 3D sub-modules.
[0054] In the preset list, each preset 3D heterogeneous element corresponds to at least two 3D sub-modules, and among the 3D sub-modules corresponding to any two 3D heterogeneous elements, there is at least one identical 3D sub-module.
[0055] Through the preset list, when the user selects a 3D heterogeneous element or a 3D sub-module, the user can first refer to the corresponding relationship in the preset list, and then select the 3D heterogeneous element or the 3D sub-module based on the corresponding relationship.
[0056] In addition, in the embodiment of the present application, the target 3D module can be understood as the modeling module corresponding to the object to be modeled, and these modeling modules can ultimately be modeled into the object to be modeled.
[0057] Step 102 : In response to a first processing operation on a plurality of 3D heterogeneous elements, generate a 3D heterogeneous module corresponding to the first processing operation.
[0058] After displaying the target 3D module and the multiple 3D heterogeneous elements corresponding to the target 3D module in step 101, the user can perform a first processing operation on the multiple 3D heterogeneous elements, and the first processing operation is used to construct the 3D heterogeneous module. Therefore, in step 102, in response to the first processing operation, a 3D heterogeneous module is generated.
[0059] Among them, how to generate a 3D heterogeneous module based on the first processing operation can refer to the mature technology of 3D modeling software in the field, which will not be introduced in detail here.
[0060] In some embodiments, there may be erroneous operations in the first processing operation, and these erroneous operations can be modified in a more convenient way.
[0061] Therefore, as an optional implementation, the 3D heterogeneous modeling method also includes: determining invalid operation steps and valid operation steps in the first processing operation; for the invalid operation steps, determining the invalidity reasons of the invalid operation steps; for the valid operation steps, obtaining the operation information corresponding to the valid operation steps; generating invalid operation records based on the invalid operation steps and the invalidity reasons of the invalid operation steps; generating valid operation records based on the valid operation steps and the operation information corresponding to the valid operation steps; and generating the operation flow corresponding to the first processing operation according to the operation sequence of the invalid operation records, the valid operation records, the valid operation steps and the invalid operation steps.
[0062] In some embodiments, an invalid operation step can be understood as a step without a corresponding operation result, and no corresponding operation result can be understood as: the model obtained after this operation is no different from the model obtained after the previous operation. Correspondingly, a valid operation step can be understood as a step with a corresponding operation result, and the existence of a corresponding operation result can be understood as: the model obtained after this operation is different from the model obtained after the previous operation.
[0063] Therefore, in the process of executing the first processing operation, invalid operation steps and valid operation steps can be recorded, so that when it is necessary to generate an operation flow, these invalid operation steps and valid operation steps can be directly called.
[0064] Among them, the invalid reasons of the invalid operation steps include: incorrect element selection, invalid element, unable to splice, unable to create, etc. The operation information corresponding to the valid operation steps includes: operation element, operation result, operation method, etc.
[0065] Furthermore, a valid operation record may be generated based on the valid operation steps and the operation information corresponding to the valid operation steps; and an invalid operation record may be generated based on the invalid operation steps and the invalidity reasons of the invalid operation steps.
[0066] Furthermore, based on the valid operation records and the invalid operation records, and in combination with the operation sequence of the valid operation steps and the invalid operation steps, an operation flow corresponding to the first processing operation is generated.
[0067] Based on the processing flow corresponding to the first processing operation, if the 3D heterogeneous module is to be modified, it can be modified more conveniently. Therefore, as an optional implementation, the 3D heterogeneous modeling method further includes: in response to receiving a change instruction for a target operation step in the operation flow corresponding to the first processing operation; the change instruction includes: a changed 3D heterogeneous element and a change operation corresponding to the changed 3D heterogeneous element; based on the change instruction, the 3D heterogeneous module corresponding to the first processing operation is updated, and the updated 3D heterogeneous module corresponding to the first processing operation is used as the final 3D heterogeneous module.
[0068] In this embodiment, the user can select the target operation step in the operation flow corresponding to the first processing operation and modify the target operation step, wherein the modification item includes: the modified 3D heterogeneous element and the modification operation corresponding to the modified 3D heterogeneous element.
[0069] Furthermore, by using the operation flow corresponding to the modified first processing operation, the 3D heterogeneous module corresponding to the first processing operation can be updated, and the updated 3D heterogeneous module can be used as the finally constructed 3D heterogeneous module.
[0070] In some embodiments, the operation results before the target operation step may not need to be updated; while the operation results after the target operation step need to be updated.
[0071] In some embodiments, the first processing operation may generate multiple 3D heterogeneous modules; or may generate only one 3D heterogeneous module, which is not limited here.
[0072] Step 103 : In response to a second processing operation on the 3D heterogeneous module and the plurality of 3D sub-modules, a 3D heterogeneous model corresponding to the second processing operation is generated.
[0073] In this implementation, the user performs corresponding operations on the 3D heterogeneous module and multiple 3D sub-modules to generate a 3D heterogeneous model.
[0074] Here, how to generate a 3D heterogeneous model based on the second processing operation can refer to the mature technology of 3D modeling software in the art, which will not be introduced in detail here.
[0075] In some embodiments, there may be erroneous operations in the second processing operation, and these erroneous operations can be modified in a more convenient way.
[0076] Therefore, as an optional implementation, invalid operation steps and valid operation steps in the second processing operation are determined; for the invalid operation steps, the invalidity reasons of the invalid operation steps are determined; for the valid operation steps, the operation information corresponding to the valid operation steps is obtained; an invalid operation record is generated based on the invalid operation steps and the invalidity reasons of the invalid operation steps; a valid operation record is generated based on the valid operation steps and the operation information corresponding to the valid operation steps; and an operation flow corresponding to the second processing operation is generated according to the operation sequence of the invalid operation record, the valid operation record, the valid operation step and the invalid operation step.
[0077] In some embodiments, an invalid operation step can be understood as a step without a corresponding operation result, and no corresponding operation result can be understood as: the model obtained after this operation is no different from the model obtained after the previous operation. Correspondingly, a valid operation step can be understood as a step with a corresponding operation result, and the existence of a corresponding operation result can be understood as: the model obtained after this operation is different from the model obtained after the previous operation.
[0078] Therefore, in the process of executing the second processing operation, invalid operation steps and valid operation steps can be recorded, so that when it is necessary to generate an operation flow, these invalid operation steps and valid operation steps can be directly called.
[0079] Among them, the invalid reasons of the invalid operation steps include: wrong submodule selection, invalid submodule, unable to splice, unable to create, etc. The operation information corresponding to the valid operation steps includes: operation submodule, operation result, operation method, etc.
[0080] Furthermore, a valid operation record may be generated based on the valid operation steps and the operation information corresponding to the valid operation steps; and an invalid operation record may be generated based on the invalid operation steps and the invalidity reasons of the invalid operation steps.
[0081] Furthermore, based on the valid operation records and the invalid operation records, and in combination with the operation sequence of the valid operation steps and the invalid operation steps, an operation flow corresponding to the second processing operation is generated.
[0082] Based on the operation flow corresponding to the second processing operation, the incorrect operation can be modified. Therefore, the 3D heterogeneous modeling method further includes: in response to receiving a change instruction for a target operation step in the operation flow corresponding to the second processing operation; the change instruction includes: a changed 3D submodule and a change operation corresponding to the changed 3D submodule; based on the change instruction, the 3D heterogeneous model corresponding to the second processing operation is updated, and the updated 3D heterogeneous model corresponding to the second processing operation is used as the final 3D heterogeneous model.
[0083] In this embodiment, the user can select the target operation step in the operation flow corresponding to the second processing operation and modify the target operation step. The modification item includes: the modified 3D submodule and the modification operation corresponding to the modified 3D submodule.
[0084] Furthermore, by using the operation flow corresponding to the modified second processing operation, the 3D heterogeneous model corresponding to the second processing operation can be updated, and the updated 3D heterogeneous model can be used as the finally constructed 3D heterogeneous model.
[0085] In some embodiments, the operation results before the target operation step may not need to be updated; while the operation results after the target operation step need to be updated.
[0086] In some embodiments, the second processing operation may generate multiple 3D heterogeneous models; or may generate only one 3D heterogeneous model, which is not limited here.
[0087] Step 104 : determining a 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library.
[0088] In some embodiments, the preset 3D object model library includes preset 3D objects and preset 3D models corresponding to the preset 3D models. Therefore, as an optional implementation, step 104 includes: comparing the 3D heterogeneous model with the preset 3D model corresponding to the preset 3D object in the preset 3D object model library to determine the target 3D object; wherein the model similarity between the preset 3D model corresponding to the target 3D object and the 3D heterogeneous model is greater than the first preset similarity, and the model information similarity between the model information of the preset 3D model and the model information of the 3D heterogeneous model is greater than the second preset similarity.
[0089] In some embodiments, the model similarity can refer to the mature model similarity calculation method in the art, which will not be described in detail here. In addition, the model information can be directly obtained, and the similarity between model information can refer to the mature model information similarity calculation method in the art.
[0090] Furthermore, the first preset similarity and the second preset similarity can be set in combination with different application scenarios, and no specific values are limited here.
[0091] In this implementation, by determining the model similarity and the model information similarity, and then determining the preset 3D object based on the two similarities, accurate and effective determination of the preset 3D object is achieved.
[0092] Step 105 : generating a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model.
[0093] In some embodiments, the 3D heterogeneous model can be understood as a model prototype that the user wants to model; through the 3D object corresponding to the 3D heterogeneous model, a 3D object heterogeneous model matching the 3D object can be constructed based on the model prototype.
[0094] As an optional implementation, step 105 includes: obtaining modeling information of a 3D object corresponding to the 3D heterogeneous model; the modeling information includes: texture modeling information, image modeling information and model basic information, and the model basic information includes: model transparency, model color, model size and model identification; adding model texture to the 3D heterogeneous model based on the texture modeling information; adding a model image to the 3D heterogeneous model with added model texture based on the image modeling information; adjusting the 3D heterogeneous model with added model image based on the model basic information, and determining the adjusted 3D heterogeneous model as the 3D object heterogeneous model.
[0095] In some embodiments, in the modeling software, each 3D object is preset with modeling information, and therefore, the modeling information of the corresponding 3D object can be directly acquired.
[0096] The texture modeling information is used to represent the texture of the 3D object; the image modeling information is used to represent the image of the 3D object; and the model basic information is used to define the transparency, color, size and model identification of the model. In some embodiments, the model identification can be a model name, model type, model number, etc.
[0097] Furthermore, model texture is added to the 3D heterogeneous model based on the texture modeling information to achieve the construction of model texture.
[0098] Furthermore, based on the picture modeling information, a model picture is added to the 3D heterogeneous model with the model texture added, so as to realize the construction of the model picture.
[0099] Furthermore, a 3D heterogeneous model is adjusted based on the basic information of the model and the model image is added to achieve the construction of a model that matches the 3D object.
[0100] Finally, the 3D heterogeneous model obtained after completing various adjustments is the 3D object heterogeneous model.
[0101] Through the introduction of the aforementioned 3D heterogeneous modeling method, it can be seen that the modeling scheme provided by the embodiment of the present application, when a modeling request is detected, displays the target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module, and the target 3D module corresponds to multiple 3D sub-modules; then, for the user, the corresponding 3D heterogeneous module can be constructed by processing multiple 3D heterogeneous elements; and then the 3D heterogeneous model is constructed by the 3D heterogeneous module and multiple 3D sub-modules; thus, the 3D object heterogeneous model is constructed based on the 3D heterogeneous model and the corresponding 3D object. In the construction process of the entire 3D object heterogeneous model, each 3D module or element is subdivided, which is not only suitable for users with modeling experience, but also for users with slightly insufficient modeling experience; and 3D heterogeneous elements are configured in the construction process, which can realize the construction of heterogeneous models based on heterogeneous elements. Therefore, the 3D heterogeneous modeling method can realize simple and highly applicable 3D heterogeneous modeling.
[0102] Please refer to Figure 2 The present application provides a 3D heterogeneous modeling device, comprising:
[0103] The display unit 201 is used to display a target 3D module and multiple 3D heterogeneous elements corresponding to the target 3D module in response to detecting a modeling request; the target 3D module corresponds to multiple 3D sub-modules; the processing unit 202 is used to generate a 3D heterogeneous module corresponding to the first processing operation in response to the first processing operation for the multiple 3D heterogeneous elements; the processing unit 202 is also used to: in response to a second processing operation for the 3D heterogeneous module and the multiple 3D sub-modules, generate a 3D heterogeneous model corresponding to the second processing operation; the processing unit 202 is also used to: determine the 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library; the processing unit 202 is also used to generate a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model.
[0104] In some embodiments, the display unit 201 is further used to: display the target 3D module at a first display position, and display first guide information of the target 3D module at the first display position; the first guide information is used to indicate the number of 3D sub-modules corresponding to the target 3D module and the basic information of the target 3D module; display each 3D sub-module at the second display positions corresponding to the multiple 3D sub-modules, and display the second guide information corresponding to each 3D sub-module at each of the second display positions; the second guide information is used to indicate the position of each 3D sub-module in the target 3D module, and the importance of each 3D sub-module in the target 3D module; display each 3D heterogeneous element at the third display positions corresponding to the multiple 3D heterogeneous elements, and display the third guide information corresponding to each 3D heterogeneous element at each of the third display positions; the third guide information is used to indicate the modeling purpose and modeling difficulty of each 3D heterogeneous element.
[0105] In some embodiments, the display unit 201 is further used to: display a preset list at a fourth display position; the preset list includes: multiple preset 3D heterogeneous elements and 3D sub-modules corresponding to the multiple preset 3D heterogeneous elements; wherein each preset 3D heterogeneous element corresponds to at least two 3D sub-modules, and, among the 3D sub-modules corresponding to any two 3D heterogeneous elements, there is at least one identical 3D sub-module.
[0106] In some embodiments, the processing unit 202 is also used to: determine invalid operation steps and valid operation steps in the first processing operation; for the invalid operation step, determine the invalid reason of the invalid operation step; for the valid operation step, obtain the operation information corresponding to the valid operation step; generate an invalid operation record based on the invalid operation step and the invalid reason of the invalid operation step; generate a valid operation record based on the valid operation step and the operation information corresponding to the valid operation step; generate an operation flow corresponding to the first processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation step and the invalid operation step.
[0107] In some embodiments, the processing unit 202 is further used to: respond to receiving a change instruction for a target operation step in an operation flow corresponding to the first processing operation; the change instruction includes: a changed 3D heterogeneous element and a change operation corresponding to the changed 3D heterogeneous element; update the 3D heterogeneous module corresponding to the first processing operation based on the change instruction, and use the updated 3D heterogeneous module corresponding to the first processing operation as the final 3D heterogeneous module.
[0108] In some embodiments, the processing unit 202 is also used to: determine invalid operation steps and valid operation steps in the second processing operation; for the invalid operation step, determine the invalid reason of the invalid operation step; for the valid operation step, obtain the operation information corresponding to the valid operation step; generate an invalid operation record based on the invalid operation step and the invalid reason of the invalid operation step; generate a valid operation record based on the valid operation step and the operation information corresponding to the valid operation step; generate the operation process corresponding to the second processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation step and the invalid operation step.
[0109] In some embodiments, the processing unit 202 is also used to: respond to receiving a change instruction for a target operation step in the operation flow corresponding to the second processing operation; the change instruction includes: a changed 3D sub-module and a change operation corresponding to the changed 3D sub-module; update the 3D heterogeneous model corresponding to the second processing operation based on the change instruction, and use the updated 3D heterogeneous model corresponding to the second processing operation as the final 3D heterogeneous model.
[0110] In some embodiments, the processing unit 202 is further used to: compare the 3D heterogeneous model with a preset 3D model corresponding to a preset 3D object in a preset 3D object model library to determine a target 3D object; wherein a model similarity between the preset 3D model corresponding to the target 3D object and the 3D heterogeneous model is greater than a first preset similarity, and a model information similarity between the model information of the preset 3D model and the model information of the 3D heterogeneous model is greater than a second preset similarity.
[0111] In some embodiments, the processing unit 202 is further used to: obtain modeling information of a 3D object corresponding to the 3D heterogeneous model; the modeling information includes: texture modeling information, image modeling information and model basic information, and the model basic information includes: model transparency, model color, model size and model identification; add model texture to the 3D heterogeneous model based on the texture modeling information; add a model image to the 3D heterogeneous model with added model texture based on the image modeling information; adjust the 3D heterogeneous model with added model image based on the model basic information, and determine the adjusted 3D heterogeneous model as the 3D object heterogeneous model.
[0112] The 3D heterogeneous modeling device corresponds to the aforementioned 3D heterogeneous modeling method. Therefore, the implementation of each module of the 3D heterogeneous modeling device refers to the implementation of the aforementioned 3D heterogeneous modeling method, and will not be repeatedly introduced here.
[0113] like Figure 3As shown, an embodiment of the present application further provides an electronic device, including a processor 301 and a memory 302, wherein the processor 301 and the memory 302 are communicatively connected, and the electronic device can serve as an executor of the aforementioned 3D heterogeneous modeling method.
[0114] The processor 301 and the memory 302 are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these elements can be electrically connected through one or more communication buses or signal buses. The aforementioned 3D heterogeneous modeling methods each include at least one software function module that can be stored in the memory 302 in the form of software or firmware.
[0115] The processor 301 may be an integrated circuit chip with signal processing capability. The processor 301 may be a general-purpose processor, including a CPU (Central Processing Unit), a NP (Network Processor), etc.; it may also be a digital signal processor, a dedicated integrated circuit, a readily available programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. It may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0116] The memory 302 can store various software programs and modules, such as program instructions / modules corresponding to the image processing method and device provided in the embodiments of the present invention. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302, that is, implementing the method in the embodiments of the present application.
[0117] The memory 302 may include, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.
[0118] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3Different configurations are shown.
[0119] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0120] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] The foregoing description of the specific exemplary embodiments of the present application is for the purpose of illustration and illustration. These descriptions are not intended to limit the present application to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present application and its practical application, so that those skilled in the art can realize and utilize the various exemplary embodiments of the present application and various selections and changes. The scope of the present application is intended to be limited by the claims and their equivalents.
Claims
1. A 3D heterogeneous modeling method, characterized in that: include: In response to detecting a modeling request, displaying a target 3D module and a plurality of 3D heterogeneous elements corresponding to the target 3D module; The target 3D module corresponds to a plurality of 3D sub-modules; In response to a first processing operation on the plurality of 3D heterogeneous elements, generating a 3D heterogeneous module corresponding to the first processing operation; In response to a second processing operation on the 3D heterogeneous module and the plurality of 3D sub-modules, generating a 3D heterogeneous model corresponding to the second processing operation; Determining a 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library; generating a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model; The 3D heterogeneous modeling method further comprises: determining invalid operation steps and valid operation steps in the first processing operation; For the invalid operation step, determining the invalid reason of the invalid operation step; For the valid operation steps, obtaining operation information corresponding to the valid operation steps; Generate an invalid operation record based on the invalid operation step and the invalid reason of the invalid operation step; Generate a valid operation record based on the valid operation steps and the operation information corresponding to the valid operation steps; Generate an operation flow corresponding to the first processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation steps and the invalid operation steps; Among them, the invalid operation steps are: the model obtained after this operation is no different from the model obtained after the previous operation; the valid operation steps are: the model obtained after this operation is different from the model obtained after the previous operation.
2. The 3D heterogeneous modeling method according to claim 1, characterized in that: The 3D heterogeneous modeling method further comprises: In response to receiving a modification instruction for a target operation step in the operation flow corresponding to the first processing operation, the modification instruction includes: a modified 3D heterogeneous element and a modification operation corresponding to the modified 3D heterogeneous element; The 3D heterogeneous module corresponding to the first processing operation is updated based on the change instruction, and the updated 3D heterogeneous module corresponding to the first processing operation is used as the final 3D heterogeneous module.
3. The 3D heterogeneous modeling method according to claim 1, characterized in that: The 3D heterogeneous modeling method further comprises: determining invalid operation steps and valid operation steps in the second processing operation; For the invalid operation step, determining the invalid reason of the invalid operation step; For the valid operation steps, obtaining operation information corresponding to the valid operation steps; Generate an invalid operation record based on the invalid operation step and the invalid reason of the invalid operation step; Generate a valid operation record based on the valid operation steps and the operation information corresponding to the valid operation steps; An operation flow corresponding to the second processing operation is generated according to the operation sequence of the invalid operation record, the valid operation record, the valid operation steps and the invalid operation steps.
4. The 3D heterogeneous modeling method according to claim 3, characterized in that: The 3D heterogeneous modeling method further comprises: In response to receiving a change instruction for a target operation step in the operation flow corresponding to the second processing operation, the change instruction includes: a changed 3D submodule and a change operation corresponding to the changed 3D submodule; The 3D heterogeneous model corresponding to the second processing operation is updated based on the change instruction, and the updated 3D heterogeneous model corresponding to the second processing operation is used as the final 3D heterogeneous model.
5. The 3D heterogeneous modeling method according to claim 1, characterized in that: The generating a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model includes: Acquire modeling information of a 3D object corresponding to the 3D heterogeneous model; the modeling information includes: texture modeling information, image modeling information and model basic information, and the model basic information includes: model transparency, model color, model size and model identification; Adding model texture to the 3D heterogeneous model based on the texture modeling information; Adding a model image to the 3D heterogeneous model with added model texture based on the image modeling information; The 3D heterogeneous model with the model image added is adjusted based on the model basic information, and the adjusted 3D heterogeneous model is determined as the 3D object heterogeneous model.
6. A 3D heterogeneous modeling device, characterized in that: include: a display unit, configured to display a target 3D module and a plurality of 3D heterogeneous elements corresponding to the target 3D module in response to detecting a modeling request; The target 3D module corresponds to a plurality of 3D sub-modules; a processing unit, configured to generate, in response to a first processing operation on the plurality of 3D heterogeneous elements, a 3D heterogeneous module corresponding to the first processing operation; The processing unit is further configured to: in response to a second processing operation on the 3D heterogeneous module and the plurality of 3D sub-modules, generate a 3D heterogeneous model corresponding to the second processing operation; The processing unit is further used to: determine the 3D object corresponding to the 3D heterogeneous model according to the 3D heterogeneous model and a preset 3D object model library; The processing unit is further configured to generate a 3D object heterogeneous model based on the 3D object corresponding to the 3D heterogeneous model and the 3D heterogeneous model; The processing unit is further used to: determine invalid operation steps and valid operation steps in the first processing operation; For the invalid operation step, determining the invalid reason of the invalid operation step; For the valid operation steps, obtaining operation information corresponding to the valid operation steps; Generate an invalid operation record based on the invalid operation step and the invalid reason of the invalid operation step; Generate a valid operation record based on the valid operation steps and the operation information corresponding to the valid operation steps; Generate an operation flow corresponding to the first processing operation according to the operation sequence of the invalid operation record, the valid operation record, the valid operation steps and the invalid operation steps; Among them, the invalid operation steps are: the model obtained after this operation is no different from the model obtained after the previous operation; the valid operation steps are: the model obtained after this operation is different from the model obtained after the previous operation.
Citation Information
Patent Citations
Digital sand table creating method and device, electronic equipment and storage medium
CN114140588A
