Virtual object reloading method and device, computer equipment, medium and program product

By displaying the preview image in the hollowed-out area of the virtual object and fusing the photo image into the wearable elements, the problem of a single dressing method of virtual object is solved, and richer appearance selection and higher rendering efficiency are achieved, improving the user experience.

CN120393428APending Publication Date: 2025-08-01SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510630625.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, the dress-up method of virtual objects limits the appearance diversity, resulting in low game interaction and complex operation, low rendering efficiency and affecting user experience.

Method used

By combining the dress-up function and the photo-taking function, the preview image is displayed using a hollow area and the photo-taking image is integrated into the wearable element to realize the dress-up.

Benefits of technology

It improves the richness of wearable elements, reduces operation complexity, and improves rendering efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120393428A_ABST
    Figure CN120393428A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a virtual object reloading method and device, computer equipment, a medium and a program product, a target virtual object with a first hollow area is displayed, the first hollow area is an area corresponding to at least one wearable element of the target virtual object, and a first preview image located below the first hollow area can be displayed. The shot picture is displayed in real time based on the shooting function. And after a user executes a photographing operation, in response to the photographing operation for the photographing reloading function, fusing a first preview image obtained when the photographing operation is obtained to the first hollow area to obtain a first filling area, and obtaining a target virtual object with the first filling area. Therefore, the clothes changing function and the photographing function are combined, and the photographing and clothes changing function is obtained. According to the technical scheme, the wearable element is made into the hollowed-out area in advance, so that the shot preview image is displayed in the hollowed-out area based on the photographing and clothes changing function, clothes changing is completed, the operation complexity of clothes changing is reduced, and the rendering efficiency and the user experience feeling are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular, to a method, apparatus, computer device, medium, and program product for dressing up a virtual object. Background Art

[0002] With the development of computer technology, taking pictures of virtual objects has become one of the gameplay of games, which can not only enhance the emotional connection between players and virtual objects, but also promote social sharing, showing off, etc.

[0003] In the related art, in order to dress up a virtual object, generally, the stickers of some parts of the virtual object are replaced. Specifically, as Figure 1 shown, a virtual wardrobe 101 of a virtual object includes a variety of pre-set wearable elements, such as tops, pants, hairpins, hairstyles, etc. After selecting the wearable elements with the desired appearance in the virtual wardrobe, the dressing up of the virtual object can be realized. For example, by selecting a variety of wearable elements from a variety of pre-set wearable elements, the conversion from Figure 1 (A) figure to Figure 1 (B) figure in the figure can be realized.

[0004] However, this method limits the appearance of the virtual object and cannot meet the diverse requirements of users, resulting in a relatively single interactivity of the game and a low playability of the game. If the wearable elements are opened for users to design, the operation will be more complex, the rendering efficiency will be low, and the user experience will be affected. Summary of the Invention

[0005] In order to solve the above technical problems, the present application provides a method, apparatus, computer device, medium, and program product for dressing up a virtual object, which is used to reduce the operation complexity of dressing up a virtual object, improve the rendering efficiency, and improve the user experience.

[0006] The embodiments of the present application disclose the following technical solutions: ...

[0007] On the one hand, the embodiments of the present application provide a method for dressing up a virtual object, and the method includes:

[0008] Display a target virtual object with a first hollowed-out area, where the first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object;

[0009] Display a first preview image in the first hollowed-out area, where the first preview image is a captured image displayed in real time based on the photo dressing-up function;

[0010] In response to a photographing operation for the photographing and dressing function, a target virtual object with a first filling area is obtained, where the first filling area is obtained by fusing a first preview image when the photographing operation is acquired to the first hollowed-out area.

[0011] On the other hand, an embodiment of the present application provides a dressing device for a virtual object, the device including: a display unit and an acquisition unit;

[0012] The display unit is configured to display a target virtual object with a first hollowed-out area, where the first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object;

[0013] The display unit is further configured to display a first preview image in the first hollowed-out area, where the first preview image is a captured image displayed in real time based on the photographing and dressing function;

[0014] The acquisition unit is configured to, in response to a photographing operation for the photographing and dressing function, acquire a target virtual object with a first filling area, where the first filling area is obtained by fusing a first preview image when the photographing operation is acquired to the first hollowed-out area.

[0015] On the other hand, an embodiment of the present application provides a computer device, the computer device including a processor and a memory:

[0016] The memory is configured to store a computer program and transmit the computer program to the processor;

[0017] The processor is configured to execute the method described in the above aspect according to the instructions in the computer program.

[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium being configured to store a computer program, and the computer program being used to execute the method described in the above aspect.

[0019] On the other hand, an embodiment of the present application provides a computer program product including a computer program, which, when running on a computer device, causes the computer device to execute the method described in the above aspect.

[0020] As can be seen from the above technical solution, a target virtual object with a first hollowed-out area is displayed. The first hollowed-out area is the area corresponding to at least one wearable element of the target virtual object. The first hollowed-out area is hollowed out and can display a first preview image located below it, that is, the shooting screen displayed in real time based on the photo-taking and dressing-up function. Thus, when the user performs a photo-taking operation, in response to the photo-taking operation for the photo-taking and dressing-up function, the first preview image at the time of the photo-taking operation is fused into the first hollowed-out area to obtain a first filled area, thereby obtaining a target virtual object with the first filled area. Therefore, by combining the dressing-up function with the photo-taking function, the photo-taking and dressing-up function is obtained. To support the photo-taking and dressing-up function, the wearable element is pre-made into a hollowed-out area in advance so that the preview image obtained through the photo-taking and dressing-up function can be displayed in the hollowed-out area, and the preview image is fused into the corresponding wearable element to obtain a filled area, realizing the dressing-up of the target virtual object. That is to say, the user can select the required preview image through the photo-taking and dressing-up function, fuse the preview image with the wearable element, thereby realizing the design of the wearable element, improving the richness of the wearable element while reducing the operation complexity of designing the wearable element. Moreover, by implementing the fusion of the preview image with the target virtual object through the photo-taking and dressing-up function, the rendering efficiency is improved, and thus the user experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0022] Figure 1 Schematic diagram of a dressing-up method provided in a related art;

[0023] Figure 2 Schematic diagram of a computer system for a dressing-up method of a virtual object provided in an embodiment of the present application;

[0024] Figure 3 Schematic diagram of an application scenario of a dressing-up method of a virtual object provided in an embodiment of the present application;

[0025] Figure 4 Schematic diagram of a process of a dressing-up method of a virtual object provided in an embodiment of the present application;

[0026] Figure 5 Schematic diagram of a first hollowed-out area provided in an embodiment of the present application;

[0027] Figure 6Schematic diagram of a first filling area provided by an embodiment of the present application;

[0028] Figure 7 Schematic diagram of a selection method provided by an embodiment of the present application;

[0029] Figure 8 Schematic diagram of another selection method provided by an embodiment of the present application;

[0030] Figure 9 Schematic diagram of a second hollowed - out area provided by an embodiment of the present application;

[0031] Figure 10 Schematic diagram of storing a target virtual object provided by an embodiment of the present application;

[0032] Figure 11 Schematic diagram of displaying a first preview image provided by an embodiment of the present application;

[0033] Figure 12 Schematic diagram of adjusting the focal length multiple for zooming provided by an embodiment of the present application;

[0034] Figure 13 Schematic diagram of replacing the first - layer background provided by an embodiment of the present application;

[0035] Figure 14 Schematic diagram of displaying a third preview image provided by an embodiment of the present application;

[0036] Figure 15 Schematic diagram of a layer corresponding to a wearable element provided by an embodiment of the present application;

[0037] Figure 16 Schematic diagram of a hollowed - out area provided by an embodiment of the present application;

[0038] Figure 17 Schematic diagram of a layer provided by an embodiment of the present application;

[0039] Figure 18 Schematic diagram of displaying a target virtual object with a first hollowed - out area provided by an embodiment of the present application;

[0040] Figure 19 Schematic diagram of displaying a target virtual object with a second hollowed - out area provided by an embodiment of the present application;

[0041] Figure 20 Signaling interaction diagram of a dressing - up method for a virtual object provided by an embodiment of the present application;

[0042] Figure 21 Schematic structural diagram of a dressing - up device for a virtual object provided by an embodiment of the present application;

[0043] Figure 22 A structural schematic diagram of a server provided by an embodiment of the present application;

[0044] Figure 23 A structural schematic diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners

[0045] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0046] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0047] It should be noted that before and during the process of collecting relevant data of users (such as preview images, target virtual objects, etc.) in the present application, a prompt interface, a pop-up window, or voice prompt information can be displayed. The prompt interface, the pop-up window, or the voice prompt information is used to prompt the user that their relevant data is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the user's relevant data after obtaining the confirmation operation issued by the user for the prompt interface or the pop-up window. Otherwise (that is, when the confirmation operation issued by the user for the prompt interface or the pop-up window is not obtained), the relevant steps of obtaining the user's relevant data are ended, that is, the relevant data of the user is not obtained. That is to say, all user data collected by the present application is collected with the consent and authorization of the user, and the collection, use, and processing of the relevant user data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0048] To facilitate the understanding of the technical solutions of the present application, some technical terms involved in the embodiments of the present application are briefly introduced below.

[0049] (1) Virtual object: It refers to an active object in a virtual environment. The active object can be a virtual chess piece, a virtual character, a virtual animal, an anime character, etc. For example: characters, animals, plants, oil drums, walls, stones, etc. displayed in the virtual environment. Optionally, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment.

[0050] (2) Virtual environment: refers to the virtual environment displayed (or provided) when an application runs on a terminal. The virtual environment can be a simulation environment of the real world, a semi-simulated and semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5D virtual environment, and a three-dimensional virtual environment. In the following embodiments, the virtual environment is taken as an example of a two-dimensional virtual environment for illustration, but it is not limited thereto.

[0051] In the related art, the method of selecting from a variety of pre-set wearable elements to achieve virtual object dressing change, due to the relatively fixed wearable elements, cannot meet the diverse requirements of users, resulting in relatively single interactivity of the game and low playability of the game. If the wearable elements are opened for users to design, it will lead to complex operations and low rendering efficiency, affecting the user experience.

[0052] Based on this, the embodiments of the present application provide a method for dressing change of a virtual object. By combining the dressing change function with the photographing function, a photographing and dressing change function is obtained. Users can select the required preview image through the photographing and dressing change function, fuse the preview image with the wearable elements, and thus realize the design of the wearable elements, improving the richness of the wearable elements while reducing the operation complexity of designing the wearable elements. Moreover, by using the photographing and dressing change function to realize the fusion of the preview image with the target virtual object, the rendering efficiency is improved, and thus the user experience is enhanced.

[0053] To facilitate the understanding of the method for dressing change of a virtual object provided by the embodiments of the present application, the computer system of the method for dressing change of the virtual object will be described first below.

[0054] See Figure 2 , this figure is a schematic diagram of a computer system of a method for dressing change of a virtual object provided by the embodiments of the present application. The computer system 200 includes a terminal device 210 and a server 220, and the terminal device 210 and the server 220 can communicate through a communication network.

[0055] Among them, the communication network uses standard communication technologies and / or protocols, usually the Internet, but can also be any network, including but not limited to any combination of Bluetooth, local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, private network, or virtual private network. In some embodiments, customized or proprietary data communication technologies can be used to replace or supplement the above data communication technologies.

