Modeling method and device for a model

By generating a modeling method for basic structures and intermediate structures and using files to manage each part of the data, the problem of heavy modification workload in existing modeling methods is solved, efficient model modification and data reuse are achieved, and modeling efficiency is improved.

CN114288667BActive Publication Date: 2025-09-23BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111640949.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-09-23
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The existing modeling methods have a large workload for model modification and low modeling efficiency, which leads to mismatches or overlaps when modifying various parts of the model, and requires manual re-production of other parts.

Method used

By generating the basic structure and the intermediate structure, making and modifying the basic structure and the intermediate structure respectively, using different files to manage the data of each part, the degree of coupling is reduced, and separate modification and data reuse are supported.

Benefits of technology

It reduces the workload when modifying the model, improves modeling efficiency, reduces the need to remake other parts, and improves the flexibility and modification efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114288667B_ABST
    Figure CN114288667B_ABST
Patent Text Reader

Abstract

The present application relates to a modeling method and device for a model, which generates a base structure; in response to a construction instruction for the base structure, determines a first file for generating an intermediate structure according to construction parameters carried in the construction instruction; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure; according to the first file, offsets at least a first portion of model points in the base structure to generate the intermediate structure; and generates a target model that incorporates the intermediate structure on the base structure. When displaying the target model obtained based on the process in this specification, the base structure is first formed, and then the model points on the base structure are offset to obtain the intermediate structure. Even if the data of the base structure and the first file are decoupled to a certain extent, the base structure and the intermediate structure can be well connected, thereby providing a better model effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of modeling technology, and in particular to a modeling method and device. Background Art

[0002] Three-dimensional modeling technology is widely used in application fields such as games and audio and video. In order to meet modeling needs, model makers usually increase the attributes of the model so that the model can display richer information, where the attributes of the model include the lines of the model, the distribution of colors, etc. However, the degree of coupling between the various parts of the model produced in the prior art is relatively high. After the model is produced, if the model needs to be modified, it may lead to the modification of a certain attribute / part of the model, causing the modified attribute / part to be mismatched with or covered by other attributes / parts. Therefore, manual modification of other attributes / parts is required, which often leads to the re-production of multiple parts of the model, resulting in a large workload for model modification and low modeling efficiency. Summary of the Invention

[0003] The present application provides a modeling method and device to solve the problems of large model modification workload and low modeling efficiency in existing modeling methods.

[0004] In a first aspect, the present application provides a modeling method, comprising:

[0005] Generate infrastructure;

[0006] In response to a build instruction for the base structure, determining a first file for generating an intermediate structure according to build parameters carried in the build instruction; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure;

[0007] offsetting at least a first portion of model points in the base structure according to the first file to generate the intermediate structure;

[0008] A target model is generated by fusing the intermediate structure onto the base structure.

[0009] In an optional embodiment of the present specification, generating a target model in which the intermediate structure is integrated with the base structure includes:

[0010] Taking the model in which the intermediate structure is fused onto the basic structure as the pending model;

[0011] In response to a detail adding instruction for the undetermined model, determining a second file for generating a detail structure; wherein the second file includes a second offset for offsetting at least a second portion of model points in the undetermined model;

[0012] offsetting at least a second portion of model points in the predetermined model according to the second file to generate the detail structure;

[0013] A target model is generated by integrating the detail structure onto the undetermined model.

[0014] In an optional embodiment of this specification, the method further includes:

[0015] In response to the first modification instruction, determining a third file for generating the basic structure, and modifying creation parameters in the third file according to the modification instruction;

[0016] Regenerate the basic structure according to the modified creation parameters in the third file;

[0017] A target model is regenerated according to the first file, the second file, and the regenerated basic structure.

[0018] In an optional embodiment of this specification, the method further includes:

[0019] In response to a second modification instruction, modifying a construction parameter used to generate the intermediate structure;

[0020] Regenerate the intermediate structure according to the modified construction parameters;

[0021] The target model is regenerated according to the second file, the third file and the regenerated intermediate structure.

[0022] In an optional embodiment of the present specification, in response to a detail adding instruction on the pending model, determining a second file for generating a detail structure includes:

