Mesh body data synchronization method and device, storage medium and electronic device

By automatically synchronizing the skinning functions and parameters of meshes, the problem of low skinning parameter synchronization efficiency in 3D modeling, rendering, and animation software is solved, and efficient skinning parameter synchronization between meshes is achieved.

CN115908682BActive Publication Date: 2026-06-09NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-10-25
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In 3D modeling, rendering, and animation software, the synchronization efficiency of skinning parameters between meshes is low. Existing technologies require manual copying and manually closing confirmation pop-ups, and cannot batch copy skinning functions and parameters via scripts, resulting in low synchronization efficiency.

Method used

By automatically synchronizing the skinning functions and parameters of the mesh, the skinning functions are first placed at the target location, and then the skinning parameters are synchronized to the corresponding skinning functions, avoiding manual copying and confirmation pop-ups, thus improving synchronization efficiency.

Benefits of technology

This achieves efficient synchronization of skinning parameters between meshes, improving synchronization efficiency and avoiding the problem of low synchronization efficiency caused by different positions of skinning functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115908682B_ABST
    Figure CN115908682B_ABST
Patent Text Reader

Abstract

The present disclosure discloses a mesh body data synchronization method and device, a storage medium and an electronic device. The method comprises: determining a first mesh body configured with a skin function and a skin parameter; determining a second mesh body which is not configured with a skin function and corresponding skin parameter; synchronizing the skin function corresponding to the first mesh body to the second mesh body, so that the instruction area corresponding to the second mesh body includes the skin function; in response to the skin function not being at the target position of the instruction area, resetting the instruction area in the second mesh body, so that the skin function is at the target position in the instruction area of the second mesh body; and in response to the skin function being at the target position in the instruction area of the second mesh body, synchronizing the skin parameter corresponding to the first mesh body to the skin function corresponding to the second mesh body. The present disclosure solves the technical problem of low synchronization efficiency in the prior art when synchronizing the skin parameter of the mesh body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computers, and more specifically, to a method, apparatus, storage medium, and electronic device for synchronizing grid data. Background Technology

[0002] Currently, in 3D modeling, rendering, and animation software, users can adjust bone information and the intensity of the effect of bone movement on the mesh through skinning functions.

[0003] However, in related technologies, after adjusting the parameters in the skinning function of a mesh in 3D modeling, rendering, and animation software, continuing to edit the vertices of the mesh will cause the parameters of the skinning function to be rolled back. Furthermore, when synchronizing the skinning functions between multiple meshes, the parameters corresponding to the skinning function (e.g., the intensity information mentioned above) cannot be synchronized.

[0004] In existing technologies, the skinning function is typically copied manually, followed by the manual copying of the skinning parameters, which are then pasted into the corresponding new mesh. This method prevents users from directly copying the skinning parameters when copying the skinning function, thus reducing the synchronization efficiency between meshes. Furthermore, after copying the skinning parameters, a confirmation pop-up usually appears, requiring manual closure before copying can continue. This prevents the use of scripts to batch copy skinning functions and parameters, further reducing the synchronization efficiency between meshes.

[0005] There is currently no effective solution to the above problems. Summary of the Invention

[0006] This disclosure provides at least some embodiments of a method, apparatus, storage medium, and electronic device for synchronizing mesh data, in order to at least solve the technical problem of low synchronization efficiency in synchronizing the skin parameters of meshes in the prior art.

[0007] According to one embodiment of this disclosure, a method for synchronizing mesh data is provided, comprising: determining a first mesh configured with a skinning function and corresponding skinning parameters, wherein the skinning function and / or skinning parameters are used to set the appearance of the first mesh; determining a second mesh without configured skinning functions and corresponding skinning parameters; synchronizing the skinning function corresponding to the first mesh to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function; in response to the skinning function not being at a target position in the instruction region, resetting the instruction region in the second mesh, so that the skinning function is at a target position in the instruction region of the second mesh, wherein the target position is at the top level in the instruction region; in response to the skinning function being at the target position in the instruction region of the second mesh, synchronizing the skinning parameters corresponding to the first mesh to the skinning function corresponding to the second mesh, thereby obtaining a synchronization result.

