Method, device, electronic device and storage medium for updating virtual model

By comparing and adjusting the pose differences of virtual models, an updated virtual model appearance is generated, solving the problem of low efficiency in updating the appearance of virtual objects in games, achieving synchronization with serialized multimedia content, and improving the user experience.

CN116392809BActive Publication Date: 2026-06-02GUANGZHOU BOGUAN TELECOMM TECH LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU BOGUAN TELECOMM TECH LTD
Filing Date
2023-03-28
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, the appearance of virtual objects in games is updated inefficiently and cannot be synchronized with the appearance of virtual objects in serialized multimedia content, resulting in a reduced user experience.

Method used

By obtaining a second virtual model as a reference model, comparing the pose differences between the first and second virtual models, making adjustments based on the difference areas, generating an updated virtual model, and applying its appearance to the first virtual model to make it consistent with the appearance in the serialized multimedia content.

Benefits of technology

It improves the update efficiency of virtual models in the game, making the appearance of virtual models synchronize with the appearance in serialized multimedia content, thus enhancing the user's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116392809B_ABST
    Figure CN116392809B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and device for updating a virtual model, an electronic device and a storage medium. The embodiments of the present application can be applied to a game, the game including a first virtual model, the first virtual model being controlled by a terminal device, a second virtual model being obtained, the second virtual model being a reference model of the first virtual model, the second model posture of the second virtual model being made same as the first model posture of the first virtual model, the second model appearance of the second virtual model being updated, and the second model appearance of the updated second virtual model being able to replace the first model appearance of the first virtual model. In the embodiments of the present application, the updating efficiency of the virtual model in the game is improved, and the appearance of the virtual model is changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically to a method, apparatus, electronic device, and storage medium for updating a virtual model. Background Technology

[0002] When a terminal device runs a game, it can display a game scene. The game scene contains virtual objects that reference virtual models. The same virtual model can be referenced by multiple virtual objects. The game scene can be composed of virtual objects such as virtual characters, buildings, terrain, plants and animals.

[0003] However, some games are based on serialized multimedia content, such as serialized videos or comics. The appearance of virtual objects in this content may change as it is serialized. Since games are created in advance, the appearance of virtual objects in the game may differ from that in the serialized multimedia content. Currently, to update the appearance of virtual objects in the game, art designers need to refer to the appearance of virtual objects in the serialized multimedia content and recreate the virtual models referenced by the virtual objects to change their appearance, which is inefficient. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and storage medium for updating virtual models, which can improve the update efficiency of virtual models in games and change the appearance of the virtual models.

[0005] This application provides a method for updating a virtual model, applied to a game. The game includes a first virtual model, which is controlled via a terminal device. The method includes:

[0006] Obtain a second virtual model, which serves as a reference model for the first virtual model;

[0007] Compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0008] Based on the first target region, the second target region is adjusted to obtain the updated second virtual model. The pose of the updated second virtual model is the same as the pose of the first model.

[0009] The updated appearance of the second virtual model is used to update the appearance of the first virtual model, so as to obtain the updated first virtual model.

[0010] This application also provides an apparatus for updating the appearance of a virtual model. The apparatus is applied to a game, the game including a first virtual model, and the virtual object corresponding to the first virtual model is controlled through a terminal device, including:

[0011] The acquisition unit is used to acquire the second virtual model, which is a reference model for the first virtual model;

[0012] The difference determination unit is used to compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0013] The model adjustment unit is used to adjust the second target region based on the first target region to obtain the updated second virtual model. The second model pose of the updated second virtual model is the same as the first model pose.

[0014] The model update unit is used to update the first model appearance of the first virtual model by adopting the updated second model appearance of the second virtual model, so as to obtain the updated first virtual model.

[0015] This application also provides an electronic device, including a memory storing multiple instructions; a processor loads instructions from the memory to execute steps in any of the methods for updating a virtual model provided in this application.

[0016] This application also provides a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to perform steps in any of the methods for updating a virtual model provided in this application.

[0017] This application embodiment can be applied to a game, which includes a first virtual model. The first virtual model is controlled by a terminal device and includes: acquiring a second virtual model, the second virtual model being a reference model of the first virtual model; comparing the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose, wherein the pose difference in the region of the first model pose is denoted as a first target region, and the pose difference in the region of the second model pose is denoted as a second target region; adjusting the second target region based on the first target region to obtain an updated second virtual model, the second model pose of the updated second virtual model being the same as the first model pose; and updating the first model appearance of the first virtual model using the second model appearance of the updated second virtual model to obtain an updated first virtual model.

[0018] In this application, the second model pose of the second virtual model can be made the same as the first model pose of the first virtual model to update the appearance of the second virtual model. This allows the updated appearance of the second virtual model to replace the appearance of the first virtual model, thereby improving the update efficiency of virtual models in the game and changing the appearance of the virtual model. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1a This is a schematic diagram illustrating a scenario of the method for updating a virtual model provided in an embodiment of this application;

[0021] Figure 1b This is a flowchart illustrating the method for updating a virtual model provided in an embodiment of this application;

[0022] Figure 2 This is a flowchart illustrating the application of the method for updating virtual models provided in this application to a game server scenario with a running serialized anime as the background;

[0023] Figure 3 This is a schematic diagram of the structure of the device for updating the virtual model provided in the embodiments of this application;

[0024] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] Before providing a detailed explanation of the embodiments of this application, some terms involved in the embodiments of this application will be explained.

[0027] The game scene refers to the game environment displayed (or provided) by the application when it runs on the terminal. This game scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. The game scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional. This application embodiment does not limit the dimension of the game scene. For example, the game scene may include the sky, land, and ocean, and the land may include environmental elements such as deserts and cities. The user can control the game character to move within this game scene.

[0028] This application provides a method, apparatus, electronic device, and storage medium for updating a virtual model.

[0029] Specifically, the device for updating the appearance of the virtual model can be integrated into an electronic device, such as a terminal or server. The terminal can be a mobile phone, tablet, smart Bluetooth device, laptop, or personal computer (PC); the server can be a single server or a server cluster consisting of multiple servers.

[0030] In some embodiments, the apparatus for updating the appearance of a virtual model can also be integrated into multiple electronic devices. For example, the apparatus for updating the appearance of a virtual model can be integrated into multiple servers, and the method for updating the virtual model of this application can be implemented by multiple servers.