[0056] The terminal device can be an electronic device such as a smart phone, a wearable device, a personal computer (PC), a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a vending terminal, etc. A client for running a target application can be installed in the terminal device. The target application can be an application that supports dressing up virtual objects, or other applications such as those that support image production, shopping, social networking, etc. This application does not make any limitations in this regard. In addition, this application does not limit the form of the target application, including but not limited to applications (Apps) installed in the terminal device, applets, etc., and can also be in the form of a web page, etc.

[0057] The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (CDN), and cloud server that provides basic cloud computing services such as big data. The server can be the background server of the above target application, and is used to provide background services for the client of the target application.

[0058] To facilitate understanding of the virtual object dressing method provided in the embodiments of this application, hereinafter, taking the execution subject of the virtual object dressing method as the server as an example, the application scenario of the virtual object dressing method will be introduced exemplarily.

[0059] See Figure 3 , this figure is a schematic diagram of the application scenario of a virtual object dressing method provided in the embodiments of this application. In Figure 3 , this application scenario includes Figure 2 the terminal device 210 described in

[0060] The target application installed in the terminal device 210 can be a game application that supports dressing up virtual objects. When the user opens the game application through the terminal device 210, after the photo dressing function for the virtual object in the game application, in response to the opening operation of the photo dressing function for the virtual object, a target virtual object with a first hollowed-out area is displayed.

[0061] The first hollowed-out area is the area corresponding to at least one wearable element among the multiple wearable elements included in the target virtual object. In Figure 3 , the wearable element corresponding to the first hollowed-out area is the upper garment. For the convenience of display, through Figure 3As shown in Figure (A), the 301 in the figure shows a first hollowed-out area, and the preview image below is not temporarily displayed in this first hollowed-out area. The first hollowed-out area is hollowed out and can display the first preview image located below it, that is, the captured image displayed in real time based on the photo-taking clothing-changing function. As Figure 3 As shown in Figure (B), the first preview image 302 is displayed through the first hollowed-out area 301, such as the real scene obtained based on the photo-taking clothing-changing function. It should be noted that when the photo-taking clothing-changing function for the virtual object is turned on, the first preview image can be directly displayed in the first hollowed-out area, such as directly displaying Figure 3 Figure (B) in the figure without displaying Figure (A).

[0062] When the user selects a satisfactory first preview image through the photo-taking clothing-changing function, the terminal device 210 can execute a photo-taking operation, such as performing a triggering operation on the photo-taking control 3o3, etc. In response to the photo-taking operation for the photo-taking clothing-changing function, the first preview image at the time of the photo-taking operation is obtained and merged into the first hollowed-out area to obtain a first filled area, such as Figure 3 304 shown in Figure (C), thereby obtaining a target virtual object with the first filled area and realizing the clothing change of the upper body of the target virtual object.

[0063] Thus, by combining the clothing-changing function with the photo-taking function, the photo-taking clothing-changing function is obtained. To support the photo-taking clothing-changing function, wearable elements are pre-produced as hollowed-out areas in advance so that the preview images obtained through the photo-taking clothing-changing function can be displayed in the hollowed-out areas, and the preview images are merged into the corresponding wearable elements to obtain filled areas, thereby realizing the clothing change of the target virtual object. That is to say, the user can select the required preview images through the photo-taking clothing-changing function, merge the preview images with the wearable elements, thereby realizing the design of the wearable elements, improving the richness of the wearable elements while reducing the operation complexity of designing the wearable elements. Moreover, by using the photo-taking clothing-changing function to realize the merging of the preview images with the target virtual object, the rendering efficiency is improved, and thus the user experience is improved.

[0064] The clothing-changing method for virtual objects provided in the embodiments of the present application can be executed by a terminal device. However, in other embodiments of the present application, the server can also have a similar function to the terminal device, so as to execute the clothing-changing method for virtual objects provided in the embodiments of the present application, or the clothing-changing method provided in the embodiments of the present application can be jointly executed by the terminal device and the server. This embodiment does not make any limitations in this regard.

[0065] The following introduces in detail a clothing-changing method for virtual objects provided in the present application through method embodiments.

[0066] See Figure 4, This figure is a schematic flowchart of a dressing method for a virtual object provided by an embodiment of the present application. For ease of description, in the following embodiments, the execution subject of the dressing method for the virtual object is taken as an example of a terminal device. As Figure 4 shown, the dressing method for the virtual object includes S401 - S403.

[0067] S401: Display a target virtual object with a first hollowed - out area.

[0068] As a possible implementation, when the user opens the photo dressing function for the virtual object, in response to the opening operation of the photo dressing function for the virtual object, after the photo dressing function for the virtual object is opened, display the target virtual object and the first hollowed - out area of the target virtual object.

[0069] Among them, "in response to" is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, the one or more operations to be executed can be real - time or have a set delay: Without special instructions, there is no limit on the execution order of the multiple operations to be executed.

[0070] The photo dressing function provided by the embodiment of the present application is a photo dressing function for a virtual object. This photo dressing function provides support for dressing the virtual object. In the photo interface (i.e., the display interface corresponding to the photo dressing function), the target virtual object and a preview image will be displayed. It should be noted that if the terminal device has a photo - taking function, such as implementing the photo - taking function through the camera in a smart phone, the photo dressing function can be implemented by calling the photo - taking function of the terminal device, or the photo dressing function can be implemented by creating a photo dressing system, etc. The present application does not make specific limitations on this.

[0071] The embodiment of the present application does not specifically limit the form of the opening operation, which can be a click operation, a double - click operation, a swipe operation, etc. The present application does not make specific limitations on this.

[0072] The hollowed-out area is the area corresponding to at least one wearable element included in the target virtual object. For example, if the target virtual object includes multiple wearable elements, the hollowed-out area is the area corresponding to one wearable element among the multiple wearable elements, or the hollowed-out area is the area corresponding to a combination of some of the multiple wearable elements, etc. A wearable element is content used to decorate a virtual object, such as a top, hair, pants, the background where the virtual object is located, etc. In addition, wearable elements with the same shape but different styles can also be different wearable elements. For example, jeans with different patterns are different wearable elements, etc. The refined selection of wearable elements can be achieved through a multi-level menu, etc. This application does not make specific limitations in this regard. The first hollowed-out area is one hollowed-out area, and different hollowed-out areas correspond to different wearable elements. For example, the wearable element corresponding to the first hollowed-out area is a top, and the wearable element corresponding to the second hollowed-out area is a combination of a top and pants, etc.

[0073] The embodiments of this application do not specifically limit the selection method of the first hollowed-out area. Subsequently, examples of selection methods 1 - 4 will be used for illustration. The embodiments of this application also do not specifically limit the number of wearable elements corresponding to the first hollowed-out area, which can be one or multiple. The embodiments of this application also do not specifically limit the timing of obtaining the first hollowed-out area. For example, at least one hollowed-out area including the first hollowed-out area can be obtained in advance, and then in response to a selection operation for the first hollowed-out area, the target virtual object with the first hollowed-out area is displayed. Another example is that in response to an operation to turn on the photo-changing clothing function for the virtual object, the target virtual object with the first hollowed-out area is obtained and displayed.

[0074] The target virtual object is one virtual object among multiple virtual objects. For example, after a user logs in to a game application through their target account, there are multiple virtual objects under the target account. When the user selects one virtual object from the multiple virtual objects for clothing change, the selected virtual object is the target virtual object. As a possible implementation, in order to improve the subsequent clothing change effect, the target virtual object can be a two-dimensional (2D) image.

[0075] S402: Display a first preview image in the first hollowed-out area.

[0076] As can be seen from the foregoing, the first hollowed-out area corresponds to at least one wearable element. For the convenience of subsequent description, the wearable element corresponding to the first hollowed-out area is referred to as the first wearable element. Moreover, the first hollowed-out area is in a hollowed-out state, which is equivalent to hollowing out the first wearable element in the layer where the target virtual object is displayed to obtain the first hollowed-out area. Thus, through the first hollowed-out area, the content located below the first hollowed-out area, such as the first preview image, can be seen.

[0077] The preview image is an image that is displayed in real time based on the photo dressing function for virtual objects. It can be understood that during the photo-taking process, the content to be photographed will be previewed, that is, the preview image is displayed through the camera preview sub-function of the photo dressing function. Only after the photo-taking operation is executed, the current preview image will be frozen to obtain the photo image. The first preview image is the preview image displayed in the first hollow area. That is to say, the first preview image is the shooting screen displayed in the first hollow area based on the real-time display of the photo dressing function, that is, the first preview image is the image displayed in the first hollow area through the camera preview sub-function of the photo dressing function.

[0078] See Figure 5 , which is a schematic diagram of a first hollow area provided by an embodiment of the present application. In Figure 5 , a target virtual object with a first hollow area 501 is shown. The wearable element corresponding to the first hollow area is a top, and a first preview image 502 is displayed in the first hollow area. It is equivalent to developing a photo dressing system for the photo dressing function of virtual objects. This photo dressing system superimposes a layer for displaying the target virtual object on the photo-taking interface, and the superimposed layer will block the preview image that the photo-taking interface should originally display. However, since the first hollow area is in a hollow state, the preview image that the photo-taking interface should originally display can be displayed at the position of the first hollow area.

[0079] The embodiments of the present application do not specifically limit the preview image. For example, the preview image can be obtained by shooting based on a real scene or based on a virtual scene. Another example is that the preview image can be the shooting screen displayed in real time based on the photo dressing function, or an image selected through the photo dressing function, such as a preset image provided by the system, or a historical image obtained through the photo dressing function before. The present application does not make specific limitations on this, and the first filling area, etc. can be obtained by dragging the preview image, etc. later.

[0080] Taking the first preview image as an example, during the process of displaying the target virtual object, an opening control for the photo dressing function can be displayed. In response to the triggering operation for the opening control, the photo dressing function of the terminal device is called, and the target virtual object with the first hollow area is displayed based on this photo dressing function, and the first preview image is displayed in the first hollow area. Another example is that in the virtual scene provided by the game based on the target virtual object, an opening control for the photo dressing function is displayed. In response to the triggering operation for the opening control, the photo dressing system for the photo dressing function of the virtual object is opened, and the target virtual object with the first hollow area is displayed in the virtual scene, and the first preview image is displayed in the first hollow area.

[0081] Thus, the preview image can be not only obtained by photographing a real scene, but also obtained by photographing a virtual scene, so that the dressing change of the target virtual object can be realized based on the real scene or the virtual scene, enriching the styles of wearable elements in dressing change, reducing the operation complexity of designing wearable elements, improving the rendering efficiency, and further improving the user experience.

[0082] S403: In response to a photographing operation for the dressing change by photographing function, obtain a target virtual object having a first filling area.

[0083] The photographing operation is an operation to freeze the first preview image. For example, the first preview image is a preview image that changes based on the movement of the terminal device, etc. When the photographing operation is executed, the first preview image will no longer change but remain as it was when the photographing operation was performed.

[0084] The first filling area is obtained by fusing the first preview image at the time of the photographing operation to the first hollowed-out area. When the user selects the desired first preview image through the dressing change by photographing function, the user can perform a triggering operation on the photographing operation provided for the dressing change by photographing function. In response to the photographing operation for the dressing change by photographing function, obtain the first preview image at the time of triggering the photographing operation. This first preview image is the style of the wearable element desired by the user. Fuse this first preview image to the first hollowed-out area to obtain the first filling area, thereby obtaining a target virtual object having the first filling area.