[0023] In response to a detail adding instruction, obtaining a grayscale image;

[0024] A second file corresponding to the detail structure is determined according to the detail features shown in the grayscale graph.

[0025] In an optional embodiment of this specification, the method further includes:

[0026] Re-acquiring a new grayscale image in response to the third modification instruction;

[0027] updating the second file according to the detail features shown in the reacquired grayscale graph;

[0028] Regenerate the target model according to the updated second file and the pending model.

[0029] In an optional embodiment of this specification, the method further includes:

[0030] In response to a creation instruction, a plurality of structural units are generated according to creation parameters carried in the creation instruction; wherein the spaces enclosed by the outlines of two adjacent structural units are connected, and the plurality of structural units as a whole constitute a basic structure.

[0031] In a second aspect, the present application provides a modeling device, the device comprising:

[0032] The infrastructure generation module is configured to: generate an infrastructure;

[0033] a first file generating module configured to: in response to a construction instruction for the base structure, determine a first file for generating an intermediate structure according to construction parameters carried in the construction instruction; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure;

[0034] an intermediate structure generating module configured to: offset at least a first portion of model points in the base structure according to the first file to generate the intermediate structure;

[0035] The target model generation module is configured to generate a target model that integrates the intermediate structure with the base structure.

[0036] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0037] Memory for storing computer programs;

[0038] The processor is used to implement the steps of the modeling method of any model in the first aspect when executing the program stored in the memory.

[0039] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the modeling method of any model in the first aspect.

[0040] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0041] By adopting the modeling method and device of the model in this specification, the target model is formed by the base structure and the intermediate structure. In the process of making the target model, the base structure and the intermediate structure can be made separately, which can effectively reduce the degree of coupling between the base structure and the intermediate structure, and to a certain extent avoid the phenomenon that the data in the first file is unavailable due to the modification of the data of the base structure. Furthermore, when generating the target model, the base structure is first formed, and then the model points on the base structure are offset to obtain the intermediate structure. Even if the data of the base structure and the first file are decoupled to a certain extent, the base structure and the intermediate structure can be well connected, thereby enabling the base structure and the intermediate structure to support separate production and modification, thereby improving the modeling efficiency and reducing the workload required for model modification when modifying the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 A schematic diagram of a flow chart of a modeling process of a model provided in an embodiment of the present application;

[0045] Figure 2a A schematic diagram of a basic structure obtained by a modeling process of a model provided in an embodiment of the present application;

[0046] Figure 2b A schematic diagram of a target model / undetermined model obtained by a modeling process of a model provided in an embodiment of the present application, which integrates an intermediate structure and a basic structure;

[0047] Figure 2c A schematic diagram of a target model obtained by a modeling process of a model provided in an embodiment of the present application, which integrates an intermediate structure, a basic structure, and a detailed structure;

[0048] Figure 2d A schematic diagram of a first control key involved in a modeling process of a model provided in an embodiment of the present application;

[0049] Figure 2e The modeling process of a model provided in the embodiment of the present application is Figure 2c Schematic diagram of the target model obtained after adjusting the intermediate structure shown in;

[0050] Figure 2f The modeling process of a model provided in the embodiment of the present application is Figure 2e Schematic diagram of the target model obtained after adjusting the detailed structure shown in;

[0051] Figure 2g The modeling process of a model provided in the embodiment of the present application is Figure 2f A schematic diagram of the target model obtained after adjusting a structural unit shown in FIG;

[0052] Figure 3 A schematic diagram of a process for generating detailed structures during the modeling process of a model provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of a modeling device provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0056] In the gaming field, it is often necessary to create various three-dimensional models with complex structures. For example, the structural complexity of a right cylinder in three-dimensional space is lower than that of a cylinder that has been distorted along its axial direction. If a local structure that protrudes outward or is recessed inward is formed on the distorted cylinder, the complexity of the model with the local structure will be higher. For example, Figure 2c The model shown here with added surface details is more complex than the one shown in Figure 2b The complexity of the model shown.