[0031] In some embodiments, the server may also be implemented as a terminal.

[0032] Considering that the appearance of virtual objects in the game may differ from that of virtual objects in the serialized multimedia content, it may be difficult for users to immerse themselves in the game based on the serialized multimedia content after watching it.

[0033] To improve the efficiency of updating virtual models in games and ensure that the appearance of virtual objects in games set against the backdrop of serialized multimedia content changes in the same way as the virtual objects in the serialized multimedia content, thereby enhancing the user's gaming experience, this application proposes a method for updating virtual models, referencing... Figure 1aThe electronic device can acquire a second virtual model, which serves as a reference model for the first virtual model; compare the first model pose of the first virtual model with the second model pose of the second virtual model to determine the pose difference between the first and second model poses, wherein the pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region; based on the first target region, the second target region is adjusted to obtain an updated second virtual model, the second model pose of the updated second virtual model being the same as the first model pose; and use the updated second model appearance of the second virtual model to update the first model appearance of the first virtual model.

[0034] Specifically, the second model pose of the second virtual model can be made the same as the first model pose of the first virtual model to update the appearance of the second virtual model. This allows the updated appearance of the second virtual model to replace the appearance of the first virtual model, thereby improving the update efficiency of virtual models in the game and changing the appearance of the virtual model.

[0035] The following sections provide detailed descriptions of each example. It should be noted that the sequence numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0036] In this embodiment, a method for updating a virtual model is provided. The method is applied to a game, which includes a first virtual model. The first virtual model is controlled via a terminal device, such as... Figure 1b As shown, the specific process of this method for updating the virtual model can be as follows:

[0037] 110. Obtain the second virtual model, which serves as a reference model for the first virtual model.

[0038] The game is created based on serialized multimedia content. For example, serialized multimedia content can be serialized anime, comics, TV series, or movies.

[0039] The first virtual model is a virtual model created by referencing virtual objects in the serialized multimedia content. After being instantiated, this first virtual model is set in the game scene. The first virtual model is associated with the game's control logic, so that the virtual objects corresponding to the first virtual model are controlled by this control logic. For example, the virtual objects in the serialized multimedia content can be virtual characters, buildings, terrain, plants, animals, etc., and the first virtual model can be a virtual model corresponding to those virtual characters, buildings, terrain, plants, animals, etc.

[0040] The virtual object corresponding to the first virtual model is the virtual object in the game scene after the first virtual model is instantiated. For example, the virtual object corresponding to the first virtual model can be a virtual character (PlayerCharacter) operated by the user, while the virtual object corresponding to the second virtual model can also be a virtual object not operated by the user. Among them, the virtual objects not operated by the user can be virtual characters, buildings, terrain, plants and animals, etc.

[0041] The second virtual model is the virtual model corresponding to the virtual object referenced when setting the first virtual model in the game. The virtual object corresponding to the second virtual model has a continuous storyline in the serialized multimedia content.

[0042] In some embodiments, to synchronize the virtual model in the game with virtual objects in serialized multimedia content, obtaining a second virtual model includes:

[0043] In response to updates to the appearance of the second virtual model in the serialized multimedia content, the updated second virtual model is received from the serialized multimedia content.

[0044] The updated second virtual model may differ in appearance from the first virtual model, specifically in changes to virtual clothing, appearance color, etc.

[0045] 120. Compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0046] Here, the first model pose refers to the limb shape of the first virtual model. For example, when the first virtual model is a virtual character, the first model pose can be the position and size of the virtual character's body, limbs, etc.

[0047] The pose of the second model represents the limb shape of the second virtual model. For example, when the first virtual model is a virtual character, the pose of the first model can be the position and size of the virtual character's body, limbs, etc.

[0048] Posture difference refers to the difference between the limb shape of the first virtual model and the limb shape of the second virtual model. For example, posture difference can be the difference between the position of the limbs of the first virtual model relative to the body and the position of the limbs of the second virtual model relative to the body, the difference between the size of the limbs of the first virtual model and the size of the limbs of the second virtual model, the difference between the body proportions of the first virtual model and the body proportions of the second virtual model, and so on.

[0049] The first target region is the region corresponding to the pose difference in the first virtual model.

[0050] The second target region is the region corresponding to the pose difference in the first virtual model.

[0051] For example, the first model pose a of the first virtual model A and the second model pose b of the second virtual model B are compared. If the first model pose a and the second model pose b are the same, then there is no pose difference. If the first model pose a and the second model pose b have multiple differences, then there are multiple pose differences. Each pose difference corresponds to a first target region and a second target region. The first target region and the second target region correspond one-to-one according to the pose differences.

[0052] In some embodiments, considering the complexity of the model structures of the first and second virtual models, which makes it inconvenient to analyze the model poses of the first and second virtual models, in order to avoid the influence of model structure complexity on the analysis of model poses, the first model pose of the first virtual model and the second model pose of the second virtual model are compared to determine the pose difference between the first and second model poses, including:

[0053] The first virtual model is divided into at least two first regions according to a preset division method, and the second virtual model is divided into at least two second regions according to a preset division method, wherein the first region and the second region correspond one-to-one;

[0054] Based on the one-to-one correspondence between the first region and the second region, the pose of the first model of the first virtual model and the pose of the second model of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose.

[0055] The preset division method is a pre-set way of dividing the virtual model, which can divide the first virtual model and the second virtual model into multiple regions respectively.

[0056] The first region is a portion of the first virtual model, wherein all the first regions constitute the first virtual model.

[0057] The second region is a portion of the second virtual model, and all of the second regions constitute the second virtual model.

[0058] For example, the first virtual model A is divided into two first regions according to a preset division method, specifically first region 1 and first region 2. The second virtual model B is divided into two second regions according to a preset division method, specifically second region 1 and second region 2. Since the first virtual model and the second virtual model use the same preset division method, the first regions divided by the first virtual model and the second regions divided by the second virtual model can be matched one-to-one according to the preset division method, that is, first region 1 and second region 1 correspond one-to-one, and first region 2 and second region 2 correspond one-to-one.

[0059] In some embodiments, considering that the same functional region has different positions in the first virtual model and the second virtual model, resulting in different poses for the first model and the second model, in order to analyze the positional differences between the first and second model poses, based on the one-to-one correspondence between the first and second regions, the poses of the first and second models are compared to determine the pose differences, including:

[0060] Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to the preset reference region associated with the first region, and the position of the second region is the position of the second region relative to the preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region are in one-to-one correspondence.