[0008] According to one embodiment of this disclosure, a mesh data synchronization device is also provided, comprising: a first determining module, configured to determine a first mesh configured with a skinning function and skinning parameters corresponding to the skinning function, wherein the skinning function and / or skinning parameters are used to set the appearance of the first mesh; a second determining module, configured to determine a second mesh without configured skinning functions and corresponding skinning parameters; a first synchronization module, configured to synchronize the skinning function corresponding to the first mesh to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function; an instruction reset module, configured to, in response to the skinning function not being at the target position in the instruction region, perform a reset operation on the instruction region in the second mesh, so that the skinning function is at the target position in the instruction region of the second mesh, wherein the target position is at the top level in the instruction region; and a second synchronization module, configured to, in response to the skinning function being at the target position in the instruction region of the second mesh, synchronize the skinning parameters corresponding to the first mesh to the skinning function corresponding to the second mesh, thereby obtaining a synchronization result.

[0009] According to one embodiment of this disclosure, a computer-readable storage medium is also provided, which stores a computer program configured to execute the above-described method for synchronizing grid data at runtime.

[0010] According to one embodiment of this disclosure, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the above-described method for synchronizing grid data.

[0011] In at least some embodiments of this disclosure, a method of synchronizing mesh skinning parameters is adopted. After obtaining a first mesh configured with skinning functions and skinning parameters, and a second mesh without configured skinning functions and skinning parameters, the skinning functions corresponding to the first mesh are synchronized to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning functions. Then, in response to the skinning functions not being at the top of the instruction region, the instruction region in the second mesh is reset so that the skinning functions are at the top of the instruction region of the second mesh. And in response to the skinning functions being at the top of the instruction region of the second mesh, the skinning parameters corresponding to the first mesh are synchronized to the skinning functions corresponding to the second mesh, thus obtaining a synchronization result.

[0012] In the above process, during the synchronization of mesh data, manual copying is not required to achieve mesh data synchronization. Compared to manual copying, the solution provided in this disclosure improves the synchronization efficiency of mesh skinning parameters. Furthermore, after synchronizing the skinning function of the first mesh to the second mesh, the instruction region in the synchronized second mesh is reset so that the skinning function of the second mesh is located at the top of the instruction region. Thus, when synchronizing the skinning parameters of the mesh, the skinning parameters can be directly synchronized to the function at the top of the instruction region, thereby avoiding the problem of low synchronization efficiency caused by the different positions of the skinning function in the instruction region and improving the synchronization efficiency of skinning parameters.

[0013] Therefore, the solution provided in this disclosure achieves the goal of synchronizing the skin parameters of the mesh, thereby improving the synchronization efficiency of the skin parameters of the mesh and solving the technical problem of low synchronization efficiency in the prior art when synchronizing the skin parameters of the mesh. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:

[0015] Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of synchronizing grid data according to an embodiment of this disclosure;

[0016] Figure 2 This is a flowchart of a method for synchronizing grid volume data according to one embodiment of the present disclosure;

[0017] Figure 3 This is a schematic diagram of the instruction area according to one embodiment of the present disclosure;

[0018] Figure 4This is a schematic diagram of the instruction area according to one embodiment of the present disclosure;

[0019] Figure 5 This is a schematic diagram of an information confirmation page according to one embodiment of the present disclosure;

[0020] Figure 6 This is a structural block diagram of a grid data synchronization device according to one embodiment of the present disclosure;

[0021] Figure 7 This is a schematic diagram of an electronic device according to one embodiment of the present disclosure. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] In one possible implementation, regarding the manual synchronization of skinning parameters commonly used in computer-based synchronous 3D modeling, rendering, and animation software, the inventors, after practice and careful research, still found that the synchronization efficiency of skinning parameters for batch mesh synchronization remains low. Therefore, this disclosure proposes an application scenario in 3D modeling, rendering, and animation production. In this scenario, a mesh data synchronization method is proposed, employing the technical concept of automatically synchronizing mesh skinning parameters. This achieves the goal of synchronizing skinning parameters within the mesh, thereby solving the technical problem of low synchronization efficiency in existing technologies when synchronizing mesh skinning parameters, and ultimately achieving the technical effect of enabling multiple meshes to have the same skinning effect.

[0025] The methods and embodiments described above in this disclosure can be executed on mobile terminals, computer terminals, or similar computing devices. Taking a mobile terminal as an example, the mobile terminal can be a smartphone, tablet computer, PDA, mobile internet device, PAD, game console, or other terminal device. Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of synchronizing grid data according to an embodiment of this disclosure. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. Processor 102 (processor 102 may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, microprocessor (MCU), programmable logic device (FPGA), neural network processor (NPU), tensor processor (TPU), artificial intelligence (AI) type processor, etc.) and memory 104 for storing data. In one embodiment of this disclosure, it may also include: input / output device 108 and display device 110.

