Processing method and device of virtual equipment, storage medium and electronic equipment

By establishing a skeletal mapping relationship, the skinning information of the source equipment model is adapted to the target object model, which solves the problem of low skinning efficiency when virtual objects of different body sizes wear the same equipment, and achieves adaptive wearing and stable effects.

CN116407834BActive Publication Date: 2026-02-10NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310412884.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2026-02-10
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

In existing technologies, when configuring the same virtual equipment for virtual objects of different body types, skinning information needs to be created for each body type, resulting in low skinning efficiency and high cost.

Method used

By obtaining the skeletal structure of the source object model and the target object model, a skeletal mapping relationship is established, and based on this relationship, the skinning information of the source equipment model is assigned to the target object model, enabling the target object model to wear the same equipment.

Benefits of technology

It enables adaptive wearing of virtual equipment, reduces skinning costs, improves skinning efficiency, and solves the problem of unstable wearing effects caused by inconsistent skeletons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116407834B_ABST
    Figure CN116407834B_ABST
Patent Text Reader

Abstract

The present disclosure provides a virtual equipment processing method and device, a storage medium and an electronic device, and relates to the technical field of games. The method comprises: obtaining a skeleton structure corresponding to a source object model and a skeleton structure corresponding to a target object model, the source object model wearing a source equipment model, the source object model and the target object model having the same topology and different sizes; based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, establishing a skeleton mapping relationship between the source object model and the target object model; based on the skeleton mapping relationship, assigning skin information of the source equipment model to a target equipment model adapted to the size of the target object model, so that the target object model wears the target equipment model, and the target equipment model has the same style as the source equipment model. The present disclosure improves the skinning efficiency of the virtual equipment model through skeleton mapping, and realizes adaptive wearing of the virtual equipment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of games, and particularly relates to a virtual equipment processing method, a virtual equipment processing apparatus, a computer readable storage medium and an electronic device. BACKGROUND

[0002] In a role-playing game, a plurality of virtual objects of different body types are usually designed to meet the role experience of game players, and when configuring virtual equipment for virtual objects of different body types, there is a need for virtual objects of different body types to wear the same virtual equipment (for example, virtual clothing).

[0003] In the related art, when the skeletal structures of virtual objects of different body types are different, in order to enable virtual objects of different body types to wear the same virtual equipment, skinning information of the same virtual equipment needs to be made for each body type, which consumes a large amount of time and cost and makes the skinning efficiency of virtual equipment relatively low.

[0004] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY

[0005] The present disclosure provides a virtual equipment processing method, a virtual equipment processing apparatus, a computer readable storage medium and an electronic device, thereby at least partially overcoming the problem of low skinning efficiency of virtual equipment in the related art.

[0006] Other characteristics and advantages of the present disclosure will become apparent from the following detailed description, or will be learned by practice of the present disclosure.

[0007] According to a first aspect of the present disclosure, a virtual equipment processing method is provided, the method comprising: obtaining a skeleton structure corresponding to a source object model and a skeleton structure corresponding to a target object model, the source object model wearing a source equipment model, the source object model and the target object model having the same topology and different body types; establishing a skeletal mapping relationship between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model; and assigning skinning information of the source equipment model to a target equipment model adapted to the body type of the target object model based on the skeletal mapping relationship, so that the target object model wears the target equipment model, the target equipment model having the same style as the source equipment model.

[0008] According to a second aspect of the present disclosure, a virtual equipment processing apparatus is provided, the apparatus comprising: a model obtaining module configured to obtain a skeleton structure corresponding to a source object model and a skeleton structure corresponding to a target object model, the source object model wearing a source equipment model, the source object model having a same topology as the target object model but a different size; a skeleton mapping module configured to establish a skeleton mapping relationship between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model; and an information transferring module configured to assign skin information of the source equipment model to a target equipment model adapted to the size of the target object model based on the skeleton mapping relationship, so that the target object model wears the target equipment model, the target equipment model having a same style as the source equipment model.