[0061] Determine the regional location differences between the first and second region locations;

[0062] Based on the differences in regional location, the pose difference between the first model pose and the second model pose is determined.

[0063] The first region position is used to locate the position of the first region on the first virtual model. For example, the first region can be the hand area of ​​a virtual character, then the first region position is the position of the hand area on the first virtual model.

[0064] The second region position is used to locate the position of the second region on the second virtual model. For example, the second region could be the hand area of ​​a virtual character, then the second region position is the position of the hand area on the second virtual model.

[0065] The preset reference area associated with the first region is the area that needs to be referenced to determine the position of the first region. For example, the preset reference area associated with the first region can be a region on the first virtual model, specifically the head, body, etc. on the first virtual model, or the preset reference area associated with the first region can be the center line on the first virtual model, and so on.

[0066] The preset reference area associated with the second region is the area that needs to be referenced to determine the location of the second region. For example, the preset reference area associated with the second region can be a region on the second virtual model, specifically the head, body, etc. on the first virtual model, or the preset reference area associated with the second region can be the center line on the second virtual model, and so on.

[0067] The regional location difference is used to indicate the difference between the position of the first region on the first virtual model and the position of the second region on the second virtual model when there is a one-to-one correspondence between the first region and the second region.

[0068] For example, the first region is the right hand region on the first virtual model, and the second region is the left hand region on the second virtual model. The position of the first region is 30° relative to the body of the first virtual model, and the position of the second region is 20° relative to the body of the second virtual model. The difference in the position of the regions is 10°.

[0069] In some embodiments, considering that the same functional region has different dimensions in the first virtual model and the second virtual model, resulting in different poses for the first model and the second model, in order to analyze the dimensional differences between the first and second model poses, based on the one-to-one correspondence between the first and second regions, the poses of the first and second models are compared to determine the pose differences, including:

[0070] Based on the one-to-one correspondence between the first region and the second region, determine the size of the first region and the size of the second region. The size of the first region is the size of the first region, and the size of the second region is the size of the second region.

[0071] Determine the difference in region dimensions between the first region size and the second region size;

[0072] Based on the difference in region size, the pose difference between the first model pose and the second model pose is determined.

[0073] The size of the first region is the size of the first region. For example, if the first region is the right-hand region of the first virtual model, then the size of the first region is the size of the right-hand region.

[0074] The size of the second region is the size of the second region corresponding to the first region. For example, the first region is the right-hand side region of the first virtual model, and the second region corresponding to the first region is the right-hand side region of the second virtual model; the size of the second region is the right-hand side region of the second virtual model. The difference in region size is the difference between the size of the first region and the size of the second region. For example, the difference between the size of the right-hand side region of the first virtual model and the size of the right-hand side region of the second virtual model.

[0075] In some embodiments, considering the irregular shapes of the first region and the second region, to facilitate determining the region sizes of the first region and the second region, the sizes of the first region and the second region are determined based on a one-to-one correspondence, including:

[0076] Based on the one-to-one correspondence between the first region and the second region, obtain the first bounding box of the first region and the second bounding box of the second region. The first bounding box and the second bounding box have the same shape.

[0077] Use the size of the outer frame of the first outer frame as the size of the first region;

[0078] Use the outer frame size of the second outer frame as the size of the second region.

[0079] The first bounding box is a bounding box that surrounds the first region according to a preset shape. For example, the preset shape can be a rectangle, a parallelogram, a circle, etc.

[0080] The second outer frame is an outer frame that surrounds the second region according to a preset shape. The outer frame size of the second outer frame may be the same as or different from that of the first outer frame.

[0081] For example, the first region is the right-hand side region of the first virtual model, the second region is the right-hand side region of the second virtual model, the first bounding box is used to frame the right-hand side region of the first virtual model, the second bounding box is used to frame the right-hand side region of the second virtual model, the bounding box size of the first bounding box is the size of the first region, and the bounding box size of the second bounding box is the size of the second region.

[0082] In some embodiments, to facilitate the correspondence between regions in the first virtual model and regions in the second virtual model for analyzing the differences between the first and second virtual models, the first virtual model includes multiple first regions, each carrying a first region identifier; the second virtual model includes multiple second regions, each carrying a second region identifier; the first region identifier and the second region identifier have a corresponding relationship; the first model appearance of the first virtual model is divided into at least two first regions according to a preset division method; and the second model appearance of the second virtual model is divided into at least two second regions according to a preset division method, including:

[0083] Based on the first region identifier, the first virtual model is divided to obtain at least two first regions;

[0084] Based on the second region identifier, the second virtual model is divided to obtain at least two second regions;

[0085] Based on the correspondence, the first region and the second region are determined to be in a one-to-one correspondence.

[0086] The first region identifier can be an identifier recorded according to the regional division of each part of the first virtual model. For example, the first region identifier can be a number, a letter, a region name, etc.

[0087] The second region identifier can be an identifier recorded according to the regional division of each part of the second virtual model. For example, the second region identifier can also be a number, a letter, a region name, etc.

[0088] Since the first virtual model in the game is set with reference to the second virtual model, meaning that the first and second virtual models have the same regional division of labor, there is a corresponding relationship between the first region identifier and the second region identifier.

[0089] If the first region identifier and the second region identifier are numbers, then the first region of the first virtual model and the second region of the second virtual model carry their respective corresponding numbers. For example, the head region of the first virtual model carries the first region identifier 1, the body region carries the first region identifier 2, etc., and the head region of the second virtual model carries the second region identifier 1, the body region carries the second region identifier 1, etc. There is a correspondence between the first region identifier 1 and the second region identifier 1, which corresponds the head region (first region) of the first virtual model and the head region (first region) of the second virtual model. There is also a correspondence between the first region identifier 2 and the second region identifier 2, which corresponds the body region (first region) of the first virtual model and the body region (second region) of the second virtual model.

[0090] In some embodiments, considering that the game is created against the backdrop of serialized multimedia content, in order to synchronize the appearance of virtual objects in the game with the appearance of virtual objects in the serialized multimedia content, a second virtual model is associated with the serialized multimedia content. The pose of the first model of the first virtual model and the pose of the second model of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0091] Obtain the time period in which the second virtual model appears in the serialized multimedia content;

[0092] During the time period, compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose.