[0085] See Figure 6 , this figure is a schematic diagram of a first filling area provided by an embodiment of the present application. For example, after performing a triggering operation on the photographing control 503 in Figure 5 , in response to the photographing operation for the dressing change by photographing function, obtain a target virtual object having a first filling area, and display the target virtual object having the first filling area 601 in Figure 6 . The first filling area 601 is obtained based on the first hollowed-out area and the first preview image.

[0086] It should be noted that, compared with the way of displaying stickers during the photographing process, such as adding additional elements like stickers during self-photographing, the content to be photographed is regarded as the main target, and the stickers are regarded as the secondary target. However, the method for changing the clothing of a target virtual object provided in this application is to change the clothing of the target virtual object, taking the target virtual object as the main target and the first preview image captured as the secondary target. Moreover, from the perspective of underlying implementation, compared with the way of displaying stickers during the photographing process, generally, face key points are first recognized through face recognition or other means, and then stickers are added. If the face key points cannot be recognized, the subsequent effect of adding stickers cannot be achieved. However, for the method for changing the clothing of a target virtual object provided in this application, only the captured preview image is displayed in the hollow area, and the required preview image is fused with the hollow area, without the need to perform operations such as recognizing face key points. In addition, the target virtual object with the first filling area provided in the embodiments of this application can also perform interactions, such as interacting in the virtual scene provided by the game, etc. However, the way of displaying stickers during the photographing process can only be shared and cannot perform interactions in the virtual scene, etc.

[0087] As can be seen from the above technical solution, a target virtual object with a first hollow area is displayed. The first hollow area is the area corresponding to at least one wearable element of the target virtual object. The first hollow area is hollow and can display the first preview image located below it, that is, the captured image displayed in real time based on the clothing-changing function during photographing. Thus, when the user performs a photographing operation, in response to the photographing operation for the clothing-changing function during photographing, the first preview image at the time of the photographing operation is fused into the first hollow area to obtain a first filling area, thereby obtaining a target virtual object with the first filling area. Therefore, by combining the clothing-changing function with the photographing function, the clothing-changing function during photographing is obtained. To support the clothing-changing function during photographing, the wearable elements are pre-made into hollow areas in advance, so as to display the preview image obtained through the clothing-changing function during photographing in the hollow areas, and fuse the preview image into the corresponding wearable elements, thereby obtaining the filling areas and realizing the clothing change of the target virtual object. That is to say, the user can select the required preview image through the clothing-changing function during photographing, fuse the preview image with the wearable elements, thereby realizing the design of the wearable elements, improving the richness of the wearable elements while reducing the operation complexity of designing the wearable elements. Moreover, by implementing the fusion of the preview image and the target virtual object through the clothing-changing function during photographing, the rendering efficiency is improved, and thus the user experience is enhanced.

[0088] The embodiments of this application do not specifically limit the selection method of the first hollow area. Here, three methods are taken as examples for illustration.

[0089] Selection method 1: Select based on wearable elements.

[0090] Specifically, in response to an open operation for the photo dressing function of the virtual object, a target virtual object with multiple wearable elements is displayed; in response to a selection operation for at least one wearable element among the multiple wearable elements, a target virtual object with a first hollowed-out area is displayed.

[0091] See Figure 7 , which is a schematic diagram of a selection method provided by an embodiment of the present application. In Figure 7 , in response to an open operation for the photo dressing function of the virtual object, a target virtual object with three wearable elements is displayed, and the three wearable elements are a top, pants, and a backpack respectively. The user can select at least one wearable element from the multiple wearable elements through selection operations such as a click operation, a double-click operation, and a swipe operation, so as to determine the area corresponding to the selected wearable element as the first hollowed-out area, and then display a target virtual object with the first hollowed-out area.

[0092] It should be noted that the selection operation for the multiple wearable elements can be achieved by means of swiping to cover multiple wearable elements, clicking on one wearable element and then clicking on another wearable element without releasing the click, etc.

[0093] Thus, before displaying the target virtual object with the first hollowed-out area, the user can select at least one area corresponding to the wearable element from the multiple wearable elements as the hollowed-out area by performing a selection operation on the wearable element. By directly operating on the wearable element, for the user, not only is the learning cost low, but it is also convenient and fast, and the user experience is relatively high.

[0094] Selection method two: Select based on dressing change controls.

[0095] Specifically, in response to an open operation for the photo dressing function of the virtual object, a target virtual object with multiple wearable elements and multiple dressing change controls are displayed; in response to a trigger operation for a target dressing change control among the multiple dressing change controls, a target virtual object with a first hollowed-out area is displayed.

[0096] Among them, the dressing change control is used to display the corresponding wearable element as a hollowed-out area, and different dressing change controls correspond to different wearable elements. For example, dressing change control A corresponds to the combination of wearable element 1 and wearable element 2, and dressing change control B corresponds to wearable element 1, etc. Thus, dressing change can be achieved for different wearable elements or combinations of different wearable elements through different dressing change controls to meet the dressing change needs of users.

[0097] The target dressing change control is one of the multiple dressing change controls, and the target dressing change control corresponds to the first hollowed-out area. Thus, after performing a trigger operation on the target dressing change control, a target virtual object with the first hollowed-out area can be displayed.

[0098] See Figure 8 , which is a schematic diagram of another selection method provided by the embodiment of the present application. In Figure 8 , in response to the opening operation of the photo dressing function for the virtual object, a target virtual object with four wearable elements and four dressing controls are displayed. Among them, the four wearable elements are the upper garment, trousers, backpack, and background respectively. The four dressing controls are the upper garment control, trousers control, backpack control, and background control respectively, corresponding to the four wearable elements. In Figure 8 , the target dressing control is the upper garment control. When the user performs a trigger operation on the upper garment control, a target virtual object with a first hollow area is displayed.

[0099] Thus, before displaying the target virtual object with the first hollow area, multiple dressing controls for dressing can be displayed. Different dressing controls are used to dress different wearable elements or combinations of wearable elements. The user performs a trigger operation on the required dressing control, so as to display the hollow area of the wearable element corresponding to the dressing control, achieving the effect of selecting at least one wearable element from multiple wearable elements for replacement. By associating the wearable elements with the dressing space, for the producer, the production cost is relatively low, and for the user, the probability of selection error is reduced, and the user experience is relatively high.

[0100] Selection method three: Select based on the dressing control and the wearable element.

[0101] Specifically, in response to the opening operation of the photo dressing function for the virtual object, a target virtual object with multiple wearable elements and multiple dressing controls are displayed; in response to the trigger operation on the target dressing control among the multiple dressing controls, or in response to the selection operation on at least one wearable element among the multiple wearable elements, a target virtual object with a first hollow area is displayed.

[0102] That is to say, the user can arbitrarily replace the wearable element waiting to be dressed through the dressing control or the wearable element. For example, for the wearable element with a larger area and easier to select, the dressing is carried out in the way of selection method one, and for the wearable element with a smaller area and more difficult to select, the dressing is carried out in the way of selection method two, so as to improve the user experience.

[0103] Selection method four: Select the default dressing element.

[0104] Specifically, after the opening operation of the photo dressing function for the virtual object is responded to, a target virtual object with a hollow area corresponding to the default dressing element is displayed. In response to the selection operation on the first wearable element, or in response to the trigger operation on the target dressing control, a target virtual object with a first hollow area is displayed.

[0105] In an embodiment of the present application, a certain wearable element can be used as the default dressing element. The default dressing elements of different virtual objects can be the same or different, and the present application does not make specific limitations on this.

[0106] Thus, if the default dressing element is the first wearable element, there is no need to select the first wearable element to be able to dress the first wearable element, reducing the operation cost of the user. If the default dressing element is not the first wearable element, after the hollowed-out area corresponding to the default wearable element is displayed, instead of taking a picture of the hollowed-out area corresponding to the default wearable element, after selecting the first wearable element, a picture is taken based on the first hollowed-out area, or a picture can be taken of the hollowed-out area corresponding to the default wearable element and then the first hollowed-out area is selected for taking a picture, etc. The present application does not make specific limitations on this.

[0107] As a possible implementation manner, not only can the first wearable element be dressed, but other wearable elements can also be dressed. Taking the second wearable element as an example for illustration below, that is, after dressing the first wearable element, the second wearable element is dressed. For details, refer to A1 - A3.

[0108] A1: Display a target virtual object with a second hollowed-out area.

[0109] The second hollowed-out area is a hollowed-out area, that is, the second hollowed-out area is the area corresponding to at least one wearable element among the multiple wearable elements included in the target virtual object, and the second hollowed-out area is different from the first hollowed-out area. In other words, the second hollowed-out area is the area corresponding to the second wearable element included in the target virtual object, and the second wearable element and the first wearable element are different wearable elements or different combinations of wearable elements.

[0110] The embodiment of the present application does not specifically limit the timing of obtaining the target virtual object with the second hollowed-out area. It can be after obtaining the target virtual object with the first filled area, or it can be to obtain the target virtual object with each hollowed-out area in advance so as to be displayed when needed, etc.

[0111] The embodiment of the present application does not specifically limit the manner of displaying the target virtual object with the second hollowed-out area. For example, the second hollowed-out area can be obtained through the aforementioned selection method 1 - selection method 4.

[0112] Taking selection method 1 as an example, after obtaining the target virtual object with the first filled area, in response to a selection operation for the second wearable element among the multiple wearable elements, display the target virtual object with the second hollowed-out area.

[0113] Taking Selection Method 2 as an example, after obtaining the target virtual object with the first filling area, in response to a triggering operation on the dressing control corresponding to the second wearable element among the multiple dressing controls, a target virtual object with a second hollow area is displayed, etc.

[0114] Taking Selection Method 3 as an example, after obtaining the target virtual object with the first filling area, in response to a triggering operation on the dressing control corresponding to the second wearable element among the multiple dressing controls, or in response to a selection operation on the second wearable element among the multiple wearable elements, a target virtual object with a second hollow area is displayed.

[0115] Taking Selection Method 4 as an example, after obtaining the target virtual object with the first filling area, a target virtual object with a second hollow area is displayed. In this embodiment, there is an order of default dressing elements among the multiple wearable elements. For example, the order of the second wearable element as the default dressing element is after the order of the first wearable element as the default dressing element.

[0116] Therefore, after obtaining the target virtual object with the first filling area, if no triggering operation is performed on the end control, a target virtual object with a second hollow area can be displayed by selecting wearable elements, performing a triggering operation on the dressing control, presetting the order of default dressing elements, etc., so as to continue dressing other wearable elements included in the target virtual object.

[0117] A2: Display a second preview image in the second hollow area.

[0118] The second preview image is the preview image displayed in the second hollow area. That is to say, the second preview image is the captured picture displayed in the second hollow area based on the real-time dressing by taking pictures, that is, the second preview image is the image displayed in the second hollow area through the camera preview sub-function of the dressing by taking pictures function.