[0026] In some optional embodiments primarily focused on gaming scenarios, the aforementioned device may also provide a human-computer interaction interface with a touch-sensitive surface. This interface can sense finger contact and / or gestures to interact with a graphical user interface (GUI). The human-computer interaction functions may include the following: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. Executable instructions for performing the aforementioned human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.

[0027] Those skilled in the art will understand that Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0028] According to one embodiment of this disclosure, an embodiment of a method for synchronizing grid volume data is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] In one possible implementation, this disclosure provides a method for synchronizing grid volume data, which is executed by a terminal device. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Figure 2 This is a flowchart of a method for synchronizing grid volume data according to one embodiment of the present disclosure, such as... Figure 2 As shown, the method includes the following steps:

[0030] Step S202: Determine the first mesh volume configured with skinning functions and the corresponding skinning parameters.

[0031] In step S202, the mesh is used to form a virtual model. The virtual model can be composed of multiple meshes. For example, a virtual character model is composed of head meshes, limb meshes, etc. The virtual model can also be composed of only one mesh. For example, a virtual turntable model is composed of only one mesh.

[0032] Additionally, in step S202, the skinning function and / or skinning parameters are used to set the appearance of the first mesh. For example, the skinning function can set the intensity (i.e., weight) of the influence of bone movement on the mesh, so that the bone-driven model produces reasonable motion. The skinning function is set in the instruction region, which contains multiple functions, such as... Figure 3 The instruction area shown contains skinning and mirroring functions. Skinning parameters may include, but are not limited to, bone information and mesh weight information. Mesh weight information characterizes the strength of the influence of bone movement on the mesh. Users can... Figure 4 The graphical user interface shown allows you to add or remove skinning parameters.

[0033] Step S204: Determine the second mesh volume that has not been configured with skinning functions and corresponding skinning parameters.

[0034] In step S204, the first mesh and the second mesh can be meshes in the same virtual model or meshes in different virtual models.

[0035] It should be noted that different meshes may have different skinning functions, and the skinning parameters corresponding to different skinning functions may also be different. In practical applications, some meshes may need to have the same skinning effect. In this scenario, the terminal device can synchronize the skinning functions and skinning parameters of these meshes to ensure that these meshes have the same skinning effect.

[0036] In one optional embodiment, the terminal device can acquire the first mesh and the second mesh using 3D modeling, rendering, and animation software (e.g., 3ds Max). Optionally, multiple meshes contained in a preset scene can be acquired using the 3D modeling, rendering, and animation software. Then, it is detected whether the instruction region corresponding to each mesh contains a skinning function, obtaining the detection result. Based on the detection result, the multiple meshes are classified to obtain a first mesh set and a second mesh set. The first mesh is determined from the first mesh set, and the second mesh is determined from the second mesh set. The first mesh set is a set of meshes with skinning functions, and the second mesh set is a set of meshes without skinning functions.

[0037] Optionally, taking multiple meshes within the same model as an example, the user selects multiple meshes contained in the virtual model to obtain multiple candidate meshes. Then, the terminal device checks the functions contained in the instruction region of each candidate mesh to determine whether the current candidate mesh has a skinning function. For example, the terminal device determines whether the instruction region contains a skinning function by running the script `If modPanel.setCurrentObject$.modifiers[#Skin]! = undefined`, and selects meshes whose instruction regions do not contain skinning functions to form a second mesh set. The other meshes in the multiple candidate meshes form a first mesh set. Furthermore, the user can use 3D modeling, rendering, and animation software to determine the first mesh from the first mesh set and multiple second meshes from the second mesh set to determine the data to be synchronized.

[0038] It should be noted that by detecting the instruction region of each mesh and classifying multiple meshes based on the detection results, the data of meshes containing skinning functions can be directly synchronized in batches to multiple meshes that do not contain skinning functions during the subsequent mesh data synchronization process, without having to manually copy the number of meshes and synchronize the mesh data to a single mesh, thereby improving the synchronization efficiency of mesh data.

[0039] Step S206: Synchronize the skinning function corresponding to the first mesh to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function.

[0040] In step S206, during the synchronization of the skinning function, the terminal device copies the skinning function corresponding to the first mesh to the instruction region corresponding to the second mesh, thereby ensuring that the instruction region corresponding to the second mesh contains the skinning function. It should be noted that at this point, the second mesh only has the skinning function, but not the skinning parameters.