[0057] In the model making scenario, if the model designer modifies a part of the model, it often causes the structure of other parts of the model to be overwritten, and then the other parts need to be remade. Figure 2cFor the model with surface detail structure shown, when the overall direction of the model (such as the overall length) is modified, the surface detail structure of the model will be covered, so it is necessary to manually re-produce the surface detail structure, which leads to a large workload for model modification and low modeling efficiency.

[0058] In view of this, in order to avoid the large model modification workload and low modeling efficiency caused by manually remaking other parts of the model when modifying a part of the model, this manual provides a modeling process of a model.

[0059] The modeling process of the model in this specification is performed by a modeling device. The modeling device in this specification can be a device with a graphic display function, or a device with a data output function that can be connected to a graphic display device. Such devices can be mobile phones, tablet computers, personal computers, laptops, personal digital assistants (PDAs), wearable devices (such as smart glasses, smart watches), projectors, holographic sandboxes, etc. In addition, the modeling device in this specification can also be an application (APP). The specific form of the modeling device can be determined according to the actual scenario.

[0060] In this specification, you can generate Figure 2a To the three-dimensional model shown in 2g.

[0061] like Figure 1 As shown, the modeling process of the model provided in this specification includes the following steps:

[0062] S100: Generate a basic structure.

[0063] The target model to be obtained in this specification includes at least a base structure and an intermediate structure integrated into one. The process described in this specification is intended to obtain the target model, and prior to this, a process of generating the target model is required. The process in this step is the process of generating the base structure used to obtain the target model. The base structure can be the main structure of the target model.

[0064] In terms of the temporal order of generation, the base structure is generated earlier than the intermediate structures. Regarding the logical relationship between the components that make up the target model, the base structure is the foundation, and the intermediate structures are generated based on the base structure. For example, the intermediate structures are local structures built on the base structure, such as the muscle structure of the target model that is automatically sculpted on the base structure.

[0065] The basic structure in this specification may be composed of a plurality of first model points. The first model point may include at least one of the following attributes: a position of the first model point in a coordinate space, a color value displayed by the first model point, and an identifier of the first model point.

[0066] In an optional embodiment of the present specification, the infrastructure can be represented by a series of creation parameters that characterize the properties of the infrastructure (i.e., model parameters of the infrastructure). The creation parameters are not visualized and cannot be directly displayed. For example, each first model point constituting the infrastructure can be represented in the form of coordinates (e.g., coordinates (X, Y, Z)).

[0067] In another optional embodiment of the present invention, the basic structure has a visual performance, and the basic structure obtained by this step can be directly displayed. For example, each first model point constituting the basic structure can be a visible point in the coordinate space.

[0068] S102: In response to a build instruction for the basic structure, determine a first file for generating an intermediate structure according to build parameters carried in the build instruction.

[0069] The first file includes a first offset for offsetting at least a first portion of model points in the base structure.

[0070] A build instruction in this specification may be an instruction received by a modeling device, including but not limited to instructions triggered by a user's build operation. A build operation is an operation that adds build parameters to an infrastructure. In addition to the build parameters, a build instruction may also carry the identifier of the first model point it targets.

[0071] Optionally, the construction operation can be a click operation, an input operation, or a drag operation (e.g., a drag operation performed on certain first model points on the base structure, or on lines or surfaces formed by certain first model points). The construction parameters indicate how to obtain the intermediate structure from the base structure. The construction parameters are the parameters used when obtaining the intermediate structure from the base structure. The first file is a file that records the construction parameters.

[0072] As can be seen from the foregoing, the intermediate structure is obtained by offsetting at least part of the first model points of the base structure. To achieve this offset, the first file records the first offset used when offsetting at least part of the first model points in the base structure.

[0073] Exemplarily, a specific implementation of the offset of the first model point may be at least one of the following: modifying the position of at least part of the first model point (ie, the aforementioned "first part of model points") in the coordinate space.

[0074] In an optional embodiment of the present specification, the construction parameters recorded in the first file include, in addition to the first offset, a first correspondence between the first model point and the second model point. The second model point is a point on an intermediate structure obtained based on the base structure and the first file. The second model point S1 can be represented as (F1, a1), where F1 is the identifier of the first model point corresponding to the second model point S1, and a1 is the first offset used when offsetting the first model point F1. That is, the second model point S1 is obtained by offsetting the first model point F1 by the first offset a1.