[0119] See Figure 9 , this figure is a schematic diagram of a second hollow area provided by an embodiment of the present application. In Figure 9 in Figure (A), after obtaining the first filling area based on the first hollow area, the second hollow area 901 is displayed. Figure 9 In Figure (A) shown in , the second preview image is not yet displayed in the second hollow area 901 for illustration only. In practical applications, after obtaining the first filling area based on the first hollow area, the second preview image 902 can be displayed while the second hollow area 901 is displayed.

[0120] A3: In response to a taking picture operation on the dressing by taking pictures function, obtain a target virtual object with a first filling area and a second filling area.

[0121] After the user performs a photographing operation, in response to the photographing operation for the photographing and dressing change function of the virtual object, the second preview image at the time of the photographing operation is obtained and fused into the second hollowed-out area to obtain a second filled area, thereby obtaining a target virtual object having a first filled area and a second filled area.

[0122] Continue to refer to Figure 9 , after the user performs a triggering operation on the photographing control 903, in response to the photographing operation, the target virtual object having a first filled area and a second filled area is obtained and displayed. As a possible implementation manner, if the target virtual object includes multiple wearable elements, the photographing and dressing change of the target virtual object can be implemented by changing the wearable elements. The following takes three examples for illustration.

[0123] Example 1, the user can select the wearable element A as the wearable element corresponding to the first hollowed-out area, thereby performing a photographing and dressing change operation based on the first hollowed-out area to obtain a target virtual object having a first filled area. Then the user selects the wearable elements B and C as the wearable elements corresponding to the second hollowed-out area, thereby performing a photographing and dressing change operation based on the second hollowed-out area to obtain a target virtual object having a first filled area and a second filled area.

[0124] Example 2, the user can select the wearable elements D, E, and F as the wearable elements corresponding to the first hollowed-out area, thereby performing a photographing and dressing change operation based on the first hollowed-out area to obtain a target virtual object having a first filled area, that is, batch dressing change of multiple wearable elements is realized by performing one photographing and dressing change operation. Then the user selects the wearable element G as the wearable element corresponding to the second hollowed-out area, thereby performing a photographing and dressing change operation based on the second hollowed-out area to obtain a target virtual object having a first filled area and a second filled area.

[0125] Example 3, the user can select the wearable element H as the wearable element corresponding to the first hollowed-out area, thereby performing a photographing and dressing change operation based on the first hollowed-out area to obtain a target virtual object having a first filled area. Then the user selects the wearable element I as the wearable element corresponding to the second hollowed-out area, thereby performing a photographing and dressing change operation based on the second hollowed-out area to obtain a target virtual object having a first filled area and a second filled area.

[0126] Thus, if the target virtual object includes multiple wearable elements that can be dressed changed, after dressing changing the first wearable element, the second wearable element can continue to be dressed changed, and so on, until the dressing change requirements of the user for multiple wearable elements are met, obtaining a target virtual object having multiple filled areas, improving the richness of dressing changing of the target virtual object, and improving the user experience.

[0127] The embodiment of the present application also provides a reset function. By using the reset function, the operation can be rolled back to the previous one, thereby helping the user quickly obtain the desired dressing effect. Hereinafter, taking three ways of rolling back as an example, a reset control with a reset function will be described.

[0128] The first way of rolling back: Roll back to the initial state.

[0129] Specifically, after obtaining the target virtual object with the first filling area and the second filling area, a first reset control is displayed. In response to the triggering operation on the first reset control, the first filling area and the second filling area are deleted, and the target virtual object with the first hollow area is displayed.

[0130] The first reset control is used to roll back to the initial state, that is, the state where all wearable elements of the target virtual object have not been dressed.

[0131] Thus, when the user performs a triggering operation on the first reset control, the dressed wearable elements are deleted, such as deleting the first filling area and the second filling area. At this time, the dressing process of the target virtual object rolls back to the initial state, and the target virtual object with the first hollow area can be redisplayed, so that the user can redress the first wearable element corresponding to the first hollow area through the first preview image displayed in the first hollow area. Therefore, when the user is not satisfied with the current dressing combination, by using the first reset control to roll back to the initial state, the number of operations is reduced, which helps the user quickly restart dressing and improves the user experience.

[0132] The second way of rolling back: Redress any one of the dressed wearable elements.

[0133] Specifically, after obtaining the target virtual object with the first filling area and the second filling area, a second reset control is displayed. In response to the triggering operation on the second reset control and the selection operation on the target filling area, the target filling area is deleted, and the target virtual object with the target hollow area is displayed.

[0134] Among them, the second reset control is used to redress any one of the dressed wearable elements. By combining the selection of the dressed filling area, the wearable element corresponding to the selected filling area can be redressed.

[0135] The target filling area is the dressed filling area. In this embodiment, the currently dressed filling areas are the first filling area and the second filling area, so the target filling area is the first filling area or the second filling area.

[0136] The target hollowed-out area is the hollowed-out area corresponding to the target filled area before it is filled. For example, if the target filled area is the first filled area, the target hollowed-out area is the first hollowed-out area; if the target filled area is the second filled area, the target hollowed-out area is the second hollowed-out area.

[0137] Thus, when the user performs a trigger operation through the second reset control and selects a target filled area that has already been dressed up for re-dressing, the selected target filled area is deleted, and the target hollowed-out area corresponding to the target filled area before filling is displayed, so that the user can re-dress the wearable element corresponding to the target hollowed-out area through the preview image displayed in the target hollowed-out area. Therefore, when the user is not satisfied with the dressing of a certain wearable element currently, they can re-dress this area, which is more targeted, helps the user quickly re-dress the dissatisfied part, and improves the user experience.

[0138] Rollback method three: Roll back to the previous dressing state.

[0139] Specifically, after obtaining the target virtual object with the first filled area and the second filled area, a third reset control is displayed. In response to the trigger operation for the third reset control, the second filled area is deleted, and the target virtual object with the second hollowed-out area is displayed.

[0140] The third reset control is used to roll back to the previous dressing state, that is, the state where the wearable element that was last dressed on the target virtual object has not been dressed yet.

[0141] In addition, if a third reset control is displayed after obtaining the target virtual object with the first filled area. In response to the trigger operation for the third reset control, the first filled area is deleted, and the target virtual object with the first hollowed-out area is displayed.

[0142] Thus, when the user performs a trigger operation on the third reset control, the wearable element that was dressed last time is deleted. At this time, the dressing process of the target virtual object rolls back to the previous dressing state, and the hollowed-out area at the start of the previous dressing can be redisplayed, so that the user can re-dress the wearable element corresponding to the hollowed-out area through the preview image displayed in this hollowed-out area. Therefore, when the user is not satisfied with the current dressing combination, by using the third reset control to roll back to the previous dressing state, it is convenient and fast, and at the same time, it avoids destructive operations and improves the user experience.

[0143] As described above, the target virtual object may include multiple wearable elements that can be dressed up, and the required wearable elements can be dressed up one by one through the photo dressing-up function. Since different users may have different dressing-up requirements, and thus different users may have different requirements for the number of times of dressing up the wearable elements, an embodiment of the present application provides a function that allows the dressing-up to end midway.

[0144] Specifically, an end control is displayed, and in response to a trigger operation on the end control, the target virtual object with the first filling area is stored, so as to perform an interaction operation based on the target virtual object with the first filling area.

[0145] Among them, the end control is used to end the current dressing-up of the target virtual object. The interaction operation refers to an operation for interaction, such as an operation of sharing the target virtual object with a filling area, an operation of playing a game based on the target virtual object with a filling area, etc., and the present application does not make specific limitations on this.

[0146] For example, if the target virtual object can dress up the first wearable element and the second wearable element, after dressing up the first wearable element, that is, after obtaining the target virtual object with the first filling area, it is not necessary to continue dressing up the second wearable element, but to perform a trigger operation on the end control. In response to the trigger operation on the end control, the target virtual object with the first filling area is stored, so as to perform an interaction operation based on the target virtual object with the first filling area.

[0147] Taking the target application as an example, the user logs in to the target application through the target account, and the target virtual object is the virtual object controlled by the target account. Then, the target virtual object with the first filling area can be controlled through the target account to interact in the target application. Thus, after dressing up the first wearable element of the target virtual object, the target virtual object with the first filling area is obtained, and the target virtual object can interact in the target application with the image of the first filling area. For example, the target virtual object can fight monsters and talk to other virtual objects in the game application with the image of the first filling area. Thereby, the personalization of the virtual object is improved, and the user experience is enhanced.

[0148] Continue to refer to Figure 8 , in Figure 8 , the control 801 that displays the text "Shooting completed" is the end control. When the user performs dressing up on the first wearable element and then continues to perform a trigger operation on the backpack control, the dressing up for the next wearable element continues, as shown in Figure 9 , figure (B) in . If a trigger operation is performed on the control 801, at this time, the second hollow area corresponding to the second wearable element will no longer be displayed, but the current dressing-up result will be stored, and the dressing-up will not continue.

[0149] See Figure 10 , which is a schematic diagram of storing a target virtual object provided by an embodiment of the present application. When the user performs a trigger operation on the control 801 in Figure 8 , the second hollowed-out area corresponding to the second wearable element will no longer be displayed at this time, but the storage control 1001 will be displayed, that is, from Figure 8 jump to Figure 10 . When the user performs a trigger operation on the storage control 1001, an image of the target virtual object with the first filled area is stored so that the user can share the image with social applications, etc. By setting the storage control, the user can confirm again whether to store, improving the user experience.

[0150] Thus, by setting the end control, the user can control the dressing process at any time. When the user does not want to continue dressing other wearable elements, the current dressing process can be ended through the end control, which is convenient and fast and meets the user's dressing needs. Moreover, after the dressing is completed, the dressed target virtual object can also be saved for interaction based on the dressed target virtual object, improving the user experience.

[0151] As a possible implementation, multiple filled areas for the same first hollowed-out area can also be obtained through the foregoing multiple sub-photographing operations, which is equivalent to preparing multiple styles in advance for the wearable elements of the target virtual object, so that the target virtual object can display different styles in different virtual environments in the target application. The following is a specific description.

[0152] C1: Display a target virtual object with a first hollowed-out area.

[0153] C2: Display a first preview image in the first hollowed-out area.

[0154] C3: In response to a first sub-photographing operation for the photographing and dressing function, obtain a target virtual object with a first standby filled area.

[0155] The photographing operation includes multiple sub-photographing operations. The number of sub-photographing operations included in the photographing operation can be implemented by means of an end control, etc., and the present application does not make specific limitations in this regard. For example, when the first sub-photographing operation, the second sub-photographing operation, and the third sub-photographing operation are performed, in response to a trigger operation on the end control, the photographing operation includes the first sub-photographing operation, the second sub-photographing operation, and the third sub-photographing operation. The following takes the photographing operation including the first sub-photographing operation and the second sub-photographing operation as an example for description.

[0156] When the user performs a sub - photo - taking operation once, in response to the first sub - photo - taking operation for the photo - taking and dressing - up function, obtain a target virtual object having a first spare filling area. The first spare filling area is obtained by fusing the first preview image when the first sub - photo - taking operation is acquired to the first hollowed - out area.

[0157] C4: Display the first preview image in the first hollowed - out area.

[0158] It should be noted that since multiple sub - photo - taking operations included in the photo - taking operation are not completed, that is, the user still wants to continue to prepare the required style for the first hollowed - out area, the first preview image can be continuously displayed in the first hollowed - out area. It can be understood that the first preview image displayed in C2 may be different from the first preview image displayed in C4, and the specific content displayed depends on the content captured by the photo - taking and dressing - up function.