[0041] Step S208: In response to the skinning function not being at the target position in the instruction region, a reset operation is performed on the instruction region in the second mesh to make the skinning function be at the target position in the instruction region of the second mesh.

[0042] In step S208, the target location is at the top level of the instruction region, meaning the target location is the top position in the instruction region. For example, in... Figure 3 In this context, the mirror function is located at the top level (i.e., the top position) of the instruction region, while the skinning function is located at the second level of the instruction region. That is, in step S208, the terminal device resets the instruction region of the second mesh body whose skinning function is not in the target position, without needing to reset the second mesh body whose skinning function is in the target position.

[0043] It should be noted that in practical applications, the skinning functions of different meshes may be located at different levels in the command region. During the synchronization of mesh data, for skinning functions at the same level, the terminal device can directly copy the skinning parameters to that location. However, for skinning functions at different levels, the terminal device needs to adjust the execution script, thus reducing the efficiency of mesh data synchronization. In this disclosure, by detecting the position of the skinning function of each mesh in the command region, the position of the skinning function of non-top-level meshes in the command region is adjusted so that the position of the skinning functions of all second meshes is the same in the command region, thereby achieving batch synchronization of skinning parameters and improving the synchronization efficiency of mesh data.

[0044] In addition, the command region of a mesh is usually set according to the order in which the functions are received, so that the position of each function in the command region is set. For example, when the skinning function in mesh 1 is synchronized to mesh 2 and mesh 3, since function A and function B already exist in the command region of mesh 2, the skinning function is set at the third level of the command region of mesh 2; since there are no functions in the command region of mesh 3, the skinning function is set at the top level of the command region of mesh 3, that is, the skinning function is at the top position of the command region of mesh 3.

[0045] In this embodiment, resetting the instruction region in the second mesh can reorder the levels of the functions in the instruction region so that the skinning function of the second mesh is located at the top level of the instruction region. Thus, when synchronizing the skinning parameters of the skinning function, the skinning parameters of the first mesh can be directly copied to the function corresponding to the top level of the second mesh, thereby achieving synchronization of the skinning parameters.

[0046] Furthermore, it should be noted that after resetting the instruction region of the second mesh in step S208, the skinning function of the second mesh is located at the top layer of the instruction region. At this time, the terminal device can synchronize the skinning parameters of the first mesh to the reset second mesh, thereby realizing the synchronization of skinning parameters between meshes.

[0047] Step S210: In response to the skinning function being at the target position in the instruction region of the second mesh, the skinning parameters corresponding to the first mesh are synchronized to the skinning function corresponding to the second mesh to obtain the synchronization result.

[0048] In step S210, when the skinning function is detected to be located at the target position in the instruction region of the second mesh, the terminal device synchronizes the skinning parameters of the first mesh to the skinning function of the second mesh. Furthermore, since the terminal device synchronizes the skinning parameters only after determining that the skinning function is located at the target position in the instruction region of the second mesh, when there are multiple second meshes, the skinning functions of all the second meshes are located at the top layer of the instruction region. During the synchronization of the mesh skinning parameters, the skinning parameters can be copied in batches to the same position in the instruction regions of multiple meshes, avoiding the low synchronization efficiency caused by individually synchronizing skinning parameters due to different positions of the skinning functions in the instruction region, thus improving the synchronization efficiency of the skinning parameters.

[0049] Based on the scheme defined in steps S202 to S210 above, it can be understood that, in at least some embodiments of this disclosure, by synchronizing the skinning parameters of the mesh, after obtaining a first mesh configured with skinning functions and skinning parameters, and a second mesh without configured skinning functions and skinning parameters, the skinning function corresponding to the first mesh is synchronized to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function; then, in response to the skinning function not being at the top of the instruction region, the instruction region in the second mesh is reset, so that the skinning function is at the top of the instruction region of the second mesh. And in response to the skinning function being at the top of the instruction region of the second mesh, the skinning parameters corresponding to the first mesh are synchronized to the skinning function corresponding to the second mesh, thus obtaining a synchronization result.

[0050] It is noteworthy that during the synchronization of mesh data, manual copying is unnecessary, enabling synchronization of mesh data. Compared to manual copying, the solution provided in this disclosure improves the synchronization efficiency of mesh skinning parameters. Furthermore, after synchronizing the skinning function of the first mesh to the second mesh, the instruction region in the synchronized second mesh is reset to ensure that the skinning function of the second mesh is positioned at the top of the instruction region. Consequently, when synchronizing the skinning parameters of the mesh, the skinning parameters can be directly synchronized to the function at the top of the instruction region, thus avoiding the problem of low synchronization efficiency caused by the different positions of the skinning function in the instruction region and improving the synchronization efficiency of skinning parameters.