[0009] According to a third aspect of the present disclosure, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement any of the virtual equipment processing methods described above.

[0010] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute any of the virtual equipment processing methods described above via execution of the executable instructions.

[0011] The technical solution of the present disclosure has the following beneficial effects:

[0012] In the virtual equipment processing process described above, the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are obtained, the source object model wearing the source equipment model, the source object model having a same topology as the target object model but a different size; the skeleton mapping relationship between the source object model and the target object model is established based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model; and the skin information of the source equipment model is assigned to the target equipment model adapted to the size of the target object model based on the skeleton mapping relationship, so that the target object model wears the target equipment model, the target equipment model having a same style as the source equipment model. By creating the skeleton mapping relationship and transferring the skin information, the present disclosure realizes the adaptive wearing of the virtual equipment, which not only reduces the skin cost of the virtual equipment and improves the skin efficiency of the virtual equipment, but also solves the problem of unstable wearing effect caused by inconsistent object model skeletons, and improves the stability of the wearing effect to a certain extent.

[0013] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0015] Figure 1 A flowchart illustrating a method for processing virtual equipment in this exemplary embodiment is shown.

[0016] Figure 2A This diagram illustrates an example of a local skeleton structure of a source object model in this exemplary embodiment.

[0017] Figure 2B This diagram illustrates an example of a local skeleton structure of a target object model in this exemplary embodiment.

[0018] Figure 3 This illustration shows a flowchart of establishing a skeletal mapping relationship between a source object model and a target object model in this exemplary embodiment;

[0019] Figure 4 This illustration shows a comparative example diagram of an equipment model in this exemplary embodiment;

[0020] Figure 5 This exemplary embodiment illustrates a flowchart of dressing a target object model with clothing.

[0021] Figure 6 An example diagram of a tool integration user interface is shown in this exemplary embodiment;

[0022] Figure 7 This diagram illustrates a structural block diagram of a processing device for a virtual device in this exemplary embodiment.

[0023] Figure 8 An electronic device for implementing the above-described virtual equipment processing method is shown in this exemplary embodiment. Detailed Implementation

[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0025] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0026] In this article, "first," "second," etc., are labels for specific objects, rather than limiting the number or order of objects.

[0027] In related technologies, manually repeating the skinning information of the same virtual equipment makes the skinning of virtual equipment costly and time-consuming, thus affecting the skinning efficiency of virtual equipment.

[0028] In view of one or more of the above-mentioned problems, the exemplary embodiments of this disclosure provide a method for processing virtual equipment, a device for processing virtual equipment, a computer-readable storage medium and an electronic device, which can be applied to equipment wearing scenarios of virtual objects of different body sizes.

[0029] like Figure 1 As shown, an exemplary embodiment of this disclosure provides a flowchart of a method for processing virtual equipment, specifically including the following steps S110 to S130:

[0030] Step S110: Obtain the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body size.

[0031] Step S120: Based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, establish a skeleton mapping relationship between the source object model and the target object model.

[0032] Step S130: Based on the skeletal mapping relationship, the skinning information of the source equipment model is assigned to the target equipment model that is adapted to the body shape of the target object model, so that the target object model wears the target equipment model, and the target equipment model has the same style as the source equipment model.

[0033] In the process of processing the aforementioned virtual equipment, by creating a skeleton mapping relationship and transmitting skinning information, adaptive wearing of the virtual equipment is achieved. This not only reduces the skinning cost of the virtual equipment and improves the skinning efficiency, but also solves the problem of unstable wearing effect caused by inconsistent skeletons in the object model, thus improving the stability of the wearing effect to a certain extent.

[0034] The following sections respectively address... Figure 1 Each step in the process will be explained in detail.

[0035] In step S110, the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are obtained. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body shapes.