[0159] C5: In response to the second sub - photo - taking operation for the photo - taking and dressing - up function, obtain a target virtual object having a second spare filling area.

[0160] When the user performs a sub - photo - taking operation again, in response to the second sub - photo - taking operation for the photo - taking and dressing - up function, obtain a target virtual object having a second spare filling area. The second spare filling area is obtained by fusing the first preview image when the second sub - photo - taking operation is acquired to the first hollowed - out area.

[0161] At this time, the photo - taking operation includes the first sub - photo - taking operation and the second sub - photo - taking operation, and the first filling area includes the first spare filling area and the second spare filling area.

[0162] Thus, by performing multiple sub - photo - taking operations on the first hollowed - out area, each sub - photo - taking operation will obtain a corresponding spare filling area. Therefore, multiple spare filling areas can all be used as the dressing styles obtained by the target virtual object based on the photo - taking and dressing - up function, enriching subsequent selections and improving the user experience.

[0163] The embodiments of the present application do not specifically limit the subsequent selection of multiple spare filling areas. The user can select actively or can be automatically configured according to the virtual environment. Here, taking the automatic configuration of the first spare filling area and the second spare filling area according to the virtual environment as an example for illustration.

[0164] C6: Control the target virtual object having the first spare filling area to interact in the first virtual environment of the target application through the target account.

[0165] If the target virtual object is in the first virtual environment of the target application and the first matching degree is greater than the second matching degree, the first alternative filling area is automatically selected for the target virtual object, so as to control, through the target account, the target virtual object with the first alternative filling area to interact in the first virtual environment of the target application.

[0166] Wherein, the first matching degree is the matching degree between the first alternative filling area and the first virtual environment, the second matching degree is the matching degree between the second alternative filling area and the first virtual environment, and the matching degree refers to the matching degree between the alternative filling area and the virtual environment, which can be determined by color, style, the active state of the virtual object (such as whether participating in a battle, etc.), and the present application does not make specific limitations thereto.

[0167] C7: Control, through the target account, the target virtual object with the second alternative filling area to interact in the second virtual environment of the target application.

[0168] If the target virtual object is in the second virtual environment of the target application and the third matching degree is greater than the fourth matching degree, the second alternative filling area is automatically selected for the target virtual object, so as to control, through the target account, the target virtual object with the second alternative filling area to interact in the second virtual environment of the target application.

[0169] Wherein, the third matching degree is greater than the fourth matching degree, the third matching degree is the matching degree between the second alternative filling area and the second virtual environment, and the fourth matching degree is the matching degree between the first alternative filling area and the second virtual environment.

[0170] Thus, according to the virtual environment where the target virtual object is located in the target application, a suitable alternative filling area is automatically selected for the target virtual object, so as to improve the integration degree of the target virtual object and the virtual environment and enhance the user experience.

[0171] The embodiments of the present application do not specifically limit the styles of other wearable elements that are not replaced after the dressing change is terminated midway. The following takes two ways as examples for illustration.

[0172] Style 1: In response to a trigger operation on the termination control, obtain the current style or default style of the remaining wearable elements, and then combine with the first filling area to implement a dressing change for the target virtual object, and store the target virtual object with the first filling area.

[0173] Wherein, the other wearable elements are the wearable elements except the first wearable element among the multiple wearable elements. That is to say, after the dressing change is terminated midway, the other wearable elements can maintain the current style or the default style, and then combine with the first filling area to implement a dressing change for the target virtual object.

[0174] Style 2: In response to a trigger operation on the end control, determine other wearable areas based on the first filling area, and store a target virtual object having the first filling area and other wearable areas.

[0175] The other wearable areas are the areas corresponding to other wearable elements. That is to say, the styles of other wearable elements can be determined based on the first filling area. For example, the style of the other wearable areas matches the style of the first filling area.

[0176] Among them, the style of an image refers to the common features such as contacts, textures, and colors of an image or all images in a domain. For example, art pictures and photos represent two different image styles. Taking color as an example, if the first filling area is obtained by taking a photo of blue sky and white clouds, the other wearable areas can be blue and white stripes, so that the style of the other wearable areas matches the style of the first filling area. If the first filling area is obtained by taking a photo of green leaves, the other wearable areas can be camouflage, etc. The present application does not make specific limitations on this.

[0177] Thus, by determining other wearable areas based on the first filling area, even if no photo-changing dressing operation is performed on the other wearable areas, it is also possible to perform a dressing operation on the other wearable areas based on the style after dressing the first filling area. That is, automatic dressing is realized for the target virtual object for the first filling area, reducing the complexity of user dressing, and improving the unity of the style of the target virtual object after exiting the dressing halfway, improving the dressing beauty of the target virtual object, and improving the user experience.

[0178] As a possible implementation manner, the embodiment of the present application provides a specific implementation manner of S402, that is, a specific implementation manner of displaying the first preview image in the first hollow area.

[0179] Specifically, display the first preview image in the first hollow area based on the first transparency value, and display the first preview image in the background where the target virtual object is located based on the second transparency value. Among them, the first transparency value is less than the second transparency value, so that the first preview image in the background is more transparent than the first preview image in the first hollow area.

[0180] Among them, the transparency value is used to describe the transparency of the image. The higher the transparency value, the higher the transparency of the image and the dimmer it looks. The first transparency value is the transparency value used to describe the first preview image displayed in the first hollowed-out area, and the second transparency value is the transparency value used to describe the first preview image displayed in the background where the target virtual object is located. Moreover, the first transparency value is less than the second transparency value, that is, the clarity of the first preview image displayed in the first hollowed-out area is higher than that displayed in the background where the target virtual object is located. In contrast, the first preview image displayed in the background where the target virtual object is located is like being covered with a layer, looking relatively dim.

[0181] See Figure 11 , which is a schematic diagram showing a first preview image provided by an embodiment of the present application. In Figure 11 , the first preview image is displayed in the first hollowed-out area 1101, and the first preview image is also displayed in the background 1102 where the target virtual object is located. Moreover, compared with the first preview image displayed in the first hollowed-out area 1101, the first preview image displayed in the background 1102 where the target virtual object is located is like being covered with a layer, looking relatively dim, or having a lower clarity.

[0182] Therefore, after obtaining the first preview image based on the photo-taking and clothing-changing function, the first preview image is not only displayed in the first hollowed-out area, but also can be displayed in the background where the target virtual object is located. Moreover, the display effects of the first preview image displayed in different areas are different, so that not only can the first preview images in different areas be distinguished, but also it can help quickly adjust the first preview image in the first hollowed-out area, that is, by expanding the display area of the first preview image, it helps the user quickly frame the shot and improves the speed of determining the first filling area, thereby improving the user experience.

[0183] As a possible implementation manner, the embodiment of the present application provides a specific implementation manner of S402, that is, a specific implementation manner of displaying the first preview image in the first hollowed-out area.

[0184] Specifically, while displaying the shooting prompt, the first preview image is displayed in the first hollowed-out area. Among them, the shooting prompt is used to improve the display effect of the first filling area. For example, the shooting prompt is in text form, which can prompt the user how to adjust the shooting angle, etc., so as to improve how the first preview image is placed in the first hollowed-out area and obtain a better display effect of the first filling area. Another example is that the shooting prompt is in the form of lines, such as a nine-square grid, a diagonal line, etc., so as to help the user clarify the current composition and improve the display effect of the first filling area.

[0185] The embodiments of the present application do not specifically limit the display position of the shooting prompt. For example, it can be displayed on the background where the target virtual object is located, in the hollowed-out area, etc. Those skilled in the art can set it according to actual needs.

[0186] Thus, while the first preview image is displayed in the first hollowed-out area, a shooting prompt is displayed in the display interface of the target virtual object, so as to help the user better shoot the first preview image through the shooting prompt, obtain a first filling area with a better display effect, and further help the user better realize the dressing change of the target virtual object through the shooting prompt, improving the user experience.

[0187] As a possible implementation, some basic shooting functions can also be provided, such as functions of zooming the focal length multiple, focusing, etc., so as to help the user better shoot.

[0188] It should be noted that in the process of realizing the dressing change for the virtual object, if the terminal device has a camera, the camera of the terminal device can be called to implement the photo-taking dressing change function. Or, a photo-taking dressing change system can also be designed to implement the photo-taking dressing change function through the photo-taking dressing change system, etc. The present application does not make specific limitations on this.

[0189] See Figure 12 , this figure is a schematic diagram of adjusting the zoom of the focal length multiple provided by the embodiments of the present application. The focal length multiple is increased or decreased by sliding the control 1201 up and down, so as to adjust the size of the preview image displayed in the hollowed-out area by adjusting the focal length.

[0190] As a possible implementation, filters, stacked backgrounds, etc. can also be set for the target virtual object, so as to improve the richness of the target virtual object. Continuing to refer to Figure 12 , a stacked background is added to the target virtual object with the first filling area. The first layer of the background is 1202, and the second layer of the background is 1203, that is, the background where the aforementioned target virtual object is located. The first preview image is displayed in the second layer of the background, and different poster styles, etc. are displayed in the first layer of the background, so that the target virtual object with the first layer of the background can be saved as a picture, etc. later to realize the sharing of the target virtual object.

[0191] See Figure 13 , this figure is a schematic diagram of replacing the first layer of the background provided by the embodiments of the present application. The user can perform a triggering operation on the background control. In response to the triggering operation on the background control, a plurality of preset background controls are displayed. Different preset background controls correspond to different first layers of the background. Thus, the user performs a triggering operation on the preset background control, and in response to the triggering operation on the preset background control, the corresponding first layer of the background is displayed. Such as Figure 13After clicking on the background control, four background preset controls are displayed. After the user clicks on the preset background control with the text "Background 3", the corresponding first-layer background is displayed.

[0192] As a possible implementation, the dressed target virtual object can be combined with the real scene, which is equivalent to the dressed target virtual object appearing in the real world, further enriching the user's purpose of combining the real world with the virtual object. The following is a specific description. Refer to B1 - B3.

[0193] B1: In response to an operation to replace the background of the target virtual object, the target virtual object is displayed in the background hollowed-out area.

[0194] The background hollowed-out area is the area corresponding to the background where the target virtual object is located.

[0195] If the user wants to replace the background of the target virtual object, such as fusing the virtual virtual object with the displayed real image, an operation to replace the background can be performed at this time. In response to the operation to replace the background of the target virtual object, the target virtual object is displayed in the background hollowed-out area.

[0196] The target virtual object can be the target virtual object that has replaced the wearable element as described above, such as the target virtual object with the first filling area, the target virtual object with the first filling area and the second filling area, etc.

[0197] B2: A third preview image is displayed in the background hollowed-out area.

[0198] The third preview image is the preview image displayed in the background hollowed-out area. That is to say, the third preview image is the captured picture displayed in real time based on the dressing-up by taking pictures function in the background hollowed-out area. That is, the third preview image is the image displayed in the background hollowed-out area through the camera preview sub-function of the dressing-up by taking pictures function.