[0051] Therefore, the solution provided in this disclosure achieves the goal of synchronizing the skin parameters of the mesh, thereby improving the synchronization efficiency of the skin parameters of the mesh and solving the technical problem of low synchronization efficiency in the prior art when synchronizing the skin parameters of the mesh.

[0052] In one optional embodiment, after synchronizing the skinning function corresponding to the first mesh to the second mesh, the terminal device can determine the position information of the skinning function corresponding to the second mesh in the corresponding instruction region by the function name. Specifically, the terminal device detects the function name of the target position corresponding to the second mesh; if the function name is a skinning function name, it determines that the skinning function of the second mesh is at the target position; if the function name is not a skinning function name, it determines that the skinning function of the second mesh is not at the target position.

[0053] Optionally, the terminal device can detect the function name corresponding to the top layer in the instruction region corresponding to the second mesh, i.e., detect the function name when the level is 0. Specifically, the terminal device can detect whether the level `subobjectLevel` is 0 to determine if the current level is the top layer. The terminal device compares the function name of the top layer function in the instruction region corresponding to the second mesh with the function name of the skinning function. If the function name of the top layer function in the instruction region corresponding to the second mesh is the same as the function name of the skinning function, then the skinning function of the second mesh is determined to be at the top layer of the instruction region; otherwise, the skinning function of the second mesh is determined to be in a non-top layer of the instruction region.

[0054] Furthermore, when the skinning function of the second grid is in a non-top position of the instruction region, in order to improve the synchronization efficiency of grid data, after the second grid is determined, the terminal device performs a reset operation on the instruction region corresponding to the second grid to update the sorting of functions in the instruction region of the second grid, so that the skinning function is located in the top layer of the instruction region.

[0055] Specifically, the terminal device performs a backup operation on the skinning functions within the instruction region corresponding to the second mesh, obtaining the backed-up skinning functions. Then, it performs a restoration operation on the instruction region corresponding to the second mesh, obtaining the restored instruction region, and synchronizes the backed-up skinning functions in the restored instruction region to obtain the reset second mesh.

[0056] Optionally, the terminal device backs up the skinning functions in the instruction region of the second mesh. Then, the terminal device executes the `collapse all` command to collapse the instruction region, clearing the functions within it. Afterward, the terminal device copies the backed-up skinning functions back to the instruction region, at which point the skinning functions are located at the top level of the instruction region, thus achieving the goal of updating the hierarchical structure of the functions in the instruction region.

[0057] It should be noted that because this disclosure performs a collapse operation on the command region, which clears all functions within the command region except for vertex motion information, it is necessary to back up the functions in the command region before performing the collapse operation to avoid loss of function information. Additionally, to prevent mesh data loss due to accidental operations, users can set a recording time point before performing the collapse operation to restore the command region to its state before collapse in case of accidental operation.

[0058] In addition, it should be noted that when the command region is collapsed, only the polygon editing command "edit poly" exists within the command region. Therefore, when the skinning function is copied back to the command region, the skinning function will be automatically placed on top, thus ensuring that the skinning function remains the top command in the command stack and will not be affected by subsequent command operations.

[0059] Furthermore, after synchronizing the backed-up skinning function in the restored instruction region to obtain the reset second mesh, the terminal device synchronizes the skinning parameters corresponding to the first mesh to the skinning function corresponding to the reset second mesh, obtaining the synchronization result. That is, when the skinning function is detected to be at the target position in the instruction region of the second mesh, the terminal device then synchronizes the skinning parameters of the first mesh to the skinning function of the second mesh.

[0060] In addition, when there are multiple second meshes, the terminal device also detects whether there are meshes in the multiple second meshes whose skinning functions are not in the target position, obtains the detection results, and when the detection results indicate that the skinning functions in the multiple second meshes are all in the target position, the skinning parameters corresponding to the first mesh are synchronized to the skinning functions corresponding to the multiple reset second meshes, and the synchronization results are obtained.

[0061] When multiple second meshes exist, the terminal device checks whether the skinning functions of these second meshes are located at the target position in the instruction region. If the skinning function is not located at the target position, the instruction region is collapsed; if the skinning function is located at the target position, the process continues to traverse the next second mesh. When all the skinning functions of the second meshes are located at the target position in the instruction region, the terminal device batch synchronizes the skinning parameters of the first meshes to the skinning functions of each second mesh, thereby achieving batch synchronization of mesh data.