[0036] The source object model serves as a reference model, and its type can be characters, animals, etc., without specific limitations. The source equipment model can be pre-made virtual equipment adapted to the body shape of the source object model, and its model category can be clothing, accessories, etc. The target object model has the same topology as the source object model, meaning that the target object model and the source object model have the same number of vertices, and the order of the vertices is consistent. Furthermore, the target object model differs from the source object model in body shape, which can also be referred to as appearance. Taking a character model as an example, the difference in body shape can be reflected in aspects such as height and build.

[0037] In step S120, a skeleton mapping relationship is established between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model.

[0038] The skeletal structure of the source object model refers to the hierarchical relationship of the bones to which the source object model is bound. The skeletal structure of the target object model refers to the hierarchical relationship of the bones to which the target object model is bound. It should be noted that the skeletal structures of the source and target object models can be the same or different.

[0039] For example, such as Figure 2A and Figure 2BAs shown, a local skeleton structure 201 for a source object model and a local skeleton structure 202 for a target object model are provided respectively.

[0040] Bip001 is the built-in bone system in 3ds Max (3D Studio Max, used for 3D modeling, rendering, and animation), which automatically generates the parent bone. "Bip001 R Clavicle", "Bip001 R UpperArm", "bone_coat", and "bone_ribbon" are used to identify bones in different parts or at different levels. Different suffixes in "bone_coat" and "bone_ribbon" represent different bone objects.

[0041] from Figure 2A and Figure 2B As can be seen, the skeletal levels of local skeletal structures 201 and 202 are not the same.

[0042] In one optional implementation, the above-mentioned skeleton mapping relationship is established between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, such as... Figure 3 As shown, this can be achieved through the following steps:

[0043] Step S310: If the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are inconsistent, obtain the skeleton difference between the source object model and the target object model.

[0044] Step S320: Correct the skeletal differences between the source object model and the target object model so that the skeletal structure of the source object model is consistent with the skeletal structure of the target object model.

[0045] Step S330: Establish a skeletal mapping relationship between the source object model and the target object model.

[0046] Figure 3 In the steps shown, by correcting the skeletal differences between the source object model and the target object model, a skeletal mapping relationship can be established between the source object model and the target object model so that the skinning information of the source object model can be accurately transmitted.

[0047] In step S310, if the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are inconsistent, the skeletal differences between the source object model and the target object model are obtained.

[0048] Specifically, it can be determined whether the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are consistent. If they are inconsistent, the skeletal differences between the source object model and the target object model can be obtained. The skeletal differences can be reflected in differences in bone sorting, bone identification, etc.

[0049] In an optional implementation, obtaining the skeletal differences between the source object model and the target object model in step S310 can be achieved through the following steps: comparing the skeletal differences between the skeletal structure corresponding to the source object model and the skeletal structure corresponding to the target object model to obtain the difference skeletal objects of the source object model and the difference skeletal objects of the target object model, so as to use the difference skeletal objects of the source object model and the difference skeletal objects of the target object model to represent the skeletal differences between the source object model and the target object model.

[0050] In this context, the "difference skeleton objects" in the source object model refer to the skeleton objects in the source object model that differ from those in the target object model. Similarly, the "difference skeleton objects" in the target object model refer to the skeleton objects in the target object model that differ from those in the source object model.

[0051] By representing skeletal differences through differential skeletal objects, we can identify skeletal objects that do not have a direct correspondence between the source object model and the target object model, thereby determining the skeletal objects that need to be corrected, in order to solve the problem that the skinning information of the source object model cannot be transmitted due to inconsistencies in the skeleton.

[0052] For example, taking the scapula as an example, the bone identifier name of the source object model is bone_jianjia_01, and the bone identifier name of the target object model is bone_clock_01. The bone identifiers corresponding to the same position in different body object models are different. In this case, bone_clock_01 can be used as the differential bone object of the source object model, and bone_jianjia_01 can be used as the differential bone object of the target object model.