[0075] In an optional embodiment of this specification, to obtain construction parameters based on a user's construction operation, the modeling device displays a first interactive interface during this step. The first interactive interface is used to add the construction parameters obtained based on the user's construction operation to the first template to generate a first file. Optionally, the first template includes first fields to be filled in that correspond one-to-one with the construction parameters. When displaying the first interactive interface, the modeling device displays each first field to be filled in to guide the user's construction operation.

[0076] S104: offsetting at least a first portion of model points in the base structure according to the first file to generate the intermediate structure.

[0077] After obtaining the first file, the first model point represented in the first file may be offset using the first offset, ie, obtaining an intermediate structure.

[0078] For example, taking the target model as a dragon-shaped three-dimensional model, in the three-dimensional coordinate space, a basic structure can be as follows: Figure 2a As shown, in Figure 2a Based on the basic structure shown, the intermediate structure is as follows Figure 2b shown.

[0079] Figures 2a to 2g This corresponds to the several stages of generating a dragon model, where the base structure is used to represent the dragon's torso and limbs, and the intermediate structure is used to represent the dragon's muscle structure.

[0080] S106: Generate a target model by integrating the intermediate structure with the base structure.

[0081] The target model in this specification is obtained by fusing the base structure and the intermediate structure. Exemplarily, the fusion method can be superposition. Since the intermediate structure is obtained by offsetting at least part of the first model points of the base structure, the construction parameters of the intermediate structure (i.e., the model parameters of the intermediate structure) can be calculated based on the first offset of at least part of the creation parameters of the base structure.

[0082] Exemplarily, when the fusion method is superposition, the coordinates of the position of the first model point F2 are b, the coordinates of the position of the second model point S2 are c, the generation time of the second model point S2 is later, and the coordinates of the target model point on the superimposed target model are c.

[0083] In the above embodiment of generating a dragon-shaped model, after the fusion of the basic structure and the intermediate structure, the target model obtained is as follows Figure 2b shown.

[0084] By adopting the modeling process of the model in this specification, the target model is jointly represented by the base structure and the intermediate structure. In the process of making the target model, the base structure and the intermediate structure can be made separately, which can effectively reduce the degree of coupling between the base structure and the intermediate structure, and to a certain extent avoid the phenomenon that the data in the first file is unavailable due to the modification of the data of the base structure. Furthermore, when displaying the target model obtained based on the process in this specification, the base structure is first formed, and then the model points on the base structure are offset to obtain the intermediate structure. Even if the data of the base structure and the first file are decoupled to a certain extent, the base structure and the intermediate structure can be well connected, thereby providing a better model effect.

[0085] In the example of generating a target model, optionally, the creation parameters of the base structure can be managed by a curve modifier, specifically, the user can execute input in the creation parameters for the base structure through the curve modifier management; the data in the first file can be managed by a multi-level precision modifier, specifically, the user can execute input in the creation parameters for the base structure through the multi-level precision modifier.

[0086] In addition, the process in this specification first generates a basic structure and then obtains an intermediate structure based on the basic structure.

[0087] To further enhance the decoupling between the base structure and the intermediate structure, in an optional embodiment of this specification, a third file is used to record the base structure's creation parameters. Since the base structure's creation parameters and the intermediate structure's construction parameters are managed in separate files, further decoupling between the base structure and the intermediate structure can be achieved at the data management level.

[0088] To improve the refinement of the model, in an optional embodiment of the present specification, the target model generated by the modeling process of the model in the present specification not only incorporates the basic structure and the intermediate structure, but also incorporates the detailed structure.

[0089] In this embodiment, if Figure 3 As shown, after generating the first file:

[0090] S300: The model in which the intermediate structure is integrated with the basic structure is used as a pending model.