[0062] Furthermore, after the terminal device synchronizes the skinning parameters of the first mesh to the second mesh, a confirmation page will pop up on the terminal device's display interface. If this confirmation page is not closed, the terminal device will not be able to synchronize the skinning function of the first mesh to the next second mesh.

[0063] In this embodiment, after synchronizing the skinning parameters corresponding to the first mesh body to the skinning function corresponding to the second mesh body and obtaining the synchronization result, the terminal device calls the page closing function and closes the information confirmation page based on the page closing function. The information confirmation page is the page generated after synchronizing the skinning parameters.

[0064] Optionally, the terminal device can use the UIAccessor.PressButtonByName function (i.e. the page close function mentioned above) to automatically close the information confirmation page, thereby achieving automatic closure of the information confirmation page without manual operation, thus ensuring the batch synchronization of skinning parameters.

[0065] It should be noted that the terminal device uses the `dialogMonitorOps.getWindowHandle` function to retrieve the information confirmation page and the `uiAccessor.getWindowText` function to obtain the information. Figure 5 The Load Envelopes page (i.e., the information confirmation page) is shown. The forceCompleteRedraw() function is used to refresh the Load Envelopes page, and the UIAccessor.PressButtonByName function is used to click the associated name button and the confirmation button on the Load Envelopes page to achieve the automatic closing of the information confirmation page.

[0066] In one optional embodiment, after determining a first mesh body configured with a skinning function and skinning parameters corresponding to the skinning function, the terminal device obtains the skinning parameters corresponding to the first mesh body, stores the skinning parameters corresponding to the first mesh body in the target file, and determines the file identifier corresponding to the target file based on the mesh body name of the first mesh body.

[0067] Optionally, the terminal device stores the skinning parameters of the first mesh and obtains the name of the mesh corresponding to the first mesh. Then, it calls the skinOps.SaveEnvelope function to store the skinning parameters in any local folder and names the folder after the mesh for easy viewing later.

[0068] As described above, this disclosure provides a method for automatically copying the skinning functions and parameters of a mesh. This method can automatically copy skinning functions and parameters between multiple meshes, solving the problems of low operational efficiency and inability to synchronize bone and weight information during manual copying in related technologies. Furthermore, this method eliminates the need to manually close the information confirmation page generated each time a mesh is copied, further improving the synchronization efficiency of mesh data.

[0069] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.

[0070] This embodiment also provides a grid volume data synchronization device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0071] Figure 6 This is a structural block diagram of a grid data synchronization device according to one embodiment of the present disclosure, such as... Figure 6 As shown, the device includes: a first determining module 601, a second determining module 603, a first synchronization module 605, an instruction reset module 607, and a second synchronization module 609.

[0072] The system comprises the following modules: a first determining module 601, used to determine a first mesh body configured with a skinning function and corresponding skinning parameters, wherein the skinning function and / or skinning parameters are used to set the appearance of the first mesh body; a second determining module 603, used to determine a second mesh body without configured skinning functions and corresponding skinning parameters; a first synchronization module 605, used to synchronize the skinning function corresponding to the first mesh body to the second mesh body, so that the instruction region corresponding to the second mesh body includes the skinning function; an instruction reset module 607, used to reset the instruction region in the second mesh body in response to the skinning function not being at the target position in the instruction region, so that the skinning function is at the target position in the instruction region of the second mesh body, wherein the target position is at the top level in the instruction region; and a second synchronization module 609, used to synchronize the skinning parameters corresponding to the first mesh body to the skinning function corresponding to the second mesh body in response to the skinning function being at the target position in the instruction region of the second mesh body, thereby obtaining a synchronization result.

[0073] Optionally, the mesh data synchronization device further includes: a first detection module, a third determination module, and a fourth determination module. The first detection module is used to detect the function name of the target position in the second mesh after synchronizing the skinning function corresponding to the first mesh to the second mesh. The third determination module is used to determine that the skinning function of the second mesh is at the target position when the function name is a skinning function name. The fourth determination module is used to determine that the skinning function of the second mesh is not at the target position when the function name is not a skinning function name.

[0074] Optionally, the instruction reset module includes: a function backup module, an instruction restoration module, and a third synchronization module. The function backup module backs up the skinning functions within the instruction region corresponding to the second mesh, obtaining the backed-up skinning functions. The instruction restoration module restores the instruction region corresponding to the second mesh, obtaining the restored instruction region. The third synchronization module synchronizes the backed-up skinning functions into the restored instruction region, resulting in the reset second mesh.