[0199] Refer to Figure 14 , which is a schematic diagram showing the display of the third preview image provided by an embodiment of the present application. In Figure 14 Figure (A) of, the area except the target virtual object 1401 is the background hollowed-out area 1402. For the convenience of illustration, the third preview image is not yet displayed in the background hollowed-out area 1402 at this time. In Figure 14 Figure (B) of, the third preview image 1403 is displayed in the background hollowed-out area 1402.

[0200] B3: In response to the taking picture operation for the dressing-up by taking pictures function, the target virtual object is displayed in the background filling area.

[0201] After the user performs a photo-taking operation on a virtual object, in response to the photo-taking operation of the photo-taking and dressing-up function for the virtual object, the third preview image at the time of the photo-taking operation is obtained and fused into the background hollowed-out area to obtain a background filling area, and the target virtual object is displayed in the background filling area, thereby combining the real scene with the virtual object and achieving the effect that the target virtual object walks into the real world.

[0202] Thus, by performing a replacement operation on the background where the target virtual object is located, the target virtual object can be displayed in the background hollowed-out area, and the third preview image can be displayed in the background hollowed-out area. After the user performs a photo-taking operation, a background filling area is obtained, and the target virtual object is displayed in the background filling area. Thus, the real scene, etc., is combined with the virtual object as the third preview image, achieving the effect that the target virtual object walks into the third preview image. This better meets the user's needs for dressing up the target virtual object and increases the user's interaction times.

[0203] The embodiments of the present application do not specifically limit the way to display the hollowed-out area. Hereinafter, the layer method is taken as an example for illustration.

[0204] The wearable elements that the virtual object needs to change clothes for are respectively split into layers as art resources, and only the user interface design (UI) layer outside the shape of the corresponding split wearable elements is left.

[0205] See Figure 15 , which is a schematic diagram of a layer corresponding to a wearable element provided by an embodiment of the present application. In Figure 15 , (A) shows the layer corresponding to the wearable element of the upper garment, and the area corresponding to the wearable element of the upper garment in this layer is the hollowed-out area. In Figure 15 , (B) shows the layer corresponding to the wearable element of the backpack, and the area corresponding to the wearable element of the backpack in this layer is the hollowed-out area.

[0206] That is to say, each wearable element is separately split out as a layer, and the area corresponding to the wearable element in this layer is the hollowed-out area, so as to display the preview image through the hollowed-out area later. After a certain wearable element is determined as the wearable element waiting to change clothes, a photo is taken based on the layer of this wearable element, thereby achieving the effect of displaying the preview image in the hollowed-out area.

[0207] See Figure 16 , which is a schematic diagram of a hollowed-out area provided by an embodiment of the present application. In Figure 16If the wearable element determined to be waiting for a costume change is a top, then the layer corresponding to the wearable element top is selected for subsequent photographing. In the layer corresponding to the wearable element top, the area corresponding to the top is a hollowed-out area, and other areas are normal UI layers. Thus, the preview image below can be displayed through the hollowed-out area. Therefore, when a trigger operation is performed on the photographing control, the image after successful photographing is the display effect of the preview image on the upper layer of the layer corresponding to the underlying wearable element top.

[0208] Thus, it is equivalent to adding a layer on the top layer of the camera interface of the terminal device, performing matte processing on the character's clothing or background, that is, only leaving the layer outside the clothing shape or background, forming an image that supports a transparent background such as a PNG format, etc., and using them as the UI nested on the upper layer of the camera lens. When the camera takes a photo, the presented photo level will be below the clothing and other resource layers, thus forming the visual effect that the captured picture is "inlaid" in the clothing area or on the background. Players can use real-scene shooting to customize the creation of clothing and background. Furthermore, combining the captured image with the character photo decoration, a photo-taking gameplay of "changing costumes" for virtual objects by taking photos anytime and anywhere is formed, enhancing the interactivity, playability, and personalized needs of changing costumes and taking photos for characters in the game.

[0209] As a possible implementation, to reduce the number of layers, a first layer and a second layer can be established. Among them, the first layer is used to display the hollowed-out area, and the second layer is used to display the art resources. The art resources are wearable elements with styles, such as a top with patterns, etc. Thus, the hollowed-out area corresponding to the required wearable element is displayed in the first layer, and the art resources of other wearable elements are displayed in the second layer.

[0210] Taking the display of a target virtual object with a first hollowed-out area as an example, the first hollowed-out area corresponding to the first wearable element is displayed in the first layer, and the art resources corresponding to other wearable elements are respectively displayed in the second layer, thus realizing the display of the target virtual object with the first hollowed-out area.

[0211] As a possible implementation, a corresponding template can be constructed for each wearable element. The shape of the template is the same as the outer shape of the corresponding wearable element, and the template can penetrate the underlying layer, thus realizing the hollowed-out effect and obtaining the corresponding hollowed-out area. Multiple wearable elements are located in the first layer and are displayed as needed. The embodiments of the present application do not specifically limit the form of the template, such as a white mask, etc. The establishment process of each template will be described below.

[0212] Art resources can be constructed for each wearable element, and the shape and style of the art resources are the same as those of the corresponding wearable element. Multiple art resources are located in the second layer and are displayed as needed. The embodiments of the present application do not specifically limit the form of the art resources. For example, the art resources can be images that support a transparent background, such as images in Portable Network Graphics (PNG) format, Graphics Interchange Format (GIF) format, etc. The present application does not make specific limitations on this.

[0213] It should be noted that the UI layer can be integrated with the first layer or the second layer, or a separate UI layer can be established. The present application does not make specific limitations on this.

[0214] See Figure 17 , which is a schematic diagram of a layer provided by an embodiment of the present application. In Figure 17 , it includes layer 0, the first layer, and the second layer. Among them, layer 0 includes multiple functional UIs, that is, the UI layer mentioned above. The first layer includes multiple templates and a fixed part, that is, the fixed part. In Figure 17 , the multiple templates include template 1 corresponding to the wearable element top, template 2 corresponding to the wearable element pants, and template 3 corresponding to the wearable element backpack. The fixed part is the part that cannot be photographed, such as the head, hands, etc. of the virtual object that cannot be replaced. The second layer includes multiple art resources. In Figure 17 , it includes art resource 1 corresponding to the wearable element top, art resource 2 corresponding to the wearable element pants, and art resource 3 corresponding to the wearable element backpack.

[0215] For the convenience of description, the following takes the display of a target virtual object with a first hollow area as an example for description. Specifically, the template corresponding to the first wearable element is displayed in the first layer, and the art resources of other wearable elements are displayed in the second layer. The first layer and the second layer are different layers, and the first layer is located below the second layer to prevent the hollow area of the first layer from being blocked by the second layer.

[0216] See Figure 18 , which is a schematic diagram of a target virtual object with a first hollow area provided by an embodiment of the present application. In Figure 18 , the template corresponding to the wearable element top and the fixed part are displayed in the first layer, and the art resources corresponding to other wearable elements except the wearable element top are displayed in the second layer. The first layer, the second layer, and the UI layer are merged to obtain the display of the target virtual object with the first hollow area.

[0217] Further, after obtaining the target virtual object with the first filling area, an example of displaying the target virtual object with the second hollowed-out area is described. Specifically, the template corresponding to the second wearable element is displayed on the first layer, and the art resources of other wearable elements are displayed on the second layer. At this time, the other wearable elements are the wearable elements except the second wearable element and the first wearable element that has been photographed.

[0218] See Figure 19 , which is a schematic diagram of displaying a target virtual object with a second hollowed-out area provided by an embodiment of the present application. In Figure 19 , on the first layer, the first filling area corresponding to the wearable element top, the template and the fixed part corresponding to the wearable element pants are displayed, and on the second layer, the art resources corresponding to other wearable elements except the wearable element top and the wearable element pants are displayed. The first layer, the second layer and the UI layer are merged to obtain the target virtual object with the first filling area and the second hollowed-out area displayed.

[0219] Thus, by establishing templates and corresponding art resources for each wearable element and displaying the required templates and art resources on different layers, the number of layers established can be reduced, the workload of staff can be reduced, the space required for resource storage can be reduced, and the running fluency of the application can be improved.

[0220] To facilitate further understanding of the technical solution provided by the embodiment of the present application, the following takes the execution subject of the virtual object dressing method provided by the embodiment of the present application as a terminal device and dressing the virtual object in a game application as an example to give an overall exemplary introduction to the virtual object dressing method.

[0221] See Figure 20 , which is a signaling interaction diagram of a virtual object dressing method provided by an embodiment of the present application.

[0222] S2001: Start.

[0223] S2002: In response to the opening operation of the photo dressing function for the virtual object, the foreground determines the target wearable element from multiple wearable elements.

[0224] The target wearable element is the wearable element that needs to be dressed. See Figure 7 or Figure 8 shown, such as the first wearable element or the second wearable element selected by the user, or the default wearable element, etc.

[0225] Among them, the foreground and the background are defined by whether they are visible to the user. The foreground is the operating console visible to the user, and the background is the operating console invisible to the user. For example, the foreground is the display interface of the terminal device, and the background is the computing hardware at the bottom layer of the terminal device, etc. Another example is that the foreground is the terminal device, and the background is the server that provides corresponding services to the terminal device, etc. The present application does not make specific limitations on this.

[0226] S2003: The foreground activates the template corresponding to the target wearable element and displays the target virtual object with the corresponding hollowed-out area.

[0227] As Figure 18 shown, the template corresponding to the target wearable element is displayed in the first layer, and the second layer displays the wearable elements included in the target virtual object, except for the target wearable element and the wearable elements that have completed dressing up. Thus, by merging the first layer and the second layer, the target virtual object with the corresponding hollowed-out area is obtained. Among them, the corresponding hollowed-out area is the hollowed-out area generated by the template corresponding to the target wearable element.

[0228] S2004: The foreground displays the corresponding preview image in the corresponding hollowed-out area.

[0229] The corresponding preview image is the preview image displayed in the corresponding hollowed-out area. As Figure 11 shown, the foreground displays the corresponding preview image in the corresponding hollowed-out area.

[0230] S2005: The foreground responds to the photographing operation for the dressing-up function by photographing and obtains the corresponding preview image and the corresponding filling area when the photographing operation is performed.

[0231] As can be seen from the foregoing, the corresponding preview image will change due to changes in the position, angle, etc. of the foreground, resulting in changes in the preview image in the corresponding hollowed-out area. The foreground responds to the photographing operation for the dressing-up function by photographing, freezes the preview image obtained when the photographing operation is performed, and obtains the corresponding preview image when the photographing operation is performed, as Figure 9 shown. The corresponding filling area is obtained from the corresponding preview image in the corresponding hollowed-out area.

[0232] S2006: The foreground sends the corresponding filling area to the background.

[0233] The foreground sends the corresponding filling area to the background so that the background can combine multiple corresponding filling areas. For example, the foreground sends the first filling area, the second filling area, etc. to the background.

[0234] S2007: If the foreground obtains a candidate wearable element, the candidate wearable element is determined as the target wearable element, and S2003 - S2006 are executed.

[0235] If the foreground obtains candidate wearable elements, it indicates that the user still wants to continue to change the clothing for other wearable elements. The candidate wearable elements are wearable elements other than the current target wearable element and are used as the wearable elements for the next clothing change operation. Take them as the target wearable elements and execute S2003 - S2006 to obtain the filling area corresponding to the wearable elements for this clothing change operation and send it to the background for combination.

[0236] S2008: If the foreground obtains a trigger operation for the end control, obtain a target virtual object with at least one filling area from the background.