[0091] This step can be triggered by a user's detail addition operation. The detail addition operation in this specification refers to the operation of adding detail parameters to the pending model, where the model parameters of the pending model's attributes are represented by the base structure's creation parameters and the first file. Alternatively, the detail addition operation can be an operation of importing a file (e.g., a grayscale image, as described below).

[0092] Following the above-mentioned embodiment of generating a dragon-shaped model, after the fusion of the basic structure and the intermediate structure, the undetermined model is obtained as follows Figure 2b shown.

[0093] S302: In response to a detail adding instruction for the pending model, determining a second file for generating a detail structure.

[0094] The second file includes a second offset for offsetting at least a second portion of model points in the undetermined model.

[0095] The detail adding parameters in this specification indicate how to obtain the detail structure of the target model through the pending model, that is, the surface details of the target model, such as the surface scales of the dragon-shaped model. The detail adding parameters are the parameters used when obtaining the detail structure through the pending model. The second file is a file that records the detail adding parameters. The detail adding parameters may include: a second offset used when offsetting at least part of the pending model points in the pending model (that is, the aforementioned second part of the model points), and a correspondence between the pending model points in the pending model and the third model points in the detail structure. The pending model points include: the second model points, and the first model points in the first model points that have not been offset in the process of determining the intermediate structure.

[0096] In an optional embodiment of this specification, to obtain detail addition parameters based on the user's detail addition operation, the modeling device displays a second interactive interface during this step. The second interactive interface is used to add the detail addition parameters obtained based on the user's detail addition operation to the second template, thereby generating a second file. Optionally, the second template includes second fields to be filled in that correspond one-to-one with the detail addition parameters. When displaying the second interactive interface, the modeling device displays each second field to be filled in to guide the user in the detail addition operation.

[0097] S304: offsetting at least a second portion of model points in the predetermined model according to the second file to generate the detail structure.

[0098] For example, a specific implementation method of offsetting the to-be-determined model point may be to modify the position of the to-be-determined model point in the coordinate space.

[0099] In an optional embodiment of the present specification, a grayscale image representing detail addition parameters (the detail addition parameters are used to generate surface details in the undetermined model) can be first obtained. Then, the grayscale image is added to the mesh obtained by UV unfolding the parametric surface (e.g., NURBS surface) to obtain an intermediate plane image. The parametric surface can be used to characterize the outline of the undetermined model. Thereafter, the intermediate plane image is restored to the coordinate space of the undetermined model to obtain a target model in which the detailed structure is integrated with the basic structure and the intermediate structure.

[0100] S306: Generate a target model by integrating the detail structure onto the undetermined model.

[0101] In the above embodiment of generating a dragon model, the target model obtained by fusion of the basic structure, the intermediate structure and the detailed structure is as follows: Figure 2c shown.

[0102] The target model displayed in this step integrates the basic structure, intermediate structure and detailed structure, showing richer model features, which is conducive to improving the display effect of the model and further improving the user experience.

[0103] It can be seen that the target model in this specification includes at least a fused basic structure and an intermediate structure. On the one hand, it enables the modeling process of the model in this specification to generate a more complex target model with better flexibility and support separate modifications to the basic structure and the intermediate structure. On the other hand, it also makes the modeling process of the model in this specification more suitable for application in scenarios where three-dimensional models are constructed.

[0104] In the example of using Blender to display the target model, the data in the second file can be managed by the Displacement modifier. The grayscale image can be made using Substance Designer (SD).

[0105] In the modeling scenarios of related technologies, there may be situations where the model designer repeatedly modifies the target model. If the target model is relatively complex, when the model designer modifies a certain attribute of the target model, it is possible that the modified attribute does not match other unmodified attributes, and thus the generated target model does not meet the production requirements. In the aforementioned example of generating a dragon model, if the details of the dragon's scales are modified, then the subsequent steps of making the dragon's protruding muscles will cause the muscle and scale details to not match. Furthermore, if the dragon's torso is modified, the dragon's muscles and scales will be covered and need to be remade.