[0053] In one optional implementation, the above-mentioned comparison of the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model to obtain the differing skeleton objects of the source object model and the differing skeleton objects of the target object model can be achieved through the following steps: based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, determine the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model; compare the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model to determine the differing skeleton objects of the source object model and the differing skeleton objects of the target object model.

[0054] It should be noted that different skeletons can be distinguished by different identification information; different identification information indicates that the skeleton objects are also different.

[0055] When comparing the identification information corresponding to each skeletal object in the source object model with the identification information corresponding to each skeletal object in the target object model, the differences between the source object model and the target object model can be determined by comparing the content and order of the identification information. This is convenient, simple, and easy to implement.

[0056] In one optional implementation, based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, the identification information corresponding to each bone object in the source object model and the identification information corresponding to each bone object in the target object model are determined. Specifically, this may include the following steps: determining the identification information corresponding to the bone objects associated with the model vertices of the source object model according to the arrangement order of the model vertices of the source object model; determining the identification information corresponding to the bone objects associated with the model vertices of the target object model according to the arrangement order of the model vertices of the target object model; wherein, the arrangement order of the model vertices of the source object model is consistent with the arrangement order of the model vertices of the target object model.

[0057] Since the source and target object models have the same topological structure, the vertex arrangement order of the source and target object models can be consistent. When the vertex arrangement order of the source and target object models is consistent, the identifier information corresponding to the skeletal objects associated with each vertex in the source and target object models can be sequentially obtained according to this vertex arrangement order. This step, which determines the identifier information corresponding to each skeletal object in the source and target object models in a specific order, helps ensure the accuracy and efficiency of the comparison when comparing the identifier information corresponding to each skeletal object in the source and target object models.

[0058] In step S320, the skeletal differences between the source object model and the target object model are corrected so that the skeletal structure of the source object model is consistent with the skeletal structure of the target object model.

[0059] It should be noted that the correction here can be a substantive skeletal correction, that is, changing the skeletal structure of the target object model to make the skeletal structure of the source object model consistent with that of the target object model. Alternatively, the correction can be semantic, that is, establishing a differential skeletal mapping relationship to create a correspondence between the skeletons of the source object model and the skeleton of the target object.

[0060] In one optional implementation, the above-mentioned correction of the skeletal differences between the source object model and the target object model can be achieved through the following steps: establishing a differential skeletal mapping relationship between the differential skeletal objects of the source object model and the differential skeletal objects of the target object model, so as to semantically correct the skeletal differences between the source object model and the target object model.

[0061] Specifically, based on the functions and uses of the differential skeleton objects in the source object model and the target object model, respectively, a differential skeleton mapping relationship can be established to achieve semantic consistency between the skeleton structure of the source object model and the skeleton structure of the target object model. This allows the skinning information of the source object model to be passed to the target object model without changing the skeleton structure of the target object model.

[0062] In one optional implementation, the establishment of a differential skeleton mapping relationship between the differential skeleton objects of the source object model and the differential skeleton objects of the target object model can be achieved through the following steps: determining a first relative position and a second relative position, wherein the first relative position is the relative position of the differential skeleton object of the source object model in the source object model, and the second relative position is the relative position of the differential skeleton object of the target object model in the target object model; and establishing a differential skeleton mapping relationship based on the first relative position and the second relative position.

[0063] For example, if bone_clock_01 is a differential bone object in the source object model and is located at the shoulder of the source object model, and bone_jianjia_01 is a differential bone object in the target object model and is located at the shoulder of the target object model, then the position of bone_clock_01 in the source object model can be equivalent to the position of bone_jianjia_01 in the target object model. At this time, a differential bone mapping relationship can be established between bone_clock_01 and bone_jianjia_01.

[0064] It should be noted that a non-differentiated skeletal object mapping relationship can be established between the non-differentiated skeletal objects in the source object model and the non-differentiated skeletal objects in the target object model based on the identification information.