[0075] Optionally, the mesh data synchronization device further includes: a fourth synchronization module, used to synchronize the skinning parameters corresponding to the first mesh to the skinning function corresponding to the reset second mesh after synchronizing the backed-up skinning function in the restored instruction area to obtain the reset second mesh, thereby obtaining the synchronization result.

[0076] Optionally, the mesh data synchronization device further includes a second detection module and a fifth synchronization module. The second detection module, after synchronizing the backed-up skinning functions in the restored instruction region to obtain the reset second mesh, detects whether any meshes with skinning functions not in the target position exist when multiple second meshes exist, and obtains a detection result. The fifth synchronization module, when the detection result indicates that the skinning functions in multiple second meshes are all in the target position, synchronizes the skinning parameters corresponding to the first mesh to the skinning functions corresponding to the reset multiple second meshes, and obtains a synchronization result.

[0077] Optionally, the mesh data synchronization device also includes a function call module and a page processing module. The function call module is used to call the page close function after obtaining the synchronization result; the page processing module is used to close the information confirmation page based on the page close function, wherein the information confirmation page is the page generated after synchronizing the skinning parameters.

[0078] Optionally, the mesh data synchronization device further includes a parameter acquisition module and a parameter storage module. The parameter acquisition module is used to acquire the skinning parameters corresponding to the first mesh after determining that a first mesh has a skinning function and the corresponding skinning parameters. The parameter storage module is used to store the skinning parameters corresponding to the first mesh to a target file and determine the file identifier corresponding to the target file based on the mesh name of the first mesh.

[0079] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0080] Embodiments of this disclosure also provide a computer-readable storage medium storing a computer program configured to perform the steps in any of the above method embodiments when executed.

[0081] Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0082] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0083] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0084] In exemplary embodiments of this disclosure, a computer-readable storage medium stores a program product capable of implementing the methods described above in this embodiment. In some possible implementations, various aspects of the embodiments of this disclosure may also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps according to various exemplary embodiments of this disclosure described in the "Exemplary Methods" section above.

[0085] The program product for implementing the above-described method according to embodiments of the present disclosure may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the embodiments of the present disclosure is not limited thereto. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0086] The aforementioned program product may take the form of any combination of one or more computer-readable media. Such computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (not exhaustive) of computer-readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0087] It should be noted that the program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0088] Embodiments of this disclosure also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0089] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0090] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Figure 7 As shown, the electronic device 700 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0091] like Figure 7 As shown, the electronic device 700 is presented in the form of a general-purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processor 710, at least one memory 720, a bus 730 connecting different system components (including memory 720 and processor 710), and a display 740.

[0092] The memory 720 stores program code that can be executed by the processor 710, causing the processor 710 to perform the steps described in the method section of the embodiments of this disclosure according to various exemplary implementations of this disclosure.

[0093] The memory 720 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 7201 and / or cache memory 7202, and may further include read-only memory (ROM) 7203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0094] In some instances, memory 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 720 may further include memory remotely located relative to processor 710, which can be connected to electronic device 700 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0095] Bus 730 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, peripheral bus, graphics acceleration port, processor 710, or a local bus using any of the various bus structures.

[0096] The display 740 may be, for example, a touchscreen liquid crystal display (LCD) that allows a user to interact with the user interface of the electronic device 700.

[0097] Optionally, the electronic device 700 can also communicate with one or more external devices 800 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and / or any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via the input / output (I / O) interface 750. Furthermore, the electronic device 700 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via a network adapter 760. Figure 7 As shown, network adapter 760 communicates with other modules of electronic device 700 via bus 730. It should be understood that, although... Figure 7 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0098] The aforementioned electronic device 700 may also include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply, and / or a camera.

[0099] Those skilled in the art will understand that Figure 7 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 700 may also include components that are more... Figure 7 The more or fewer components shown, or having the same Figure 7 Different configurations are shown. The memory 720 can be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the mesh data synchronization method in this embodiment. The processor 710 executes various functional applications and data processing by running the computer program stored in the memory 720, thereby implementing the aforementioned mesh data synchronization method.

[0100] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0101] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0102] In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0103] 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0104] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0105] 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, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0106] The above description is only a preferred embodiment of this disclosure. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure.

Claims