[0106] Through the modeling process of the model in this specification, the target model is obtained by integrating several parts, and the data corresponding to different parts are managed by different files. Each part supports independent modification, so even if the data in a certain file is modified, it will not affect the data in other files. Therefore, when a certain structure / part of the model (such as the basic structure, intermediate structure or detailed structure) is modified, the other parts can be reused according to the data in the files corresponding to other structures of the model. Therefore, there is no need to manually remake other parts of the model, thereby reducing the workload when modifying the model and improving the production efficiency of the model. For example, in Figure 2f In the example shown, the scale details (detailed structure) of the dragon shape are modified. The modification of the scale details will not affect the basic structure and intermediate structure of the target model. Therefore, the basic structure and intermediate structure can be reused directly, that is, the basic structure and intermediate structure can be reused by reusing the data of the first file and the third file in the model. Furthermore, if the dragon's limbs (basic structure) are modified, since the intermediate structure (muscles) and the detailed structure are made by the data in the first file and the second file, after the basic structure is modified, the data in the first file and the second file corresponding to the intermediate structure and the detailed structure are reused, so as to automatically adjust the intermediate structure according to the data in the first file, and reuse the detailed structure, wherein the automatic adjustment of the intermediate structure according to the data in the first file includes: controlling the second model point in the intermediate structure to automatically adjust accordingly with the basic structure, such as Figure 2d and Figure 2g As shown, no manual adjustment is required.

[0107] Similarly, when adjusting the parameters recorded in the first file to adjust the intermediate structure, the data in the third file and the second file corresponding to the basic structure and the detailed structure are reused, thereby realizing the reuse of the basic structure and the detailed structure, such as Figure 2e shown.

[0108] In other words, the model generation process in this specification can decouple the generation processes of the basic structure, intermediate structure, and detailed structure to ensure that when one of the basic structure, intermediate structure, and detailed structure is modified, the other structures can be reused according to the data in the files corresponding to the other structures, thereby improving the efficiency of model production.

[0109] The following describes how to modify the structures that make up the target model and reuse other structures.

[0110] When modifying the base structure, the modeling device, in response to a first modification instruction for the base structure, modifies the creation parameters of at least one first model point specified by the first modification instruction. This process does not require modifying the first file or the second file. During the model generation process, the base structure is regenerated based on the modified creation parameters in the third file. The target model is then regenerated based on the first file, the second file, and the regenerated base structure.

[0111] When modifying the intermediate structure, the modeling device, in response to a second modification instruction for the intermediate structure, modifies the data corresponding to the second modification instruction in the first file (the correspondence between the first model point and the second model point, and / or the first offset). This process does not require modifying the creation parameters of the base structure or the second file. During model generation, the intermediate structure is regenerated based on the modified construction parameters; and the target model is regenerated based on the second file, the third file, and the regenerated intermediate structure.

[0112] When modifying the detailed structure, the modeling device, in response to a third modification instruction for the detailed structure, acquires a new grayscale image; adds parameters based on the details shown in the new grayscale image; and updates the second file. This process does not require modifying the creation parameters of the base structure or the first file. During model generation, the second file is updated based on the detailed features shown in the newly acquired grayscale image. The target model is regenerated based on the updated second file and the pending model.

[0113] From the perspective of model structure granularity, the foundation structure has the largest granularity, presenting a more macroscopic model visual effect; the detail structure has the smallest granularity, presenting a more microscopic model visual effect. The intermediate structure has an intermediate granularity, serving as a transition between the foundation structure and the detail structure.

[0114] In an optional embodiment of the present specification, in the process of generating the target model obtained by the aforementioned process, a first interactive interface is displayed, wherein the first interactive interface is used to obtain a second modification instruction for the intermediate structure. Then, in response to a confirmation instruction for the intermediate structure, a second interactive interface is displayed, wherein the second interactive interface is used to obtain a first modification instruction for the basic structure. Thereafter, in response to a confirmation instruction for the detailed structure, a third interactive interface is displayed, wherein the third interactive interface is used to obtain a third modification instruction for the detailed structure. Optionally, in another embodiment of the present application, the first interactive interface, the second interactive interface, and the third interactive interface are the same interactive interface, thereby supporting the creation and modification of the basic structure, the intermediate structure, and the detailed structure in the same interactive interface.