[0065] In step S130, based on the skeletal mapping relationship, the skinning information of the source equipment model is assigned to the target equipment model that is adapted to the body shape of the target object model, so that the target object model wears the target equipment model, and the target equipment model has the same style as the source equipment model.

[0066] Among them, the skinning information of the source equipment model refers to the binding information between the source equipment model and the skeleton of the source object model.

[0067] The target equipment model is an equipment model with the same style as the source equipment model but a different size. Specifically, the target equipment model can be an equipment model adapted to the target object model by deforming the source equipment model. For example... Figure 4 As shown, taking the virtual equipment model as an example of the clothing model, a comparison example diagram of equipment models is provided. Equipment model 401 and equipment model 402 have the same style but different sizes, which can be adapted to object models of different body types.

[0068] It should be noted that if the skeleton structure of the source object model is consistent with the skeleton structure of the target object model, the skinning information of the source equipment model can be directly assigned to the target equipment model.

[0069] Taking virtual equipment models as clothing models as an example, such as Figure 5 As shown, a flowchart is provided for dressing a target object model, wherein object model A and object model B have the same topology but different body shapes and inconsistent skeletal structures. The specific steps are as follows:

[0070] Step S510: Obtain object model A and target object model B. Object model A is wearing clothing model a.

[0071] Step S520: According to the arrangement order of the model vertices of object model A, determine the identification information corresponding to the bone objects associated with the model vertices of object model A; according to the arrangement order of the model vertices of object model B, determine the identification information corresponding to the bone objects associated with the model vertices of object model B.

[0072] Step S530: Compare the identification information corresponding to each bone object in object model A with the identification information corresponding to each bone object in object model B to determine the differential bone objects in object model A and object model B. Use the differential bone objects in object model A and object model B to represent the bone differences between object model A and object model B.

[0073] Step S540: Determine the relative position of the differential skeleton object in object model A and the relative position of the differential skeleton object in object model B.

[0074] Step S550: Based on the relative positions of the differential skeleton objects in object model A and the relative positions of the differential skeleton objects in object model B, establish a differential skeleton mapping relationship to semantically correct the skeleton differences between object model A and object model B.

[0075] Step S560: Based on the differential skeleton mapping relationship, obtain the skeleton mapping relationship between the source object model and the target object model;

[0076] Step S570: Based on the skeletal mapping relationship, the skinning information of clothing model a is assigned to clothing model b, which is adapted to the body shape of object model B, so that object model B can wear clothing model b, where clothing model b is the same style of clothing as clothing model a.

[0077] For example, the above-mentioned methods for processing virtual equipment can be integrated into automation tools for users to invoke, such as... Figure 6 As shown, a tool integration user interface 600 is provided. Users can add the max files of the equipment models to be adapted to the "Fashion Max File Set for Adaptation" section. These max files can record model information, skeleton information, skinning information, etc. Users can select the corresponding equipment category in the "Adapted Equipment Category" section. Taking a virtual equipment model as an example of a clothing model, the equipment category can be divided into two categories: male fashion and female fashion. The adaptation mode can be set to "Skinning Adaptation." After the information configuration is complete, users can click the "Start Adaptation" button to execute the above virtual equipment processing method and perform adaptation processing for the same fashion item.

[0078] Figure 7 A processing apparatus 700 for virtual equipment according to an exemplary embodiment of this disclosure is shown. For example... Figure 7 As shown, the processing device 700 for the virtual equipment may include:

[0079] The model acquisition module 710 is used to acquire the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body size.

[0080] The skeleton mapping module 720 is used to establish a skeleton mapping relationship between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model.

[0081] The information transmission module 730 is used to assign the skinning information of the source equipment model to the target equipment model that is adapted to the body shape of the target object model based on the skeleton mapping relationship, so that the target object model can wear the target equipment model, and the target equipment model has the same style as the source equipment model.