[0093] Among them, serialized multimedia content refers to continuously updated multimedia content. For example, serialized multimedia content can be serialized animation, serialized comics, serialized TV series, serialized movies, etc.

[0094] The second virtual model can act according to the storyline within the serialized multimedia content. The appearance time period refers to the time during which the second virtual model appears within the serialized multimedia content. For example, there is a virtual character A in the serialized multimedia content. Virtual character A includes multiple character appearances, specifically appearance 1, appearance 2, etc. Appearance 1 and appearance 2 each have corresponding appearance time periods within the serialized multimedia content. Appearance 1 corresponds to a second virtual model 1, and appearance 2 corresponds to a second virtual model 2. First virtual model 1 and second virtual model 2 are different. Based on the appearance time periods, the first model posture of the first virtual model and the second model posture of the second virtual model are compared.

[0095] 130. Based on the first target region, the second target region is adjusted to obtain the updated second virtual model. The pose of the updated second virtual model is the same as the pose of the first model.

[0096] The updated second virtual model has the same pose as the first virtual model, meaning its shape is identical. For example, if the first target area is defined as a 30° angle between the virtual right hand and virtual body of the first virtual model, and the second target area is defined as a 20° angle between the virtual right hand and virtual body of the second virtual model, then adjusting the second target area based on the first target area will result in a 30° angle between the virtual right hand and virtual body of the second virtual model.

[0097] 140. Using the updated appearance of the second virtual model, update the appearance of the first virtual model to obtain the updated first virtual model.

[0098] The appearance of the second model can be a texture that decorates the second virtual model. Specifically, the appearance of the second model can include virtual clothing, virtual accessories, virtual makeup, etc.

[0099] The appearance of the first model can be a texture that decorates the first virtual model. Specifically, the appearance of the first model can include virtual clothing, virtual accessories, virtual makeup and hair.

[0100] The updated first virtual model has the same appearance as the updated second virtual model. For example, the first virtual model has the same virtual clothing, accessories, and makeup as the second virtual model.

[0101] In some embodiments, considering that the appearance colors of the first model appearance and the second model appearance are different, in order to make the first virtual model and the second virtual model have the same appearance, the first virtual model includes a first model appearance, and the second virtual model includes a second model appearance. The updated first model appearance of the first virtual model is updated using the updated second model appearance of the second virtual model to obtain an updated first virtual model, including:

[0102] Based on the one-to-one correspondence between the first region and the second region, the appearance color of the first model and the appearance color of the second model are compared to determine the appearance color difference between the first model and the second model. The area of ​​the appearance color difference in the first model is recorded as the first color region, and the area of ​​the appearance color difference in the second model is recorded as the second color region.

[0103] The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

[0104] The appearance color difference refers to the color difference between the appearance color of the first model and the appearance color of the second model. For example, the appearance of the first model includes the skin, makeup, and hair of the first virtual model, and the appearance of the second model includes the skin, makeup, and hair of the second virtual model. The appearance color difference can include the difference between the skin tone of the first virtual model and the skin tone of the second virtual model, the difference between the hair color of the first virtual model and the hair color of the second virtual model, etc.

[0105] The first color area is the area where the appearance color difference corresponds to the appearance of the first model.

[0106] The second color area is the area where the appearance color difference corresponds to the appearance of the second model.

[0107] For example, if the first model pose of the first virtual model and the second model pose of the second virtual model are the same, the appearance of the first model (makeup, hair, skin color, etc.) of the first virtual model and the appearance of the second model (makeup, hair, skin color, etc.) of the second virtual model are different. In order to make the appearance of the first model synchronize with the appearance of the second model, the first color area is adjusted by the second color area corresponding to the appearance color difference, so that the first virtual appearance of the first virtual model can be the same as the second virtual appearance of the second virtual model.

[0108] In some embodiments, in order to analyze the difference between the appearance colors of the first virtual model and the second virtual model, based on a one-to-one correspondence between the first and second regions, the appearance colors of the first and second models are compared to determine the difference in appearance colors between the first and second models, including:

[0109] Based on the one-to-one correspondence between the first region and the second region, determine the first color value and the second color value. The first color value is the color value of the first region, and the second color value is the color value of the second region.

[0110] Determine the color difference between the first color value and the second color value;

[0111] The color difference between the first model and the second model is determined based on the color difference.

[0112] The first color value is the color value of the pixels that make up the first region. For example, the first color value is the RGB value of the first region.

[0113] The second color value is the color value of the pixels that make up the second region. For example, the second color value is the RGB value of the second region. The color difference is the difference between the first color value and the second color value.

[0114] For example, based on the one-to-one correspondence between the first region and the second region, that is, the hair region of the first virtual model corresponds to the hair region of the second virtual model, the first color value of the hair region of the first virtual model is X, and the second color value of the hair region of the second virtual model is Z, then the color difference = XZ.

[0115] In some embodiments, considering that the server running serialized multimedia content may send the second virtual model to the server running the game in advance, after the server running the game updates the first virtual model using the second virtual model, in order to make the updated first virtual model and the second virtual model appear synchronously, and since the second virtual model is associated with serialized multimedia content, after updating the first model appearance of the first virtual model using the second model appearance of the updated second virtual model to obtain the updated first virtual model, the method further includes:

[0116] Obtain the time period in which the second virtual model appears in the serialized multimedia content;

[0117] Based on the time period in which the first virtual model appears, the updated first virtual model is used to replace the first virtual model.

[0118] For example, after the server running the serialized multimedia content sends the second virtual model to the server running the game, the second virtual model carries the time period in the serialized multimedia content. After the time period is reached, the first virtual model in the game is replaced with the updated first virtual model.

[0119] As can be seen from the above, the embodiments of this application can be applied to games. The game includes a first virtual model, which is controlled by a terminal device. The process includes: acquiring a second virtual model, which serves as a reference model for the first virtual model; comparing the first model pose of the first virtual model with the second model pose of the second virtual model to determine the pose difference between the first and second model poses, wherein the pose difference in the region of the first model pose is denoted as a first target region, and the pose difference in the region of the second model pose is denoted as a second target region; adjusting the second target region based on the first target region to obtain an updated second virtual model, wherein the second model pose of the updated second virtual model is the same as the first model pose; and updating the first model appearance of the first virtual model using the updated second model appearance.

[0120] Therefore, this solution allows the second model pose of the second virtual model to be the same as the first model pose of the first virtual model, thereby updating the appearance of the second virtual model. This allows the updated appearance of the second virtual model to replace the appearance of the first virtual model, thus improving the update efficiency of virtual models in the game and changing the appearance of the virtual model.