[0115] As can be seen from the above content, the target model generated in this specification includes a fused basic structure and an intermediate structure, so that the user can perform modification operations on different structures separately. In order to further facilitate the model designer to modify the target model, the modeling device in this specification responds to the user's adjustment operation on the basic structure and configures control keys for the basic structure. Among them, the control keys include a first control key and a second control key, the first control key is used to adjust the basic structure along its axial direction, and the second control key is used to adjust the basic structure along its radial direction, wherein the first control key can be as follows Figure 2d shown.

[0116] As can be seen from the above content, the granularity of the basic structure is relatively large, and the morphology it displays is also relatively macroscopic, so it is difficult to generate the basic structure in one go. In order to make the various parts that constitute the basic structure have better coordination, in an optional embodiment of this specification, the modeling device generates a number of structural units in response to the user's creation operation and according to the creation parameters. Among them, the space enclosed by the outlines of two adjacent structural units is connected, and each structural unit constitutes the basic structure as a whole. Through this embodiment, the reuse of each structural unit can obtain a basic structure with a relatively macroscopic morphology. On the one hand, it is convenient for the operation of the model designer, and on the other hand, the obtained basic structure has better coordination. As Figure 2f As shown in Figure 2g, the dragon's torso and limbs belong to different structural units. Adjustments to the structural units to which the limbs belong will not affect the structural units to which the dragon's torso belongs.

[0117] The structural unit in this specification is a unit used to form a target model with a similarity in composition greater than a similarity threshold. In the process of generating a target model, a structural unit can be first made, and then the properties of the structural unit (for example, size, position in coordinate space, direction of axis, etc.) can be adjusted to obtain other structural units. In other words, by designing a basic structure composed of structural units, it is possible to reuse structural units and improve the generation efficiency of the model. Figures 2a to 2g In the example shown, the dragon's trunk can be a structural unit, and the dragon's limbs can be obtained by adjusting the properties of the dragon's trunk. Optionally, the control keys correspond to the structural units one by one.

[0118] Based on the same idea, this specification further provides a modeling device, such as Figure 4 As shown, the modeling device includes one or more of the following modules:

[0119] The infrastructure generation module 400 is configured to: generate an infrastructure;

[0120] The first file generating module 402 is configured to: determine, in response to a construction instruction for the base structure and according to construction parameters carried in the construction instruction, a first file for generating an intermediate structure; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure;

[0121] The intermediate structure generating module 404 is configured to: offset at least a first portion of model points in the base structure according to the first file to generate the intermediate structure;

[0122] The target model generating module 406 is configured to generate a target model that integrates the intermediate structure with the base structure.

[0123] In an optional embodiment of the present specification, the target model generation module 406 is specifically configured as follows: taking the model in which the intermediate structure is fused onto the base structure as a pending model; determining a second file for generating a detail structure in response to a detail addition instruction for the pending model; wherein the second file includes a second offset for offsetting at least a second portion of model points in the pending model; offsetting at least a second portion of model points in the pending model according to the second file to generate the detail structure; and generating a target model in which the detail structure is fused onto the pending model.

[0124] In an optional embodiment of the present specification, the device also includes a first modification module, configured to: determine a third file for generating the basic structure in response to a first modification instruction, and modify the creation parameters in the third file according to the modification instruction; regenerate the basic structure according to the modified creation parameters in the third file; and regenerate the target model according to the first file, the second file and the regenerated basic structure.

[0125] In an optional embodiment of the present specification, the device also includes a second modification module, configured to: modify the construction parameters used to generate the intermediate structure in response to a second modification instruction; regenerate the intermediate structure according to the modified construction parameters; and regenerate the target model according to the second file, the third file and the regenerated intermediate structure.

[0126] In an optional embodiment of the present specification, the device further includes a detail adding module configured to: obtain a grayscale image in response to a detail adding instruction; and determine a second file corresponding to the detail structure based on detail features shown in the grayscale image.

[0127] In an optional embodiment of the present specification, the device also includes a third modification module, configured to: re-acquire a new grayscale image in response to a third modification instruction; update the second file based on the detailed features shown in the re-acquired grayscale image; and regenerate the target model based on the updated second file and the pending model.