[0082] In an optional implementation, based on the aforementioned scheme, the skeleton mapping module 720 includes: a skeleton difference acquisition module, used to acquire the skeleton difference between the source object model and the target object model if the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are inconsistent; a skeleton difference correction module, used to correct the skeleton difference between the source object model and the target object model so that the skeleton structure of the source object model is consistent with the skeleton structure of the target object model; and a mapping relationship establishment module, used to establish a skeleton mapping relationship between the source object model and the target object model.

[0083] In an optional implementation, based on the aforementioned scheme, the skeleton difference acquisition module may include: a difference skeleton object determination module, used to compare the skeleton structure corresponding to the source object model with the skeleton structure corresponding to the target object model to obtain the difference skeleton objects of the source object model and the difference skeleton objects of the target object model, so as to use the difference skeleton objects of the source object model and the difference skeleton objects of the target object model to represent the skeleton difference between the source object model and the target object model.

[0084] In an optional implementation, based on the aforementioned scheme, the differential skeleton object determination module may include: an identification information determination module, used to determine the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model; and an identification information comparison module, used to compare the identification information corresponding to each skeleton object in the source object model with the identification information corresponding to each skeleton object in the target object model to determine the differential skeleton objects in the source object model and the differential skeleton objects in the target object model.

[0085] In an optional implementation, based on the aforementioned scheme, the identification information determination module can be configured to: determine the identification information corresponding to the skeletal objects associated with the model vertices of the source object model according to the arrangement order of the model vertices of the source object model; and determine the identification information corresponding to the skeletal objects associated with the model vertices of the target object model according to the arrangement order of the model vertices of the target object model; wherein the arrangement order of the model vertices of the source object model is consistent with the arrangement order of the model vertices of the target object model.

[0086] In an optional implementation, based on the aforementioned scheme, the skeletal difference correction module includes a difference skeletal mapping relationship establishment module: establishing a difference skeletal mapping relationship between the difference skeletal objects of the source object model and the difference skeletal objects of the target object model, so as to semantically correct the skeletal differences between the source object model and the target object model.

[0087] In an optional implementation, based on the aforementioned scheme, the differential skeleton mapping relationship establishment module can be configured to: determine a first relative position and a second relative position, wherein the first relative position is the relative position of the differential skeleton object of the source object model in the source object model, and the second relative position is the relative position of the differential skeleton object of the target object model in the target object model; and establish a differential skeleton mapping relationship based on the first relative position and the second relative position.

[0088] The specific details of each module in the aforementioned virtual equipment processing device 700 have been described in detail in the method section of the implementation. For any undisclosed details, please refer to the implementation content of the method section, and therefore will not be repeated here.

[0089] Exemplary embodiments of this disclosure also provide a computer-readable storage medium storing a program product capable of implementing the processing method for the virtual device described above. In some possible embodiments, various aspects of this disclosure may also be implemented as a program product including program code that, when run on an electronic device, causes the electronic device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure.

[0090] The program product may be a portable compact disc read-only memory (CD-ROM) and include program code, and may run on an electronic device, such as a personal computer. However, the program product disclosed herein is not limited thereto. In this document, the 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.

[0091] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0093] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF (Radio Frequency), etc., or any suitable combination thereof.

[0094] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0095] Exemplary embodiments of this disclosure also provide an electronic device capable of implementing the above-described virtual device processing method. Referring below... Figure 8 To describe an electronic device 800 according to such an exemplary embodiment of the present disclosure. Figure 8 The electronic device 800 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0096] like Figure 8 As shown, the electronic device 800 can be represented as a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including storage unit 820 and processing unit 810), and a display unit 840.

[0097] The storage unit 820 stores program code, which can be executed by the processing unit 810, causing the processing unit 810 to perform the steps described in the "Exemplary Methods" section above according to various exemplary embodiments of this disclosure.

[0098] Specifically, a program product stored on a computer-readable storage medium enables an electronic device to perform the following steps:

[0099] Obtain the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body size.