[0237] If the foreground obtains a trigger operation for the end control, it indicates that the user wants to end this round of clothing change for the target virtual object. Obtain the target virtual object with multiple filling areas from the background, such as the target virtual object with the first filling area, the target virtual object with the first filling area and the second filling area, etc.

[0238] S2009: The foreground displays a target virtual object with at least one filling area.

[0239] As Figure 10 shown, it is further possible to select whether to save the target virtual object with at least one filling area. It is also possible to interact based on the target virtual object in the game application, or save it as a picture and share it on the social platform, etc.

[0240] S2010: End.

[0241] Thus, in the interaction process of taking pictures of 2D characters, in combination with the camera lens of the terminal device, map the real - scene image in front of the camera lens onto the clothing or background of the 2D character. After taking the picture, make the real - scene image in front of the camera look like the clothing of the 2D character, or change the background to the captured image, enhancing the interaction between virtual character photography and reality, improving the playability of taking pictures by changing the appearance or decoration of 2D characters in the 2D game photography gameplay (i.e., a gameplay in the game application), as well as the interactivity of the camera gameplay. The mapping of the real - world image to the character's dressing strengthens the sense of interaction between reality and virtuality.

[0242] For the clothing change method of the virtual object described above, the present application also provides a corresponding clothing change device for the virtual object to enable the above - mentioned clothing change method of the virtual object to be applied and implemented in practice.

[0243] See Figure 21 This figure is a schematic structural diagram of a clothing change device for a virtual object provided by an embodiment of the present application. As Figure 21 shown, the clothing change device 2100 for the virtual object includes: a display unit 2101 and an acquisition unit 2102;

[0244] The display unit 2101 is configured to display a target virtual object having a first hollowed-out area, where the first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object;

[0245] The display unit 2101 is further configured to display a first preview image in the first hollowed-out area, where the first preview image is a captured image displayed in real time based on the photo dressing function;

[0246] The acquisition unit 2102 is configured to, in response to a photographing operation for the photo dressing function, acquire a target virtual object having a first filled area, where the first filled area is obtained by fusing the first preview image at the time of acquiring the photographing operation into the first hollowed-out area.

[0247] It can be seen from the above technical solution that a target virtual object with a first hollowed-out area is displayed. The first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object. The first hollowed-out area is hollowed out and can display the first preview image located below it, that is, the captured image displayed in real time based on the photo dressing function. Thus, when the user performs a photographing operation, in response to the photographing operation for the photo dressing function, the first preview image at the time of acquiring the photographing operation is fused into the first hollowed-out area to obtain a first filled area, thereby acquiring a target virtual object having the first filled area. Therefore, by combining the dressing function with the photographing function, the photo dressing function is obtained. To support the photo dressing function, the wearable element is pre-made into a hollowed-out area in advance so that the preview image obtained through the photo dressing function can be displayed in the hollowed-out area, and the preview image is fused into the corresponding wearable element to obtain a filled area, realizing the dressing of the target virtual object. That is to say, the user can select the required preview image through the photo dressing function, fuse the preview image with the wearable element, thereby realizing the design of the wearable element, improving the richness of the wearable element while reducing the operation complexity of designing the wearable element. Moreover, by implementing the fusion of the preview image with the target virtual object through the photo dressing function, the rendering efficiency is improved, and thus the user experience is enhanced.

[0248] As a possible implementation manner, the display unit 2101 is specifically configured to:

[0249] In response to an opening operation for the photo dressing function of the virtual object, display the target virtual object having the plurality of wearable elements;

[0250] In response to a selection operation for at least one wearable element among the plurality of wearable elements, display the target virtual object having the first hollowed-out area.

[0251] As a possible implementation, the display unit 2101 is specifically configured to:

[0252] In response to an open operation for the photo dressing function of the virtual object, display a target virtual object with the plurality of wearable elements and a plurality of dressing controls, where different dressing controls correspond to different wearable elements;

[0253] In response to a trigger operation for a target dressing control among the plurality of dressing controls, display a target virtual object with the first hollowed-out area, where the target dressing control corresponds to the first hollowed-out area.

[0254] As a possible implementation, after obtaining the target virtual object with the first filled area, the display unit 2101 is further configured to:

[0255] Display a target virtual object with a second hollowed-out area, where the second hollowed-out area is an area corresponding to at least one wearable element among the plurality of wearable elements included in the target virtual object, and the second hollowed-out area is different from the first hollowed-out area;

[0256] Display a second preview image in the second hollowed-out area, where the second preview image is a captured picture displayed in real time based on the photo dressing function;

[0257] The obtaining unit 2102 is further configured to:

[0258] In response to a photo-taking operation for the photo dressing function, obtain a target virtual object with the first filled area and a second filled area, where the second filled area is obtained by fusing the second preview image when the photo-taking operation is obtained into the second hollowed-out area.

[0259] As a possible implementation, the device further includes a reset unit, configured to:

[0260] After obtaining the target virtual object with the first filled area and the second filled area, display a first reset control;

[0261] In response to a trigger operation for the first reset control, delete the first filled area and the second filled area, and display a target virtual object with the first hollowed-out area.

[0262] As a possible implementation, the device further includes a reset unit, configured to:

[0263] After obtaining the target virtual object with the first filled area and the second filled area, display a second reset control;

[0264] In response to a trigger operation on the second reset control and a selection operation on the target filling area, the target filling area is deleted, and a target virtual object with a target hollow area is displayed. The target filling area is the first filling area or the second filling area. If the target filling area is the first filling area, the target hollow area is the first hollow area; if the target filling area is the second filling area, the target hollow area is the second hollow area.

[0265] As a possible implementation, the device further includes a reset unit for:

[0266] After obtaining the target virtual object with the first filling area and the second filling area, a third reset control is displayed;

[0267] In response to a trigger operation on the third reset control, the second filling area is deleted, and a target virtual object with the second hollow area is displayed.

[0268] As a possible implementation, the device further includes an end unit for:

[0269] After obtaining the target virtual object with the first filling area, an end control is displayed;

[0270] In response to a trigger operation on the end control, the target virtual object with the first filling area is stored for performing an interaction operation based on the target virtual object with the first filling area.

[0271] As a possible implementation, if the multiple wearable elements respectively correspond to different hollow areas, the end unit is specifically configured to:

[0272] In response to a trigger operation on the end control, other wearable areas are determined according to the first filling area. The other wearable areas are areas corresponding to other wearable elements, and the other wearable elements are wearable elements other than the first wearable element among the multiple wearable elements. The first wearable element is the wearable element corresponding to the first hollow area;

[0273] The target virtual object with the first filling area and the other wearable areas is stored.

[0274] As a possible implementation, the target virtual object is a virtual object controlled by a target account, and the target account is used to log in to a target application. The device further includes an interaction unit for:

[0275] Controlling the target virtual object with the first filling area to interact in the target application through the target account.

[0276] As a possible implementation, the display unit 2101 is specifically configured to:

[0277] Display the first preview image in the first hollowed-out area based on a first transparency value, and display the first preview image in the background where the target virtual object is located based on a second transparency value, where the first transparency value is less than the second transparency value.

[0278] As a possible implementation, the display unit 2101 is specifically configured to:

[0279] Display a shooting prompt, and display the first preview image in the first hollowed-out area, where the shooting prompt is used to improve the display effect of the first filled area.

[0280] As a possible implementation, the display unit 2101 is further configured to:

[0281] In response to a replacement operation for the background where the target virtual object is located, display the target virtual object in a background hollowed-out area, where the background hollowed-out area is the area corresponding to the background;

[0282] Display a third preview image in the background hollowed-out area, where the third preview image is a captured image displayed in real time based on the photo-taking and clothing-changing function;

[0283] In response to a photo-taking operation for the photo-taking and clothing-changing function, display the target virtual object in a background filled area, where the background filled area is obtained by fusing the third preview image obtained when the photo-taking operation is acquired into the background hollowed-out area.

[0284] As a possible implementation, the display unit 2101 is specifically configured to:

[0285] Display a template corresponding to a first wearable element on a first layer, where the first layer is used to display the template, and the template is used to penetrate the underlying layer, and different wearable elements correspond to different templates, and the first wearable element is the wearable element corresponding to the first hollowed-out area;

[0286] Display art resources of other wearable elements on a second layer, where the second layer is used to display art resources, and the other wearable elements are the wearable elements other than the first wearable element among the multiple wearable elements, and the first layer and the second layer are different layers, and the first layer is below the second layer.

[0287] As a possible implementation, the art resources are images supporting a transparent background.

[0288] As a possible implementation, the first preview image is obtained by shooting based on a real scene, or the first preview image is obtained by shooting based on a virtual scene.

[0289] The embodiments of the present application also provide a computer device, which can be a server or a terminal device. Hereinafter, the computer device provided by the embodiments of the present application will be introduced from the perspective of hardware implementation. Among them, Figure 22 The figure shows a schematic structural diagram of a server. Figure 23 The figure shows a schematic structural diagram of a terminal device.

[0290] See Figure 22 , which is a schematic structural diagram of a server provided by the embodiments of the present application. The server 1400 may vary greatly due to different configurations or performances, and may include one or more processors 1422, such as central processing units (CPUs), a memory 1432, and a storage medium 1430 for one or more application programs 1442 or data 1444 (for example, one or more mass storage devices). Among them, the memory 1432 and the storage medium 1430 can be transient storage or persistent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the processor 1422 may be configured to communicate with the storage medium 1430 and execute a series of instruction operations in the storage medium 1430 on the server 1400.

[0291] The server 1400 may further include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input / output interfaces 1458, and / or one or more operating systems 1441, such as Windows Server , TM ,

[0292] , Figure 22 , TM , , TM ,

[0293] , TM , TM ,

[0291] , ,

[0294] , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM and so on.

[0292] The steps executed by the server in the above embodiments may be based on the Figure 22 shown server structure.

[0293] Among them, the processor 1422 is used to execute the following steps:

[0294] In response to an open operation of the photo dressing function for a virtual object, display a target virtual object having a first hollowed-out area, where the first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object;

[0295] A first preview image is displayed in the first hollowed-out area, and the first preview image is a captured image displayed in real time based on the photo-taking and clothing-changing function.

[0296] In response to a photo-taking operation for the photo-taking and clothing-changing function, a target virtual object with a first filling area is obtained, where the first filling area is obtained by fusing the first preview image at the time of obtaining the photo-taking operation into the first hollowed-out area.

[0297] Optionally, the processor 1422 may also execute the method steps of any specific implementation manner of the clothing-changing method of the virtual object in the embodiments of the present application.

[0298] See Figure 23 , which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. Taking the terminal device as a smart phone as an example for illustration, Figure 23 What is shown is a block diagram of a part of the structure of the smart phone. The smart phone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590 and other components. Those skilled in the art can understand that Figure 23 The structure of the smart phone shown in

[0299] does not limit the smart phone, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components. Figure 23 The following specifically introduces each component of the smart phone:

[0300] The RF circuit 1510 can be used to receive and send information or signals during a call. Specifically, after receiving the downlink information of the base station, it is given to the processor 1580 for processing; in addition, the uplink data designed is sent to the base station.

[0301] The memory 1520 can be used to store software programs and modules. The processor 1580 realizes various functional applications and data processing of the smart phone by running the software programs and modules stored in the memory 1520.

