WO2023020196A1 - Virtual character image replacement method and apparatus, and computer storage medium - Google Patents

Virtual character image replacement method and apparatus, and computer storage medium Download PDF

Info

Publication number
WO2023020196A1
WO2023020196A1 PCT/CN2022/107308 CN2022107308W WO2023020196A1 WO 2023020196 A1 WO2023020196 A1 WO 2023020196A1 CN 2022107308 W CN2022107308 W CN 2022107308W WO 2023020196 A1 WO2023020196 A1 WO 2023020196A1
Authority
WO
WIPO (PCT)
Prior art keywords
makeup
virtual character
clothing
props
user
Prior art date
Application number
PCT/CN2022/107308
Other languages
French (fr)
Chinese (zh)
Inventor
王雪娇
吴双菲彦
陈镇秋
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023020196A1 publication Critical patent/WO2023020196A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a method, device, and computer storage medium for replacing an avatar image.
  • Embodiments of the present disclosure at least provide a method, a device, and a computer storage medium for replacing an avatar image.
  • an embodiment of the present disclosure provides a method for replacing an avatar image, including:
  • the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to a variety of clothing parts;
  • the matching rule includes that the body parts of the virtual character matched by each of the target clothing parts selected by the user are all body parts of the virtual character;
  • the judging whether the target clothing part complies with the preset matching rules includes:
  • the auxiliary props include makeup props
  • the changing makeup of the virtual character in response to the trigger for the makeup prop includes:
  • the changing makeup of the virtual character in response to the trigger for the makeup prop includes:
  • the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding
  • the makeup changing material of at least one of the makeup options includes color material
  • the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
  • the method also includes:
  • the color circle includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
  • the changing the makeup of the virtual character includes:
  • the makeup of the virtual character is changed according to the makeup changing manner respectively matching with at least one of the makeup parts.
  • changing the makeup of the virtual character according to a makeup changing manner respectively matching with at least one of the makeup parts includes:
  • the makeup of the makeup parts is changed by merging textures.
  • the method also includes:
  • an animation is displayed to display the clothing decoration effect of the virtual character.
  • the method also includes:
  • the effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
  • an avatar image replacement device including:
  • the first display module is used to display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; a plurality of the clothing props include clothing used to dress up the virtual character Apparel parts for different body parts, where each body part corresponds to multiple apparel parts;
  • the first processing module is used to determine the target clothing part selected by the user in response to the trigger of the user, and determine whether the target clothing part meets the preset matching rules
  • the second display module is used to obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rules, and display the accessory props on the fitting interface;
  • the second processing module is configured to dress up the virtual character in response to the trigger for the accessory prop.
  • the matching rule includes that the body parts of the virtual character matched by each of the target clothing parts selected by the user are all body parts of the virtual character
  • the first processing module When judging whether the target clothing part complies with the preset matching rule, it is specifically used to: determine the body part of the virtual character matched by each target clothing part selected by the user; judge whether the matched body part is All body parts of the avatar.
  • the accessory props include makeup props; when the second processing module performs the dressing up of the virtual character in response to the trigger for the accessory props, it is specifically configured to: In response to the trigger for the makeup props, the makeup of the virtual character is changed.
  • the second processing module executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item changing the makeup of the virtual character based on at least one makeup changing part corresponding to the makeup prop and the makeup information of the makeup changing part after the makeup changing, and displaying the makeup changing effect of the virtual character.
  • the second processing module is specifically configured to:
  • the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding
  • the makeup changing material of at least one of the makeup options includes color material
  • the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
  • the second processing module is further configured to:
  • the color circle includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
  • the second processing module when the second processing module performs the makeup change on the virtual character, it is specifically configured to: change the The virtual character performs a makeup change.
  • the second processing module is specifically configured to:
  • the makeup of the makeup parts is changed by merging textures.
  • the second display module is also used for:
  • an animation is displayed to display the clothing decoration effect of the virtual character.
  • the second processing module is further configured to:
  • the effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
  • an optional implementation manner of the present disclosure further provides a computer device, including: a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the memory The machine-readable instructions stored in the computer, when the machine-readable instructions are executed by the processor, execute the steps of the avatar image replacement method described in the first aspect or any possible implementation manner of the first aspect.
  • an optional implementation manner of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned first aspect or the first Steps in the method for replacing an avatar image in any possible implementation manner of the aspect.
  • an optional implementation manner of the present disclosure further provides a computer program product, the computer program product carries program code, and the program code includes instructions for executing the above-mentioned first aspect or any of the first aspects. Steps in the method for replacing an avatar image in a possible implementation manner.
  • a fitting interface is displayed, and a plurality of clothing props for the virtual character to try on are displayed in the fitting interface; Conform to the preset matching rules, after determining that the target clothing part selected by the user meets the preset matching rules, obtain the auxiliary props corresponding to the target clothing parts, and display the auxiliary props in the fitting interface; after that, the user can pass Trigger the auxiliary props to dress up the virtual character.
  • other dressing up for example, makeup, that is, the operation of changing makeup
  • auxiliary props include makeup props
  • the user can set the virtual character by selecting any one of the multiple makeup materials corresponding to any makeup option on the floating layer In this way, it not only enriches the interaction mode in the process of dressing up the virtual character, but also can customize the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
  • the effects of the dress-up and/or make-up of the virtual character at various angles can be shown in the form of animation, so that the user does not need to make up the clothes and/or make-up.
  • the dressed virtual character slides left and right or up and down, you can see the effects of the virtual character's clothing and/or makeup at various angles. This process saves user operations and improves the interactive experience.
  • FIG. 1 shows a flow chart of a method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 2 shows a schematic diagram of a fitting interface in the method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 3 shows a schematic diagram of another fitting interface in the virtual character image replacement method provided by the embodiment of the present disclosure
  • Fig. 4 shows a schematic diagram of yet another fitting interface in the method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 5 shows a schematic diagram of another fitting interface in the virtual character image replacement method provided by the embodiment of the present disclosure
  • FIG. 6 shows a schematic diagram of a display page displaying a list of other users in the method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 7 shows a schematic diagram of a display page displaying a floating layer of makeup editing information in the method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 8 shows a schematic diagram of another display page displaying a floating layer of makeup editing information in the method for replacing an avatar image provided by an embodiment of the present disclosure
  • Fig. 9a shows a schematic diagram of a display page of a face sticker on a white background in the virtual character image replacement method provided by an embodiment of the present disclosure
  • Fig. 9b shows a schematic diagram of a display page showing the effect of a combined white background face sticker in the virtual character image replacement method provided by the embodiment of the present disclosure
  • Fig. 10 shows a schematic diagram of a display page showing the dressing effect of the virtual character after the makeup changing effect is combined with the clothing dressing effect in the method for replacing the virtual character image provided by the embodiment of the present disclosure. ;
  • Fig. 11 shows a schematic diagram of an avatar image replacement device provided by an embodiment of the present disclosure
  • Fig. 12 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
  • the execution subject of the method for replacing avatar image provided by an embodiment of the present disclosure is generally a computer with certain computing power device, in some possible implementation manners, the method for replacing an avatar image may be implemented by a processor in a computer device invoking computer-readable instructions stored in a memory.
  • the avatar image replacement method provided by the embodiments of the present disclosure can be applied to any game scene where the avatar image is replaced in any game, such as a role dressing contest, etc., and the execution subject is the terminal device (the terminal device A device such as a mobile phone, a computer, etc. that has a display screen, a processor, and a memory, and supports user interactive operations) is used as an example to describe the method for replacing an avatar image provided by an embodiment of the present disclosure in detail.
  • the terminal device A device such as a mobile phone, a computer, etc. that has a display screen, a processor, and a memory, and supports user interactive operations
  • FIG. 1 it is a flowchart of a method for replacing an avatar image provided by an embodiment of the present disclosure.
  • the method for avatar image replacement includes S101-S104, wherein:
  • S101 Display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to multiple clothing parts.
  • a plurality of clothing props for the virtual character to try on may include, but not limited to: suits for dressing up different body parts in the whole body of the virtual character, accessories for dressing up the hair of the virtual character, and ears for dressing up the virtual character.
  • accessories for the neck of the avatar, accessories for the waist of the avatar, clothing for the upper body of the avatar, clothing for the lower body of the avatar, and accessories for avatar At least one of accessories for the hands, and at least one of clothing for dressing up the feet of the virtual character;
  • the suit includes clothing parts for dressing up different body parts of the virtual character, for example, may include but is not limited to Hairstyles or hairpins for the avatar's hair, accessories such as earrings for the ears of the avatar, accessories such as necklaces for the neck of the avatar, tops for the upper body of the avatar, and accessories for avatars
  • accessories such as bracelets for the hands, lower garments used to dress up the lower body of the virtual character, and shoes used to dress up the feet of the virtual character; generally, each body part correspond
  • the terminal device responds to the user's trigger operation on the dress-up control on the game home page to display a fitting interface;
  • the specific fitting interface can be shown in Figure 2, the trial In the clothing interface, there are controls for gifting others, reverting to default wear controls, purchase controls, multiple clothing props for avatars to try on, and the corresponding introduction information for each clothing prop, as well as avatars with default clothing.
  • the introduction information corresponding to each clothing item is used to introduce the clothing item, for example, it may include but not limited to: introduction picture, name, the amount of virtual currency required to purchase the clothing item, the current discount value corresponding to the clothing item, the At least one of the types of clothing props; wherein, the type of clothing props may include but not limited to: at least one of new product type, free makeup type, new product with free makeup type, non-new product type and no free makeup type.
  • the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
  • the user's trigger may include, but not limited to: the user's selection operation on any clothing item displayed in the fitting interface, and the user's purchase operation on the currently selected clothing item (that is, after the user selects any clothing item, At least one of the actions that trigger the purchase control).
  • the matching rule includes that the body parts of the virtual character matched by each target clothing part selected by the user are all body parts of the virtual character.
  • Judging whether the target clothing parts meet the preset matching rules includes: determining the body parts of the virtual character matched by each target clothing parts selected by the user; and judging whether the matched body parts are all body parts of the virtual character. If yes, it is determined that the target clothing part complies with the preset matching rule.
  • the clothing parts contained in the clothing props are determined as the target clothing parts selected by the user;
  • the body part of the virtual character when it is determined that the body part of the virtual character matched by each target clothing part selected by the user is all the body parts of the virtual character (that is, each target clothing part is a set), it is determined that the target clothing part conforms to the preset matching rules.
  • the terminal device can store the currently purchased clothing item (here,
  • the currently purchased clothing props can include multiple ones, for example, it can be a one-time payment to purchase multiple selected clothing props, or it can be divided into multiple payments, and one clothing prop is selected for each purchase; that is, the current purchase here can be Refers to all purchases after entering the trial installation interface this time, or refers to all purchases after the previous gift of accessory props, or it can be for one-time payment purchases, which are specifically set according to actual needs.
  • the clothing parts included in are determined to be the target clothing parts selected by the user; the body parts of the virtual character matched by each target clothing part selected by the user are determined, and the body parts of the virtual character matched by each target clothing part selected by the user are determined.
  • the part is the entire body part of the virtual character, it is determined that the target clothing part complies with the preset matching rule.
  • multiple clothing parts contained in the clothing props can be displayed synchronously in the fitting interface, such as hair decoration parts, clothing decoration parts, shoes decoration parts, and accessories decoration parts; and virtual character clothing can also be displayed synchronously
  • the dressing effect of each clothing part in the clothing props currently selected by the user in the implementation, if each clothing part in the clothing props currently selected by the user has not been acquired, the specific display page can be shown in Figure 3 ;
  • the obtained logo can be displayed on the clothing parts that the user has obtained; here, the obtained logo is, for example, It may include but not limited to: at least one of pictures, symbols, and text; the display page specifically displaying the obtained logo can be shown in Figure 4, which shows that on the apparel parts that the determined user has acquired, the displayed The already-acquired logo represented by "Owned"; at this time, if the user triggers the restoration of the default clothing control, the virtual character's
  • the fitting interface shown in Fig. 2 or Fig. 3 or Fig. 4 also shows the amount of virtual currency required to purchase each clothing item and the amount of virtual currency currently owned by the user; if the currently displayed fitting interface As shown in Figure 3, it is determined that each clothing part in the clothing item currently selected by the user has not been acquired. If the user triggers the purchase control at this time, all clothing parts contained in the currently selected clothing item are purchased, and the current The amount of virtual currency owned by the user is updated; here, the difference between the amount of virtual currency currently owned by the user and the amount of virtual currency required to purchase the currently selected clothing item is used as the updated amount of virtual currency currently owned by the user; specifically After updating the display page of the amount of virtual currency currently owned by the user may be shown in Figure 5.
  • the currently displayed trial fitting interface is as shown in Figure 4, that is, it is determined that the user has obtained a certain clothing part contained in the currently selected clothing item before purchasing the currently selected clothing item, then display When the user purchases the currently selected clothing props, if the user triggers the purchase control at this time, other clothing parts that the user has not obtained in the currently selected clothing props will be purchased, and the amount of virtual currency currently owned by the user will be updated; here, first calculate The amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing item is the amount of virtual currency required to purchase the currently selected clothing item and the amount of virtual currency required to purchase the clothing item contained in the clothing item that the user has obtained.
  • the first difference between the amount of virtual currency required is used as the amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing props; then, the amount of virtual currency currently owned by the user and the first difference (that is, the amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing item) is used as the updated virtual currency amount currently owned by the user.
  • the currently purchased clothing props can be given to other users by triggering the gift to others control; specifically, after the user triggers the gift to others control, the user can display the Other user lists, so as to realize that the clothing and props currently purchased by the user are given to other users selected by the user in the other user lists.
  • the specific display page for displaying the other user lists can be shown in Figure 6.
  • This may include, but is not limited to: the names and avatars of other users that the user is friends with, a selection control for selecting information about each other user, and a "view all" control for viewing the names and avatars of all other users.
  • the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
  • the auxiliary props may include but not limited to: at least one of makeup props for changing the makeup of virtual characters, and game props; here, the game props may include but not limited to: knives, guns, arrows, swords, etc. Wait for at least one of the shooting props, magic wand, etc.
  • the way for users to obtain clothing and props can be to buy clothing and props, or to obtain clothing and props presented by other users or platforms.
  • the auxiliary props are makeup props
  • the target costume parts contained in the costume props can be obtained
  • the corresponding makeup props, and display the makeup props in the fitting interface; the specific display page can be shown in Figure 5, which shows the updated virtual currency amount currently owned by the user, and also displays the makeup props.
  • the user will enter the fitting interface after the user triggers the dressing control on the game home page or triggers the virtual character displayed in the game scene screen; at this time
  • the fitting interface displays multiple clothing items that the user already owns, including clothing items presented by other users.
  • the user selects the clothing items presented by other users. If the clothing items meet the preset matching rules, they can obtain the same Makeup props corresponding to each target clothing part included in the props, and display the makeup props in the fitting interface.
  • the above preset matching rules may also include the matching of clothing props, etc.
  • Restrictions such as setting certain types of clothing props (such as gift functions for certain high-level clothing props) correspond to free makeup.
  • the user purchases any clothing item in the try-on interface it can be determined whether the clothing item purchased by the user belongs to the makeup type according to the type of clothing item purchased by the user;
  • the makeup item corresponding to each target clothing part contained in the item can be obtained, and the makeup item can be displayed in the fitting interface.
  • the specific display interface can be shown in Figure 5.
  • the above set of rules and the limitations on the types of clothing and props can also be used in combination with the preset matching rules.
  • an animation may be used to display the clothing dressing effect of the virtual character in response to the target clothing part meeting the preset matching rule.
  • the effect of dressing up the virtual character at various angles can be shown in the form of animation, so that the user can watch the dressing up of the virtual character at various angles without sliding the virtual character left and right or up and down.
  • this process saves user operations and improves the user's gaming experience.
  • the user purchases any clothing item in the fitting interface; or after receiving any clothing item in the fitting interface as a gift from other users, it is determined that the user has successfully obtained the fitting interface any of the clothing props; when it is determined that the user has successfully obtained any of the clothing props in the fitting interface, and the body parts of the virtual character dressed by each clothing part in the clothing props are all body parts, in addition to presenting makeup, you can also Other game props can be given as gifts, that is, game props corresponding to the target clothing parts can also be obtained, and the game props can be displayed in the fitting interface.
  • the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
  • the terminal device changes the makeup of the virtual character in response to the trigger for the makeup props.
  • the terminal device changes the makeup of the virtual character based on at least one makeup-changing part corresponding to the makeup props and the makeup information of the makeup-changing parts in response to the trigger for the makeup props, and displays Makeup effects for virtual characters.
  • the makeup-changing part is used to represent the dressable part indicated by the makeup prop, for example, it may include but not limited to: at least one part of the face such as eyebrows, eyelashes, eyes, cheeks, lips, etc.;
  • the information may include but not limited to: face shape information, eyebrow color information, eyebrow shape information, eyelash color information, eyelash length information, eye shadow color information, color contact lenses, eyeliner shape information, eye highlight position information, and the color information of eye highlights, and the color information of facial blush, the position information of facial highlights, and at least one of the shape information of lips, the color information of lip makeup, and the color information of make-up.
  • the terminal device can automatically adjust the makeup of the virtual character based on the makeup changing parts corresponding to the makeup props and the makeup information of each makeup changing parts. Change makeup and show the effect of changing makeup on virtual characters.
  • the terminal device displays a floating layer containing makeup editing information in response to the trigger for the makeup prop.
  • the makeup editing information at least includes but is not limited to: multiple makeup options; each makeup option corresponds to at least one makeup changing part, and each makeup option has a corresponding makeup changing material; the makeup changing material of at least one makeup option contains color materials .
  • the makeup options may include, but not limited to: at least one of face shape, eyebrows, eye makeup, lip makeup, makeup, and hairstyle; wherein, the makeup changing material corresponding to the face shape may be, but not limited to: oval face, round At least one of shaped face, oval face, elongated face, etc.; makeup changing materials corresponding to eyebrows and eyelashes, for example, may include but not limited to: at least one of eyebrow makeup changing materials and eyelash makeup changing materials, etc.; makeup changing materials corresponding to eye makeup
  • the material can be, for example but not limited to: at least one of eye shadow makeup changing material, color contact makeup changing material, eye white makeup changing material, highlight makeup changing material, etc.; the makeup changing material corresponding to lip makeup can be but not limited to: lip shape changing Makeup material
  • the floating layer containing makeup editing information can be displayed specifically as shown in FIG. 7 , which shows four makeup options of eyebrows, eye makeup, lip makeup, and color makeup, as well as the virtual character to be dressed up.
  • the terminal device can display at least one makeup-changing material corresponding to the makeup option to the user, and the user can display at least one makeup-changing material in the displayed at least one makeup-changing material.
  • the terminal device can change the makeup of the virtual character in response to the makeup option and makeup-changing material selected by the user based on the makeup editing information, and display the makeup-changing effect of the virtual character.
  • the material information corresponding to the multiple makeup options contained in the makeup editing information may also include color materials, and after the user triggers the target makeup option with color materials among the multiple makeup options, the terminal device responds to the multiple makeup options displayed by the user.
  • the selected target makeup options with color materials show the color circle surrounding the avatar.
  • the color ring may include but not limited to a plurality of color options arranged in a ring; any color option is selected as the color information corresponding to the target makeup option; Swipe to see multiple color options on the display page of the graphic user; the preset direction may include, but not limited to, at least one of left and right directions, up and down directions, and the like.
  • the multiple eye shadow makeup replacement materials included in the eye makeup makeup option are displayed to the user by default.
  • the eye shadow makeup replacement material If the color material is included, multiple eye shadow color options arranged in a circle can be displayed to the user.
  • the specific display page can be shown in Figure 8; After selecting the eye shadow makeup material and choosing the pink eye shadow color, you can use the pink "mermaid tears" eye shadow makeup material to dress up the avatar's eyes and display the dressed avatar.
  • the makeup changing methods corresponding to different makeup parts can be different or the same.
  • eyelashes, eyeballs, eye whites, highlights, etc. can be replaced by replacing materials.
  • the colors of eyelashes, eyeballs, eye whites, and highlights It can be replaced by modifying the color properties of the material;
  • eyebrows, eye shadows, blush, lips, makeup, etc. can be replaced by merging textures, and the colors of eyebrows, eye shadows, blush, lips, and makeup It can be replaced by modifying the merged texture;
  • the makeup changing method corresponding to each makeup part contained in the specific makeup editing information can be set according to actual needs, and there is no specific limitation here.
  • the makeup changing methods corresponding to different makeup parts can be different or the same; therefore, when changing the makeup of the virtual character, the virtual character can be changed according to the makeup changing methods that match at least one makeup part respectively. makeup.
  • the makeup of the makeup part is changed by replacing the material for the makeup part; for at least one of the eyebrows, eye shadow, blush, lips, and decals
  • One is to change the makeup of the makeup parts by merging textures.
  • At least one of the eyelashes, eyeballs, eye whites, and highlight parts modify the color attribute of the replacement material to modify the makeup color of the makeup part; for eyebrows, eye shadow, blush, lips, and decals At least one method of modifying the color of the makeup part by modifying the merged texture.
  • the process of merging textures can be to pre-store a white background facial texture that erases any makeup contained in the makeup part, and the display page of the specific white background facial texture can be shown in Figure 9a; for eyebrows, For at least one part of eye shadow, blush, lips, and decals, change the makeup or modify the color of the makeup by selecting at least one of the multiple makeup materials and color materials displayed in the makeup editing information; here , each time a makeup look is changed or the color of the makeup look is modified, the makeup look or the makeup look color will be merged with the white background face texture shown in Figure 9a, so as to realize the function of changing makeup; specifically, in Figure 9a
  • the effect picture after combining eyebrows, eye shadows, eye shadows, blush, lips, and decals on the white background face texture can be shown in Figure 9b.
  • the terminal device when the terminal device dresses up the virtual character in response to the trigger for the accessory props, it may also combine the effect of dressing the virtual character based on the accessory props with the effect of dressing the virtual character based on the target clothing parts.
  • the effects of the characters' costumes are merged, and the combined costume effects are displayed in the form of animation.
  • the auxiliary props include makeup props
  • the terminal device dresses up the virtual character in response to the trigger for the makeup props
  • it can also combine the effect of changing the makeup of the virtual character based on the makeup props with the effect based on the target clothing.
  • the components combine the effects of dressing up the virtual characters, and display the combined dressing effects in the form of animation. A specific display page displaying the combined dressing effect may be shown in FIG. 10 .
  • the dress-up effect of the virtual character at various angles can be displayed in the form of animation, so that the user can watch the dress-up effect of the virtual character at various angles without the need for the user to slide the dressed virtual character in the preset direction, which saves The user operation is improved, and the user's game experience is improved.
  • a fitting interface is displayed, and multiple clothing props for virtual characters to try on are displayed in the fitting interface; it is judged whether each target clothing part included in the clothing props selected by the user conforms to the preset matching rules, After determining that the target clothing part selected by the user complies with the preset matching rules, obtain the auxiliary props corresponding to the target clothing part, and display the auxiliary props in the fitting interface; after that, the user can trigger the auxiliary props to simulate the virtual The character is dressed up.
  • the method for changing the virtual character image provided by the embodiment of the present disclosure can not only match the clothes of the virtual character, but also make other clothes for the virtual character (for example, make-up, that is, realize the operation of changing makeup) , thereby enriching the way of dressing up the virtual character and the interactive operation in the game.
  • auxiliary props include makeup props
  • a floating layer containing makeup editing information can be displayed, and the user can select any of the makeup materials corresponding to any makeup option on the floating layer.
  • the selection operation of a makeup material sets the makeup of the virtual character, which not only enriches the interaction mode in the process of dressing up the virtual character, but also enables customizing the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • the embodiment of the present disclosure also provides a virtual character image replacement device corresponding to the method for replacing the virtual character image, because the problem-solving principle of the device in the embodiment of the present disclosure is the same as that of the above-mentioned virtual character image replacement method in the embodiment of the present disclosure Similar, therefore, the implementation of the device can refer to the implementation of the method, and repeated descriptions will not be repeated.
  • the avatar image replacement device includes: a first display module 1101 , a first processing module 1102 , and a second display module 1103 and the second processing module 1104; wherein:
  • the first display module 1101 is used to display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include Clothing parts for different body parts of , where each body part corresponds to multiple clothing parts.
  • the first processing module 1102 is configured to determine the target clothing part selected by the user in response to the user's trigger, and determine whether the target clothing part complies with a preset matching rule.
  • the second display module 1103 is configured to obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rules, and display the accessory props on the fitting interface.
  • the second processing module 1104 is configured to dress up the virtual character in response to the trigger for the accessory prop.
  • the matching rule includes that the body parts of the virtual character matched by the target clothing parts selected by the user are all body parts of the virtual character, and the first processing module 1102 When judging whether the target clothing part complies with the preset matching rules, it is specifically used to: determine the body part of the virtual character matched by each target clothing part selected by the user; judge whether the matched body part is the All body parts of the avatar.
  • the accessory props include makeup props; when the second processing module 1104 executes the step of dressing up the virtual character in response to the trigger for the accessory props, it is specifically configured to: respond When the makeup prop is triggered, the makeup of the virtual character is changed.
  • the second processing module 1104 executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item, Based on at least one makeup-changing part corresponding to the makeup prop and the makeup information of the makeup-changing part after the makeup change, the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
  • the second processing module 1104 executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item, Display a floating layer containing makeup editing information; the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding makeup changing materials; at least one of the makeup
  • the makeup changing materials of the options include color materials; in response to the makeup options and makeup changing materials selected by the user based on the makeup editing information, the makeup of the virtual character is changed, and the makeup changing effect of the virtual character is displayed.
  • the second processing module 1104 is further configured to: in response to the target makeup option with color material selected by the user among the displayed makeup options, display the A color ring; wherein, the color ring includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
  • the second processing module 1104 executes the makeup change of the virtual character, it is specifically configured to: change the makeup of the Change the makeup of the above-mentioned virtual character.
  • the second processing module 1104 is specifically configured to: target eyelashes, eyeballs For at least one of the makeup parts, eye whites and highlight parts, the makeup part is changed by replacing the material for the makeup part; for at least one of the eyebrows, eye shadow, blush, lips, and applique parts, use Combine textures to change makeup for the makeup part.
  • the second display module 1103 is also used to:
  • an animation is displayed to display the clothing decoration effect of the virtual character.
  • the second processing module 1104 is also configured to:
  • the effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
  • a fitting interface is displayed, and multiple clothing props for virtual characters to try on are displayed in the fitting interface; it is judged whether each target clothing part included in the clothing props selected by the user conforms to the preset matching rules, After determining that the target clothing part selected by the user complies with the preset matching rules, obtain the auxiliary props corresponding to the target clothing part, and display the auxiliary props in the fitting interface; after that, the user can trigger the auxiliary props to simulate the virtual The character is dressed up.
  • other dressing up for example, makeup dressing, that is, the operation of changing makeup
  • auxiliary props include makeup props
  • the user can set the virtual character by selecting any one of the multiple makeup materials corresponding to any makeup option on the floating layer In this way, it not only enriches the interaction mode in the process of dressing up the virtual character, but also can customize the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
  • the effects of the dress-up and/or make-up of the virtual character at various angles can be shown in the form of animation, so that the user does not need to make up the clothes and/or make-up.
  • the dressed virtual character slides left and right or up and down, you can see the effects of the virtual character's clothing and/or makeup at various angles. This process saves user operations and improves the interactive experience.
  • FIG. 12 it is a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application, including a processor 1201 , a memory 1202 , and a bus 1203 .
  • the memory 1202 is used to store execution instructions, including a memory 12021 and an external memory 12022; the memory 12021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 1201 and exchange data with an external memory 12022 such as a hard disk.
  • the processor 1201 exchanges data with the external memory 12022 through the memory 12021.
  • the processor 1201 communicates with the memory 1202 through the bus 1203, so that the processor 1201 executes the following instructions:
  • the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to a variety of clothing parts; in response to the trigger of the user, determine the target clothing part selected by the user, and judge whether the target clothing part meets the preset matching rules; Matching rules, obtaining the accessory props corresponding to the target clothing part, and displaying the accessory props on the fitting interface; in response to the trigger for the accessory props, dressing up the virtual character.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the method for replacing the avatar image described in the above-mentioned method embodiments are executed .
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure also provide a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the method for replacing the avatar image described in the method embodiment above, for details, please refer to The foregoing method embodiments are not described in detail here.
  • the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
  • a software development kit Software Development Kit, SDK
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor.
  • the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A virtual character image replacement method and apparatus, and a computer storage medium. The method comprises: displaying a fitting interface, and displaying a plurality of clothing props for a virtual character to try on in the fitting interface (S101); in response to a user trigger, determining a target piece of clothing selected by the user, and determining whether the target piece of clothing conforms to a preset matching rule (S102); in response to conforming to the preset matching rule, obtaining an auxiliary prop corresponding to the target piece of clothing, and displaying the auxiliary prop on the fitting interface (S103); and dressing the virtual character up in response to a trigger for the auxiliary prop (S104).

Description

一种虚拟角色形象更换方法、装置以及计算机存储介质A virtual character image replacement method, device and computer storage medium
本申请要求于2021年08月17日提交中国专利局、申请号为202110943673.0、申请名称为“一种虚拟角色形象更换方法、装置以及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on August 17, 2021, with the application number 202110943673.0, and the application name is "A Method, Device, and Computer Storage Medium for Virtual Character Image Replacement", the entire content of which is passed References are incorporated in this application.
技术领域technical field
本公开涉及计算机技术领域,具体而言,涉及一种虚拟角色形象更换方法、装置以及计算机存储介质。The present disclosure relates to the field of computer technology, and in particular, to a method, device, and computer storage medium for replacing an avatar image.
背景技术Background technique
目前,各种游戏应用比较多,用户参与游戏中的交互活动在带来身心愉悦的同时,还可以提高动手能力,拓展视野。其中一些装扮类的游戏比较受女生喜爱,比如参加游戏中的服装大赛,可以一定程度锻炼用户的服装搭配能力。At present, there are many kinds of game applications. Users participating in interactive activities in games can not only bring physical and mental pleasure, but also improve hands-on ability and expand horizons. Some of these dress-up games are more popular with girls. For example, participating in the clothing contest in the game can exercise the user's clothing matching ability to a certain extent.
发明内容Contents of the invention
本公开实施例至少提供一种虚拟角色形象更换方法、装置以及计算机存储介质。Embodiments of the present disclosure at least provide a method, a device, and a computer storage medium for replacing an avatar image.
第一方面,本公开实施例提供了一种虚拟角色形象更换方法,包括:In the first aspect, an embodiment of the present disclosure provides a method for replacing an avatar image, including:
展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部件,其中每个身体部分对应有多种服饰部件;displaying a fitting interface, and displaying a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to a variety of clothing parts;
响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则;Responding to the trigger of the user, determining the target clothing part selected by the user, and judging whether the target clothing part complies with a preset matching rule;
响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具;In response to meeting the preset matching rules, acquiring accessory props corresponding to the target clothing part, and displaying the accessory props on the fitting interface;
响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。Dressing up the virtual character in response to the trigger for the accessory prop.
在一种可能的实施方式中,所述匹配规则包括所述用户选择的各个所述目标服饰部件匹配的所述虚拟角色的身体部分为所述虚拟角色的全部身体部分;In a possible implementation manner, the matching rule includes that the body parts of the virtual character matched by each of the target clothing parts selected by the user are all body parts of the virtual character;
所述判断所述目标服饰部件是否符合预设的匹配规则,包括:The judging whether the target clothing part complies with the preset matching rules includes:
确定所述用户选择的各个目标服饰部件匹配的所述虚拟角色的身体部分;determining the body parts of the virtual character matched by the respective target apparel parts selected by the user;
判断匹配的所述身体部分是否为所述虚拟角色的全部身体部分。It is judged whether the matched body parts are all body parts of the virtual character.
在一种可能的实施方式中,所述附属道具包括妆容道具;In a possible implementation manner, the auxiliary props include makeup props;
所述响应于针对所述附属道具的触发,对所述虚拟角色进行装扮,包括:The adornment of the virtual character in response to the trigger for the accessory prop includes:
响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆。In response to the trigger for the makeup props, the makeup of the virtual character is changed.
在一种可能的实施方式中,所述响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆,包括:In a possible implementation manner, the changing makeup of the virtual character in response to the trigger for the makeup prop includes:
响应于针对所述妆容道具的触发,基于所述妆容道具对应的至少一个换妆部位和所述换妆部位换妆后的妆容信息,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In response to the trigger for the makeup prop, based on at least one makeup changing part corresponding to the makeup prop and the makeup information of the makeup changing part after the makeup change, change the makeup of the virtual character, and display the virtual character makeup effect.
在一种可能的实施方式中,所述响应于针对所述妆容道具的触发,对所述虚拟角色进 行换妆,包括:In a possible implementation manner, the changing makeup of the virtual character in response to the trigger for the makeup prop includes:
响应于针对所述妆容道具的触发,展示包含妆容编辑信息的浮层;所述妆容编辑信息中包含多个妆容选项,每个所述妆容选项对应至少一个换妆部位,所述妆容选项具有对应的换妆素材;至少一个所述妆容选项的换妆素材中包含颜色素材;In response to the trigger for the makeup props, display a floating layer containing makeup editing information; the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding The makeup changing material of at least one of the makeup options includes color material;
响应于用户基于所述妆容编辑信息选择的妆容选项和换妆素材,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In response to the makeup options and makeup-changing material selected by the user based on the makeup editing information, the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method also includes:
响应于用户在展示的所述多个妆容选项中,选择的具有颜色素材的目标妆容选项,展示环绕所述虚拟角色的色环;displaying a color circle surrounding the avatar in response to the user selecting a target makeup option with color material among the displayed makeup options;
其中,所述色环包括成环状排列的多个颜色选项;任一所述颜色选项在被选中后作为所述目标妆容选项对应的颜色信息。Wherein, the color circle includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
在一种可能的实施方式中,所述对所述虚拟角色进行换妆,包括:In a possible implementation manner, the changing the makeup of the virtual character includes:
根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆。The makeup of the virtual character is changed according to the makeup changing manner respectively matching with at least one of the makeup parts.
在一种可能的实施方式中,根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆,包括:In a possible implementation manner, changing the makeup of the virtual character according to a makeup changing manner respectively matching with at least one of the makeup parts includes:
针对睫毛、眼球、眼白和高光部位中的至少一种,采用为所述妆容部位替换材质的方式来为所述妆容部位换妆;For at least one of the eyelashes, eyeballs, eye whites and highlight parts, changing the makeup of the makeup part by replacing the material of the makeup part;
针对眉毛、眼影、腮红、嘴唇和贴花部位中的至少一种,采用合并贴图的方式来为所述妆容部位换妆。For at least one of the eyebrows, eye shadows, blush, lips and decals, the makeup of the makeup parts is changed by merging textures.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method also includes:
响应于所述目标服饰部件符合所述预设的匹配规则,以动画形式展示所述虚拟角色的服装装扮效果。In response to the target clothing part conforming to the preset matching rule, an animation is displayed to display the clothing decoration effect of the virtual character.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method also includes:
将基于所述附属道具对所述虚拟角色进行装扮后的效果,与基于所述目标服饰部件对所述虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。The effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
第二方面,本公开实施例提供了一种虚拟角色形象更换装置,包括:In the second aspect, the embodiment of the present disclosure provides an avatar image replacement device, including:
第一展示模块,用于展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部位,其中每个身体部分对应有多种服饰部件;The first display module is used to display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; a plurality of the clothing props include clothing used to dress up the virtual character Apparel parts for different body parts, where each body part corresponds to multiple apparel parts;
第一处理模块,用于响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则;The first processing module is used to determine the target clothing part selected by the user in response to the trigger of the user, and determine whether the target clothing part meets the preset matching rules;
第二展示模块,用于响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具;The second display module is used to obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rules, and display the accessory props on the fitting interface;
第二处理模块,用于响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。The second processing module is configured to dress up the virtual character in response to the trigger for the accessory prop.
在一种可能的实施方式中,所述匹配规则包括所述用户选择的各个所述目标服饰部件匹配的所述虚拟角色的身体部分为所述虚拟角色的全部身体部分,所述第一处理模块在执行判断所述目标服饰部件是否符合预设的匹配规则时,具体用于:确定所述用户选择的各个目标服饰部件匹配的所述虚拟角色的身体部分;判断匹配的所述身体部分是否为所述虚 拟角色的全部身体部分。In a possible implementation manner, the matching rule includes that the body parts of the virtual character matched by each of the target clothing parts selected by the user are all body parts of the virtual character, and the first processing module When judging whether the target clothing part complies with the preset matching rule, it is specifically used to: determine the body part of the virtual character matched by each target clothing part selected by the user; judge whether the matched body part is All body parts of the avatar.
在一种可能的实施方式中,所述附属道具包括妆容道具;所述第二处理模块在执行所述响应于针对所述附属道具的触发,对所述虚拟角色进行装扮时,具体用于:响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆。In a possible implementation manner, the accessory props include makeup props; when the second processing module performs the dressing up of the virtual character in response to the trigger for the accessory props, it is specifically configured to: In response to the trigger for the makeup props, the makeup of the virtual character is changed.
在一种可能的实施方式中,所述第二处理模块在执行响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆时,具体用于:响应于针对所述妆容道具的触发,基于所述妆容道具对应的至少一个换妆部位和所述换妆部位换妆后的妆容信息,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In a possible implementation manner, when the second processing module executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item changing the makeup of the virtual character based on at least one makeup changing part corresponding to the makeup prop and the makeup information of the makeup changing part after the makeup changing, and displaying the makeup changing effect of the virtual character.
在一种可能的实施方式中,所述第二处理模块在执行响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆时,具体用于:In a possible implementation manner, the second processing module is specifically configured to:
响应于针对所述妆容道具的触发,展示包含妆容编辑信息的浮层;所述妆容编辑信息中包含多个妆容选项,每个所述妆容选项对应至少一个换妆部位,所述妆容选项具有对应的换妆素材;至少一个所述妆容选项的换妆素材中包含颜色素材;In response to the trigger for the makeup props, display a floating layer containing makeup editing information; the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding The makeup changing material of at least one of the makeup options includes color material;
响应于用户基于所述妆容编辑信息选择的妆容选项和换妆素材,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In response to the makeup options and makeup-changing material selected by the user based on the makeup editing information, the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
在一种可能的实施方式中,所述第二处理模块,还用于:In a possible implementation manner, the second processing module is further configured to:
响应于用户在展示的所述多个妆容选项中,选择的具有颜色素材的目标妆容选项,展示环绕所述虚拟角色的色环;displaying a color circle surrounding the avatar in response to the user selecting a target makeup option with color material among the displayed makeup options;
其中,所述色环包括成环状排列的多个颜色选项;任一所述颜色选项在被选中后作为所述目标妆容选项对应的颜色信息。Wherein, the color circle includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
在一种可能的实施方式中,所述第二处理模块在执行所述对所述虚拟角色进行换妆时,具体用于:根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆。In a possible implementation manner, when the second processing module performs the makeup change on the virtual character, it is specifically configured to: change the The virtual character performs a makeup change.
在一种可能的实施方式中,所述第二处理模块在执行根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆时,具体用于:In a possible implementation manner, the second processing module is specifically configured to:
针对睫毛、眼球、眼白和高光部位中的至少一种,采用为所述妆容部位替换材质的方式来为所述妆容部位换妆;For at least one of the eyelashes, eyeballs, eye whites and highlight parts, changing the makeup of the makeup part by replacing the material of the makeup part;
针对眉毛、眼影、腮红、嘴唇、和贴花部位中的至少一种,采用合并贴图的方式来为所述妆容部位换妆。For at least one of the eyebrows, eye shadows, blush, lips, and decals, the makeup of the makeup parts is changed by merging textures.
在一种可能的实施方式中,所述第二展示模块,还用于:In a possible implementation manner, the second display module is also used for:
响应于所述目标服饰部件符合所述预设的匹配规则,以动画形式展示所述虚拟角色的服装装扮效果。In response to the target clothing part conforming to the preset matching rule, an animation is displayed to display the clothing decoration effect of the virtual character.
在一种可能的实施方式中,所述第二处理模块,还用于:In a possible implementation manner, the second processing module is further configured to:
将基于所述附属道具对所述虚拟角色进行装扮后的效果,与基于所述目标服饰部件对所述虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。The effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
第三方面,本公开可选实现方式还提供一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时执行如上述第一方面或第一方面中任一种可能的实施方式所述的虚拟角色形象更换方法的步骤。In a third aspect, an optional implementation manner of the present disclosure further provides a computer device, including: a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the memory The machine-readable instructions stored in the computer, when the machine-readable instructions are executed by the processor, execute the steps of the avatar image replacement method described in the first aspect or any possible implementation manner of the first aspect.
第四方面,本公开可选的实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面或第一方面中任一种可能的实施方式所述的虚拟角色形象更换方法的步骤。In the fourth aspect, an optional implementation manner of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned first aspect or the first Steps in the method for replacing an avatar image in any possible implementation manner of the aspect.
第五方面,本公开可选的实现方式还提供一种计算机程序产品,所述计算机程序产品承载有程序代码,所述程序代码包括的指令用于执行如上述第一方面或第一方面中任一种可能的实施方式所述的虚拟角色形象更换方法的步骤。In the fifth aspect, an optional implementation manner of the present disclosure further provides a computer program product, the computer program product carries program code, and the program code includes instructions for executing the above-mentioned first aspect or any of the first aspects. Steps in the method for replacing an avatar image in a possible implementation manner.
本公开实施例提供的虚拟角色形象更换方法中,展示试装界面,并在试装界面中展示供虚拟角色试穿的多个服饰道具;判断用户选择的服饰道具中包含的各个目标服饰部件是否符合预设的匹配规则,在确定用户选择的目标服饰部件符合预设的匹配规则后,获取与目标服饰部件相对应的附属道具,并在试装界面中展示该附属道具;之后,用户可以通过触发该附属道具,对虚拟角色进行装扮,如此,本公开实施例中除了可以为虚拟角色进行服饰搭配外,还可以对虚拟角色进行其他装扮(比如,妆容装扮,也即实现换妆的操作),从而丰富了对虚拟角色的装扮方式,以及游戏中的交互操作。In the virtual character image replacement method provided by the embodiments of the present disclosure, a fitting interface is displayed, and a plurality of clothing props for the virtual character to try on are displayed in the fitting interface; Conform to the preset matching rules, after determining that the target clothing part selected by the user meets the preset matching rules, obtain the auxiliary props corresponding to the target clothing parts, and display the auxiliary props in the fitting interface; after that, the user can pass Trigger the auxiliary props to dress up the virtual character. In this way, in the embodiment of the present disclosure, in addition to clothing matching for the virtual character, other dressing up (for example, makeup, that is, the operation of changing makeup) can also be performed on the virtual character. , thereby enriching the way of dressing up the virtual character and the interactive operation in the game.
此外,在附属道具包括妆容道具的情况下,在用户触发妆容道具后,用户可以通过在该浮层上对任一妆容选项对应的多个妆容素材中任一妆容素材的选择操作,设置虚拟角色的妆容,这样,不仅丰富了虚拟角色装扮过程中的交互方式,而且能够实现自定义虚拟角色的妆容,从而丰富了展示页面,提高了交互体验。In addition, when the auxiliary props include makeup props, after the user triggers the makeup props, the user can set the virtual character by selecting any one of the multiple makeup materials corresponding to any makeup option on the floating layer In this way, it not only enriches the interaction mode in the process of dressing up the virtual character, but also can customize the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
另外,在对虚拟角色进行服饰装扮和/或妆容装扮后,可以通过动画形式展示虚拟角色在各角度进行服饰装扮和/或妆容装扮后的效果,这样不需用户对进行服饰装扮和/或妆容装扮后的虚拟角色进行左右或上下滑动,即可观看到该虚拟角色在各角度的服饰装扮和/或妆容装扮后的效果,该过程节省了用户操作,提高了交互体验。In addition, after dressing up the virtual character with clothes and/or make-up, the effects of the dress-up and/or make-up of the virtual character at various angles can be shown in the form of animation, so that the user does not need to make up the clothes and/or make-up. After the dressed virtual character slides left and right or up and down, you can see the effects of the virtual character's clothing and/or makeup at various angles. This process saves user operations and improves the interactive experience.
关于上述虚拟角色形象更换装置、计算机设备、及计算机可读存储介质的效果描述参见上述虚拟角色形象更换方法的说明,这里不再赘述。For the effect description of the above-mentioned avatar image replacement device, computer equipment, and computer-readable storage medium, please refer to the description of the above-mentioned avatar image replacement method, which will not be repeated here.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, they can also make From these drawings other related drawings are obtained.
图1示出了本公开实施例所提供的一种虚拟角色形象更换方法的流程图;FIG. 1 shows a flow chart of a method for replacing an avatar image provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的虚拟角色形象更换方法中,一种试装界面的示意图;Fig. 2 shows a schematic diagram of a fitting interface in the method for replacing an avatar image provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的虚拟角色形象更换方法中,另一种试装界面的示意图;Fig. 3 shows a schematic diagram of another fitting interface in the virtual character image replacement method provided by the embodiment of the present disclosure;
图4示出了本公开实施例所提供的虚拟角色形象更换方法中,又一种试装界面的示意图;Fig. 4 shows a schematic diagram of yet another fitting interface in the method for replacing an avatar image provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的虚拟角色形象更换方法中,再一种试装界面的示意图;Fig. 5 shows a schematic diagram of another fitting interface in the virtual character image replacement method provided by the embodiment of the present disclosure;
图6示出了本公开实施例所提供的虚拟角色形象更换方法中,一种展示有其他用户列表的展示页面的示意图;FIG. 6 shows a schematic diagram of a display page displaying a list of other users in the method for replacing an avatar image provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的虚拟角色形象更换方法中,一种展示有妆容编辑信息的浮层的展示页面的示意图;Fig. 7 shows a schematic diagram of a display page displaying a floating layer of makeup editing information in the method for replacing an avatar image provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的虚拟角色形象更换方法中,另一种展示有妆容编辑信息的浮层的展示页面的示意图;Fig. 8 shows a schematic diagram of another display page displaying a floating layer of makeup editing information in the method for replacing an avatar image provided by an embodiment of the present disclosure;
图9a示出了本公开实施例所提供的虚拟角色形象更换方法中,一种白底脸部贴画的展示页面的示意图;Fig. 9a shows a schematic diagram of a display page of a face sticker on a white background in the virtual character image replacement method provided by an embodiment of the present disclosure;
图9b示出了本公开实施例所提供的虚拟角色形象更换方法中,一种合并后的白底脸部贴画的效果的展示页面的示意图;Fig. 9b shows a schematic diagram of a display page showing the effect of a combined white background face sticker in the virtual character image replacement method provided by the embodiment of the present disclosure;
图10示出了本公开实施例所提供的虚拟角色形象更换方法中,一种展示有将换妆后的效果与进行服饰装扮后的效果进行合并后的虚拟角色的装扮效果的展示页面的示意图;Fig. 10 shows a schematic diagram of a display page showing the dressing effect of the virtual character after the makeup changing effect is combined with the clothing dressing effect in the method for replacing the virtual character image provided by the embodiment of the present disclosure. ;
图11示出了本公开实施例所提供的一种虚拟角色形象更换装置的示意图;Fig. 11 shows a schematic diagram of an avatar image replacement device provided by an embodiment of the present disclosure;
图12示出了本公开实施例所提供的一种计算机设备的示意图。Fig. 12 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种虚拟角色形象更换方法进行详细介绍,本公开实施例所提供的虚拟角色形象更换方法的执行主体一般为具有一定计算能力的计算机设备,在一些可能的实现方式中,该虚拟角色形象更换方法可以通过计算机设备中的处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a method for replacing an avatar image disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the method for replacing avatar image provided by an embodiment of the present disclosure is generally a computer with certain computing power device, in some possible implementation manners, the method for replacing an avatar image may be implemented by a processor in a computer device invoking computer-readable instructions stored in a memory.
需要说明的是,本公开实施例提供的虚拟角色形象更换方法可以应用于对任何游戏中的虚拟角色进行形象更换的游戏场景,例如角色装扮大赛等,下面以执行主体为终端设备(该终端设备可以是手机、电脑等具有显示屏幕、处理器、存储器,且支持用户交互操作的设备)为例对本公开实施例提供的虚拟角色形象更换方法进行详细说明。It should be noted that the avatar image replacement method provided by the embodiments of the present disclosure can be applied to any game scene where the avatar image is replaced in any game, such as a role dressing contest, etc., and the execution subject is the terminal device (the terminal device A device such as a mobile phone, a computer, etc. that has a display screen, a processor, and a memory, and supports user interactive operations) is used as an example to describe the method for replacing an avatar image provided by an embodiment of the present disclosure in detail.
参见图1所示,为本公开实施例提供的虚拟角色形象更换方法的流程图,该虚拟角色形象更换方法包括S101~S104,其中:Referring to FIG. 1 , it is a flowchart of a method for replacing an avatar image provided by an embodiment of the present disclosure. The method for avatar image replacement includes S101-S104, wherein:
S101、展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具; 多个服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部件,其中每个身体部件对应有多种服饰部件。S101. Display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to multiple clothing parts.
其中,供虚拟角色试穿的多个服饰道具例如可以包括但不限于:用于装扮虚拟角色的全身中不同身体部分的套装、用于装扮虚拟角色的头发的饰品、用于装扮虚拟角色的耳朵的饰品、用于装扮虚拟角色的颈部的饰品、用于装扮虚拟角色的腰部的饰品、用于装扮虚拟角色的上半身的服饰、用于装扮虚拟角色下半身的服饰、以及用于装扮虚拟角色的手部的饰品、以及用于装扮虚拟角色的脚部的服饰中的至少一种;其中,套装中包括用于装扮虚拟角色的不同身体部分的服饰部件,比如,可以包括但不限于用于装扮虚拟角色的头发的发型或发簪、用于装扮虚拟角色的耳朵的耳环等饰品、用于装扮虚拟角色的颈部的项链等饰品、用于装扮虚拟角色的上半身的上衣、用于装扮虚拟角色手部的手链等饰品、用于装扮虚拟角色的下半身的下衣、以及用于装扮虚拟角色的脚部的鞋子等中的多种;一般每个身体部分对应有多种服饰部件,比如可以包括但不限于头发对应有发型或发簪等多种服饰部件,耳朵对应有耳环等服饰部件,颈部对应有项链或项圈等服饰部件,上半身对应有衬衫、短袖、毛衣、马夹、背心等多种服饰部件,下半身对应有长裙、短裙、裤子等多种服饰部件,脚部对应有布鞋、绣花鞋、草鞋等多种服饰部件。Among them, a plurality of clothing props for the virtual character to try on may include, but not limited to: suits for dressing up different body parts in the whole body of the virtual character, accessories for dressing up the hair of the virtual character, and ears for dressing up the virtual character. accessories for the neck of the avatar, accessories for the waist of the avatar, clothing for the upper body of the avatar, clothing for the lower body of the avatar, and accessories for avatar At least one of accessories for the hands, and at least one of clothing for dressing up the feet of the virtual character; wherein, the suit includes clothing parts for dressing up different body parts of the virtual character, for example, may include but is not limited to Hairstyles or hairpins for the avatar's hair, accessories such as earrings for the ears of the avatar, accessories such as necklaces for the neck of the avatar, tops for the upper body of the avatar, and accessories for avatars There are many kinds of accessories such as bracelets for the hands, lower garments used to dress up the lower body of the virtual character, and shoes used to dress up the feet of the virtual character; generally, each body part corresponds to a variety of clothing parts, for example, it can include But not limited to, the hair corresponds to a variety of clothing parts such as hairstyles or hairpins, the ears correspond to earrings and other clothing parts, the neck corresponds to necklaces or collars and other clothing parts, and the upper body corresponds to shirts, short sleeves, sweaters, waistcoats, vests, etc. The lower body corresponds to a variety of clothing parts such as long skirts, short skirts, and trousers, and the feet correspond to various clothing parts such as cloth shoes, embroidered shoes, and straw sandals.
在具体实施中,进入试装界面的功能入口有多种,本公开实施例中并不做具体限制。比如,可以通过触发游戏首页中的装扮控件,进入到试装界面;还可以通过直接触发游戏场景画面中展示的虚拟角色,进入到试装界面。In a specific implementation, there are multiple functional entries for entering the trial installation interface, which are not specifically limited in the embodiments of the present disclosure. For example, you can enter the fitting interface by triggering the dress-up control on the home page of the game; you can also enter the fitting interface by directly triggering the virtual character displayed in the game scene screen.
示例性的,若用户在游戏首页中触发装扮控件后,终端设备响应于用户针对游戏首页中的装扮控件的触发操作,展示试装界面;具体的试装界面可以如图2所示,该试装界面中展示有赠送他人控件、还原为默认穿戴控件、购买控件、以及供虚拟角色试穿的多个服饰道具、以及各服饰道具对应的介绍信息、以及装扮有默认穿戴的虚拟角色。Exemplarily, if the user triggers the dress-up control on the home page of the game, the terminal device responds to the user's trigger operation on the dress-up control on the game home page to display a fitting interface; the specific fitting interface can be shown in Figure 2, the trial In the clothing interface, there are controls for gifting others, reverting to default wear controls, purchase controls, multiple clothing props for avatars to try on, and the corresponding introduction information for each clothing prop, as well as avatars with default clothing.
其中,各服饰道具对应的介绍信息用来介绍该服饰道具,例如可以包括但不限于:介绍图片、名称、购买该服饰道具所需要花费的虚拟货币数量、该服饰道具当前对应的折扣值、该服饰道具的类型中的至少一种;其中,服饰道具的类型可以包括但不限于:新品类型、赠妆容类型、新品且赠妆容类型、非新品类型且不赠妆容类型中的至少一种。Among them, the introduction information corresponding to each clothing item is used to introduce the clothing item, for example, it may include but not limited to: introduction picture, name, the amount of virtual currency required to purchase the clothing item, the current discount value corresponding to the clothing item, the At least one of the types of clothing props; wherein, the type of clothing props may include but not limited to: at least one of new product type, free makeup type, new product with free makeup type, non-new product type and no free makeup type.
承接上述S101,本公开实施例提供的虚拟角色形象更换方法还包括:Subsequent to the above S101, the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
S102、响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则。S102. In response to a user's trigger, determine a target clothing part selected by the user, and judge whether the target clothing part complies with a preset matching rule.
其中,用户的触发例如可以包括但不限于:用户对试装界面中展示的任一服饰道具的选择操作、以及用户对当前选择的服饰道具的购买操作(即在用户选择任一服饰道具后,触发购买控件的操作)中的至少一种。Among them, the user's trigger may include, but not limited to: the user's selection operation on any clothing item displayed in the fitting interface, and the user's purchase operation on the currently selected clothing item (that is, after the user selects any clothing item, At least one of the actions that trigger the purchase control).
这里,可以根据下述方法判断目标服饰部件是否符合预设的匹配规则。其中,匹配规则包括用户选择的各个目标服饰部件匹配的虚拟角色的身体部分为虚拟角色的全部身体部分。判断目标服饰部件是否符合预设的匹配规则,包括:确定用户选择的各个目标服饰部件匹配的虚拟角色的身体部分;判断匹配的身体部分是否为虚拟角色的全部身体部分。若是,则确定目标服饰部件符合预设的匹配规则。Here, it can be judged according to the following method whether the target clothing part complies with the preset matching rules. Wherein, the matching rule includes that the body parts of the virtual character matched by each target clothing part selected by the user are all body parts of the virtual character. Judging whether the target clothing parts meet the preset matching rules includes: determining the body parts of the virtual character matched by each target clothing parts selected by the user; and judging whether the matched body parts are all body parts of the virtual character. If yes, it is determined that the target clothing part complies with the preset matching rule.
在具体实施中,用户触发试装界面中任一供虚拟角色试穿的服饰道具后,将服饰道具 中包含的服饰部件确定为用户选择的目标服饰部件;确定用户选择的各个目标服饰部件匹配的虚拟角色的身体部分,在确定用户选择的各个目标服饰部件匹配的虚拟角色的身体部分为虚拟角色的全部身体部分(也即各个目标服饰部件成套)的情况下,确定目标服饰部件符合预设的匹配规则。In the specific implementation, after the user triggers any clothing props for the virtual character to try on in the fitting interface, the clothing parts contained in the clothing props are determined as the target clothing parts selected by the user; For the body part of the virtual character, when it is determined that the body part of the virtual character matched by each target clothing part selected by the user is all the body parts of the virtual character (that is, each target clothing part is a set), it is determined that the target clothing part conforms to the preset matching rules.
在一种可能的实施方式中,用户触发试装界面中任一供虚拟角色试穿的服饰道具后,触发试装界面中展示的购买控件;终端设备可以将用户当前购买的服饰道具(这里,当前购买的服饰道具可以包括多个,比如可以是一次性付款购买选择的多个服饰道具,也可以是分多次付款,每次购买选择的一个服饰道具;也即,这里的当前购买,可以指本次进入试装界面后的所有购买行为,也可以指在前一次赠送附属道具后的所有购买行为,也可以是针对一次付款购买行为,具体根据实际需要来设定,本公开实施例中不做限制)中的包含的服饰部件确定为用户选择的目标服饰部件;确定用户选择的各个目标服饰部件匹配的虚拟角色的身体部分,在确定用户选择的各个目标服饰部件匹配的虚拟角色的身体部分为虚拟角色的全部身体部分的情况下,确定目标服饰部件符合预设的匹配规则。In a possible implementation, after the user triggers any clothing item for the virtual character to try on in the fitting interface, the user triggers the purchase control displayed in the fitting interface; the terminal device can store the currently purchased clothing item (here, The currently purchased clothing props can include multiple ones, for example, it can be a one-time payment to purchase multiple selected clothing props, or it can be divided into multiple payments, and one clothing prop is selected for each purchase; that is, the current purchase here can be Refers to all purchases after entering the trial installation interface this time, or refers to all purchases after the previous gift of accessory props, or it can be for one-time payment purchases, which are specifically set according to actual needs. In the embodiments of the present disclosure The clothing parts included in (without limitation) are determined to be the target clothing parts selected by the user; the body parts of the virtual character matched by each target clothing part selected by the user are determined, and the body parts of the virtual character matched by each target clothing part selected by the user are determined. When the part is the entire body part of the virtual character, it is determined that the target clothing part complies with the preset matching rule.
示例性的,可以在试装界面中同步展示该服饰道具中包含的多个服饰部件,比如可以包括头发装扮部件、衣服装扮部件、鞋子装扮部件、饰品装扮部件;并且还可以同步展示虚拟角色着装有用户当前选中的服饰道具中的各个服饰部件的装扮效果;在实施中,若用户当前选中的服饰道具中每个服饰部件均未被获取的情况下,具体的展示页面可以如图3所示;在一种可能的实施方式中,若确定用户已获取当前选中的服饰道具中的某一服饰部件时,则可以在用户已经获取的服饰部件上展示已经获取标识;这里,该已经获取标识例如可以包括但不限于:图片、符号、文字中的至少一种;具体展示有已经获取标识的展示页面可以如图4所示,图4中示出在确定的用户已经获取的服饰部件上,展示由“已拥有”表征的已经获取标识;此时,若用户触发还原默认穿戴控件,可以对虚拟角色的装扮进行还原,展示虚拟角色着装有默认穿戴的装扮效果。Exemplarily, multiple clothing parts contained in the clothing props can be displayed synchronously in the fitting interface, such as hair decoration parts, clothing decoration parts, shoes decoration parts, and accessories decoration parts; and virtual character clothing can also be displayed synchronously There is the dressing effect of each clothing part in the clothing props currently selected by the user; in the implementation, if each clothing part in the clothing props currently selected by the user has not been acquired, the specific display page can be shown in Figure 3 ; In a possible implementation, if it is determined that the user has obtained a certain clothing part in the currently selected clothing props, the obtained logo can be displayed on the clothing parts that the user has obtained; here, the obtained logo is, for example, It may include but not limited to: at least one of pictures, symbols, and text; the display page specifically displaying the obtained logo can be shown in Figure 4, which shows that on the apparel parts that the determined user has acquired, the displayed The already-acquired logo represented by "Owned"; at this time, if the user triggers the restoration of the default clothing control, the virtual character's clothing can be restored to show the virtual character's clothing with the default clothing effect.
示例性的,图2或图3或图4所示的试装界面中还展示有购买各服饰道具所需要花费的虚拟货币数量、以及用户当前拥有的虚拟货币数量;若当前展示的试装界面如图3所示,即确定用户当前选中的服饰道具中每个服饰部件均未被获取,若此时用户触发购买控件,则购买当前选中的服饰道具中包含的全部服饰部件,并对用户当前拥有的虚拟货币数量进行更新;这里,将用户当前拥有的虚拟货币数量与购买当前选中的服饰道具所需的虚拟货币数量之间的差值,作为更新后的用户当前拥有的虚拟货币数量;具体的更新完用户当前拥有的虚拟货币数量的展示页面可以如图5所示。Exemplarily, the fitting interface shown in Fig. 2 or Fig. 3 or Fig. 4 also shows the amount of virtual currency required to purchase each clothing item and the amount of virtual currency currently owned by the user; if the currently displayed fitting interface As shown in Figure 3, it is determined that each clothing part in the clothing item currently selected by the user has not been acquired. If the user triggers the purchase control at this time, all clothing parts contained in the currently selected clothing item are purchased, and the current The amount of virtual currency owned by the user is updated; here, the difference between the amount of virtual currency currently owned by the user and the amount of virtual currency required to purchase the currently selected clothing item is used as the updated amount of virtual currency currently owned by the user; specifically After updating the display page of the amount of virtual currency currently owned by the user may be shown in Figure 5.
在一种可能的实施方式中,若当前展示的试装界面如图4所示,即确定用户在购买当前选中的服饰道具前,已经获取到该服饰道具中包含的某一服饰部件,则展示在用户购买当前选中的服饰道具时,若此时用户触发购买控件,则购买当前选中的服饰道具中用户未获取的其他服饰部件,并对用户当前拥有的虚拟货币数量进行更新;这里,首先计算购买当前选中的服饰道具中用户未获取的其他服饰部件所需的虚拟货币数量,即将购买当前选中的服饰道具所需的虚拟货币数量与购买用户已获取到的该服饰道具中包含的服饰部件所需的虚拟货币数量之间的第一差值,作为购买当前选中的服饰道具中用户未获取的其他服饰部件所需的虚拟货币数量;然后,将用户当前拥有的虚拟货币数量与第一差值(即购买 当前选中的服饰道具中用户未获取的其他服饰部件所需的虚拟货币数量)之间的第二差值,作为更新后的用户当前拥有的虚拟货币数量。In a possible implementation, if the currently displayed trial fitting interface is as shown in Figure 4, that is, it is determined that the user has obtained a certain clothing part contained in the currently selected clothing item before purchasing the currently selected clothing item, then display When the user purchases the currently selected clothing props, if the user triggers the purchase control at this time, other clothing parts that the user has not obtained in the currently selected clothing props will be purchased, and the amount of virtual currency currently owned by the user will be updated; here, first calculate The amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing item is the amount of virtual currency required to purchase the currently selected clothing item and the amount of virtual currency required to purchase the clothing item contained in the clothing item that the user has obtained. The first difference between the amount of virtual currency required is used as the amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing props; then, the amount of virtual currency currently owned by the user and the first difference (that is, the amount of virtual currency required to purchase other clothing parts not obtained by the user in the currently selected clothing item) is used as the updated virtual currency amount currently owned by the user.
示例性的,在用户购买完选中的服饰道具后,可以通过触发赠送他人控件,将当前购买到的服饰道具赠送给其他用户;具体的,在用户触发赠送他人控件后,可以展示用户能够赠送的其他用户列表,从而实现将用户当前购买到的服饰道具,赠送给用户在其他用户列表中选中的其他用户,具体的展示其他用户列表的展示页面可以如图6所示,该其他用户列表中例如可以包括但不限于:与用户具有好友关系的其他用户的名称和头像、以及用于选择各其他用户信息的选择控件、以及用于查看全部其他用户的名称和头像的“查看全部”控件。Exemplarily, after the user purchases the selected clothing props, the currently purchased clothing props can be given to other users by triggering the gift to others control; specifically, after the user triggers the gift to others control, the user can display the Other user lists, so as to realize that the clothing and props currently purchased by the user are given to other users selected by the user in the other user lists. The specific display page for displaying the other user lists can be shown in Figure 6. In the other user lists, for example This may include, but is not limited to: the names and avatars of other users that the user is friends with, a selection control for selecting information about each other user, and a "view all" control for viewing the names and avatars of all other users.
承接上述S102,本公开实施例提供的虚拟角色形象更换方法还包括:Subsequent to the above S102, the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
S103、响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具。S103. Obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rule, and display the accessory props on the fitting interface.
其中,附属道具例如可以包括但不限于:用于对虚拟角色进行换妆的妆容道具、以及游戏道具中的至少一种;这里,游戏道具例如可以包括但不限于:刀、枪、箭、剑等射击道具、魔法棒等中的至少一个。Among them, the auxiliary props may include but not limited to: at least one of makeup props for changing the makeup of virtual characters, and game props; here, the game props may include but not limited to: knives, guns, arrows, swords, etc. Wait for at least one of the shooting props, magic wand, etc.
用户获取服饰道具的方式可以是购买服饰道具,也可以是获取其它用户或平台赠送的服饰道具。示例性的,在附属道具为妆容道具的情况下,在用户购买试装界面中的服饰道具、且该服饰道具符合预设的匹配规则时,可以获取与该服饰道具中包含的各个目标服饰部件相对应的妆容道具,并在试装界面中展示妆容道具;具体的展示页面可以如图5所示,图5中展示有更新后的用户当前拥有的虚拟货币数量,还展示有妆容道具。同理,若用户经其他用户赠送获取到试装界面中的任一服饰道具后,在用户触发游戏首页中的装扮控件或触发游戏场景画面中展示的虚拟角色后,进入试装界面;此时该试装界面中展示有用户已经拥有的多个服饰道具,其中包括其他用户赠送的服饰道具,用户选择其他用户赠送的服饰道具,若该服饰道具符合预设的匹配规则,可以获取与该服饰道具中包含的各个目标服饰部件相对应的妆容道具,并在试装界面中展示妆容道具。The way for users to obtain clothing and props can be to buy clothing and props, or to obtain clothing and props presented by other users or platforms. Exemplarily, in the case that the auxiliary props are makeup props, when the user purchases the costume props in the fitting interface and the costume props meet the preset matching rules, the target costume parts contained in the costume props can be obtained The corresponding makeup props, and display the makeup props in the fitting interface; the specific display page can be shown in Figure 5, which shows the updated virtual currency amount currently owned by the user, and also displays the makeup props. Similarly, if the user obtains any clothing item in the fitting interface from other users, the user will enter the fitting interface after the user triggers the dressing control on the game home page or triggers the virtual character displayed in the game scene screen; at this time The fitting interface displays multiple clothing items that the user already owns, including clothing items presented by other users. The user selects the clothing items presented by other users. If the clothing items meet the preset matching rules, they can obtain the same Makeup props corresponding to each target clothing part included in the props, and display the makeup props in the fitting interface.
在一种可能的实施方式中,上述预设的匹配规则中除了包括对虚拟角色的身体部分的匹配(比如上述描述的各个目标服饰部件成套的规则)外,还可以包括对服饰道具类型等的限定,比如设定某些类型的服饰道具(比如针对某些高级别的服饰道具有赠送功能)对应有赠送的妆容。这种情况下,在用户购买试装界面中的任一服饰道具后,可以根据用户购买的服饰道具的类型,确定用户购买的服饰道具是否属于赠妆容类型的服饰道具;在确定用户购买的服饰道具属于赠妆容类型的服饰道具时,可以获取与该服饰道具中包含的各个目标服饰部件相对应的妆容道具,并在试装界面中展示妆容道具,具体的展示界面可以如图5所示。In a possible implementation, in addition to matching the body parts of the virtual character (such as the above-mentioned rules for each target clothing part set), the above preset matching rules may also include the matching of clothing props, etc. Restrictions, such as setting certain types of clothing props (such as gift functions for certain high-level clothing props) correspond to free makeup. In this case, after the user purchases any clothing item in the try-on interface, it can be determined whether the clothing item purchased by the user belongs to the makeup type according to the type of clothing item purchased by the user; When the item belongs to the clothing item of the free makeup type, the makeup item corresponding to each target clothing part contained in the item can be obtained, and the makeup item can be displayed in the fitting interface. The specific display interface can be shown in Figure 5.
在具体实施中,上述成套的规则和对服饰道具类型等的限定也可以在所述预设的匹配规则中结合使用。In a specific implementation, the above set of rules and the limitations on the types of clothing and props can also be used in combination with the preset matching rules.
在一种可能的实施方式中,在确定用户选择的目标服饰部件符合预设的匹配规则后,还可以响应于目标服饰部件符合预设的匹配规则,以动画显示展示虚拟角色的服装装扮效果。In a possible implementation manner, after it is determined that the target clothing part selected by the user complies with the preset matching rule, an animation may be used to display the clothing dressing effect of the virtual character in response to the target clothing part meeting the preset matching rule.
这里,通过动画形式能够展示虚拟角色在各角度进行服装装扮后的效果,这样不需用户对进行服装装扮后的虚拟角色进行左右或上下滑动,即可观看到该虚拟角色在各角度的服装装扮效果,该过程节省了用户操作,提高了用户游戏体验。Here, the effect of dressing up the virtual character at various angles can be shown in the form of animation, so that the user can watch the dressing up of the virtual character at various angles without sliding the virtual character left and right or up and down. As a result, this process saves user operations and improves the user's gaming experience.
在另一种可能的实施方式中,在用户购买试装界面中的任一服饰道具后;或者经其他用户赠送获取到试装界面中的任一服饰道具后,确定用户成功获取该试装界面中任一服饰道具;在确定用户成功获取到试装界面中任一服饰道具、且确定该服饰道具中各个服饰部件装扮的虚拟角色的身体部分为全部身体部分时,除了可以赠送妆容外,还可以赠送其它游戏道具,即还可以获取与目标服饰部件相对应的游戏道具,并在试装界面中展示游戏道具。In another possible implementation, after the user purchases any clothing item in the fitting interface; or after receiving any clothing item in the fitting interface as a gift from other users, it is determined that the user has successfully obtained the fitting interface any of the clothing props; when it is determined that the user has successfully obtained any of the clothing props in the fitting interface, and the body parts of the virtual character dressed by each clothing part in the clothing props are all body parts, in addition to presenting makeup, you can also Other game props can be given as gifts, that is, game props corresponding to the target clothing parts can also be obtained, and the game props can be displayed in the fitting interface.
承接上述S103,本公开实施例提供的虚拟角色形象更换方法还包括:Subsequent to the above S103, the method for replacing the virtual character image provided by the embodiment of the present disclosure further includes:
S104、响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。S104. Dress up the virtual character in response to the trigger for the accessory prop.
在具体实施中,若附属道具包括妆容道具时,在用户触发妆容道具后,终端设备响应于针对该妆容道具的触发,对虚拟角色进行换妆。In a specific implementation, if the auxiliary props include makeup props, after the user triggers the makeup props, the terminal device changes the makeup of the virtual character in response to the trigger for the makeup props.
具体的,在用户触发妆容道具后,终端设备响应于针对妆容道具的触发,基于妆容道具对应的至少一个换妆部位和换妆部位换妆后的妆容信息,对虚拟角色进行换妆,并展示虚拟角色的换妆效果。Specifically, after the user triggers the makeup props, the terminal device changes the makeup of the virtual character based on at least one makeup-changing part corresponding to the makeup props and the makeup information of the makeup-changing parts in response to the trigger for the makeup props, and displays Makeup effects for virtual characters.
其中,换妆部位用来表征该妆容道具指示的能够装扮的部位,例如可以包括但不限于:眉毛、睫毛、眼睛、面颊、嘴唇等面部中的至少一个部位;换妆部位换妆后的妆容信息例如可以包括但不限于:脸型信息、眉毛的颜色信息、眉毛的形状信息、睫毛的颜色信息、睫毛的长度信息、眼影的颜色信息、美瞳的颜色、眼线的形状信息、眼睛高光的位置信息、以及眼睛高光的颜色信息、以及面部腮红的颜色信息、面部高光的位置信息、以及嘴唇的形状信息、唇妆的颜色信息、妆花的颜色信息中的至少一种。Wherein, the makeup-changing part is used to represent the dressable part indicated by the makeup prop, for example, it may include but not limited to: at least one part of the face such as eyebrows, eyelashes, eyes, cheeks, lips, etc.; For example, the information may include but not limited to: face shape information, eyebrow color information, eyebrow shape information, eyelash color information, eyelash length information, eye shadow color information, color contact lenses, eyeliner shape information, eye highlight position information, and the color information of eye highlights, and the color information of facial blush, the position information of facial highlights, and at least one of the shape information of lips, the color information of lip makeup, and the color information of make-up.
示例性的,若妆容道具对应的各换妆部位以及各换妆部位换妆后的妆容信息包括:瓜子脸、褐色柳叶眉、黑色长睫毛、粉色眼影、棕色美瞳、粉红色腮红、嘴唇的形状为樱桃小嘴、唇妆的颜色为赤红;则在用户触发妆容道具后,终端设备可以基于妆容道具对应的各换妆部位和各换妆部位换妆后的妆容信息,自动对虚拟角色进行换妆,并展示虚拟角色的换妆效果。Exemplarily, if the makeup changing parts corresponding to the makeup props and the makeup information after the makeup changing parts include: oval face, brown willow eyebrows, black long eyelashes, pink eye shadow, brown colored contact lenses, pink blush, lips The shape of the mouth is cherry, and the color of the lip makeup is red; after the user triggers the makeup props, the terminal device can automatically adjust the makeup of the virtual character based on the makeup changing parts corresponding to the makeup props and the makeup information of each makeup changing parts. Change makeup and show the effect of changing makeup on virtual characters.
在一种可能的实施方式中,在用户触发妆容道具后,终端设备响应于针对妆容道具的触发,展示包含妆容编辑信息的浮层。In a possible implementation manner, after the user triggers the makeup prop, the terminal device displays a floating layer containing makeup editing information in response to the trigger for the makeup prop.
其中,妆容编辑信息中至少包含但不限于:多个妆容选项;每个妆容选项对应至少一个换妆部位,各妆容选项具有对应的换妆素材;至少一个妆容选项的换妆素材中包含颜色素材。示例性的,妆容选项例如可以包括但不限于:脸型、眉睫、眼妆、唇妆、彩妆、发型中的至少一种;其中,脸型对应的换妆素材例如可以但不限于:瓜子脸、圆形脸、鹅蛋脸、长形脸等中的至少一种;眉睫对应的换妆素材例如可以包括但不限于:眉毛换妆素材和睫毛换妆素材等中的至少一种;眼妆对应的换妆素材例如可以但不限于:眼影换妆素材、美瞳换妆素材、眼白换妆素材、高光换妆素材等中的至少一种;唇妆对应的换妆素材例如可以但不限于:唇形换妆素材;这里,为了便于用户进行编辑操作,一般可以将眉睫、眼妆、唇妆、彩妆、发型等多个妆容选项分别对应的换妆素材对应的至少一个素材选项(展 示给用户,以便用户通过选择素材选项选择对应的换妆素材;具体的妆容编辑信息中包含的妆容选项、以及各妆容选项对应的换妆素材可以根据实际需求设定,此处不做具体限制。Among them, the makeup editing information at least includes but is not limited to: multiple makeup options; each makeup option corresponds to at least one makeup changing part, and each makeup option has a corresponding makeup changing material; the makeup changing material of at least one makeup option contains color materials . Exemplarily, the makeup options may include, but not limited to: at least one of face shape, eyebrows, eye makeup, lip makeup, makeup, and hairstyle; wherein, the makeup changing material corresponding to the face shape may be, but not limited to: oval face, round At least one of shaped face, oval face, elongated face, etc.; makeup changing materials corresponding to eyebrows and eyelashes, for example, may include but not limited to: at least one of eyebrow makeup changing materials and eyelash makeup changing materials, etc.; makeup changing materials corresponding to eye makeup The material can be, for example but not limited to: at least one of eye shadow makeup changing material, color contact makeup changing material, eye white makeup changing material, highlight makeup changing material, etc.; the makeup changing material corresponding to lip makeup can be but not limited to: lip shape changing Makeup material; here, in order to facilitate the user's editing operation, generally at least one material option (shown to the user) corresponding to multiple makeup options such as eyebrows, eye makeup, lip makeup, makeup, hairstyle, etc. Select the corresponding makeup-changing material by selecting the material option; the makeup options included in the specific makeup editing information and the makeup-changing materials corresponding to each makeup option can be set according to actual needs, and no specific restrictions are set here.
示例性的,具体的展示包含妆容编辑信息的浮层可以如图7所示,图7中示出眉睫、眼妆、唇妆、彩妆这四个妆容选项、以及待装扮的虚拟角色。Exemplarily, the floating layer containing makeup editing information can be displayed specifically as shown in FIG. 7 , which shows four makeup options of eyebrows, eye makeup, lip makeup, and color makeup, as well as the virtual character to be dressed up.
在具体实施中,用户触发妆容编辑信息中展示的多个妆容选项中的任一妆容选项后,终端设备可以将该妆容选项对应的至少一个换妆素材展示给用户,用户在展示的至少一个换妆素材中触发任一换妆素材后,终端设备可以响应于用户基于妆容编辑信息选择的妆容选项和换妆素材,对虚拟角色进行换妆,并展示虚拟角色的换妆效果。In a specific implementation, after the user triggers any makeup option among the multiple makeup options displayed in the makeup editing information, the terminal device can display at least one makeup-changing material corresponding to the makeup option to the user, and the user can display at least one makeup-changing material in the displayed at least one makeup-changing material. After triggering any makeup-changing material in the makeup material, the terminal device can change the makeup of the virtual character in response to the makeup option and makeup-changing material selected by the user based on the makeup editing information, and display the makeup-changing effect of the virtual character.
此外,妆容编辑信息中包含的多个妆容选项对应的素材信息中还可以包括颜色素材,在用户触发多个妆容选项中具有颜色素材的目标妆容选项后,终端设备响应于用户在展示的多个妆容选项中,选择的具有颜色素材的目标妆容选项,展示环绕虚拟角色的色环。In addition, the material information corresponding to the multiple makeup options contained in the makeup editing information may also include color materials, and after the user triggers the target makeup option with color materials among the multiple makeup options, the terminal device responds to the multiple makeup options displayed by the user. In the makeup options, the selected target makeup options with color materials show the color circle surrounding the avatar.
其中,色环可以包括但不限于成环状排列的多个颜色选项;任一颜色选项在被选中后作为目标妆容选项对应的颜色信息;这里,用户可以通过对色环进行预设方向上的滑动,在图形用户的展示页面中看到多个颜色选项;其中预设方向例如可以包括但不限于:左右方向、上下方向等中的至少一种。Wherein, the color ring may include but not limited to a plurality of color options arranged in a ring; any color option is selected as the color information corresponding to the target makeup option; Swipe to see multiple color options on the display page of the graphic user; the preset direction may include, but not limited to, at least one of left and right directions, up and down directions, and the like.
示例性的,若用户触发多个妆容选项中的眼妆妆容选项后,将该眼妆妆容选项下包含的默认展示的多个眼影换妆素材展示给用户,另外,由于该眼影换妆素材中包含颜色素材,则可以将环状排列的多个眼影颜色选项展示给用户,具体的展示页面可以如图8所示;此时若用户选择该多个眼影换妆素材中的“人鱼之泪”的眼影换妆素材、且选择粉红色眼影颜色后,则可以使用粉红色的“人鱼之泪”的眼影换妆素材对虚拟角色的眼睛部位进行装扮,并展示装扮后的虚拟角色。Exemplarily, if the user triggers the eye makeup makeup option among the multiple makeup options, the multiple eye shadow makeup replacement materials included in the eye makeup makeup option are displayed to the user by default. In addition, because the eye shadow makeup replacement material If the color material is included, multiple eye shadow color options arranged in a circle can be displayed to the user. The specific display page can be shown in Figure 8; After selecting the eye shadow makeup material and choosing the pink eye shadow color, you can use the pink "mermaid tears" eye shadow makeup material to dress up the avatar's eyes and display the dressed avatar.
在具体实施中,不同妆容部位对应的换妆方式可以不同,也可以相同,比如,睫毛、眼球、眼白、高光等可以采用替换材质的方式进行妆容的更换,睫毛、眼球、眼白、高光的颜色可以通过修改材质颜色属性的方式进行替换;再比如,眉毛、眼影、腮红、嘴唇、妆花等可以采用合并贴图的方式进行妆容的更换,眉毛、眼影、腮红、嘴唇、妆花的颜色可以通过修改合并的贴图来替换;具体的妆容编辑信息中包含的各妆容部位对应的换妆方式可以根据实际需求设定,此处不做具体限制。In specific implementation, the makeup changing methods corresponding to different makeup parts can be different or the same. For example, eyelashes, eyeballs, eye whites, highlights, etc. can be replaced by replacing materials. The colors of eyelashes, eyeballs, eye whites, and highlights It can be replaced by modifying the color properties of the material; for another example, eyebrows, eye shadows, blush, lips, makeup, etc. can be replaced by merging textures, and the colors of eyebrows, eye shadows, blush, lips, and makeup It can be replaced by modifying the merged texture; the makeup changing method corresponding to each makeup part contained in the specific makeup editing information can be set according to actual needs, and there is no specific limitation here.
实施时,由于不同妆容部位对应的换妆方式可以不同,也可以相同;因此,在对虚拟角色进行换妆时,可以根据与至少一种妆容部位分别匹配的换妆方式,对虚拟角色进行换妆。During implementation, since the makeup changing methods corresponding to different makeup parts can be different or the same; therefore, when changing the makeup of the virtual character, the virtual character can be changed according to the makeup changing methods that match at least one makeup part respectively. makeup.
具体的,针对睫毛、眼球、眼白和高光部位中的至少一种,采用为妆容部位替换材质的方式来为该妆容部位换妆;针对眉毛、眼影、腮红、嘴唇、和贴花部位中的至少一种,采用合并贴图的方式来为妆容部位换妆。Specifically, for at least one of the eyelashes, eyeballs, whites of the eyes, and highlight parts, the makeup of the makeup part is changed by replacing the material for the makeup part; for at least one of the eyebrows, eye shadow, blush, lips, and decals One is to change the makeup of the makeup parts by merging textures.
此外,针对睫毛、眼球、眼白和高光部位中的至少一种,采用修改替换材质的颜色属性的方式来为修改该妆容部位妆容的颜色;针对眉毛、眼影、腮红、嘴唇、和贴花部位中的至少一种,采用修改合并的贴图的方式来修改该妆容部位妆容的颜色。In addition, for at least one of the eyelashes, eyeballs, eye whites, and highlight parts, modify the color attribute of the replacement material to modify the makeup color of the makeup part; for eyebrows, eye shadow, blush, lips, and decals At least one method of modifying the color of the makeup part by modifying the merged texture.
示例性的,合并贴图的流程可以是预先存储一张抹掉妆容部位中包含的任何妆容的白底脸部贴图,具体的白底脸部贴图的展示页面可以如图9a所示;针对眉毛、眼影、腮红、 嘴唇、和贴花部位中的至少一个部位,通过选择妆容编辑信息中展示的多个妆容素材、以及颜色素材中的至少一种,对其进行换妆或修改妆容的颜色;这里,每换一个妆容或者每修改一次妆容上的颜色,会将该妆容或该妆容颜色与图9a所示的白底脸部贴图进行合并,从而实现换妆的功能;具体的在图9a中的白底脸部贴图上合并了眉毛、眼影、眼影、腮红、嘴唇、和贴花后的效果图可以如图9b所示。Exemplarily, the process of merging textures can be to pre-store a white background facial texture that erases any makeup contained in the makeup part, and the display page of the specific white background facial texture can be shown in Figure 9a; for eyebrows, For at least one part of eye shadow, blush, lips, and decals, change the makeup or modify the color of the makeup by selecting at least one of the multiple makeup materials and color materials displayed in the makeup editing information; here , each time a makeup look is changed or the color of the makeup look is modified, the makeup look or the makeup look color will be merged with the white background face texture shown in Figure 9a, so as to realize the function of changing makeup; specifically, in Figure 9a The effect picture after combining eyebrows, eye shadows, eye shadows, blush, lips, and decals on the white background face texture can be shown in Figure 9b.
在一种可能的实施方式中,终端设备响应于针对附属道具的触发,对虚拟角色进行装扮时,还可以将基于附属道具对虚拟角色进行装扮后的效果,与基于所述目标服饰部件对虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。In a possible implementation manner, when the terminal device dresses up the virtual character in response to the trigger for the accessory props, it may also combine the effect of dressing the virtual character based on the accessory props with the effect of dressing the virtual character based on the target clothing parts. The effects of the characters' costumes are merged, and the combined costume effects are displayed in the form of animation.
示例性的,在附属道具包括妆容道具的情况下,终端设备响应于针对妆容道具的触发,对虚拟角色进行装扮时,还可以将基于妆容道具对虚拟角色换妆后的效果,与基于目标服饰部件对虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。具体的展示有合并后的装扮效果的展示页面可以如图10所示。Exemplarily, in the case that the auxiliary props include makeup props, when the terminal device dresses up the virtual character in response to the trigger for the makeup props, it can also combine the effect of changing the makeup of the virtual character based on the makeup props with the effect based on the target clothing. The components combine the effects of dressing up the virtual characters, and display the combined dressing effects in the form of animation. A specific display page displaying the combined dressing effect may be shown in FIG. 10 .
这里,通过动画形式能够展示虚拟角色各角度的装扮效果,这样不需用户对装扮后的虚拟角色进行预设方向上的滑动,即可观看到该虚拟角色在各角度的装扮效果,该过程节省了用户操作,提高了用户游戏体验。Here, the dress-up effect of the virtual character at various angles can be displayed in the form of animation, so that the user can watch the dress-up effect of the virtual character at various angles without the need for the user to slide the dressed virtual character in the preset direction, which saves The user operation is improved, and the user's game experience is improved.
本公开实施例中,展示试装界面,并在试装界面中展示供虚拟角色试穿的多个服饰道具;判断用户选择的服饰道具中包含的各个目标服饰部件是否符合预设的匹配规则,在确定用户选择的目标服饰部件符合预设的匹配规则后,获取与目标服饰部件相对应的附属道具,并在试装界面中展示该附属道具;之后,用户可以通过触发该附属道具,对虚拟角色进行装扮,如此,本公开实施例提供的虚拟角色形象更换方法,除了可以为虚拟角色进行服饰搭配外,还可以对虚拟角色进行其他装扮(比如,妆容装扮,也即实现换妆的操作),从而丰富了对虚拟角色的装扮方式,以及游戏中的交互操作。In the embodiment of the present disclosure, a fitting interface is displayed, and multiple clothing props for virtual characters to try on are displayed in the fitting interface; it is judged whether each target clothing part included in the clothing props selected by the user conforms to the preset matching rules, After determining that the target clothing part selected by the user complies with the preset matching rules, obtain the auxiliary props corresponding to the target clothing part, and display the auxiliary props in the fitting interface; after that, the user can trigger the auxiliary props to simulate the virtual The character is dressed up. In this way, the method for changing the virtual character image provided by the embodiment of the present disclosure can not only match the clothes of the virtual character, but also make other clothes for the virtual character (for example, make-up, that is, realize the operation of changing makeup) , thereby enriching the way of dressing up the virtual character and the interactive operation in the game.
此外,在附属道具包括妆容道具的情况下,在用户触发妆容道具后,可以展示包含妆容编辑信息的浮层,用户可以通过在该浮层上对任一妆容选项对应的多个妆容素材中任一妆容素材的选择操作,设置虚拟角色的妆容,这样,不仅丰富了虚拟角色装扮过程中的交互方式,而且能够实现自定义虚拟角色的妆容,从而丰富了展示页面,提高了交互体验。In addition, when the auxiliary props include makeup props, after the user triggers the makeup props, a floating layer containing makeup editing information can be displayed, and the user can select any of the makeup materials corresponding to any makeup option on the floating layer. The selection operation of a makeup material sets the makeup of the virtual character, which not only enriches the interaction mode in the process of dressing up the virtual character, but also enables customizing the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
另外,在对虚拟角色进行服装装扮和/或妆容装扮后,可以通过动画形式展示虚拟角色在各角度进行服装装扮和/或妆容装扮后的效果,这样不需用户对进行服装装扮和/或妆容装扮后的虚拟角色进行左右或上下滑动,即可观看到该虚拟角色在各角度的服装装扮和/或妆容装扮后的效果,该过程节省了用户操作,提高了交互体验。In addition, after dressing up the virtual character with clothes and/or make-up, the effects of the dress-up and/or make-up of the virtual character at various angles can be shown in animation, so that the user does not need to make up the clothes and/or make-up. After the dressed virtual character slides left and right or up and down, you can see the effect of the virtual character's clothing and/or makeup at various angles. This process saves user operations and improves the interactive experience.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于同一发明构思,本公开实施例中还提供了与虚拟角色形象更换方法对应的虚拟角色形象更换装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述虚拟角色形象更换方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a virtual character image replacement device corresponding to the method for replacing the virtual character image, because the problem-solving principle of the device in the embodiment of the present disclosure is the same as that of the above-mentioned virtual character image replacement method in the embodiment of the present disclosure Similar, therefore, the implementation of the device can refer to the implementation of the method, and repeated descriptions will not be repeated.
参照图11所示,为本公开实施例提供的一种虚拟角色形象更换装置1100的示意图,所述虚拟角色形象更换装置包括:第一展示模块1101、第一处理模块1102、第二展示模块 1103和第二处理模块1104;其中:Referring to FIG. 11 , which is a schematic diagram of an avatar image replacement device 1100 provided by an embodiment of the present disclosure, the avatar image replacement device includes: a first display module 1101 , a first processing module 1102 , and a second display module 1103 and the second processing module 1104; wherein:
第一展示模块1101,用于展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部位,其中每个身体部分对应有多种服饰部件。The first display module 1101 is used to display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include Clothing parts for different body parts of , where each body part corresponds to multiple clothing parts.
第一处理模块1102,用于响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则。The first processing module 1102 is configured to determine the target clothing part selected by the user in response to the user's trigger, and determine whether the target clothing part complies with a preset matching rule.
第二展示模块1103,用于响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具。The second display module 1103 is configured to obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rules, and display the accessory props on the fitting interface.
第二处理模块1104,用于响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。The second processing module 1104 is configured to dress up the virtual character in response to the trigger for the accessory prop.
在一种可能的实施方式中,所述匹配规则包括所述用户选择的各个所述目标服饰部件匹配的所述虚拟角色的身体部分为所述虚拟角色的全部身体部分,第一处理模块1102在执行判断所述目标服饰部件是否符合预设的匹配规则时,具体用于:确定所述用户选择的各个目标服饰部件匹配的所述虚拟角色的身体部分;判断匹配的所述身体部分是否为所述虚拟角色的全部身体部分。In a possible implementation manner, the matching rule includes that the body parts of the virtual character matched by the target clothing parts selected by the user are all body parts of the virtual character, and the first processing module 1102 When judging whether the target clothing part complies with the preset matching rules, it is specifically used to: determine the body part of the virtual character matched by each target clothing part selected by the user; judge whether the matched body part is the All body parts of the avatar.
在一种可能的实施方式中,所述附属道具包括妆容道具;第二处理模块1104在执行所述响应于针对所述附属道具的触发,对所述虚拟角色进行装扮时,具体用于:响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆。In a possible implementation manner, the accessory props include makeup props; when the second processing module 1104 executes the step of dressing up the virtual character in response to the trigger for the accessory props, it is specifically configured to: respond When the makeup prop is triggered, the makeup of the virtual character is changed.
在一种可能的实施方式中,第二处理模块1104在执行响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆时,具体用于:响应于针对所述妆容道具的触发,基于所述妆容道具对应的至少一个换妆部位和所述换妆部位换妆后的妆容信息,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In a possible implementation manner, when the second processing module 1104 executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item, Based on at least one makeup-changing part corresponding to the makeup prop and the makeup information of the makeup-changing part after the makeup change, the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
在一种可能的实施方式中,第二处理模块1104在执行响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆时,具体用于:响应于针对所述妆容道具的触发,展示包含妆容编辑信息的浮层;所述妆容编辑信息中包含多个妆容选项,每个所述妆容选项对应至少一个换妆部位,所述妆容选项具有对应的换妆素材;至少一个所述妆容选项的换妆素材中包含颜色素材;响应于用户基于所述妆容编辑信息选择的妆容选项和换妆素材,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In a possible implementation manner, when the second processing module 1104 executes changing the makeup of the virtual character in response to the trigger for the makeup item, it is specifically configured to: respond to the trigger for the makeup item, Display a floating layer containing makeup editing information; the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding makeup changing materials; at least one of the makeup The makeup changing materials of the options include color materials; in response to the makeup options and makeup changing materials selected by the user based on the makeup editing information, the makeup of the virtual character is changed, and the makeup changing effect of the virtual character is displayed.
在一种可能的实施方式中,第二处理模块1104,还用于:响应于用户在展示的所述多个妆容选项中,选择的具有颜色素材的目标妆容选项,展示环绕所述虚拟角色的色环;其中,所述色环包括成环状排列的多个颜色选项;任一所述颜色选项在被选中后作为所述目标妆容选项对应的颜色信息。In a possible implementation manner, the second processing module 1104 is further configured to: in response to the target makeup option with color material selected by the user among the displayed makeup options, display the A color ring; wherein, the color ring includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
在一种可能的实施方式中,第二处理模块1104在执行所述对所述虚拟角色进行换妆时,具体用于:根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆。In a possible implementation manner, when the second processing module 1104 executes the makeup change of the virtual character, it is specifically configured to: change the makeup of the Change the makeup of the above-mentioned virtual character.
在一种可能的实施方式中,第二处理模块1104在执行根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆时,具体用于:针对睫毛、眼球、眼白和高光部位中的至少一种,采用为所述妆容部位替换材质的方式来为所述妆容部位换妆;针对眉毛、眼影、腮红、嘴唇、和贴花部位中的至少一种,采用合并贴图的方式来为所述妆容部位换妆。In a possible implementation manner, the second processing module 1104 is specifically configured to: target eyelashes, eyeballs For at least one of the makeup parts, eye whites and highlight parts, the makeup part is changed by replacing the material for the makeup part; for at least one of the eyebrows, eye shadow, blush, lips, and applique parts, use Combine textures to change makeup for the makeup part.
在一种可能的实施方式中,第二展示模块1103,还用于:In a possible implementation manner, the second display module 1103 is also used to:
响应于所述目标服饰部件符合所述预设的匹配规则,以动画形式展示所述虚拟角色的服装装扮效果。In response to the target clothing part conforming to the preset matching rule, an animation is displayed to display the clothing decoration effect of the virtual character.
在一种可能的实施方式中,第二处理模块1104,还用于:In a possible implementation manner, the second processing module 1104 is also configured to:
将基于所述附属道具对所述虚拟角色进行装扮后的效果,与基于所述目标服饰部件对所述虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。The effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
本公开实施例中,展示试装界面,并在试装界面中展示供虚拟角色试穿的多个服饰道具;判断用户选择的服饰道具中包含的各个目标服饰部件是否符合预设的匹配规则,在确定用户选择的目标服饰部件符合预设的匹配规则后,获取与目标服饰部件相对应的附属道具,并在试装界面中展示该附属道具;之后,用户可以通过触发该附属道具,对虚拟角色进行装扮,如此,本公开实施例中除了可以为虚拟角色进行服饰搭配外,还可以对虚拟角色进行其他装扮(比如,妆容装扮,也即实现换妆的操作),从而丰富了对虚拟角色的装扮方式,以及游戏中的交互操作。In the embodiment of the present disclosure, a fitting interface is displayed, and multiple clothing props for virtual characters to try on are displayed in the fitting interface; it is judged whether each target clothing part included in the clothing props selected by the user conforms to the preset matching rules, After determining that the target clothing part selected by the user complies with the preset matching rules, obtain the auxiliary props corresponding to the target clothing part, and display the auxiliary props in the fitting interface; after that, the user can trigger the auxiliary props to simulate the virtual The character is dressed up. In this way, in addition to clothing matching for the virtual character in the embodiment of the present disclosure, other dressing up (for example, makeup dressing, that is, the operation of changing makeup) can be performed on the virtual character, thereby enriching the virtual character. The way of dressing up, as well as the interactive operation in the game.
此外,在附属道具包括妆容道具的情况下,在用户触发妆容道具后,用户可以通过在该浮层上对任一妆容选项对应的多个妆容素材中任一妆容素材的选择操作,设置虚拟角色的妆容,这样,不仅丰富了虚拟角色装扮过程中的交互方式,而且能够实现自定义虚拟角色的妆容,从而丰富了展示页面,提高了交互体验。In addition, when the auxiliary props include makeup props, after the user triggers the makeup props, the user can set the virtual character by selecting any one of the multiple makeup materials corresponding to any makeup option on the floating layer In this way, it not only enriches the interaction mode in the process of dressing up the virtual character, but also can customize the makeup of the virtual character, thereby enriching the display page and improving the interactive experience.
另外,在对虚拟角色进行服饰装扮和/或妆容装扮后,可以通过动画形式展示虚拟角色在各角度进行服饰装扮和/或妆容装扮后的效果,这样不需用户对进行服饰装扮和/或妆容装扮后的虚拟角色进行左右或上下滑动,即可观看到该虚拟角色在各角度的服饰装扮和/或妆容装扮后的效果,该过程节省了用户操作,提高了交互体验。In addition, after dressing up the virtual character with clothes and/or make-up, the effects of the dress-up and/or make-up of the virtual character at various angles can be shown in the form of animation, so that the user does not need to make up the clothes and/or make-up. After the dressed virtual character slides left and right or up and down, you can see the effects of the virtual character's clothing and/or makeup at various angles. This process saves user operations and improves the interactive experience.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the above method embodiment, and details will not be described here.
基于同一技术构思,本申请实施例还提供了一种计算机设备。参照图12所示,为本申请实施例提供的计算机设备1200的结构示意图,包括处理器1201、存储器1202、和总线1203。其中,存储器1202用于存储执行指令,包括内存12021和外部存储器12022;这里的内存12021也称内存储器,用于暂时存放处理器1201中的运算数据,以及与硬盘等外部存储器12022交换的数据,处理器1201通过内存12021与外部存储器12022进行数据交换,当计算机设备1200运行时,处理器1201与存储器1202之间通过总线1203通信,使得处理器1201执行以下指令:Based on the same technical idea, the embodiment of the present application also provides a computer device. Referring to FIG. 12 , it is a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application, including a processor 1201 , a memory 1202 , and a bus 1203 . Among them, the memory 1202 is used to store execution instructions, including a memory 12021 and an external memory 12022; the memory 12021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 1201 and exchange data with an external memory 12022 such as a hard disk. The processor 1201 exchanges data with the external memory 12022 through the memory 12021. When the computer device 1200 is running, the processor 1201 communicates with the memory 1202 through the bus 1203, so that the processor 1201 executes the following instructions:
展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部件,其中每个身体部分对应有多种服饰部件;响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则;响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具;响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。displaying a fitting interface, and displaying a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to a variety of clothing parts; in response to the trigger of the user, determine the target clothing part selected by the user, and judge whether the target clothing part meets the preset matching rules; Matching rules, obtaining the accessory props corresponding to the target clothing part, and displaying the accessory props on the fitting interface; in response to the trigger for the accessory props, dressing up the virtual character.
其中,处理器1201的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。Wherein, for the specific processing flow of the processor 1201, reference may be made to the descriptions in the foregoing method embodiments, and details are not repeated here.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算 机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的虚拟角色形象更换方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the method for replacing the avatar image described in the above-mentioned method embodiments are executed . Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的虚拟角色形象更换方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure also provide a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the method for replacing the avatar image described in the method embodiment above, for details, please refer to The foregoing method embodiments are not described in detail here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, rather than limit them, and the protection scope of the present disclosure is not limited thereto, although referring to the aforementioned The embodiments have described the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.

Claims (14)

  1. 一种虚拟角色形象更换方法,其特征在于,包括:A method for replacing a virtual character image, characterized in that it includes:
    展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部件,其中每个身体部分对应有多种服饰部件;displaying a fitting interface, and displaying a plurality of clothing props for the virtual character to try on in the fitting interface; the plurality of clothing props include clothing parts used to dress up different body parts of the virtual character, Each body part corresponds to a variety of clothing parts;
    响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则;Responding to the trigger of the user, determining the target clothing part selected by the user, and judging whether the target clothing part complies with a preset matching rule;
    响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具;In response to meeting the preset matching rules, acquiring accessory props corresponding to the target clothing part, and displaying the accessory props on the fitting interface;
    响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。Dressing up the virtual character in response to the trigger for the accessory prop.
  2. 根据权利要求1所述的方法,其特征在于,所述匹配规则包括所述用户选择的各个所述目标服饰部件匹配的所述虚拟角色的身体部分为所述虚拟角色的全部身体部分;The method according to claim 1, wherein the matching rule includes that the body parts of the virtual character matched by each of the target clothing parts selected by the user are all body parts of the virtual character;
    所述判断所述目标服饰部件是否符合预设的匹配规则,包括:The judging whether the target clothing part complies with the preset matching rules includes:
    确定所述用户选择的各个目标服饰部件匹配的所述虚拟角色的身体部分;determining the body parts of the virtual character matched by the respective target apparel parts selected by the user;
    判断匹配的所述身体部分是否为所述虚拟角色的全部身体部分。It is judged whether the matched body parts are all body parts of the virtual character.
  3. 根据权利要求1所述的方法,其特征在于,所述附属道具包括妆容道具;The method according to claim 1, wherein the auxiliary props include makeup props;
    所述响应于针对所述附属道具的触发,对所述虚拟角色进行装扮,包括:The adornment of the virtual character in response to the trigger for the accessory prop includes:
    响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆。In response to the trigger for the makeup props, the makeup of the virtual character is changed.
  4. 根据权利要求3所述的方法,其特征在于,所述响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆,包括:The method according to claim 3, wherein the changing makeup of the virtual character in response to the triggering of the makeup props comprises:
    响应于针对所述妆容道具的触发,基于所述妆容道具对应的至少一个换妆部位和所述换妆部位换妆后的妆容信息,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In response to the trigger for the makeup prop, based on at least one makeup changing part corresponding to the makeup prop and the makeup information of the makeup changing part after the makeup change, change the makeup of the virtual character, and display the virtual character makeup effect.
  5. 根据权利要求3所述的方法,其特征在于,所述响应于针对所述妆容道具的触发,对所述虚拟角色进行换妆,包括:The method according to claim 3, wherein the changing makeup of the virtual character in response to the triggering of the makeup props comprises:
    响应于针对所述妆容道具的触发,展示包含妆容编辑信息的浮层;所述妆容编辑信息中包含多个妆容选项,每个所述妆容选项对应至少一个换妆部位,所述妆容选项具有对应的换妆素材;至少一个所述妆容选项的换妆素材中包含颜色素材;In response to the trigger for the makeup props, display a floating layer containing makeup editing information; the makeup editing information includes a plurality of makeup options, each of the makeup options corresponds to at least one makeup changing part, and the makeup options have corresponding The makeup changing material of at least one of the makeup options includes color material;
    响应于用户基于所述妆容编辑信息选择的妆容选项和换妆素材,对所述虚拟角色进行换妆,并展示所述虚拟角色的换妆效果。In response to the makeup options and makeup-changing material selected by the user based on the makeup editing information, the makeup of the virtual character is changed, and the makeup-changing effect of the virtual character is displayed.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    响应于用户在展示的所述多个妆容选项中,选择的具有颜色素材的目标妆容选项,展示环绕所述虚拟角色的色环;displaying a color circle surrounding the avatar in response to the user selecting a target makeup option with color material among the displayed makeup options;
    其中,所述色环包括成环状排列的多个颜色选项;任一所述颜色选项在被选中后作为所述目标妆容选项对应的颜色信息。Wherein, the color circle includes a plurality of color options arranged in a ring; any of the color options is selected as the color information corresponding to the target makeup option.
  7. 根据权利要求3所述的方法,其特征在于,所述对所述虚拟角色进行换妆,包括:The method according to claim 3, wherein said changing makeup of said virtual character comprises:
    根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆。The makeup of the virtual character is changed according to the makeup changing manner respectively matching with at least one of the makeup parts.
  8. 根据权利要求7所述的方法,其特征在于,所述根据与至少一种所述妆容部位分别匹配的换妆方式,对所述虚拟角色进行换妆,包括:The method according to claim 7, wherein said changing makeup of said virtual character according to a makeup changing manner respectively matching with at least one of said makeup parts comprises:
    针对睫毛、眼球、眼白和高光部位中的至少一种,采用为所述妆容部位替换材质的方式来为所述妆容部位换妆;For at least one of the eyelashes, eyeballs, eye whites and highlight parts, changing the makeup of the makeup part by replacing the material of the makeup part;
    针对眉毛、眼影、腮红、嘴唇和贴花部位中的至少一种,采用合并贴图的方式来为所述妆容部位换妆。For at least one of the eyebrows, eye shadows, blush, lips and decals, the makeup of the makeup parts is changed by merging textures.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    响应于所述目标服饰部件符合所述预设的匹配规则,以动画形式展示所述虚拟角色的服装装扮效果。In response to the target clothing part conforming to the preset matching rule, an animation is displayed to display the clothing decoration effect of the virtual character.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    将基于所述附属道具对所述虚拟角色进行装扮后的效果,与基于所述目标服饰部件对所述虚拟角色进行装扮后的效果进行合并,以动画形式展示合并后的装扮效果。The effect of dressing up the virtual character based on the accessory props is combined with the effect of dressing up the virtual character based on the target clothing parts, and the combined dressing effect is displayed in an animation form.
  11. 一种虚拟角色形象更换装置,其特征在于,包括:A virtual character image replacement device, characterized in that it includes:
    第一展示模块,用于展示试装界面,并在所述试装界面中展示供所述虚拟角色试穿的多个服饰道具;多个所述服饰道具中包括用于装扮所述虚拟角色的不同身体部分的服饰部位,其中每个身体部分对应有多种服饰部件;The first display module is used to display a fitting interface, and display a plurality of clothing props for the virtual character to try on in the fitting interface; a plurality of the clothing props include clothing used to dress up the virtual character Apparel parts for different body parts, where each body part corresponds to multiple apparel parts;
    第一处理模块,用于响应于用户的触发,确定所述用户选择的目标服饰部件,判断所述目标服饰部件是否符合预设的匹配规则;The first processing module is used to determine the target clothing part selected by the user in response to the trigger of the user, and determine whether the target clothing part meets the preset matching rules;
    第二展示模块,用于响应于符合所述预设的匹配规则,获取与所述目标服饰部件相对应的附属道具,并在所述试装界面展示所述附属道具;The second display module is used to obtain the accessory props corresponding to the target clothing part in response to meeting the preset matching rules, and display the accessory props on the fitting interface;
    第二处理模块,用于响应于针对所述附属道具的触发,对所述虚拟角色进行装扮。The second processing module is configured to dress up the virtual character in response to the trigger for the accessory prop.
  12. 一种计算机设备,其特征在于,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述处理器执行如权利要求1至10任一项所述的虚拟角色形象更换方法的步骤。A computer device, characterized by comprising: a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory, When the machine-readable instructions are executed by the processor, the processor executes the steps of the method for replacing an avatar image according to any one of claims 1 to 10.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被计算机设备运行时,所述计算机设备执行如权利要求1至10任一项所述的虚拟角色形象更换方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is run by a computer device, the computer device executes the computer program described in any one of claims 1 to 10. The steps of the virtual character image replacement method described above.
  14. 一种计算机程序产品,其特征在于,所述计算机程序产品承载有程序代码,所述程序代码包括的指令用于执行如权利要求1至10任一项所述的虚拟角色形象更换方法的步骤。A computer program product, characterized in that the computer program product carries a program code, and the program code includes instructions for executing the steps of the method for replacing an avatar image according to any one of claims 1 to 10.
PCT/CN2022/107308 2021-08-17 2022-07-22 Virtual character image replacement method and apparatus, and computer storage medium WO2023020196A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110943673.0A CN115888116A (en) 2021-08-17 2021-08-17 Virtual character image replacing method and device and computer storage medium
CN202110943673.0 2021-08-17

Publications (1)

Publication Number Publication Date
WO2023020196A1 true WO2023020196A1 (en) 2023-02-23

Family

ID=85239473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/107308 WO2023020196A1 (en) 2021-08-17 2022-07-22 Virtual character image replacement method and apparatus, and computer storage medium

Country Status (2)

Country Link
CN (1) CN115888116A (en)
WO (1) WO2023020196A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301531B (en) * 2023-05-23 2023-08-11 世优(北京)科技有限公司 Cosmetic method, device and system based on virtual digital person

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446065A (en) * 2016-09-06 2017-02-22 珠海市魅族科技有限公司 Clothes collocation recommendation method and device
US20200090256A1 (en) * 2018-09-19 2020-03-19 Perfect Mobile Corp. Systems and methods for virtual application of cosmetic products based on facial identification and corresponding makeup information
CN111324274A (en) * 2018-12-13 2020-06-23 北京京东尚科信息技术有限公司 Virtual makeup trial method, device, equipment and storage medium
CN111475717A (en) * 2020-03-27 2020-07-31 珠海格力电器股份有限公司 Dressing recommendation method and device, intelligent air conditioner and storage medium
CN112163920A (en) * 2020-08-18 2021-01-01 广州市美图现电子有限公司 Using method and device of skin-measuring makeup system, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446065A (en) * 2016-09-06 2017-02-22 珠海市魅族科技有限公司 Clothes collocation recommendation method and device
US20200090256A1 (en) * 2018-09-19 2020-03-19 Perfect Mobile Corp. Systems and methods for virtual application of cosmetic products based on facial identification and corresponding makeup information
CN111324274A (en) * 2018-12-13 2020-06-23 北京京东尚科信息技术有限公司 Virtual makeup trial method, device, equipment and storage medium
CN111475717A (en) * 2020-03-27 2020-07-31 珠海格力电器股份有限公司 Dressing recommendation method and device, intelligent air conditioner and storage medium
CN112163920A (en) * 2020-08-18 2021-01-01 广州市美图现电子有限公司 Using method and device of skin-measuring makeup system, storage medium and computer equipment

Also Published As

Publication number Publication date
CN115888116A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
Craik Fashion: the key concepts
Stone et al. The Dynamics of Fashion:-with STUDIO
Arnold Fashion: A very short introduction
WO2023020196A1 (en) Virtual character image replacement method and apparatus, and computer storage medium
CN111282278A (en) Game role reloading method and device, electronic equipment and storage medium
US20080303830A1 (en) Automatic feature mapping in inheritance based avatar generation
CN108920828B (en) Clothing matching method and system
Prakash et al. Virtual fashion mirror
Koda et al. The model as muse: embodying fashion
Kiper Fashion portfolio: design and presentation
CN116993432A (en) Virtual clothes information display method and electronic equipment
CN114082180A (en) Interaction method, interaction device, computer equipment and storage medium
Palomo-Lovinski The world's most influential fashion designers: Hidden connections and lasting legacies of fashion's iconic creators
Yagi Tokyo street style
Marion et al. Comics and films
Chapman ‘Fitting Fleming’s Hero like a Savile Row Suit’: The Tailoring of James Bond
Brin Women’s wardrobes, men’s wardrobes
Kerr et al. Who What Wear: Celebrity and Runway Style for Real Life
US20220318891A1 (en) Display system and computer program product
Arnold 30-Second Fashion: The 50 key modes, garments, and designers, each explained in half a minute
Likhacheva The analysis of 3D technologies in fashion
Chau Fashion Sucks… Blood: Clothes and Covens in Twilight and Hollywood Culture
McClendon 30-Second Fashion: The 50 Key Modes, Garments, and Designers, Each Explained in Half a Minute
Marion et al. Fashion and gender in superhero comics and films
Tortora History and Development of Fashion

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22857509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE