A model manufacturing control method, device and equipment
Patent Information
- Application Number
- CN202211721979.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In existing technologies, the efficiency of adjusting the appearance of virtual models is low, and users cannot intuitively obtain the adjustment effect.
By acquiring the directed distance field information of the initial model, detecting the incremental directed distance field information after the model adjustment command, and combining the initial information to calculate the target directed distance field information, the model is directly controlled to adjust to the target model, thus achieving incremental update.
It improves the efficiency of virtual model appearance adjustment, reduces the amount of computation, and has more stable performance. Users can intuitively see the adjustment effect.
Smart Images

Figure CN116206089B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and in particular relates to a control method, device and equipment for model making. Background Technology
[0002] Virtual models generally refer to computer-generated digital models, created using content creation tools, and used by third-party software. Currently, there are two main types of common virtual models: one is a virtual model with skeletal and skinning information, such as humanoid or animal models; the other is a virtual model in the form of a static mesh.
[0003] During the creation of virtual models, users can adjust their appearance. Normal mapping and bump mapping are commonly used to adjust the appearance of virtual models. However, these methods don't actually adjust the surface of the virtual model by creating bumps or depressions, and the adjusted model needs to be remodeled. This method is inefficient, and users cannot directly see the effects of the adjustments. Summary of the Invention
[0004] This application provides a control method, apparatus, and device for model making, which can solve the above-mentioned technical problems.
[0005] In a first aspect, embodiments of this application provide a control method for model fabrication, including:
[0006] Obtain the initial model and its corresponding initial directed range field information;
[0007] When a model adjustment command is detected, incremental directional distance field information is obtained according to the model adjustment command;
[0008] The target directed range field information is obtained based on the incremental directed range field information and the initial directed range field information;
[0009] Based on the target directional range field information, the initial model is adjusted to the target model; the target model is the model corresponding to the target directional range field information.
[0010] Furthermore, the model adjustment commands include model surface arching commands and model surface collapse commands.
[0011] Furthermore, before obtaining the incremental directed range field information according to the model adjustment instruction when the model adjustment instruction is detected, the method further includes:
[0012] Obtain the adjustment range corresponding to the initial model;
[0013] When an adjustment operation is detected, a model adjustment instruction is generated based on the adjustment range and the adjustment operation.
[0014] Further, the step of generating model adjustment instructions based on the adjustment range and the adjustment operation includes:
[0015] An initial adjustment instruction is generated based on the adjustment operation; wherein the initial adjustment instruction includes an initial adjustment value and an adjustment direction;
[0016] When the initial adjustment value is not within the adjustment range, a model adjustment instruction is generated based on the adjustment direction and the adjustment range.
[0017] Further, the step of obtaining incremental directional range field information based on the model adjustment instruction when a model adjustment instruction is detected includes:
[0018] When a model adjustment instruction is detected, interpolation increment information is obtained according to the model adjustment instruction, and incremental directional distance field information is obtained according to the difference increment information.
[0019] Furthermore, after adjusting the initial model to the target model based on the target oriented range field information, the process further includes:
[0020] The adjustment evolution model is obtained based on the initial directional distance field information and the interpolation increment information;
[0021] Based on the aforementioned adjustment and evolution model, this demonstrates the process of adjusting the initial model to the target model corresponding to the target directional range field information.
[0022] Secondly, embodiments of this application provide a control device for model making, including:
[0023] The first acquisition unit is used to acquire the initial model and its corresponding initial oriented distance field information;
[0024] The second acquisition unit is used to acquire incremental directional distance field information according to the model adjustment instruction when a model adjustment instruction is detected.
[0025] The first processing unit is used to obtain the target directional range field information based on the incremental directional range field information and the initial directional range field information;
[0026] The second processing unit is used to control the initial model to adjust to the target model based on the target directional range field information; the target model is the model corresponding to the target directional range field information.
[0027] Furthermore, the model adjustment commands include model surface arching commands and model surface collapse commands.
[0028] Furthermore, the control device for model making also includes:
[0029] The third acquisition unit is used to acquire the adjustment range corresponding to the initial model;
[0030] The third processing unit is used to generate a model adjustment instruction based on the adjustment range and the adjustment operation when an adjustment operation is detected.
[0031] Furthermore, the third processing unit is specifically used for:
[0032] An initial adjustment instruction is generated based on the adjustment operation; wherein the initial adjustment instruction includes an initial adjustment value and an adjustment direction;
[0033] When the initial adjustment value is not within the adjustment range, a model adjustment instruction is generated based on the adjustment direction and the adjustment range.
[0034] Furthermore, the second acquisition unit is specifically used for:
[0035] When a model adjustment instruction is detected, interpolation increment information is obtained according to the model adjustment instruction, and incremental directional distance field information is obtained according to the difference increment information.
[0036] Furthermore, the control device for model making also includes:
[0037] The fourth acquisition unit is used to acquire the adjustment evolution model based on the initial directional distance field information and the interpolation increment information;
[0038] The fourth processing unit is used to demonstrate the process of adjusting the initial model to the target model corresponding to the target directional distance field information based on the adjustment evolution model.
[0039] Thirdly, embodiments of this application provide a control device for model making, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method described in the first aspect above.
[0040] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect above.
[0041] In this embodiment, an initial model and its corresponding initial directed distance field information are obtained. When a model adjustment command is detected, incremental directed distance field information is obtained according to the command. Target directed distance field information is obtained based on the incremental and initial directed distance field information. The initial model is adjusted to the target model based on the target directed distance field information. The target model is the model corresponding to the target directed distance field information. This method, when adjusting the appearance of a virtual model, directly adjusts the initial model by obtaining incremental directed distance field information. Because it is an incremental update, the efficiency of the adjustment is greatly improved. Compared with a full update, the computational load is significantly reduced, and the performance is more stable. Furthermore, controlling the initial model to adjust to the target model corresponding to the target directed distance field information directly adjusts the surface of the virtual model by arching or collapsing it, allowing users to more intuitively obtain the adjustment effect. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a schematic flowchart of a model making control method provided in the first embodiment of this application;
[0044] Figure 2 This is a schematic diagram of the visual information of the 2D oriented distance field in a model making control method provided in the first embodiment of this application;
[0045] Figure 3 This is a schematic diagram of the user interface for adjusting the initial model in a model creation control method provided in the first embodiment of this application;
[0046] Figure 4 This is a schematic flowchart of steps S105 to S106 in a model making control method provided in the first embodiment of this application;
[0047] Figure 5 This is a schematic flowchart of S106 in a model making control method provided in the first embodiment of this application;
[0048] Figure 6 This is a schematic flowchart of steps S107 to S108 in a model making control method provided in the first embodiment of this application;
[0049] Figure 7 This is a schematic diagram of the control device for model fabrication provided in the second embodiment of this application;
[0050] Figure 8 This is a schematic diagram of the control device for model fabrication provided in the third embodiment of this application. Detailed Implementation
[0051] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0052] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0053] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0054] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0055] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0056] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0057] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating a model-making control method provided in the first embodiment of this application. In this embodiment, the executing entity of the model-making control method is a device capable of controlling model making. This model-making control device can be a personal computer, a server, a processor, a microprocessor, etc. The following explanation uses the model-making control device (hereinafter referred to as the device) as the executing entity of the model-making control method in this embodiment, without specifically limiting the device. Figure 1 The control methods for creating the model shown may include:
[0058] S101: Obtain the initial model and its corresponding initial oriented distance field information.
[0059] Before explaining the control method for model creation in this embodiment, let's first introduce the relevant content of the directed distance field for easier understanding.
[0060] The Directed Distance Field (SDF) is a sampled grid that determines whether a point is within a region, representing the shortest distance from a point in space to the surface of a virtual model. "Signed" indicates the sign, "Distance" indicates the distance between points, and "Field" indicates the region. In other words, the SDF result indicates whether a point is inside or outside a region. By convention, negative values are used to represent the interior of an object, and positive values to represent the exterior; 0 represents the surface.
[0061] like Figure 2 As shown, Figure 2 It is a visual information of a 2D directed distance field. Figure 2 The squares in the diagram represent multiple grid cells that discretize a space. Figure 2The numbers in the diagram represent the elements of the directed distance field information, each element being a floating-point number. A mesh structure composed of multiple grids is used. Starting from any corner point, the entire space is traversed to find the perpendicular line relative to the surface tangent. Then, the distance formula from the point to the plane can be used to calculate a numerical solution. If the perpendicular line is inside the surface, a negative distance is taken; if the perpendicular line is inside the surface, a positive distance is taken; and if it is on the surface, a value of 0 is taken.
[0062] A 3D directed distance field is a network structure composed of multiple voxels, i.e. small cubes, that discretize a space.
[0063] The device acquires the initial model and its corresponding initial oriented distance field information.
[0064] The initial model is a model that has been preliminarily created. It generally refers to a computer digital model, which is created by content creation tools such as Max3D and Maya, and is a model file for use by third-party software, such as files with extensions like *.fbx and *.obj.
[0065] In this embodiment, only the appearance surface of the initial model is adjusted, and there are no restrictions on the degree of completion of the initial model, nor on the modeling method of the initial model.
[0066] After acquiring the initial model, the device generates the corresponding initial directed distance field information based on the initial model. This initial directed distance field information is essentially a three-dimensional array, where each element is a floating-point number.
[0067] S102: When a model adjustment command is detected, incremental directional distance field information is obtained according to the model adjustment command.
[0068] The equipment monitors for model adjustment commands. These commands can be triggered by user adjustments. Specifically, model adjustment commands include commands to raise the model surface and commands to lower the model surface.
[0069] For example, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the interface for users to adjust the initial model. Figure 3The model is a humanoid virtual model. During interaction, the user's adjustment operations are related to the extrusion direction, such as repeatedly clicking the initial model surface with the left mouse button. Based on the user's extrusion direction operations, model adjustment instructions are generated, including the adjustment direction and the extrusion adjustment value. During interaction, the user's adjustment operations are related to the arching direction, such as repeatedly clicking the initial model surface with the right mouse button. Based on the user's arching direction operations, model adjustment instructions are generated, including the adjustment direction and the arching adjustment value.
[0070] The model adjustment command includes the adjustment direction and the adjustment value. The device obtains incremental directional distance field information based on the model adjustment command. The incremental directional distance field information includes the adjustment direction and the adjustment value.
[0071] In this embodiment, the incremental directional distance field information can be stored separately for easy retrieval.
[0072] In an optional implementation, to achieve better adjustment results, an adjustment range corresponding to the initial model can be set to prevent over-adjustment. Before S104, steps S105 to S106 may be included; please refer to [link to relevant documentation]. Figure 4 , Figure 4 This is a schematic flowchart of steps S105 to S106 in a model making control method provided in the first embodiment of this application. Steps S105 to S106 are as follows:
[0073] S105: Obtain the adjustment range corresponding to the initial model.
[0074] S106: When an adjustment operation is detected, a model adjustment instruction is generated based on the adjustment range and the adjustment operation.
[0075] The device acquires the adjustment range corresponding to the initial model. The device pre-stores the adjustment range corresponding to the initial model. This adjustment range represents the allowable range of adjustment and variation for the initial model. The adjustment range corresponding to the initial model is set during model creation based on the allowable collapse or arching distance of the initial model's appearance.
[0076] When the device detects an adjustment operation, it generates a model adjustment command based on the adjustment range and the adjustment operation.
[0077] In an optional implementation, when the device detects an adjustment operation, it obtains the adjustment direction and initial adjustment value based on the adjustment operation. When the initial adjustment value is within the adjustment range, the device directly generates a model adjustment command based on the initial adjustment value and adjustment direction.
[0078] In one optional implementation, please refer to Figure 5 , Figure 5This is a schematic flowchart of step S106 in a model-making control method provided in the first embodiment of this application. Step S106 includes:
[0079] S1061: Generate an initial adjustment instruction based on the adjustment operation; wherein the initial adjustment instruction includes an initial adjustment value and an adjustment direction.
[0080] S1062: When the initial adjustment value is not within the adjustment range, generate a model adjustment instruction based on the adjustment direction and the adjustment range.
[0081] The device can also generate initial adjustment instructions based on the adjustment operation; the initial adjustment instructions include the initial adjustment value and the adjustment direction. When the initial adjustment value is not within the adjustment range, the model adjustment instructions are generated based on the adjustment direction and the adjustment range.
[0082] For example, if the initial model adjustment range is set to [-2.2, 4.0], and the device obtains an initial adjustment value of 6 with a positive adjustment direction, and the initial adjustment value is outside the adjustment range, a model adjustment command is generated based on the adjustment direction and range. Therefore, the final model adjustment command generated by the device will have an adjustment value of 4 with a positive adjustment direction.
[0083] In one optional implementation, to obtain the initial model adjustment process, we can acquire interpolation increment information and adjust the initial model by superimposing the interpolation increment information multiple times. When the device detects a model adjustment command, it acquires the interpolation increment information according to the model adjustment command and obtains the incremental directed distance field information based on the difference increment information.
[0084] When the device detects a model adjustment command, it obtains interpolation increment information based on the command. The model adjustment command includes the adjustment direction and the adjustment value. The device calculates the interpolation increment information based on the interpolation change and the adjustment data. The interpolation value used for each interpolation is increased by the interval between each frame.
[0085] For example, the initial value at time T1 is a1, and the target value at time T4 is a4. The difference between a4 and a1 is the adjustment value. The intermediate interpolation times are T2 and T3, and the interpolation increments are a2 and a3, respectively, where a is linearly related to T.
[0086] S103: Obtain the target directional range field information based on the incremental directional range field information and the initial directional range field information.
[0087] The device calculates the target's directed range field information based on the incremental directed range field information and the initial directed range field information. That is, the device incrementally calculates the target's directed range field information based on the surface normal direction using the incremental directed range field information and the initial directed range field information.
[0088] Among them, the target directional range field information is the directional range field information after adjustment in response to the adjustment command.
[0089] S104: Based on the target directional range field information, control the initial model to adjust to the target model; the target model is the model corresponding to the target directional range field information.
[0090] The device controls the initial model to adjust to the target model based on the target directional range field information, where the target model is the model corresponding to the target directional range field information.
[0091] When the device controls the initial model to adjust to the target model, it actually detects the directional distance field information based on the surface normal direction, performs offset, and completes the adjustment.
[0092] In an optional implementation, when the device detects a model adjustment command, it obtains interpolation increment information according to the model adjustment command and obtains incremental directional distance field information based on the difference increment information. Following S104, steps S107 to S108 may be included; please refer to [link to relevant documentation]. Figure 6 , Figure 6 This is a schematic flowchart of steps S107 to S108 in a model-making control method provided in the first embodiment of this application. Steps S107 to S108 are as follows:
[0093] S107: Obtain the adjusted evolution model based on the initial directional distance field information and the interpolation increment information.
[0094] S108: Based on the adjustment evolution model, demonstrate the process of adjusting the initial model to the target model corresponding to the target directional range field information.
[0095] The device acquires an adjusted evolution model based on the initial directed range field information and interpolation increment information. The adjusted evolution model is the model that evolves from the initial model to the target model. The number of interpolation increments can be one or more, and each interpolation increment corresponds to an adjusted evolution model.
[0096] For example, the initial value at time T1 is a1, and the target value at time T4 is a4. The difference between a4 and a1 is the adjustment value. The interpolation times are T2 and T3, with interpolation increments of a2 and a3 respectively, where a and T are linearly related. a2 corresponds to the first adjustment evolution model, and a3 corresponds to the second adjustment evolution model. Therefore, the process of adjusting the initial model to the target model corresponding to the directed range field information is from the initial model → first adjustment evolution model → second adjustment evolution model → target model. The device displays this change process. By completing the evolution of the virtual model sculpting animation, the real-time sculpting changes of the virtual model can be observed.
[0097] In this embodiment, an initial model and its corresponding initial directed distance field information are obtained. When a model adjustment command is detected, incremental directed distance field information is obtained according to the command. Target directed distance field information is obtained based on the incremental and initial directed distance field information. The initial model is then adjusted to the target model corresponding to the target directed distance field information based on the target directed distance field information. The target model is the model corresponding to the target directed distance field information. This method, when adjusting the appearance of a virtual model, directly adjusts the initial model by obtaining incremental directed distance field information. Because it is an incremental update, the efficiency of the adjustment is greatly improved. Compared to a full update, the computational load is significantly reduced, and the performance is more stable. Furthermore, controlling the initial model to adjust to the target model corresponding to the target directed distance field information directly adjusts the surface of the virtual model by making it arch or collapse, allowing users to more intuitively perceive the adjustment effect.
[0098] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0099] Please see Figure 7 , Figure 7 This is a schematic diagram of the control device for model fabrication provided in the second embodiment of this application. The included units are used for execution... Figure 1 , 4 The steps in the embodiments corresponding to ~6. Please refer to the following for details. Figure 1 , 4 The relevant descriptions in the embodiments corresponding to ~6 are shown. For ease of explanation, only the parts relevant to this embodiment are shown. See also Figure 7 The control device 7 for model making includes:
[0100] The first acquisition unit 71 is used to acquire the initial model and its corresponding initial oriented distance field information;
[0101] The second acquisition unit 72 is used to acquire incremental directional distance field information according to the model adjustment instruction when a model adjustment instruction is detected.
[0102] The first processing unit 73 is used to obtain target directional range field information based on the incremental directional range field information and the initial directional range field information;
[0103] The second processing unit 74 is used to control the initial model to adjust to the target model based on the target directional range field information; the target model is the model corresponding to the target directional range field information.
[0104] Furthermore, the model adjustment commands include model surface arching commands and model surface collapse commands.
[0105] Furthermore, the model-making control device 7 also includes:
[0106] The third acquisition unit is used to acquire the adjustment range corresponding to the initial model;
[0107] The third processing unit is used to generate a model adjustment instruction based on the adjustment range and the adjustment operation when an adjustment operation is detected.
[0108] Furthermore, the third processing unit is specifically used for:
[0109] An initial adjustment instruction is generated based on the adjustment operation; wherein the initial adjustment instruction includes an initial adjustment value and an adjustment direction;
[0110] When the initial adjustment value is not within the adjustment range, a model adjustment instruction is generated based on the adjustment direction and the adjustment range.
[0111] Furthermore, the second acquisition unit 72 is specifically used for:
[0112] When a model adjustment instruction is detected, interpolation increment information is obtained according to the model adjustment instruction, and incremental directional distance field information is obtained according to the difference increment information.
[0113] Furthermore, the model-making control device 7 also includes:
[0114] The fourth acquisition unit is used to acquire the adjustment evolution model based on the initial directional distance field information and the interpolation increment information;
[0115] The fourth processing unit is used to demonstrate the process of adjusting the initial model to the target model corresponding to the target directional distance field information based on the adjustment evolution model.
[0116] Please see Figure 8 , Figure 8This is a schematic diagram of the control device fabricated using the model provided in the third embodiment of this application. Figure 8 As shown, the model-making control device 8 in this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a model-making control program. When the processor 80 executes the computer program 82, it implements the steps in the various model-making control method embodiments described above, for example... Figure 1 Steps S101 to S104 are shown. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of the first acquisition unit 71 to the second processing unit 74 shown are illustrated.
[0117] For example, the computer program 82 can be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 82 in the model-making control device 8. For example, the computer program 82 can be divided into a first acquisition unit, a second acquisition unit, a first processing unit, and a second processing unit, with the specific functions of each unit as follows:
[0118] The first acquisition unit is used to acquire the initial model and its corresponding initial oriented distance field information;
[0119] The second acquisition unit is used to acquire incremental directional distance field information according to the model adjustment instruction when a model adjustment instruction is detected.
[0120] The first processing unit is used to obtain the target directional range field information based on the incremental directional range field information and the initial directional range field information;
[0121] The second processing unit is used to control the initial model to adjust to the target model based on the target directional range field information; the target model is the model corresponding to the target directional range field information.
[0122] The control device 8 for model fabrication may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of the control device 8 for model making and does not constitute a limitation on the control device 8 for model making. It may include more or fewer components than shown, or combine certain components, or different components. For example, the control device 8 for model making may also include input / output devices, network access devices, buses, etc.
[0123] The processor 80 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0124] The memory 81 can be an internal storage unit of the model-making control device 8, such as a hard disk or memory of the model-making control device 8. The memory 81 can also be an external storage device of the model-making control device 8, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the model-making control device 8. Furthermore, the model-making control device 8 can include both its internal storage unit and external storage devices. The memory 81 is used to store the computer program and other programs and data required by the model-making control device 8. The memory 81 can also be used to temporarily store data that has been output or will be output.
[0125] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0126] This application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above method embodiments.
[0127] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0128] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.
[0129] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0130] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0131] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0132] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0134] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method for model making, characterized in that, include: Obtain the initial model and its corresponding initial directed distance field information; wherein, the directed distance field is a sampling grid used to describe the nearest distance from a point in space to the surface of the virtual model; Obtain the adjustment range corresponding to the initial model; When an adjustment operation is detected, an initial adjustment instruction is generated based on the adjustment operation; wherein, the initial adjustment instruction includes an initial adjustment value and an adjustment direction; When the initial adjustment value is not within the adjustment range, a model adjustment instruction is generated based on the adjustment direction and the adjustment range. When a model adjustment command is detected, interpolation increment information is obtained according to the model adjustment command, and incremental directional distance field information is obtained according to the interpolation increment information; wherein, the incremental directional distance field information includes the adjustment direction and the adjustment value, and the incremental directional distance field information is stored separately; The initial directed range field information is incrementally calculated based on the surface normal direction according to the incremental directed range field information to obtain the target directed range field information; Based on the target directional range field information, the initial model is adjusted to the target model; the target model is the model corresponding to the target directional range field information. The adjustment evolution model is obtained based on the initial directional distance field information and the interpolation increment information; Based on the aforementioned adjustment and evolution model, this demonstrates the process of adjusting the initial model to the target model corresponding to the target directional range field information.
2. The control method for model making as described in claim 1, characterized in that, The model adjustment commands include the model surface arching command and the model surface collapse command.
3. A control device for model making, characterized in that, include: The first acquisition unit is used to acquire the initial model and its corresponding initial directed distance field information; wherein, the directed distance field is a sampling grid used to describe the nearest distance from a point in space to the surface of the virtual model; The third acquisition unit is used to acquire the adjustment range corresponding to the initial model; The third processing unit is configured to generate an initial adjustment instruction based on the adjustment operation when an adjustment operation is detected, wherein the initial adjustment instruction includes an initial adjustment value and an adjustment direction; and to generate a model adjustment instruction based on the adjustment direction and the adjustment range when the initial adjustment value is not within the adjustment range. The second acquisition unit is used to acquire interpolation increment information according to the model adjustment instruction when a model adjustment instruction is detected, and to obtain incremental directional distance field information according to the interpolation increment information; wherein, the incremental directional distance field information includes the adjustment direction and the adjustment value, and the incremental directional distance field information is stored separately. The first processing unit is used to perform incremental calculations on the initial directed range field information based on the surface normal direction according to the incremental directed range field information to obtain the target directed range field information; The second processing unit is used to control the initial model to adjust to the target model based on the target directional range field information; the target model is the model corresponding to the target directional range field information. The fourth acquisition unit is used to acquire the adjustment evolution model based on the initial directional distance field information and the interpolation increment information; The fourth processing unit is used to demonstrate the process of adjusting the initial model to the target model corresponding to the target directional distance field information based on the adjustment evolution model.
4. The control device for model making as described in claim 3, characterized in that, The model adjustment commands include the model surface arching command and the model surface collapse command.
5. A control device for model making, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Virtual character face model processing method and device
CN111768488A
Virtual model generation method and device, electronic equipment and storage medium
CN114549783A
Correcting segmented surfaces to align with a rendering of volumetric data
US20200273244A1
