Virtual model cloning method and apparatus
By integrating a plug-in program into the target virtual model drawing software, the initial bone data is imported and consistent bone data is generated, which solves the problem of bone data interoperability between different software and improves operational efficiency and data consistency.
Patent Information
- Application Number
- CN202210900055.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-07-28
AI Technical Summary
Skeletal data cannot be shared properly between different virtual model drawing software, resulting in low efficiency and high cost of manual tracing, and the traced skeleton is inconsistent with the original data.
By integrating a plug-in program into the target virtual model drawing software, initial bone data is imported, attribute information is extracted, and consistent bone data is generated using a user-specified cloning scheme to construct a bone framework.
It enables convenient operation, reduces labor costs, ensures that cloned bone data is consistent with the initial data attributes, and improves operational efficiency and data consistency.
Smart Images

Figure CN115439640B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of model rendering, and in particular to a virtual model cloning method and device. BACKGROUND
[0002] In related technologies, a virtual model can be created by different virtual model rendering software or skinned. In actual application scenarios, a user can need to clone the bones created in other virtual model rendering software to a target virtual model rendering software for use, wherein the other virtual model rendering software and the target virtual model rendering software are two different software. Since the running logic and the data structure that can be processed of different software are different, the bone data that can be normally used in the other virtual model rendering software cannot be normally used in the target virtual model rendering software. For example, the bone data created in UE4 (Unreal Engine 4) cannot be normally used in 3dsMax (a 3D modeling, rendering and production software based on a computer system developed by Discreet Company).
[0003] To solve the above problem, an art designer can open an effect picture of the created bones in the other virtual model rendering software, and then manually copy the effect picture, that is, draw all the bones in the target virtual model rendering software by visual observation. Figure One The manual cloning of the bones of the virtual model not only reduces the operation efficiency and increases the labor cost, but also causes the copied bones to be inconsistent with the bones created in the other virtual model rendering software since the art designer only copies the bones by visual observation. SUMMARY
[0004] Embodiments of the present application provide a virtual model cloning method and device to facilitate user operation, reduce labor cost, and ensure that the cloned bone data is consistent with the attribute information of the initial bone data.
[0005] In a first aspect, embodiments of the present application provide a virtual model cloning method, which comprises:
[0006] Importing initial bone data to be cloned of a virtual model through a bone import interface;
[0007] Extracting attribute information of bones of the virtual model based on the initial bone data;
[0008] Generating bone data of the virtual model based on the attribute information by using a cloning scheme specified by a user;
[0009] construct a skeleton framework of the virtual model based on the skeleton data.
[0010] Optionally, the attribute information of the skeleton of the virtual model comprises any one or more of the following:
[0011] a position of a skeleton vertex, an orientation of a skeleton, a parent-child relationship between a current skeleton and other skeletons, a thickness of a skeleton, a length of a skeleton.
[0012] Optionally, the cloning scheme is a full-attribute matching scheme, and the generating of the skeleton data of the virtual model based on the attribute information and the user-specified cloning scheme comprises:
[0013] traversing each skeleton to be cloned in the virtual model, determining a relative position relationship between the each skeleton to be cloned based on attribute information corresponding to the each skeleton to be cloned respectively;
[0014] generating the skeleton data of the virtual model based on the relative position relationship between the each skeleton to be cloned and the attribute information corresponding to the each skeleton to be cloned respectively.
[0015] Optionally, the cloning scheme is a full-attribute matching combined with mirror repair world space scheme, and the method further comprises, after the generating of the skeleton data of the virtual model:
[0016] detecting whether a left skeleton and a right skeleton of the virtual model constructed based on the skeleton data are symmetrical;
[0017] if the left skeleton and the right skeleton constructed based on any data in the skeleton data are asymmetrical, mirror adjusting one side of the left skeleton and the right skeleton constructed based on the any data.
[0018] Optionally, the cloning scheme is a world space matching scheme, and the generating of the skeleton data of the virtual model based on the attribute information and the user-specified cloning scheme comprises:
[0019] traversing each skeleton to be cloned in the virtual model, determining an absolute position corresponding to the each skeleton to be cloned in a world space based on attribute information corresponding to the each skeleton to be cloned respectively;
[0020] generating the skeleton data of the virtual model based on the absolute position corresponding to the each skeleton to be cloned in the world space and the attribute information corresponding to the each skeleton to be cloned respectively.
[0021] Optionally, the importing of the initial skeleton data to be cloned of the virtual model through the skeleton importing interface comprises:
[0022] detecting a skeleton identifier to be cloned added by the user in the skeleton importing interface;
[0023] loading initial bone data corresponding to the to-be-cloned bone identifier.
[0024] Optionally, the method further comprises:
[0025] importing, through a skin import interface, skin data of the to-be-cloned virtual model;
[0026] copying the skin data, and performing skin rendering processing on the virtual model through the copied skin data.
[0027] Optionally, the importing, through a skin import interface, skin data of the to-be-cloned virtual model comprises:
[0028] detecting a to-be-cloned skin identifier added by the user in the skin import interface;
[0029] loading skin data corresponding to the to-be-cloned skin identifier.
[0030] Optionally, the importing, through a bone import interface, initial bone data of the to-be-cloned virtual model comprises:
[0031] detecting the to-be-cloned skin identifier associated with the initial bone data by the user in the bone import interface;
[0032] determining a target bone identifier corresponding to the to-be-cloned skin identifier based on a preset index relationship between skin identifiers and bone identifiers;
[0033] loading initial bone data corresponding to the target bone identifier.
[0034] Optionally, the importing, through a skin import interface, skin data of the to-be-cloned virtual model comprises:
[0035] detecting a to-be-cloned bone identifier associated with the skin data by the user in the skin import interface;
[0036] determining a target skin identifier corresponding to the to-be-cloned bone identifier based on a preset index relationship between skin identifiers and bone identifiers;
[0037] loading skin data corresponding to the target skin identifier.
[0038] Optionally, the constructing a bone framework of the virtual model based on the bone data comprises:
[0039] detecting a target bone parameter input by the user in a bone parameter modification interface;
[0040] construct a skeleton framework of the virtual model based on the target skeleton parameter and the skeleton data.
[0041] Optionally, the skeleton parameter modification interface provides one or more of the following skeleton parameters for the user to modify:
[0042] The created skeleton is of fixed width and height or dynamic width and height.
[0043] A fixed coefficient.
[0044] A dynamic coefficient.
[0045] Width at a fixed width and height.
[0046] Height at a fixed width and height.
[0047] A tapering value.
[0048] In a second aspect, an embodiment of the present application provides a virtual model cloning apparatus, comprising:
[0049] An import module configured to import initial skeleton data of a virtual model to be cloned through a skeleton import interface;
[0050] An extraction module configured to extract attribute information of a skeleton of the virtual model based on the initial skeleton data;
[0051] A cloning module configured to generate skeleton data of the virtual model based on the attribute information and using a user-specified cloning scheme;
[0052] A construction module configured to construct a skeleton framework of the virtual model based on the skeleton data.
[0053] Optionally, the attribute information of the skeleton of the virtual model comprises one or more of the following:
[0054] Position of a skeleton vertex, orientation of the skeleton, parent-child relationship between a current skeleton and other skeletons, thickness of the skeleton, length of the skeleton.
[0055] Optionally, the cloning scheme is a full-attribute matching scheme, and the cloning module is configured to:
[0056] Iterate through each skeleton to be cloned in the virtual model, and determine relative position relationships between the skeletons to be cloned based on attribute information respectively corresponding to the skeletons to be cloned;
[0057] Generate skeleton data of the virtual model based on the relative position relationships between the skeletons to be cloned and the attribute information respectively corresponding to the skeletons to be cloned.
[0058] Optionally, the cloning scheme is a scheme of full attribute matching combined with mirror repair world space, and the cloning module is further configured to:
[0059] detect whether left and right sides of the virtual model constructed based on the skeleton data are symmetrical;
[0060] if the left and right sides constructed based on any data in the skeleton data are asymmetrical, mirror adjust one side of the left and right sides constructed based on the any data.
[0061] Optionally, the cloning scheme is a world space matching scheme, and the cloning module is configured to:
[0062] traverse each skeleton to be cloned in the virtual model, and determine absolute positions of the each skeleton to be cloned in a world space based on attribute information respectively corresponding to the each skeleton to be cloned;
[0063] generate skeleton data of the virtual model based on the absolute positions of the each skeleton to be cloned in the world space and the attribute information respectively corresponding to the each skeleton to be cloned.
[0064] Optionally, the importing module is configured to:
[0065] detect a skeleton identifier to be cloned added by the user in a skeleton importing interface;
[0066] load initial skeleton data corresponding to the skeleton identifier to be cloned.
[0067] Optionally, the cloning module is further configured to:
[0068] import skin data to be cloned of the virtual model through a skin importing interface;
[0069] copy the skin data, and perform skin rendering processing on the virtual model by using the copied skin data.
[0070] Optionally, the cloning module is configured to:
[0071] detect a skin identifier to be cloned added by the user in a skin importing interface;
[0072] load skin data corresponding to the skin identifier to be cloned.
[0073] Optionally, the importing module is configured to:
[0074] detect the skin identifier to be cloned associated with the initial skeleton data by the user in a skeleton importing interface;
[0075] determine a target skin identifier corresponding to the skin identifier to be cloned based on a preset index relationship between the skin identifier and the bone identifier;
[0076] load initial bone data corresponding to the target bone identifier.
[0077] Optionally, the cloning module is configured to:
[0078] detect a bone identifier to be cloned associated with the skin data by the user in a skin import interface;
[0079] determine a target skin identifier corresponding to the bone identifier to be cloned based on a preset index relationship between the skin identifier and the bone identifier;
[0080] load skin data corresponding to the target skin identifier.
[0081] Optionally, the constructing module is configured to:
[0082] detect a target bone parameter input by the user in a bone parameter modification interface;
[0083] construct a bone framework of the virtual model based on the target bone parameter and the bone data.
[0084] Optionally, the bone parameter modification interface provides one or more bone parameters for the user to modify, including:
[0085] a fixed width and height or a dynamic width and height of the created bone;
[0086] a fixed coefficient;
[0087] a dynamic coefficient;
[0088] a width at a fixed width and height;
[0089] a height at a fixed width and height;
[0090] a tapering value.
[0091] In a third aspect, an electronic device is provided, which includes a processor and a memory, wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the virtual model cloning method in the first aspect.
[0092] In a fourth aspect, a non-transitory machine readable storage medium is provided, which stores executable code, and when the executable code is executed by a processor of an electronic device, the processor can at least implement the virtual model cloning method in the first aspect.
[0093] By adopting the present application, the user can arbitrarily clone the initial skeleton data of the virtual model made by other virtual model drawing software to the target virtual model drawing software for normal use. Through the plug-in program integrated in the target virtual model drawing software, the attribute information of the skeleton to be cloned can be conveniently extracted from the initial skeleton data, and then based on the attribute information, the cloned skeleton data is generated by using the cloning scheme specified by the user, and the skeleton framework of the virtual model is constructed by the skeleton data. The above process is completely automatically executed by the plug-in program, compared with the way that the user manually draws the skeleton of the virtual model in the target virtual model drawing software, the method provided by the present application greatly facilitates the operation of the user, reduces the labor cost, and can ensure that the cloned skeleton data is consistent with the attribute information of the previous initial skeleton data. BRIEF DESCRIPTION OF DRAWINGS
[0094] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0095] Figure 1 A flowchart of a virtual model cloning method provided by an embodiment of the present application;
[0096] Figure 2 A schematic diagram of an interface in the plug-in program for interacting with the user provided by an embodiment of the present application;
[0097] Figure 3 A schematic diagram of a menu bar provided by the plug-in program provided by an embodiment of the present application;
[0098] Figure 4 A schematic diagram of a skeleton object list added with a skeleton identifier provided by an embodiment of the present application;
[0099] Figure 5 A schematic diagram of a skeleton generation scheme option interface provided by an embodiment of the present application;
[0100] Figure 6 A schematic diagram of a cloning completion prompt information provided by an embodiment of the present application;
[0101] Figure 7 A skeleton framework diagram of the skeleton corresponding to the initial skeleton data provided by an embodiment of the present application;
[0102] Figure 8 A schematic diagram of the effect obtained after cloning by using the full attribute matching scheme provided by an embodiment of the present application;
[0103] Figure 9 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0104] Figure 10 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0105] Figure 11 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0106] Figure 12 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0107] Figure 13 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0108] Figure 14 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0109] Figure 15 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0110] Figure 16 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0111] Figure 17 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0112] Figure 18 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0113] Figure 19 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0114] Figure 20 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0115] Figure 21 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0116] Figure 22 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6;
[0117] Figure 23 An effect diagram obtained after cloning by using a world space matching scheme provided by an embodiment of the present application is shown in FIG. 6; DETAILED DESCRIPTION
[0118] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0119] The terms used in the embodiments of the present application are only for the purpose of describing particular embodiments and are not intended to limit the present application. The singular forms "a", "an" and "the" used in the embodiments of the present application and the appended claims are intended to include the plural forms, unless the context clearly indicates otherwise. "Plural" generally includes at least two.
[0120] Depending on the context, the word "if" as used herein can be interpreted to mean "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if it is determined" or "if (a stated condition or event) is detected" can be interpreted to mean "when it is determined" or "in response to determining" or "when (a stated condition or event) is detected" or "in response to detecting (a stated condition or event)".
[0121] In addition, the sequence of steps in each of the following method embodiments is only an example and is not strictly limited.
[0122] Figure 1 A flowchart of a virtual model cloning method provided by the embodiments of the present application is shown in FIG. 1. The method can be applied to an electronic device. As shown in FIG. 1, the method comprises the following steps: Figure 1
[0123] 101. Import initial skeleton data of a virtual model to be cloned through a skeleton import interface.
[0124] 102. Extract attribute information of the skeleton of the virtual model based on the initial skeleton data.
[0125] 103. Generate skeleton data of the virtual model based on the attribute information and using a cloning scheme specified by a user.
[0126] 104. Construct a skeleton framework of the virtual model based on the skeleton data.
[0127] In practical applications, there's a need for users to import virtual models created in other virtual modeling software into their current software. The imported virtual model typically consists of two types of data: initial skeleton data and skinning data. However, because different software programs have different operating logics and can handle different data structures, data that works correctly in one virtual modeling software may not work correctly in the other. For example, data created in UE4 cannot be used correctly in 3ds Max.
[0128] To address the aforementioned issues, in this embodiment of the invention, an integrated plugin program can be used to convert the initial bone data, enabling the converted bone data to be read and processed correctly by the current virtual model rendering software. Alternatively, the plugin program can also copy the skinning data of the virtual model, thus achieving cloning of the virtual model's skinning data.
[0129] The aforementioned plugin program provides an interactive interface for the user, which can be divided into several sub-interfaces such as a skeleton import interface, a skinning import interface, and a skeleton parameter modification interface. These sub-interfaces can be placed in different display areas within a larger display interface, or each sub-interface can be set as a separate display interface. For example... Figure 2 The image shown is a schematic diagram of an interface in a plug-in program that interacts with the user.
[0130] Users can clone the initial skeletal data of a virtual model using a plugin; cloning the initial skeletal data is mandatory. After cloning the initial skeletal data, users can also clone skinning data belonging to the same virtual model as the initial skeletal data. This allows the skinning data to be applied to the cloned skeletal data. Alternatively, users can manually add skinning data to the cloned skeletal data using traditional methods. Therefore, cloning skinning data is optional, while cloning the initial skeletal data is mandatory, because skinning operations are impossible without a foundation of skeletal data.
[0131] In some alternative embodiments, such as Figure 3 As shown, the aforementioned plugin program can also provide a menu bar. This menu bar can include options such as help tutorials, changelog, and about tools for users to choose from, allowing them to easily gain a deeper understanding and learn about the plugin program.
[0132] The following section introduces the various functional interfaces provided by the skeleton import interface, and how to convert the initial skeleton data using these interfaces.
[0133] The adding option can be provided in the bone importing interface, through which the user can import any initial bone data that he wants to clone. For example, the user can click the adding option, and the plug-in program can pop up a folder selection interface in response to the user's operation, in which a plurality of importable files can be displayed, and the file name of each file can be the corresponding bone identifier. Through the file name, the user can know which part of the virtual model each file corresponds to, and then select the file he wants to import. The file selected by the user contains the initial bone data, so the plug-in program can obtain the initial bone data.
[0134] Based on this, optionally, through the bone importing interface, the process of importing the initial bone data to be cloned of the virtual model can be implemented as follows: detecting the bone identifier to be cloned added by the user in the bone importing interface; loading the initial bone data corresponding to the bone identifier to be cloned.
[0135] As shown in Figure 4 The plurality of initial bone data selected by the user can be added to the bone object list for display, and specifically, the bone identifiers corresponding to the plurality of initial bone data can be displayed in the bone object list.
[0136] It is worth noting that in addition to the adding option, the bone importing interface can also be provided with removal, emptying and other options. Among them, if the user does not want to add a certain initial bone data after adding it, the user can find the bone identifier corresponding to the initial bone data in the bone object list, select the bone identifier and click the removal option, so that the initial bone data will be removed from the bone object list. In addition, if the user does not want to clone a plurality of initial bone data after adding them, in order to facilitate operation and avoid the user selecting them one by one for removal, the user can directly click the emptying option, so that all the added initial bone data in the bone object list will be removed.
[0137] The bone importing interface can also be provided with an in-scene selected object option. It can be understood that the virtual model can include a plurality of initial bone data, and all bone objects corresponding to the initial bone data can be displayed in the scene first. After the user adds a certain initial bone data in the bone object list, the bone objects corresponding to the added initial bone data are allowed to be clicked and selected in the scene. As for those initial bone data in the virtual model that are not added to the bone object list, their corresponding bone objects can also be displayed in the scene, but this type of bone object cannot be clicked and selected.
[0138] In addition, it is worth noting that when the initial skeleton data added to the skeleton object list is removed, the skeleton object corresponding to the initial skeleton data can still be displayed in the scene and cannot be selected. When all the initial skeleton data added to the skeleton object list is removed, all the skeleton objects corresponding to the initial skeleton data can also be displayed in the scene, but they cannot be selected.
[0139] Finally, the skeleton import interface can also be optionally provided with an automatic acquisition option through a skin object. The specific function of the option will be described below, and will not be described here.
[0140] Through the skeleton import interface, the user can freely add initial skeleton data to be cloned. After adding the initial skeleton data to be cloned, the user can specify a cloning scheme for cloning. Optionally, the cloning scheme can include, but is not limited to, a full attribute matching scheme, a full attribute matching combined with mirror repair world space scheme, and a world space matching scheme. Specifically, a skeleton generation scheme option can be provided in the interface, and a drop-down menu can be called by clicking the option. As shown in Figure 5 The drop-down menu can display three options: full attribute matching scheme, full attribute matching combined with mirror repair world space scheme, and world space matching scheme. The user can select one of the three schemes according to actual needs to clone the initial skeleton data, and the cloning result can be presented to the user in the form of an effect diagram. If the user thinks that the current effect diagram does not meet the needs, the user can choose to change a scheme to clone the initial skeleton data again until the appropriate cloning effect is selected.
[0141] The following describes how the above three schemes achieve cloning of the initial skeleton data.
[0142] In general, although 3dsMax may not be able to completely recognize the initial skeleton data made in other virtual model drawing software, 3dsMax can still extract some useful information from the initial skeleton data, such as attribute information of the virtual model skeleton, and derive the virtual model skeleton data based on the attribute information to achieve conversion of the initial skeleton data. Optionally, the attribute information can include, but is not limited to, the position of the skeleton vertex, the orientation of the skeleton, the parent-child relationship between the current skeleton and other skeletons, the thickness of the skeleton, and the length of the skeleton.
[0143] It can be understood that all the information in the attribute information above can jointly determine what a bone is in the virtual model. For 3dsMax, it can only extract part of the information in the attribute information from the initial bone data, and the remaining information needs to be derived and calculated. After obtaining all the information in the attribute information, the pose and morphology of a bone can be uniquely determined.
[0144] For example, the orientation of the bone, the length of the bone, and the parent-child relationship between the current bone and other bones can be extracted from the initial bone data, but the specific position of the bone is unknown. At this time, since the parent-child relationship between the current bone and other bones is known, the position of a vertex in the current bone can be inferred based on the positions of other bones. For example, if bone A is connected to bone B and behind bone B, the vertex position of the end of bone B is the vertex position of the beginning of bone A, and thus the vertex position of the beginning of bone A can be determined. Then, knowing the orientation of the bone and the length of the bone, the vertex position of the end of bone A can be inferred from the vertex position of the beginning of bone A. In this way, after knowing the vertex position of the beginning of bone A and the vertex position of the end of bone A, the position of bone A can be uniquely determined.
[0145] The above process can be summarized as follows: the attribute information of the bone in the initial bone data can be extracted first, which can be considered as incomplete information. Then, based on the attribute information, the bone data of the virtual model is determined. The bone data can be considered as all the attribute information required to uniquely determine the pose and morphology of the bone object in 3dsMax.
[0146] After the bone data is determined, that is, after the pose and morphology of all the bones to be cloned are known, the skeleton framework of the virtual model can be constructed.
[0147] Optionally, if the full attribute matching scheme is adopted, based on the attribute information, the process of generating the bone data of the virtual model using the user-specified cloning scheme can be implemented as follows: traversing each bone to be cloned in the virtual model, determining the relative position relationship between each bone to be cloned based on the attribute information corresponding to each bone to be cloned; based on the relative position relationship between each bone to be cloned and the attribute information corresponding to each bone to be cloned, generating the bone data of the virtual model.
[0148] In practical applications, since the to-be-cloned bones are not completely independent of each other, but have a connection relationship or parent-child relationship, in the process of cloning the initial bone data, the current bone needs to be created by referring to other bones, and then the to-be-cloned bones in the virtual model can be traversed first to clarify the parent-child relationship between the to-be-cloned bones, and then the relative positional relationship between the to-be-cloned bones is determined based on the attribute information corresponding to each to-be-cloned bone.
[0149] It should be noted that for the full attribute matching scheme, the relative positional relationship between the to-be-cloned bones can be determined. For example, assuming that there are three to-be-cloned bones including bone A, bone B, and bone C, if the full attribute matching scheme is adopted, the final determined position of each bone is a relative positional relationship. For example, it can be determined that bone A is in what position relative to bone B, bone B is in what position relative to bone C, and the like.
[0150] Finally, the bone data of the virtual model can be generated based on the relative positional relationship between the to-be-cloned bones and the attribute information corresponding to each to-be-cloned bone.
[0151] In some application scenarios, after the full attribute matching scheme is adopted to generate the bone data of the virtual model, it can be found from the effect diagram that the bones on the left and right sides of some places are not symmetrical. For example, a character model is constructed, but it is found from the effect diagram that the cloned character model has a left hand and a right hand on one side, or a left hand is constructed in a place where a right hand should be constructed, so that the character model has two left hands. This is obviously contrary to the design of the character model.
[0152] In the above case, the plug-in program can also identify the target type to which the virtual model belongs based on the cloned bone data of the virtual model. The type of the virtual model can include a character model, an animal model, a prop model, and the like. The animal model can be further divided into models of different animals. In the plug-in program, a correspondence between the type of the virtual character model and the reference model can also be established in advance, and based on the correspondence, a target reference model corresponding to the target type to which the virtual model belongs can be found. The target reference model and the virtual model belong to the same type of model. For example, if the virtual model is a character model, the target reference model is also a character model. The same type of model has common characteristics, such as similar bone structures. Therefore, the bone data of the virtual model can be preliminarily corrected by referring to the target reference model to preliminarily adjust the parts of the virtual model where the bones on the left and right sides are not symmetrical and the parts where the bones are misaligned. By using such an adjustment method, the computational overhead required for virtual model production can be saved.
[0153] If the preliminary adjusted model meets the design requirements of the user, the user can directly use the preliminary adjusted model. Further, if a better adjustment result is desired, the user can optionally try to select the full attribute matching combined with mirror repair world space scheme to further adjust the virtual model. Optionally, after the bone data of the virtual model is generated, it can be detected whether the left bone and the right bone of the virtual model constructed based on the bone data are symmetrical; if the left bone and the right bone constructed based on any data in the bone data are asymmetrical, one side of the left bone and the right bone constructed based on the any data is adjusted by mirroring.
[0154] In actual application, it can be automatically detected whether the left bone and the right bone of the virtual model constructed based on the bone data are symmetrical. When it is detected that the left bone and the right bone constructed based on any data in the bone data are asymmetrical, one side of the left bone and the right bone constructed based on the any data is automatically adjusted by mirroring. By using the mirror adjustment method, the bone part in the skeleton structure that should be symmetrical but is not symmetrical can be made symmetrical to meet the visual aesthetic design of the virtual model.
[0155] Alternatively, the user can also select the world space matching scheme. Optionally, based on the attribute information, the process of generating the bone data of the virtual model by using the user-specified cloning scheme can be implemented as follows: traversing each to-be-cloned bone in the virtual model, determining the absolute position of each to-be-cloned bone in the world space based on the attribute information corresponding to each to-be-cloned bone, and generating the bone data of the virtual model based on the absolute position of each to-be-cloned bone in the world space and the attribute information corresponding to each to-be-cloned bone.
[0156] In actual application, although the to-be-cloned bones are not completely independent of each other but have a parent-child relationship, the current bone can also be created without referring to other bones. In the world space matching scheme, the parent-child relationship between the to-be-cloned bones can be temporarily ignored, and each to-be-cloned bone is regarded as an independent individual. Based on this, the absolute position of each to-be-cloned bone in the world space can be determined based on the attribute information of each to-be-cloned bone. It should be noted that the position of each to-be-cloned bone is determined only by the absolute position of each to-be-cloned bone in the world space, and the position of the current bone does not need to be determined by referring to the positions of other bones. For example, the position of bone A is determined only by the absolute position of bone A in the world space, and does not need to be determined by referring to the positions of bone B, bone C, and the like. Finally, the bone data of the virtual model can be generated based on the absolute position of each to-be-cloned bone in the world space and the attribute information corresponding to each to-be-cloned bone.
[0157] The above introduces three specific implementation ways of cloning initial bone data, and the user can freely select a suitable cloning scheme. After the user selects the cloning scheme to be used, the user can click the start cloning bone option in the interface, so that the plug-in program in 3dsMax can automatically clone the initial bone data through the user-selected cloning scheme. After completing the cloning operation, a prompt information can be popped up in the interface to prompt the user that the cloning operation has been completed. An example of the prompt information is shown in Figure 6 .
[0158] Next, the cloned effect diagram can also be displayed in the interface, and the user can decide whether to use the current cloning scheme by viewing the effect diagram. As shown in Figure 7 , it is the frame diagram of the bone corresponding to the initial bone data. By cloning the initial bone data shown in Figure 7 using different cloning schemes, the cloned effect diagrams obtained can be seen in Figures 8-10 , which are, in turn, the effects obtained by using the full attribute matching scheme, the world space matching scheme, and the full attribute matching combined with mirror repair world space scheme. As can be seen from Figure 8 , the bone cloned by using the full attribute matching scheme does not meet the expected requirements, and the orientation of some parts of the bone is asymmetric. As can be seen from Figures 9-10 , the effects cloned by using the world space matching scheme and the full attribute matching combined with mirror repair world space scheme can still meet the design requirements.
[0159] In some optional embodiments, the effect diagrams cloned by different cloning schemes can also be spliced together for the user to compare, so that the comparison effect is more intuitive. As shown in Figure 11 , the effect diagrams cloned by using the full attribute matching scheme, the world space matching scheme, and the full attribute matching combined with mirror repair world space scheme can be spliced together and displayed to the user.
[0160] Optionally, in addition to cloning the initial bone data of the virtual model, the skin data of the virtual model can also be cloned. Cloning the skin data is an optional item, and the user can also choose to manually create skin data for the bone data. If the cloning method is selected, the skin data to be cloned of the virtual model can be imported through the skin import interface, and then the skin data is copied, and the virtual model is rendered and processed through the skin data obtained by copying.
[0161] First of all, it needs to be pointed out that the skin data from other virtual model drawing software cannot be directly recognized and processed by 3dsMax like the initial bone data, so the skin data can be directly used by copying into 3dsMax without data conversion processing.
[0162] A skin import interface is also provided in the embodiments of the present application, which is similar to the interface elements of the skeleton import interface. As shown in Figure 12 The skin import interface can be provided with an add option through which the user can import any skin data that he wants to clone. Alternatively, in response to the user's click operation on the add option, the plug-in program in 3dsMax can detect the skin identifier that the user adds in the skin import interface for cloning, and then load the skin data corresponding to the skin identifier for cloning. As shown in Figure 13 The user-selected plurality of skin data can be added to the skin object list for display. Specifically, the skin identifiers corresponding to the plurality of skin data can be displayed in the skin object list.
[0163] The skin import interface can also be provided with remove, clear, select objects in the scene, and other options, wherein the specific functions of the remove, clear, select objects in the scene, and other options in the skin import interface are similar to those of the remove, clear, select objects in the scene, and other options in the skeleton import interface. For the specific functions of the remove, clear, select objects in the scene, and other options in the skin import interface, please refer to the description of the specific functions of the remove, clear, select objects in the scene, and other options in the skeleton import interface, which will not be described here.
[0164] Next, the functions of the automatic acquisition option through the skin object in the skeleton import interface and the automatic acquisition option through the skeleton object in the skin import interface will be described in combination with the operations of adding initial skeleton data and adding skin data.
[0165] Alternatively, the process of importing the initial skeleton data for cloning of the virtual model through the skeleton import interface can be implemented as follows: detecting the skin identifier for cloning that the user associates with the initial skeleton data in the skeleton import interface; determining the target skeleton identifier corresponding to the skin identifier for cloning based on the preset index relationship between the skin identifier and the skeleton identifier; and loading the initial skeleton data corresponding to the target skeleton identifier.
[0166] The above process of associating the skin identifier for cloning with the initial skeleton data in the skeleton import interface by the user can be understood as the user clicking the automatic acquisition option through the skin object. For example, assuming that the user has added skin A, skin B, and skin C in the character model in the skin object list, when the user clicks the automatic acquisition option through the skin object, skin A, skin B, and skin C in the skin object list are associated with the initial skeleton data to be added.
[0167] It is worth noting that the bone data and the skin data are not independent of each other, and there is a correlation between them. For example, the finger bones of the character model need to be skinned through the finger skin data, and on the other hand, the finger skin data needs to be skinned onto the finger bones. That is, there is a corresponding relationship between the bone data and the skin data, which can be summarized as an index relationship between them. Then, the index relationship between the skin identifiers and the bone identifiers can be established and stored in advance, and then when the user clicks the automatic acquisition option through the skin object, the target bone identifier corresponding to each skin identifier in the skin object list can be determined one by one by searching the index relationship. Subsequently, the initial bone data corresponding to the target bone identifier can be loaded.
[0168] To understand the above process, for example, assume that the user adds the finger skin identifier of the character model in the skin object list, and the finger skin identifier corresponds to the finger skin data, and then the target bone identifier associated with the finger skin identifier is determined to be the finger bone identifier through the index relationship, and the finger bone identifier corresponds to the initial bone data of the finger.
[0169] In this way, the target bone identifier of the bone to be cloned can be obtained through the added skin identifier in the skin object list, and the target bone identifier is added to the bone object list. In this way, the user can not select the bone identifier to be cloned from all bone identifiers of the virtual model one by one, but can automatically add the target bone identifier to be cloned to the bone object list at one time by clicking the automatic acquisition option through the skin object once, greatly facilitating the user's operation and improving the efficiency of cloning the virtual model.
[0170] Similarly, the skin import interface can also be provided with an automatic acquisition option through the bone object, and the function of the automatic acquisition option through the bone object is similar to that of the automatic acquisition option through the skin object in the bone import interface. Alternatively, through the skin import interface, the process of importing the skin data of the virtual model to be cloned can be implemented as follows: detecting the bone identifier to be cloned associated with the skin data in the skin import interface; determining the target skin identifier corresponding to the bone identifier to be cloned based on the index relationship between the skin identifier and the bone identifier; and loading the skin data corresponding to the target skin identifier.
[0171] After the bone identifier is added in the bone object list, in response to the operation of the user clicking the automatic acquisition option through the bone object, the target skin identifier corresponding to the bone identifier added in the bone object list can be determined by looking up the index relationship between the preset skin identifier and the bone identifier. The target skin identifier can be automatically added to the skin object list, so that the user can view the target skin identifier corresponding to the automatically acquired skin data.
[0172] For example, assuming that the user adds the bone identifier of the finger in the bone object list, the skin associated with the finger bone can be determined as the finger skin by looking up the index relationship, and then the finger skin identifier corresponding to the finger skin data can be output. In this way, the finger skin data can be loaded based on the finger skin identifier.
[0173] In some application scenarios, assuming that the user prepares a skin object as shown in Figure 14 , the skin object has established bone data, and the skin operation can be performed on the skin object. First, the user can import the skin identifier corresponding to the skin object through the skin import interface, and the import result is as shown in Figure 15 . Then, the automatic acquisition option through the skin object is selected in the bone import interface, and the selection result can be seen in Figure 16 . In this way, the corresponding content is added in the skin object list and the bone object list respectively. Next, the start cloning bone skin option can be selected, so that the plug-in program automatically performs the cloning process of the bone data and the skin data of the skin object, and the cloning result can be seen in Figure 17 . After the cloning is completed, the cloned skin result can be further detected, as shown in Figures 18-19 .
[0174] It is worth noting that the initial bone data can be cloned by the default manner of the plug-in program, and in some optional embodiments, the user can also be allowed to control the bone parameters used in the process of cloning the initial bone data. In this way, when the user sets the bone parameters used in the process of cloning the initial bone data, the process of cloning the initial bone data can be controlled jointly by the default manner of the plug-in program and the bone parameters additionally set by the user. The process of setting the bone parameters by the user can be implemented in the bone parameter modification interface.
[0175] Based on this, the target bone parameter input by the user in the bone parameter modification interface can be detected, and the bone framework of the virtual model can be constructed based on the target bone parameter and the bone data.
[0176] Optionally, the bone parameter modification interface supporting the modified bone parameters can include, but is not limited to, the created bone being fixed width and height or dynamic width and height, fixed coefficient, dynamic coefficient, width under fixed width and height, height under fixed width and height, and tapering value.
[0177] The created bone being fixed width and height or dynamic width and height can be designed in the form of a radio button, and the user can select one of the dynamic width and height option and the fixed width and height option. If the dynamic width and height option is selected, the thickness of the bone will be thicker when the created bone is longer. If the fixed width and height option is selected, the thickness of the bone is a fixed value regardless of the length of the created bone.
[0178] The fixed coefficient is in units of centimeters, and is a bone parameter used in the dynamic width and height mode. The size of the fixed coefficient represents the minimum value of the thickness of the bone in the dynamic width and height mode. Although the thickness of the bone in the dynamic width and height mode can change with the length of the bone, the minimum value of the change in the thickness of the bone is controlled and has no lower limit. That is, when the thickness of the bone calculated by the length of the bone is smaller than the fixed coefficient, the thickness of the bone in this case is directly adjusted to the thickness specified by the fixed coefficient.
[0179] The dynamic coefficient is in units of %, and is a bone parameter used in the dynamic width and height mode. The size of the dynamic coefficient represents the size of the adjustment of the thickness of the bone when the length of the bone is adjusted by one unit.
[0180] The width under fixed width and height and the height under fixed width and height are both in units of centimeters, and are bone parameters used in the fixed width and height mode. Their sizes represent the fixed width value (thickness) and the fixed height value (length) of the bone, respectively.
[0181] The tapering value is in units of %. The larger the tapering value is, the closer the shape of the bone is to a cone, and the smaller the tapering value is, the closer the shape of the bone is to a cuboid.
[0182] In addition, optionally, an option of a bone parameter modification switch can also be set in the bone parameter modification interface. By adjusting the option, the user can select whether to enable the function of setting the bone parameters. As described above, if the user does not select to open the bone parameter modification switch, the initial bone data is cloned by the default manner of the plug-in program. If the user selects to open the bone parameter modification switch, the process of cloning the initial bone data is controlled in combination with the default manner of the plug-in program and the bone parameters added by the user. By providing the option of the bone parameter modification switch, the user can conveniently select whether to enable the function of setting the bone parameters.
[0183] Based on the above introduction, the interface schematic diagram of the bone parameter modification interface provided in the embodiment of the application can be seen from Figure 20 as shown.
[0184] In addition, the cloned bone object based on the initial bone data can be named by the bone identifier corresponding to the initial bone data, or the interface also supports the function of renaming the cloned bone object, and the user can set the renamed identifier of the cloned bone object through the renaming name modification window provided by the interface. An interface for interacting with the user can be realized in the style shown in Figure 21 .
[0185] With the application, the user can arbitrarily clone the initial bone data of the virtual model made by other virtual model drawing software into the target virtual model drawing software for normal use. Through the plug-in program integrated in the target virtual model drawing software, the attribute information of the bone to be cloned can be conveniently extracted from the initial bone data, and then based on the attribute information, the cloned bone data is generated by using the cloning scheme specified by the user, and the bone framework of the virtual model is constructed by using the bone data. The above process is completely automatically executed by the plug-in program, compared with the way that the user manually draws the bone of the virtual model one by one in the target virtual model drawing software, the method provided by the application greatly facilitates the operation of the user, reduces the labor cost, and can ensure that the attribute information of the cloned bone data is consistent with that of the previous initial bone data.
[0186] The virtual model cloning device of one or more embodiments of the application will be described in detail below. Those skilled in the art can understand that these virtual model cloning devices can all be configured by using commercially available hardware components through the steps taught by the present application.
[0187] Figure 22 The structural schematic diagram of a virtual model cloning device provided for the embodiment of the application is shown in Figure 22 , and the device comprises:
[0188] The import module 221 is used to import the initial bone data of the virtual model to be cloned through the bone import interface;
[0189] The extraction module 222 is used to extract the attribute information of the bone of the virtual model based on the initial bone data;
[0190] The cloning module 223 is used to generate the bone data of the virtual model based on the attribute information by using the cloning scheme specified by the user;
[0191] The construction module 224 is used to construct the bone framework of the virtual model based on the bone data.
[0192] Optionally, the attribute information of the bones of the virtual model comprises any one or more of the following:
[0193] a position of a bone vertex, an orientation of a bone, a parent-child relationship between a current bone and other bones, a thickness of a bone, and a length of a bone.
[0194] Optionally, the cloning scheme is a full-attribute matching scheme, and the cloning module 223 is configured to:
[0195] traverse each bone to be cloned in the virtual model, and determine a relative position relationship between the bones to be cloned based on attribute information corresponding to each bone to be cloned;
[0196] generate bone data of the virtual model based on the relative position relationship between the bones to be cloned and the attribute information corresponding to each bone to be cloned.
[0197] Optionally, the cloning scheme is a full-attribute matching combined with mirror repair world space scheme, and the cloning module 223 is further configured to:
[0198] detect whether left and right bones of the virtual model constructed based on the bone data are symmetrical;
[0199] if the left and right bones constructed based on any data in the bone data are not symmetrical, mirror adjust one side of the left and right bones constructed based on the any data.
[0200] Optionally, the cloning scheme is a world space matching scheme, and the cloning module 223 is configured to:
[0201] traverse each bone to be cloned in the virtual model, and determine an absolute position corresponding to each bone to be cloned in a world space based on attribute information corresponding to each bone to be cloned;
[0202] generate bone data of the virtual model based on the absolute position corresponding to each bone to be cloned in the world space and the attribute information corresponding to each bone to be cloned.
[0203] Optionally, the importing module 221 is configured to:
[0204] detect a bone identifier to be cloned added by the user in a bone importing interface;
[0205] load initial bone data corresponding to the bone identifier to be cloned.
[0206] Optionally, the cloning module 223 is further configured to:
[0207] The skin data to be cloned of the virtual model is imported through a skin import interface;
[0208] The skin data is copied, and the virtual model is rendered by using the copied skin data.
[0209] Optionally, the cloning module 223 is configured to:
[0210] Detect the skin identifier to be cloned added by the user in the skin import interface;
[0211] Load the skin data corresponding to the skin identifier to be cloned.
[0212] Optionally, the import module 221 is configured to:
[0213] Detect the skin identifier to be cloned associated with the initial skeleton data by the user in the skeleton import interface;
[0214] Determine the target skeleton identifier corresponding to the skin identifier to be cloned based on a preset index relationship between the skin identifier and the skeleton identifier;
[0215] Load the initial skeleton data corresponding to the target skeleton identifier.
[0216] Optionally, the cloning module 223 is configured to:
[0217] Detect the skeleton identifier to be cloned associated with the skin data by the user in the skin import interface;
[0218] Determine the target skin identifier corresponding to the skeleton identifier to be cloned based on a preset index relationship between the skin identifier and the skeleton identifier;
[0219] Load the skin data corresponding to the target skin identifier.
[0220] Optionally, the construction module 224 is configured to:
[0221] Detect the target skeleton parameter input by the user in the skeleton parameter modification interface;
[0222] Construct a skeleton framework of the virtual model based on the target skeleton parameter and the skeleton data.
[0223] Optionally, the skeleton parameter modification interface provides one or more skeleton parameters for the user to modify, including:
[0224] The created skeleton has a fixed width and height or a dynamic width and height;
[0225] A fixed coefficient;
[0226] A dynamic coefficient;
[0227] Width with fixed dimensions;
[0228] Height with fixed width and height;
[0229] Taper value.
[0230] Figure 22 The device shown can perform the aforementioned Figures 1 to 21 The virtual model cloning method provided in the illustrated embodiment, for detailed execution process and technical effects, can be found in the description of the foregoing embodiments, and will not be repeated here.
[0231] In one possible design, the above Figure 22 The structure of the virtual model cloning device shown can be implemented as an electronic device, such as... Figure 23 As shown, the electronic device may include a processor 91 and a memory 92. The memory 92 stores executable code, which, when executed by the processor 91, enables the processor 91 to at least perform the functions described above. Figures 1 to 21 The virtual model cloning method provided in the illustrated embodiment.
[0232] Optionally, the electronic device may also include a communication interface 93 for communicating with other devices.
[0233] Furthermore, embodiments of the present invention provide a non-transitory machine-readable storage medium storing executable code, which, when executed by a processor of an electronic device, enables the processor to at least perform the functions described above. Figures 1 to 21 The virtual model cloning method provided in the illustrated embodiment.
[0234] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0235] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of a necessary general-purpose hardware platform, or by a combination of hardware and software. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a computer product. The present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0236] The virtual model cloning method provided by the embodiments of the present application can be executed by a certain program / software, which can be provided by a network side. The electronic device mentioned in the foregoing embodiments can download the program / software into a local nonvolatile storage medium, and when it needs to execute the foregoing virtual model cloning method, the program / software is read into the memory by the CPU, and then the CPU executes the program / software to realize the virtual model cloning method provided in the foregoing embodiments. The execution process can refer to the schematic diagram in the foregoing Figures 1 to 21 .
[0237] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A virtual model cloning method characterized by, The method comprises the following steps: importing initial skeleton data to be cloned of a virtual model through a skeleton import interface; extracting attribute information of the skeleton of the virtual model based on the initial skeleton data; generating skeleton data of the virtual model based on the attribute information and a user-specified cloning scheme; the cloning scheme is a world space matching scheme; constructing a skeleton framework of the virtual model based on the skeleton data; wherein the step of generating the skeleton data of the virtual model based on the attribute information and the user-specified cloning scheme comprises the following steps: traversing each skeleton to be cloned in the virtual model, determining absolute positions of the each skeleton to be cloned in the world space based on the attribute information corresponding to the each skeleton to be cloned respectively, and generating the skeleton data of the virtual model based on the absolute positions of the each skeleton to be cloned in the world space and the attribute information corresponding to the each skeleton to be cloned respectively.
2. The method of claim 1, wherein, The attribute information of the skeleton of the virtual model comprises any one or more of the following: positions of skeleton vertices, an orientation of the skeleton, a parent-child relationship between a current skeleton and other skeletons, a thickness of the skeleton, and a length of the skeleton.
3. The method of claim 1, wherein, The cloning scheme is a full-attribute matching scheme, and the step of generating the skeleton data of the virtual model based on the attribute information and the user-specified cloning scheme comprises the following steps: traversing each skeleton to be cloned in the virtual model, determining relative position relationships between the each skeleton to be cloned based on the attribute information corresponding to the each skeleton to be cloned respectively, and generating the skeleton data of the virtual model based on the relative position relationships between the each skeleton to be cloned and the attribute information corresponding to the each skeleton to be cloned respectively. The cloning scheme is a full-attribute matching scheme combined with a mirror image repair world space, and after the skeleton data of the virtual model is generated, the method further comprises the following steps:
4. The method of claim 3, wherein, detecting whether left and right sides of the virtual model constructed based on the skeleton data are symmetrical; if the left and right sides constructed based on any data in the skeleton data are asymmetrical, performing mirror image adjustment on one side of the left and right sides constructed based on the any data. The step of importing initial skeleton data to be cloned of a virtual model through a skeleton import interface comprises the following steps:
5. The method of claim 1, wherein, detecting skeleton identifiers to be cloned added by the user in the skeleton import interface; loading initial skeleton data corresponding to the skeleton identifiers to be cloned. The method further comprises the following steps:
6. The method of claim 1, wherein, importing skin data to be cloned of the virtual model through a skin import interface; copying the skin data to perform skin rendering processing on the virtual model through the copied skin data. The step of importing skin data to be cloned of the virtual model through a skin import interface comprises the following steps:
7. The method of claim 6, wherein, detecting skin identifiers to be cloned added by the user in the skin import interface; loading skin data corresponding to the skin identifiers to be cloned. The step of importing initial skeleton data to be cloned of a virtual model through a skeleton import interface comprises the following steps:
8. The method of claim 7, wherein, detecting skin identifiers to be cloned associated with the initial skeleton data by the user in the skeleton import interface; Determine a target bone identifier corresponding to the skin identifier to be cloned based on a preset index relationship between the skin identifier and the bone identifier; Load initial bone data corresponding to the target bone identifier.
9. A virtual model cloning apparatus characterized by comprising: Comprise: An import module configured to import initial bone data of a virtual model to be cloned through a bone import interface; An extraction module configured to extract attribute information of bones of the virtual model based on the initial bone data; A cloning module configured to generate bone data of the virtual model based on the attribute information and a user-specified cloning scheme; The cloning scheme is a world space matching scheme; The generating of the bone data of the virtual model based on the attribute information and the user-specified cloning scheme comprises: traversing each bone to be cloned in the virtual model, determining an absolute position in a world space corresponding to each bone to be cloned based on attribute information corresponding to each bone to be cloned respectively, and generating the bone data of the virtual model based on the absolute position in the world space corresponding to each bone to be cloned and the attribute information corresponding to each bone to be cloned respectively; A construction module configured to construct a bone framework of the virtual model based on the bone data.
Citation Information
Patent Citations
Three-dimensional model file conversion method and device
CN113450452A
Method and device for adjusting virtual character model, storage medium and electronic device
CN114504825A