[0121] The method described in the above embodiments will be further described in detail below.

[0122] In this embodiment, a game server running a serialized anime will be used as an example. The game includes a first virtual model, which is controlled by a terminal device. The method of this application embodiment will be described in detail.

[0123] like Figure 2 As shown, the specific process of a method for updating a virtual model is as follows:

[0124] 210. Obtain the second virtual model sent by the running serialized animation server. The second virtual model carries the appearance time period, which is the time period during which the second virtual model appears in the serialized animation. The second virtual model is the reference model of the first virtual model.

[0125] 220. Divide the first virtual model into at least two first regions according to a preset division method, and divide the second virtual model into at least two second regions according to a preset division method, wherein the first region and the second region correspond one-to-one.

[0126] 230. Based on the one-to-one correspondence between the first region and the second region, compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is recorded as the first target region, and the pose difference in the region of the second model pose is recorded as the second target region.

[0127] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0128] Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to the preset reference region associated with the first region, and the position of the second region is the position of the second region relative to the preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region are in one-to-one correspondence.

[0129] Determine the regional location differences between the first and second region locations;

[0130] Based on the differences in regional location, the pose difference between the first model pose and the second model pose is determined.

[0131] For example, in a serialized animation: the hand area (second region) of the second virtual model is 20° relative to the body area (preset reference area associated with the second region); in a game: the hand area (first region) of the first virtual model is 30° relative to the body area (preset reference area associated with the first region), then the difference in region position is 10°.

[0132] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0133] Based on the one-to-one correspondence between the first region and the second region, determine the size of the first region and the size of the second region. The size of the first region is the size of the first region, and the size of the second region is the size of the second region.

[0134] Determine the difference in region dimensions between the first region size and the second region size;

[0135] Based on the difference in region size, the pose difference between the first model pose and the second model pose is determined.

[0136] 240. Based on the first target region, the second target region is adjusted to obtain the updated second virtual model. The pose of the updated second virtual model is the same as the pose of the first model.

[0137] 250. Using the updated appearance of the second virtual model, update the appearance of the first virtual model to obtain the updated first virtual model.

[0138] In some embodiments, updating the first model appearance of the first virtual model using the updated second model appearance of the second virtual model includes:

[0139] Based on the one-to-one correspondence between the first region and the second region, compare the appearance of the first model of the first virtual model and the appearance of the second model of the second virtual model to determine the color difference between the appearance of the first model and the appearance of the second model.

[0140] The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

[0141] 260, during the time period in which the first virtual model appears, replace the first virtual model in the game with the updated first virtual model.

[0142] For example, after the serialized anime server sends the second virtual model to the game server, the second virtual model carries the time period in the serialized anime. After the time period is reached, the first virtual model in the game is replaced with the updated first virtual model.

[0143] As can be seen from the above, the first virtual appearance of the first virtual model and the second virtual appearance of the second virtual model on the anime side can be synchronized, which can improve the user's gaming experience and sense of belonging to the anime theme.

[0144] To better implement the above methods, this application also provides an apparatus for updating the appearance of a virtual model. This apparatus can be integrated into an electronic device, such as a terminal or server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, or personal computer; the server can be a single server or a server cluster consisting of multiple servers.

[0145] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the device for updating the appearance of a virtual model as specifically integrated into an electronic device.

[0146] For example, such as Figure 3 As shown, the device for updating the appearance of a virtual model is applied to a game. The game includes a first virtual model, which is controlled by a terminal device. The device for updating the appearance of the virtual model may include an acquisition unit 310, a difference determination unit 320, a model adjustment unit 330, and a model update unit 340, as follows:

[0147] (I) Acquisition Unit 310.

[0148] The acquisition unit 310 is used to acquire a second virtual model, which is a reference model for the first virtual model.

[0149] (II) Difference Determination Unit 320.

[0150] The difference determination unit 320 is used to compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0151] In some embodiments, comparing the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose includes:

[0152] The first virtual model is divided into at least two first regions according to a preset division method, and the second virtual model is divided into at least two second regions according to a preset division method, wherein the first region and the second region correspond one-to-one;

[0153] Based on the one-to-one correspondence between the first region and the second region, the pose of the first model of the first virtual model and the pose of the second model of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose.

[0154] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0155] Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to the preset reference region associated with the first region, and the position of the second region is the position of the second region relative to the preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region are in one-to-one correspondence.

[0156] Determine the regional location differences between the first and second region locations;

[0157] Based on the differences in regional location, the pose difference between the first model pose and the second model pose is determined.

[0158] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0159] Based on the one-to-one correspondence between the first region and the second region, determine the size of the first region and the size of the second region. The size of the first region is the size of the first region, and the size of the second region is the size of the second region.

[0160] Determine the difference in region dimensions between the first region size and the second region size;

[0161] Based on the difference in region size, the pose difference between the first model pose and the second model pose is determined.

[0162] In some embodiments, determining the size of the first region and the size of the second region based on a one-to-one correspondence between the first region and the second region includes:

[0163] Based on the one-to-one correspondence between the first region and the second region, obtain the first bounding box of the first region and the second bounding box of the second region. The first bounding box and the second bounding box have the same shape.

[0164] Use the size of the outer frame of the first outer frame as the size of the first region;

[0165] Use the outer frame size of the second outer frame as the size of the second region.

[0166] In some embodiments, the first virtual model includes multiple first regions, each carrying a first region identifier; the second virtual model includes multiple second regions, each carrying a second region identifier; the first region identifier and the second region identifier have a corresponding relationship; dividing the first model appearance of the first virtual model into at least two first regions according to a preset division method, and dividing the second model appearance of the second virtual model into at least two second regions according to a preset division method, includes:

[0167] Based on the first region identifier, the first virtual model is divided to obtain at least two first regions;

[0168] Based on the second region identifier, the second virtual model is divided to obtain at least two second regions;

[0169] Based on the correspondence, the first region and the second region are determined to be in a one-to-one correspondence.

[0170] (III) Model Adjustment Unit 330.

[0171] The model adjustment unit 330 is used to adjust the second target region based on the first target region to obtain an updated second virtual model. The second model pose of the updated second virtual model is the same as the first model pose.

[0172] (iv) Model update unit 340.