[0100] Based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, a skeleton mapping relationship is established between the source object model and the target object model;

[0101] Based on the skeletal mapping relationship, the skinning information of the source equipment model is assigned to the target equipment model that is adapted to the body shape of the target object model, so that the target object model can wear the target equipment model, and the target equipment model has the same style as the source equipment model.

[0102] In one optional implementation, the above-mentioned establishment of a skeletal mapping relationship between the source object model and the target object model based on the skeletal structure corresponding to the source object model and the skeletal structure corresponding to the target object model includes: if the skeletal structure corresponding to the source object model and the skeletal structure corresponding to the target object model are inconsistent, obtaining the skeletal differences between the source object model and the target object model; correcting the skeletal differences between the source object model and the target object model so that the skeletal structure of the source object model is consistent with the skeletal structure of the target object model; and establishing a skeletal mapping relationship between the source object model and the target object model.

[0103] In one optional implementation, the above-mentioned acquisition of the skeletal differences between the source object model and the target object model includes: comparing the skeletal structure corresponding to the source object model with the skeletal structure corresponding to the target object model to obtain the difference skeletal objects of the source object model and the difference skeletal objects of the target object model, so as to use the difference skeletal objects of the source object model and the difference skeletal objects of the target object model to represent the skeletal differences between the source object model and the target object model.

[0104] In one optional implementation, the above-mentioned comparison of the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model to obtain the differing skeleton objects of the source object model and the differing skeleton objects of the target object model includes: determining the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model; comparing the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model to determine the differing skeleton objects of the source object model and the differing skeleton objects of the target object model.

[0105] In one optional implementation, the above-mentioned determination of the identification information corresponding to each bone object in the source object model and the identification information corresponding to each bone object in the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model includes: determining the identification information corresponding to the bone objects associated with the model vertices of the source object model according to the arrangement order of the model vertices of the source object model; determining the identification information corresponding to the bone objects associated with the model vertices of the target object model according to the arrangement order of the model vertices of the target object model; wherein the arrangement order of the model vertices of the source object model is consistent with the arrangement order of the model vertices of the target object model.

[0106] In one optional implementation, the above-mentioned correction of the skeletal differences between the source object model and the target object model includes: establishing a differential skeletal mapping relationship between the differential skeletal objects of the source object model and the differential skeletal objects of the target object model, so as to semantically correct the skeletal differences between the source object model and the target object model.

[0107] In one optional implementation, establishing a differential skeleton mapping relationship between the differential skeleton objects of the source object model and the differential skeleton objects of the target object model includes: determining a first relative position and a second relative position, wherein the first relative position is the relative position of the differential skeleton object of the source object model in the source object model, and the second relative position is the relative position of the differential skeleton object of the target object model in the target object model; and establishing a differential skeleton mapping relationship based on the first relative position and the second relative position.

[0108] In the process of processing the aforementioned virtual equipment, by creating a skeleton mapping relationship and transmitting skinning information, adaptive wearing of the virtual equipment is achieved. This not only reduces the skinning cost of the virtual equipment and improves the skinning efficiency, but also solves the problem of unstable wearing effect caused by inconsistent skeletons in the object model, thus improving the stability of the wearing effect to a certain extent.

[0109] Storage unit 820 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 821 and / or cache memory 822, and may further include a read-only memory (ROM) 823.

[0110] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, 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.

[0111] Bus 830 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0112] Electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with the electronic device 800, and / or with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed through input / output (I / O) interface 850. Furthermore, electronic device 800 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 network adapter 860. Figure 8 As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830. It should be understood that, although... Figure 8 As not shown in the diagram, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.

[0113] 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 non-volatile 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 method according to the exemplary embodiments of this disclosure.