[0302] The input unit 1530 can be used to receive input numerical or character information and generate key signal inputs related to the user settings and function controls of the smart phone. Specifically, the input unit 1530 can include a touch panel 1531 and other input devices 1532. The touch panel 1531, also known as a touch screen, can collect touch operations of the user on or near it and drive corresponding connection devices according to a preset program. In addition to the touch panel 1531, the input unit 1530 can also include other input devices 1532. Specifically, the other input devices 1532 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc.

[0303] The display unit 1540 can be used to display information input by the user or information provided to the user and various menus of the smart phone. The display unit 1540 can include a display panel 1541. Optionally, the display panel 1541 can be configured in the form of, for example, a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0304] The smart phone can also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. As for other sensors that the smart phone can also be configured with, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be elaborated here.

[0305] The audio circuit 1560, the speaker 1561, and the microphone 1562 can provide an audio interface between the user and the smart phone. The audio circuit 1560 can transmit the electrical signal after converting the received audio data to the speaker 1561, and the speaker 1561 converts it into a sound signal for output; on the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1560 and then converted into audio data. After the audio data is output to the processor 1580 for processing, it is sent through the RF circuit 1510 to, for example, another smart phone, or the audio data is output to the memory 1520 for further processing.

[0306] The processor 1580 is the control center of the smart phone, connecting various parts of the entire smart phone using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1520, and by calling data stored in the memory 1520, it performs various functions of the smart phone and processes data. Optionally, the processor 1580 can include one or more processing units.

[0307] The smart phone further includes a power source 1590 (such as a battery) for supplying power to each component. Preferably, the power source can be logically connected to the processor 1580 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system.

[0308] Although not shown, the smart phone may further include a camera, a Bluetooth module, etc., which will not be elaborated here.

[0309] In the embodiment of the present application, the memory 1520 included in the smart phone can store a computer program and transmit the computer program to the processor.

[0310] The processor 1580 included in the smart phone can execute the dressing method of the virtual object provided in the above embodiment according to the instructions in the computer program.

[0311] The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, and the computer program is used to execute the dressing method of the virtual object provided in the above embodiment.

[0312] On the other hand, the embodiment of the present application provides a computer program product including a computer program. When it runs on a computer device, it enables the computer device to execute the dressing method of the virtual object provided in various optional implementation manners of the above aspect.

[0313] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiment; and the foregoing storage medium can be at least one of the following media: Read-Only Memory (ROM), RAM, magnetic disk, or optical disc, etc., which can store computer programs.

[0314] The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims, and drawings of the present application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "including" and "corresponding to" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0315] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "the", and "said" used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0316] In the embodiments of this application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.

[0317] It should be noted that the various embodiments in this specification are described in a progressive manner. The same or similar parts among the various embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and system embodiments described above are merely illustrative. 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 distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.

[0318] As described above, this is only a specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in this application should be covered by the protection scope of this application. On the basis of the implementation manners provided in the above aspects of this application, further combinations can be made to provide more implementation manners. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A method for changing the clothing of a virtual object, characterized in that, The method includes: Display a target virtual object having a first hollowed-out area, where the first hollowed-out area is an area corresponding to at least one wearable element of the target virtual object; Display a first preview image in the first hollowed-out area, where the first preview image is a captured image displayed in real time based on the photo dressing-up function; In response to a photo-taking operation for the photo dressing-up function, obtain a target virtual object having a first filled area, where the first filled area is obtained by fusing the first preview image at the time of obtaining the photo-taking operation into the first hollowed-out area.

2. The method according to claim 1, wherein The step of displaying a target virtual object having a first hollowed-out area includes: In response to an opening operation for the photo dressing-up function of the virtual object, display a target virtual object having the plurality of wearable elements; In response to a selection operation for at least one wearable element among the plurality of wearable elements, display a target virtual object having the first hollowed-out area.

3. The method according to claim 1, wherein The step of displaying a target virtual object having a first hollowed-out area includes: In response to an opening operation for the photo dressing-up function of the virtual object, display a target virtual object having the plurality of wearable elements and a plurality of dressing-up controls, where different dressing-up controls correspond to different wearable elements; In response to a triggering operation for a target dressing-up control among the plurality of dressing-up controls, display a target virtual object having the first hollowed-out area, where the target dressing-up control corresponds to the first hollowed-out area.

4. The method according to claim 1, wherein After obtaining the target virtual object having the first filled area, the method further includes: Display a target virtual object having a second hollowed-out area, where the second hollowed-out area is an area corresponding to at least one wearable element among the plurality of wearable elements included in the target virtual object, and the second hollowed-out area is different from the first hollowed-out area; Display a second preview image in the second hollowed-out area, where the second preview image is a captured image displayed in real time based on the photo dressing-up function; In response to a photo-taking operation for the photo dressing-up function, obtain a target virtual object having the first filled area and a second filled area, where the second filled area is obtained by fusing the second preview image at the time of obtaining the photo-taking operation into the second hollowed-out area.

5. The method according to claim 4, wherein After obtaining the target virtual object having the first filled area and the second filled area, the method further includes: Display a first reset control; In response to a triggering operation for the first reset control, delete the first filled area and the second filled area, and display a target virtual object having the first hollowed-out area.

6. The method according to claim 4, wherein After obtaining the target virtual object having the first filled area and the second filled area, the method further includes: Display a second reset control; In response to a triggering operation on the second reset control and a selection operation on the target filling area, the target filling area is deleted, and a target virtual object with a target hollowed-out area is displayed. The target filling area is the first filling area or the second filling area. If the target filling area is the first filling area, the target hollowed-out area is the first hollowed-out area. If the target filling area is the second filling area, the target hollowed-out area is the second hollowed-out area.

7. The method according to claim 4, characterized in that, After obtaining the target virtual object with the first filling area and the second filling area, the method further includes: Displaying a third reset control; In response to a triggering operation on the third reset control, the second filling area is deleted, and a target virtual object with the second hollowed-out area is displayed.

8. The method according to claim 1, wherein After obtaining the target virtual object with the first filling area, the method further includes: Displaying an end control; In response to a triggering operation on the end control, the target virtual object with the first filling area is stored for performing an interaction operation based on the target virtual object with the first filling area.

9. The method according to claim 8, characterized in that If the multiple wearable elements respectively correspond to different hollowed-out areas, the storing the target virtual object with the first filling area in response to a triggering operation on the end control includes: In response to a triggering operation on the end control, other wearable areas are determined according to the first filling area. The other wearable areas are areas corresponding to other wearable elements, and the other wearable elements are wearable elements other than the first wearable element among the multiple wearable elements. The first wearable element is the wearable element corresponding to the first hollowed-out area; Storing the target virtual object with the first filling area and the other wearable areas.

10. The method according to claim 8, wherein The target virtual object is a virtual object controlled by a target account, and the target account is used to log in to a target application. The method further includes: Controlling the target virtual object with the first filling area through the target account to perform an interaction in the target application.

11. The method according to claim 10, characterized in that, The obtaining the target virtual object with the first filling area in response to a photographing operation on the photographing and dressing-up function includes: In response to a first sub-photographing operation on the photographing and dressing-up function, obtaining a target virtual object with a first alternative filling area; In response to a second sub-photographing operation on the photographing and dressing-up function, obtaining a target virtual object with a second alternative filling area. The photographing operation includes the first sub-photographing operation and the second sub-photographing operation, and the first filling area includes the first alternative filling area and the second alternative filling area; The controlling the target virtual object with the first filling area through the target account to perform an interaction in the target application includes: Control a target virtual object with the first spare filling area to interact in the first virtual environment of the target application through the target account. The first matching degree is greater than the second matching degree. The first matching degree is the matching degree between the first spare filling area and the first virtual environment, and the second matching degree is the matching degree between the second spare filling area and the first virtual environment; Control a target virtual object with the second spare filling area to interact in the second virtual environment of the target application through the target account. The third matching degree is greater than the fourth matching degree. The third matching degree is the matching degree between the second spare filling area and the second virtual environment, and the fourth matching degree is the matching degree between the first spare filling area and the second virtual environment.

12. The method according to claim 1, wherein The displaying the first preview image in the first hollowed-out area includes: Display the first preview image in the first hollowed-out area based on the first transparency value, and display the first preview image in the background where the target virtual object is located based on the second transparency value. The first transparency value is less than the second transparency value.

13. The method according to claim 1, wherein The displaying the preview image in the first hollowed-out area includes: Display a shooting prompt, and display the first preview image in the first hollowed-out area. The shooting prompt is used to improve the display effect of the first filling area.

14. The method according to claim 1, wherein The method further includes: In response to a replacement operation for the background where the target virtual object is located, display the target virtual object in a background hollowed-out area, where the background hollowed-out area is the area corresponding to the background; Display a third preview image in the background hollowed-out area. The third preview image is a captured image displayed in real time based on the photo-taking clothing-changing function; In response to a photo-taking operation for the photo-taking clothing-changing function, display the target virtual object in a background filling area, where the background filling area is obtained by fusing the third preview image when the photo-taking operation is acquired into the background hollowed-out area.

15. The method according to claim 1, wherein The displaying the target virtual object with the first hollowed-out area includes: Display a template corresponding to the first wearable element on a first layer. The first layer is used to display the template, and the template is used to penetrate the lower layer. Different wearable elements correspond to different templates. The first wearable element is the wearable element corresponding to the first hollowed-out area; Display the art resources of other wearable elements on a second layer. The second layer is used to display the art resources. The other wearable elements are the wearable elements other than the first wearable element among the multiple wearable elements. The first layer and the second layer are different layers, and the first layer is below the second layer.

16. The method according to claim 15, wherein The art resources are images supporting a transparent background.

17. The method according to any one of claims 1-16, characterized in that, The first preview image is obtained by shooting based on a real scene, or the first preview image is obtained by shooting based on a virtual scene.

18. A dressing device for virtual objects, characterized in that, The device includes: a display unit and an acquisition unit; The display unit is configured to display a target virtual object with a first hollowed-out area, where the first hollowed-out area is the area corresponding to at least one wearable element of the target virtual object; The display unit is further configured to display a first preview image in the first hollowed-out area, where the first preview image is a captured image displayed in real time based on the photo-taking and clothing-changing function; The obtaining unit is configured to, in response to a photo-taking operation for the photo-taking and clothing-changing function, obtain a target virtual object having a first filling area, where the first filling area is obtained by fusing the first preview image obtained at the time of obtaining the photo-taking operation into the first hollowed-out area.

19. A computer device, characterized in that, The computer device includes a processor and a memory: The memory is configured to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1-17 based on the computer program.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium is configured to store a computer program, and the computer program is used to execute the method according to any one of claims 1-17.

21. A computer program product comprising a computer program, characterized in that, When it runs on a computer device, it causes the computer device to execute the method according to any one of claims 1-17.

Citation Information

Patent Citations

  • Method and device for shooting based on intelligent equipment and intelligent equipment

    CN104657146A

  • Method and device for controlling virtual object to change wearable component, equipment and medium

    CN110681157A

  • Virtual carrier coating method and device, equipment and storage medium

    CN112755533A

  • Virtual reloading method and device and storage medium

    CN114693891A

  • Shooting method and device, electronic equipment and storage medium

    CN115988312A