[0173] The model update unit 340 is used to update the first model appearance of the first virtual model by adopting the updated second model appearance of the second virtual model, so as to obtain the updated first virtual model.

[0174] In some embodiments, the first virtual model includes a first model appearance, the second virtual model includes a second model appearance, and the first model appearance of the first virtual model is updated using the updated second model appearance of the second virtual model to obtain an updated first virtual model, including:

[0175] Based on the one-to-one correspondence between the first region and the second region, the appearance color of the first model and the appearance color of the second model are compared to determine the appearance color difference between the first model and the second model. The area of ​​the appearance color difference in the first model is recorded as the first color region, and the area of ​​the appearance color difference in the second model is recorded as the second color region.

[0176] The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

[0177] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the appearance colors of the first model and the second model are compared to determine the difference in appearance colors between the first model and the second model, including:

[0178] Based on the one-to-one correspondence between the first region and the second region, determine the first color value and the second color value. The first color value is the color value of the first region, and the second color value is the color value of the second region.

[0179] Determine the color difference between the first color value and the second color value;

[0180] The color difference between the first model and the second model is determined based on the color difference.

[0181] In some embodiments, the second virtual model is associated with serialized multimedia content. After updating the first model appearance of the first virtual model using the updated second virtual model's second model appearance to obtain the updated first virtual model, the method further includes:

[0182] Obtain the time period in which the second virtual model appears in the serialized multimedia content;

[0183] Based on the time period in which the first virtual model appears, the updated first virtual model is used to replace the first virtual model.

[0184] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.

[0185] As can be seen from the above, the device for updating the appearance of a virtual model in this embodiment is applied to a game. The game includes a first virtual model, which is controlled by a terminal device. A second virtual model is acquired by an acquisition unit, and the second virtual model serves as a reference model for the first virtual model. A difference determination unit compares the first model pose of the first virtual model with the second model pose of the second virtual model to determine the pose difference between the first and second model poses. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region. A model adjustment unit adjusts the second target region based on the first target region to obtain an updated second virtual model. The second model pose of the updated second virtual model is the same as the first model pose. Finally, a model update unit updates the first model appearance of the first virtual model using the updated second model appearance.

[0186] Therefore, the embodiments of this application can improve the update efficiency of virtual models in games, so as to change the appearance of the virtual models.

[0187] Accordingly, this application also provides an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer, personal digital assistant (PDA) and other terminal devices.

[0188] like Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 410 with one or more processing cores, a memory 420 with one or more computer-readable storage media, and a computer program stored in the memory 420 and executable on the processor. The processor 410 is electrically connected to the memory 420. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0189] The processor 410 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 420, and calling data stored in the memory 420, it performs various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.

[0190] In this embodiment, the processor 410 in the electronic device 400 loads the instructions corresponding to the processes of one or more applications into the memory 420 according to the following steps, and the processor 410 runs the applications stored in the memory 420 to realize various functions:

[0191] A method for updating a virtual model, the method being applied to a game, the game including a first virtual model, the first virtual model being controlled via a terminal device, including:

[0192] Obtain a second virtual model, which serves as a reference model for the first virtual model;

[0193] Compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0194] Based on the first target region, the second target region is adjusted to obtain the updated second virtual model. The pose of the updated second virtual model is the same as the pose of the first model.

[0195] The appearance of the first virtual model is updated by adopting the updated appearance of the second virtual model.

[0196] In some embodiments, comparing the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose includes:

[0197] The first virtual model is divided into at least two first regions according to a preset division method, and the second virtual model is divided into at least two second regions according to a preset division method, wherein the first region and the second region correspond one-to-one;

[0198] Based on the one-to-one correspondence between the first region and the second region, the pose of the first model of the first virtual model and the pose of the second model of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose.

[0199] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0200] Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to the preset reference region associated with the first region, and the position of the second region is the position of the second region relative to the preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region are in one-to-one correspondence.

[0201] Determine the regional location differences between the first and second region locations;

[0202] Based on the differences in regional location, the pose difference between the first model pose and the second model pose is determined.

[0203] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0204] Based on the one-to-one correspondence between the first region and the second region, determine the size of the first region and the size of the second region. The size of the first region is the size of the first region, and the size of the second region is the size of the second region.

[0205] Determine the difference in region dimensions between the first region size and the second region size;

[0206] Based on the difference in region size, the pose difference between the first model pose and the second model pose is determined.

[0207] In some embodiments, determining the size of the first region and the size of the second region based on a one-to-one correspondence between the first region and the second region includes:

[0208] Based on the one-to-one correspondence between the first region and the second region, obtain the first bounding box of the first region and the second bounding box of the second region. The first bounding box and the second bounding box have the same shape.

[0209] Use the size of the outer frame of the first outer frame as the size of the first region;

[0210] Use the outer frame size of the second outer frame as the size of the second region.

[0211] In some embodiments, the first virtual model includes a first model appearance, the second virtual model includes a second model appearance, and comparing the first model pose of the first virtual model and the second model pose of the second virtual model based on a one-to-one correspondence between the first region and the second region includes:

[0212] Based on the one-to-one correspondence between the first region and the second region, the appearance color of the first model and the appearance color of the second model are compared to determine the appearance color difference between the first model and the second model. The area of ​​the appearance color difference in the first model is recorded as the first color region, and the area of ​​the appearance color difference in the second model is recorded as the second color region.

[0213] The updated appearance of the second virtual model is used to update the appearance of the first virtual model, including:

[0214] The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

[0215] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the appearance colors of the first model and the second model are compared to determine the difference in appearance colors between the first model and the second model, including:

[0216] Based on the one-to-one correspondence between the first region and the second region, determine the first color value and the second color value. The first color value is the color value of the first region, and the second color value is the color value of the second region.

[0217] Determine the color difference between the first color value and the second color value;

[0218] The color difference between the first model and the second model is determined based on the color difference.

[0219] In some embodiments, the first virtual model includes multiple first regions, each carrying a first region identifier; the second virtual model includes multiple second regions, each carrying a second region identifier; the first region identifier and the second region identifier have a corresponding relationship; dividing the first model appearance of the first virtual model into at least two first regions according to a preset division method, and dividing the second model appearance of the second virtual model into at least two second regions according to a preset division method, includes:

[0220] Based on the first region identifier, the first virtual model is divided to obtain at least two first regions;

[0221] Based on the second region identifier, the second virtual model is divided to obtain at least two second regions;