1. A method for synchronizing grid volume data, characterized in that, include: A first mesh body is determined, which is configured with a skinning function and skinning parameters corresponding to the skinning function, wherein the skinning function and / or the skinning parameters are used to set the appearance of the first mesh body; Identify the second mesh volume that has not been configured with the skinning function and the corresponding skinning parameters; Synchronize the skinning function corresponding to the first mesh to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function; In response to the skinning function not being at the target position in the instruction region, a reset operation is performed on the instruction region in the second mesh to make the skinning function be at the target position in the instruction region of the second mesh, wherein the target position is at the top level in the instruction region; In response to the skinning function being at the target position in the instruction region of the second mesh, the skinning parameters corresponding to the first mesh are synchronized to the skinning function corresponding to the second mesh to obtain a synchronization result; The step of synchronizing the skinning function corresponding to the first mesh to the second mesh includes: copying the skinning function corresponding to the first mesh to the instruction region of the second mesh, so that the skinning function corresponding to the first mesh is the same as the skinning function corresponding to the second mesh.

2. The method according to claim 1, characterized in that, After synchronizing the skinning function corresponding to the first mesh to the second mesh, the method further includes: The function name for detecting the target position corresponding to the second mesh volume; When the function name is the same as the skinning function, the skinning function of the second mesh is determined to be at the target position; If the function name is not the same as the skinning function name, it is determined that the skinning function of the second mesh is not at the target location.

3. The method according to claim 2, characterized in that, In response to the skinning function not being at the target position of the instruction region, a reset operation is performed on the instruction region in the second mesh volume, including: The skinning functions within the instruction region corresponding to the second mesh are backed up to obtain the backed-up skinning functions. Perform a restoration operation on the instruction region corresponding to the second grid to obtain the restored instruction region; The backed-up skinning function is synchronized in the restored instruction region to obtain the reset second mesh.

4. The method according to claim 3, characterized in that, After synchronizing the backed-up skinning function to the restored instruction region to obtain the reset second mesh, the method further includes: The skinning parameters corresponding to the first mesh are synchronized to the skinning function corresponding to the reset second mesh to obtain the synchronization result.

5. The method according to claim 3, characterized in that, After synchronizing the backed-up skinning function to the restored instruction region to obtain the reset second mesh, the method further includes: When multiple second meshes exist, detect whether there is a mesh among the multiple second meshes where the skinning function is not at the target position, and obtain the detection result; When the detection results indicate that the skinning functions in the multiple second meshes are all at the target position, the skinning parameters corresponding to the first mesh are synchronized to the skinning functions corresponding to the multiple second meshes after the reset, and the synchronization result is obtained.

6. The method according to any one of claims 1, 4, or 5, characterized in that, After obtaining the synchronization result, the method further includes: Call the page close function; The information confirmation page is closed based on the page close function, wherein the information confirmation page is a page generated after synchronizing the skinning parameters.

7. The method according to claim 1, characterized in that, After determining the first mesh volume configured with the skinning function and the corresponding skinning parameters of the skinning function, the method further includes: Obtain the skinning parameters corresponding to the first mesh; Store the skinning parameters corresponding to the first mesh in the target file, and determine the file identifier corresponding to the target file based on the mesh name of the first mesh.

8. A device for synchronizing grid data, characterized in that, include: The first determining module is used to determine a first mesh body configured with a skinning function and skinning parameters corresponding to the skinning function, wherein the skinning function and / or the skinning parameters are used to set the appearance of the first mesh body; The second determining module is used to determine the second mesh volume that has not been configured with the skinning function and the corresponding skinning parameters; The first synchronization module is used to synchronize the skinning function corresponding to the first mesh to the second mesh, so that the instruction region corresponding to the second mesh includes the skinning function; The instruction reset module is used to reset the instruction region in the second mesh in response to the skinning function not being at the target position of the instruction region, so that the skinning function is at the target position of the instruction region of the second mesh, wherein the target position is at the top level of the instruction region; The second synchronization module is used to synchronize the skinning parameters corresponding to the first mesh to the skinning function corresponding to the second mesh in response to the target position of the skinning function in the instruction region of the second mesh, so as to obtain the synchronization result; The first synchronization module is further configured to: copy the skinning function corresponding to the first mesh to the instruction region of the second mesh, so that the skinning function corresponding to the first mesh is the same as the skinning function corresponding to the second mesh.

9. A computer-readable storage medium, characterized in that, A computer-readable storage medium stores a computer program, wherein the computer program is configured to execute, when run by a processor, the method for synchronizing grid volume data as described in any one of claims 1 to 7.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method for synchronizing grid volume data as described in any one of claims 1 to 7.