[0114] Furthermore, the above figures are merely illustrative representations of the processes included in the methods according to exemplary embodiments of this disclosure, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0115] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to exemplary embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0116] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0117] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for processing virtual equipment, characterized in that, The method includes: Obtain the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body size. Based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, a skeleton mapping relationship is established between the source object model and the target object model; Based on the skeletal mapping relationship, the skinning information of the source equipment model is assigned to the target equipment model that is adapted to the body shape of the target object model, so that the target object model wears the target equipment model, and the target equipment model has the same style as the source equipment model.

2. The method according to claim 1, characterized in that, The step of establishing a skeletal mapping relationship between the source object model and the target object model based on the skeletal structure corresponding to the source object model and the skeletal structure corresponding to the target object model includes: If the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model are inconsistent, obtain the skeletal differences between the source object model and the target object model; Correct the skeletal differences between the source object model and the target object model so that the skeletal structure of the source object model is consistent with the skeletal structure of the target object model; Establish a skeletal mapping relationship between the source object model and the target object model.

3. The method according to claim 2, characterized in that, The step of obtaining the skeletal differences between the source object model and the target object model includes: The skeleton structure corresponding to the source object model is compared with the skeleton structure corresponding to the target object model to obtain the difference skeleton objects of the source object model and the target object model. The difference skeleton objects of the source object model and the target object model are used to represent the skeletal differences between the source object model and the target object model.

4. The method according to claim 3, characterized in that, The step of comparing the skeleton structure corresponding to the source object model with the skeleton structure corresponding to the target object model to obtain the differing skeleton objects of the source object model and the differing skeleton objects of the target object model includes: Based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model, determine the identification information corresponding to each skeleton object in the source object model and the identification information corresponding to each skeleton object in the target object model; The identification information corresponding to each skeletal object in the source object model is compared with the identification information corresponding to each skeletal object in the target object model to determine the different skeletal objects in the source object model and the different skeletal objects in the target object model.

5. The method according to claim 4, characterized in that, The step of determining the identification information corresponding to each skeletal object in the source object model and the corresponding skeletal object in the target object model based on the skeletal structure corresponding to the source object model includes: Based on the arrangement order of the model vertices of the source object model, determine the identification information corresponding to the skeletal objects associated with the model vertices of the source object model; Based on the arrangement order of the model vertices of the target object model, determine the identification information corresponding to the skeletal objects associated with the model vertices of the target object model; The vertex arrangement order of the source object model is consistent with the vertex arrangement order of the target object model.

6. The method according to claim 2, characterized in that, The correction of the skeletal differences between the source object model and the target object model includes: A differential skeleton mapping relationship is established between the differential skeleton objects of the source object model and the differential skeleton objects of the target object model to semantically correct the skeletal differences between the source object model and the target object model.

7. The method according to claim 6, characterized in that, Establishing a differential skeleton mapping relationship between the differential skeleton objects of the source object model and the differential skeleton objects of the target object model includes: Determine a first relative position and a second relative position, wherein the first relative position is the relative position of the differential skeleton object of the source object model in the source object model, and the second relative position is the relative position of the differential skeleton object of the target object model in the target object model; Based on the first relative position and the second relative position, the differential skeleton mapping relationship is established.

8. A processing device for virtual equipment, characterized in that, The device includes: The model acquisition module is used to acquire the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The source object model is equipped with an active equipment model. The source object model and the target object model have the same topology but different body size. The skeleton mapping module is used to establish a skeleton mapping relationship between the source object model and the target object model based on the skeleton structure corresponding to the source object model and the skeleton structure corresponding to the target object model. The information transmission module is used to assign the skinning information of the source equipment model to the target equipment model that is adapted to the body shape of the target object model based on the skeleton mapping relationship, so that the target object model can wear the target equipment model, and the target equipment model has the same style as the source equipment model.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.

10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1 to 7 by executing the executable instructions.

Citation Information

Patent Citations

  • Skin processing method, device and equipment for virtual object, medium and program product

    CN114241100A

  • Information processing method and device, readable storage medium and electronic device

    CN115115814A