[0222] Based on the correspondence, the first region and the second region are determined to be in a one-to-one correspondence.

[0223] In some embodiments, the second virtual model is associated with serialized multimedia content. After updating the first model appearance of the first virtual model using the updated second virtual model's second model appearance to obtain the updated first virtual model, the method further includes:

[0224] Obtain the time period in which the second virtual model appears in the serialized multimedia content;

[0225] Based on the time period in which the first virtual model appears, the updated first virtual model is used to replace the first virtual model.

[0226] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0227] Optional, such as Figure 4 As shown, the electronic device 400 also includes: a touch display screen 430, a radio frequency circuit 440, an audio circuit 450, an input unit 460, and a power supply 470. The processor 410 is electrically connected to the touch display screen 430, the radio frequency circuit 440, the audio circuit 450, the input unit 460, and the power supply 470. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0228] The touch display screen 430 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 430 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 410. It can also receive and execute commands from the processor 410. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 410 to determine the type of touch event. Subsequently, the processor 410 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 430 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 430 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 430 can also be used as part of the input unit 460 to achieve input functions.

[0229] The radio frequency circuit 440 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0230] Audio circuitry 450 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuitry 450 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 450, converted back into audio data, and then processed by processor 410 before being transmitted via radio frequency circuitry 440 to, for example, another electronic device, or output to memory 420 for further processing. Audio circuitry 450 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.

[0231] The input unit 460 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0232] Power supply 470 is used to power various components of electronic device 400. Optionally, power supply 470 can be logically connected to processor 410 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 470 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0233] although Figure 4 As not shown in the diagram, the electronic device 400 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

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

[0235] As can be seen from the above, the electronic device provided in this embodiment can make the second model pose of the second virtual model the same as the first model pose of the first virtual model, so as to update the appearance of the second model of the second virtual model. Thus, the updated appearance of the second model of the second virtual model can replace the appearance of the first model of the first virtual model, thereby improving the update efficiency of the virtual model in the game and changing the appearance of the virtual object corresponding to the virtual model.

[0236] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0237] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the methods for updating a virtual model provided in embodiments of this application. For example, the computer program can execute the following steps:

[0238] A method for updating a virtual model, the method being applied to a game, the game including a first virtual model, the first virtual model being controlled via a terminal device, including:

[0239] Obtain a second virtual model, which serves as a reference model for the first virtual model;

[0240] Compare the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region.

[0241] Based on the first target region, the second target region is adjusted to obtain the updated second virtual model. The pose of the updated second virtual model is the same as the pose of the first model.

[0242] The appearance of the first virtual model is updated by adopting the updated appearance of the second virtual model.

[0243] In some embodiments, comparing the first model pose of the first virtual model and the second model pose of the second virtual model to determine the pose difference between the first model pose and the second model pose includes:

[0244] The first virtual model is divided into at least two first regions according to a preset division method, and the second virtual model is divided into at least two second regions according to a preset division method, wherein the first region and the second region correspond one-to-one;

[0245] Based on the one-to-one correspondence between the first region and the second region, the pose of the first model of the first virtual model and the pose of the second model of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose.

[0246] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0247] Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to the preset reference region associated with the first region, and the position of the second region is the position of the second region relative to the preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region are in one-to-one correspondence.

[0248] Determine the regional location differences between the first and second region locations;

[0249] Based on the differences in regional location, the pose difference between the first model pose and the second model pose is determined.

[0250] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the pose of the first model and the pose of the second model are compared to determine the pose difference between the first model pose and the second model pose, including:

[0251] Based on the one-to-one correspondence between the first region and the second region, determine the size of the first region and the size of the second region. The size of the first region is the size of the first region, and the size of the second region is the size of the second region.

[0252] Determine the difference in region dimensions between the first region size and the second region size;

[0253] Based on the difference in region size, the pose difference between the first model pose and the second model pose is determined.

[0254] In some embodiments, determining the size of the first region and the size of the second region based on a one-to-one correspondence between the first region and the second region includes:

[0255] Based on the one-to-one correspondence between the first region and the second region, obtain the first bounding box of the first region and the second bounding box of the second region. The first bounding box and the second bounding box have the same shape.

[0256] Use the size of the outer frame of the first outer frame as the size of the first region;

[0257] Use the outer frame size of the second outer frame as the size of the second region.

[0258] In some embodiments, the first virtual model includes a first model appearance, the second virtual model includes a second model appearance, and the first model appearance of the first virtual model is updated using the updated second model appearance of the second virtual model to obtain an updated first virtual model, including:

[0259] Based on the one-to-one correspondence between the first region and the second region, the appearance color of the first model and the appearance color of the second model are compared to determine the appearance color difference between the first model and the second model. The area of ​​the appearance color difference in the first model is recorded as the first color region, and the area of ​​the appearance color difference in the second model is recorded as the second color region.

[0260] The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

[0261] In some embodiments, based on the one-to-one correspondence between the first region and the second region, the appearance colors of the first model and the second model are compared to determine the difference in appearance colors between the first model and the second model, including:

[0262] Based on the one-to-one correspondence between the first region and the second region, determine the first color value and the second color value. The first color value is the color value of the first region, and the second color value is the color value of the second region.

[0263] Determine the color difference between the first color value and the second color value;

[0264] The color difference between the first model and the second model is determined based on the color difference.

[0265] In some embodiments, the first virtual model includes multiple first regions, each carrying a first region identifier; the second virtual model includes multiple second regions, each carrying a second region identifier; the first region identifier and the second region identifier have a corresponding relationship; dividing the first model appearance of the first virtual model into at least two first regions according to a preset division method, and dividing the second model appearance of the second virtual model into at least two second regions according to a preset division method, includes:

[0266] Based on the first region identifier, the first virtual model is divided to obtain at least two first regions;

[0267] Based on the second region identifier, the second virtual model is divided to obtain at least two second regions;

[0268] Based on the correspondence, the first region and the second region are determined to be in a one-to-one correspondence.

[0269] In some embodiments, the second virtual model is associated with serialized multimedia content. After updating the first model appearance of the first virtual model using the updated second virtual model's second model appearance to obtain the updated first virtual model, the method further includes:

[0270] Obtain the time period in which the second virtual model appears in the serialized multimedia content;

[0271] Based on the time period in which the first virtual model appears, the updated first virtual model is used to replace the first virtual model.