[0128] In an optional embodiment of the present specification, the device further includes a creation module configured to: in response to a creation instruction, generate a plurality of structural units according to the creation parameters carried in the creation instruction; wherein the space enclosed by the outlines of two adjacent structural units is connected, and the plurality of structural units as a whole constitute a basic structure.

[0129] The embodiments of this specification also provide a computer-readable storage medium, which stores a computer program that can be used to execute the above Figure 1 Provides the animation process.

[0130] The embodiments of this specification also propose Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 At the hardware level, the electronic device may include a processor, an internal bus, a network interface, memory, and non-volatile storage, and may also include other hardware required for its operations. The processor reads the corresponding computer program from the non-volatile storage into the memory and then runs it to implement any of the above animation processing processes.

[0131] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as the combination of logic device XOR software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic device.

[0132] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly performed using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the target code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0133] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0134] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0135] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0136] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0137] 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. 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.

[0138] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work 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 The function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0140] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0141] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0142] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0143] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0144] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] This specification may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.

[0146] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0147] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.

Claims

1. A modeling method, characterized in that: The method comprises: In response to a creation instruction, a plurality of structural units are generated according to creation parameters carried in the creation instruction; wherein spaces enclosed by the outlines of two adjacent structural units are connected, and the plurality of structural units as a whole constitute a basic structure; In response to a build instruction for the base structure, determining a first file for generating an intermediate structure according to build parameters carried in the build instruction; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure; offsetting at least a first portion of model points in the base structure according to the first file to generate the intermediate structure; A target model is generated by fusing the intermediate structure onto the base structure.

2. The method according to claim 1, characterized in that Generating a target model that integrates the intermediate structure with the base structure includes: Taking the model in which the intermediate structure is fused onto the basic structure as the pending model; In response to a detail adding instruction for the undetermined model, determining a second file for generating a detail structure; wherein the second file includes a second offset for offsetting at least a second portion of model points in the undetermined model; offsetting at least a second portion of model points in the predetermined model according to the second file to generate the detail structure; A target model is generated by integrating the detail structure onto the undetermined model.

3. The method according to claim 1 or 2, characterized in that The method further comprises: In response to the first modification instruction, determining a third file for generating the basic structure, and modifying creation parameters in the third file according to the modification instruction; Regenerate the basic structure according to the modified creation parameters in the third file; The target model is regenerated according to the first file, the second file and the regenerated basic structure.

4. The method according to claim 3, characterized in that The method further comprises: In response to a second modification instruction, modifying a construction parameter used to generate the intermediate structure; Regenerate the intermediate structure according to the modified construction parameters; The target model is regenerated according to the second file, the third file and the regenerated intermediate structure.

5. The method according to claim 2, characterized in that In response to a detail adding instruction for the pending model, determining a second file for generating a detail structure includes: In response to a detail adding instruction, obtaining a grayscale image; A second file corresponding to the detail structure is determined according to the detail features shown in the grayscale graph.

6. The method according to claim 5, characterized in that The method further comprises: Re-acquiring a new grayscale image in response to the third modification instruction; updating the second file according to the detail features shown in the reacquired grayscale graph; Regenerate the target model according to the updated second file and the pending model.

7. A modeling device for a model, characterized in that: The device comprises: A basic structure generation module is configured to: generate a plurality of structural units in response to a creation instruction and according to creation parameters carried in the creation instruction; wherein the spaces enclosed by the outlines of two adjacent structural units are connected, and the plurality of structural units as a whole constitute the basic structure; a first file generating module configured to: in response to a construction instruction for the base structure, determine a first file for generating an intermediate structure according to construction parameters carried in the construction instruction; wherein the first file includes a first offset for offsetting at least a first portion of model points in the base structure; an intermediate structure generating module configured to: offset at least a first portion of model points in the base structure according to the first file to generate the intermediate structure; The target model generation module is configured to generate a target model that integrates the intermediate structure with the base structure.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the modeling method according to any one of claims 1 to 6 when executing the program stored in the memory.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the modeling method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Game model optimization method and device and storage medium

    CN111599017A