[0272] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0273] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0274] Since the computer program stored in the storage medium can execute the steps in any of the methods for updating the virtual model provided in the embodiments of this application, the beneficial effects that any of the methods for updating the virtual model provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0275] The foregoing has provided a detailed description of a method, apparatus, electronic device, and storage medium for updating a virtual model according to embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for updating a virtual model, characterized in that, The method is applied to a game, the game including a first virtual model, the first virtual model being controlled via a terminal device, including: Obtain a second virtual model, which serves as a reference model for the first virtual model; The first virtual model is divided into at least two first regions according to a preset division method, and the second virtual model is divided into at least two second regions according to the preset division method, wherein the first region and the second region correspond one-to-one; Based on the one-to-one correspondence between the first region and the second region, the first model pose of the first virtual model and the second model pose of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose. The pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region. Based on the first target region, the second target region is adjusted to obtain an updated second virtual model, wherein the second model pose of the updated second virtual model is the same as the first model pose; The updated first virtual model is updated by using the updated second virtual model's second model appearance to obtain the updated first virtual model. Specifically, based on the one-to-one correspondence between the first region and the second region, the first model pose of the first virtual model and the second model pose of the second virtual model are compared to determine the pose difference between the first model pose and the second model pose, including: Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to a preset reference region associated with the first region, and the position of the second region is the position of the second region relative to a preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region correspond one-to-one. Determine the regional location difference between the first region location and the second region location; Based on the regional location differences, the pose difference between the first model pose and the second model pose is determined; or, Based on the one-to-one correspondence between the first region and the second region, the size of the first region and the size of the second region are determined, wherein the size of the first region is the size of the first region and the size of the second region is the size of the second region. Determine the difference in region size between the first region size and the second region size; Based on the difference in the size of the region, the pose difference between the first model pose and the second model pose is determined.

2. The method for updating a virtual model as described in claim 1, characterized in that, The step of determining the size of the first region and the size of the second region based on the one-to-one correspondence between the first region and the second region includes: Based on the one-to-one correspondence between the first region and the second region, a first outer frame of the first region and a second outer frame of the second region are obtained, wherein the first outer frame and the second outer frame have the same shape; The outer frame size of the first outer frame is used as the size of the first region; Use the outer frame size of the second outer frame as the second region size.

3. The method for updating a virtual model as described in claim 1, characterized in that, The first virtual model includes a first model appearance, and the second virtual model includes a second model appearance. Updating the first model appearance of the first virtual model using the updated second model appearance of the second virtual model to obtain the updated first virtual model includes: Based on the one-to-one correspondence between the first region and the second region, the appearance color of the first model and the appearance color of the second model are compared to determine the appearance color difference between the first model and the second model. The appearance color difference in the region of the first model is recorded as the first color region, and the appearance color difference in the region of the second model is recorded as the second color region. The appearance of the first model is updated by adjusting the area color of the first color area using the area color of the second color area.

4. The method for updating a virtual model as described in claim 3, characterized in that, The step of comparing the appearance colors of the first model and the second model based on the one-to-one correspondence between the first and second regions to determine the difference in appearance colors between the first and second models includes: Based on the one-to-one correspondence between the first region and the second region, a first color value and a second color value are determined, wherein the first color value is the color value of the first region and the second color value is the color value of the second region; Determine the color difference between the first color value and the second color value; Based on the color difference, the color difference between the appearance of the first model and the appearance of the second model is determined.

5. The method for updating a virtual model as described in claim 1, characterized in that, The first virtual model includes multiple first regions, each carrying a first region identifier. The second virtual model includes multiple second regions, each carrying a second region identifier. There is a correspondence between the first region identifier and the second region identifier. The step of dividing the first model appearance of the first virtual model into at least two first regions according to a preset division method, and dividing the second model appearance of the second virtual model into at least two second regions according to the preset division method, includes: Based on the first region identifier, the first virtual model is divided to obtain at least two first regions; Based on the second region identifier, the second virtual model is divided to obtain at least two second regions; Based on the correspondence, it is determined that the first region and the second region correspond one-to-one.

6. The method for updating a virtual model as described in claim 1, characterized in that, The second virtual model is associated with serialized multimedia content. After updating the first model appearance of the first virtual model using the updated second virtual model's second model appearance to obtain the updated first virtual model, the method further includes: Obtain the time period in which the second virtual model appears in the serialized multimedia content; Based on the time period in which the first virtual model appears, the updated first virtual model is used to replace the first virtual model.

7. An apparatus for updating a virtual model, characterized in that, The device is applied to a game, the game including a first virtual model, the first virtual model being controlled via a terminal device, including: An acquisition unit is used to acquire a second virtual model, wherein the second virtual model is a reference model of the first virtual model; The difference determination unit is used to divide the first virtual model into at least two first regions according to a preset division method, and to divide the second virtual model into at least two second regions according to the preset division method, wherein the first region and the second region correspond one-to-one; based on the one-to-one correspondence between the first region and the second region, to compare the first model pose of the first virtual model and the second model pose of the second virtual model, and to determine the pose difference between the first model pose and the second model pose, wherein the pose difference in the region of the first model pose is denoted as the first target region, and the pose difference in the region of the second model pose is denoted as the second target region; The model adjustment unit is used to adjust the second target region based on the first target region to obtain an updated second virtual model, wherein the second model pose of the updated second virtual model is the same as the first model pose. The model update unit is used to update the first model appearance of the first virtual model using the updated second model appearance of the second virtual model, so as to obtain the updated first virtual model. Specifically, the difference determination unit is used for: Based on the one-to-one correspondence between the first region and the second region, the positions of the first region and the second region are determined. The position of the first region is the position of the first region relative to a preset reference region associated with the first region, and the position of the second region is the position of the second region relative to a preset reference region associated with the second region. The preset reference regions associated with the first region and the preset reference regions associated with the second region correspond one-to-one. Determine the regional location difference between the first region location and the second region location; Based on the regional location differences, the pose difference between the first model pose and the second model pose is determined; or, Based on the one-to-one correspondence between the first region and the second region, the size of the first region and the size of the second region are determined, wherein the size of the first region is the size of the first region and the size of the second region is the size of the second region. Determine the difference in region size between the first region size and the second region size; Based on the difference in the size of the region, the pose difference between the first model pose and the second model pose is determined.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps in the method for updating a virtual model as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the method for updating the virtual model according to any one of claims 1 to 6.