Virtual character transformation method and apparatus, device and storage medium

By disguising operations in the virtual environment, switching the virtual object to a virtual item and making it active in the virtual environment, the problem of single camouflage of virtual objects is solved, and the concealment of virtual objects is improved.

WO2025044397A1PCT designated stage expired Publication Date: 2025-03-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/098746
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-25
Filing Date
2024-06-12
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

In the prior art, virtual objects are disguised in a virtual environment with a relatively single method and are difficult to hide effectively.

Method used

The first virtual object is switched to display as a first virtual item by a disguise operation, the range of types of the first virtual item is a subset of the environmental virtual item, and is activated in the virtual environment in response to the control operation.

Benefits of technology

The appearance of virtual objects in the virtual environment has been expanded, and the appearance consistency of virtual objects is hiding with the appearance of the environment virtual items has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024098746_06032025_PF_FP_ABST
    Figure CN2024098746_06032025_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of virtual world. Disclosed are a virtual character transformation method and apparatus, a device and a storage medium. The method comprises: displaying a first virtual character and at least one environment virtual item located in a virtual environment (510), the virtual environment being an environment for a second virtual character to search for the transformed first virtual character, and the first virtual character and the second virtual character having antagonistic identities; in response to a camouflage operation for the first virtual character, switching the first virtual character to display same as a first virtual item (520), the type range of the first virtual item being a subset of the type range of the at least one environment virtual item; and, in response to a control operation for the first virtual item, controlling the first virtual item to move in the virtual environment (530).
Need to check novelty before this filing date? Find Prior Art

Description

Virtual object deformation method, device, equipment and storage medium

[0001] This application claims priority to Chinese patent application No. 202311083020.5 filed on August 25, 2023, entitled “Method, device, apparatus and storage medium for deformation of virtual objects,” the entire contents of which are incorporated herein by reference. Technical Field

[0002] The present application relates to the field of virtual world technology, and in particular to a method, apparatus, device, and storage medium for transforming a virtual object. Background Art

[0003] In applications that include a virtual environment, it is usually necessary to control virtual objects to perform activities in the virtual environment, such as walking, driving, climbing, picking up objects, fighting, etc.

[0004] In the related art, players in the first virtual camp are displayed as a virtual object in the virtual environment and hide in the virtual environment by moving, while players in the second virtual camp search and find in the virtual environment.

[0005] However, the selection method of the above virtual items is relatively simple.

[0006] Summary of the Invention

[0007] This application provides a method, device, equipment, and storage medium for virtual object deformation. The technical solution is as follows:

[0008] According to one aspect of the present application, a method for deforming a virtual object is provided, the method being executed by a terminal and comprising:

[0009] displaying a first virtual object and at least one environmental virtual item in a virtual environment, wherein the virtual environment is an environment for a second virtual object to search for the first virtual object after deformation; the first virtual object and the second virtual object have opposite identities;

[0010] In response to a disguise operation on the first virtual object, switching the first virtual object to be displayed as a first virtual item, wherein the category range of the first virtual item is a subset of the category range of the at least one environmental virtual item;

[0011] In response to a control operation on the first virtual item, the first virtual item is controlled to move in the virtual environment.

[0012] According to another aspect of the present application, a device for deforming a virtual object is provided, the device comprising:

[0013] a display module configured to display a first virtual object and at least one virtual environmental item in a virtual environment, wherein the virtual environment is configured for a second virtual object to search for the first virtual object after deformation; the first virtual object and the second virtual object having opposite identities;

[0014] The display module is further configured to, in response to a disguise operation on the first virtual object, switch the first virtual object to be displayed as a first virtual item, wherein the category range of the first virtual item is a subset of the category range of the at least one environmental virtual item;

[0015] The display module is further configured to control the first virtual item to move in the virtual environment in response to a control operation on the first virtual item.

[0016] According to another aspect of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the virtual object deformation method described above.

[0017] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the virtual object deformation method as described above.

[0018] According to another aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the above-mentioned method for deforming a virtual object.

[0019] The beneficial effects of the technical solution provided by this application include at least:

[0020] The first virtual object is switched for display through a disguise operation, and the first virtual object is changed to be displayed as a first virtual item, thereby changing the appearance of the first virtual object; the changed first virtual item is of the same type as at least one environmental virtual item, ensuring that there are environmental virtual items in the virtual environment that have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1 is a block diagram of a computer system provided by an exemplary embodiment of the present application;

[0022] FIG2 is a schematic diagram of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0023] FIG3 is a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0024] FIG4 is a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0025] FIG5 is a schematic diagram of a three-dimensional model provided by an exemplary embodiment of the present application;

[0026] FIG6 is a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0027] FIG7 is a schematic diagram of a virtual environment identifier provided by an exemplary embodiment of the present application;

[0028] FIG8 is a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0029] FIG9 is a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application;

[0030] FIG10 is a schematic diagram of a random pool provided by an exemplary embodiment of the present application;

[0031] FIG11 is a structural block diagram of a virtual object deformation device provided by an exemplary embodiment of the present application;

[0032] FIG12 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0033] FIG1 shows a block diagram of a computer system according to an exemplary embodiment of the present application. The computer system 100 includes a first terminal 110 , a server 120 , and a second terminal 130 .

[0034] A first terminal 110 has a client 111 installed and running that supports a virtual environment. This client 111 can be a multiplayer online battle program. When the first terminal runs client 111, the user interface of client 111 is displayed on the screen of the first terminal 110. Client 111 can be any of a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooter (FPS), a third-person shooter (TPS), a multiplayer online battle arena (MOBA), or a simulation game (SLG). In this embodiment, an FPS game is used as an example. The first terminal 110 is used by a first user 112. The first user 112 uses the first terminal 110 to control a first virtual object in the virtual environment to perform activities. The first virtual object can be referred to as the first user 112's virtual object. The activities of the first virtual object include, but are not limited to, at least one of: moving, jumping, teleporting, performing skills, using props, adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, and throwing. Illustratively, the first virtual object is a first virtual object, such as a simulated human character or an animated character.

[0035] The second terminal 130 has a client 131 installed and running that supports a virtual environment. The client 131 can be a multiplayer online battle program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be any of a battle royale shooting game, a VR application, an AR program, a three-dimensional map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and a SLG. In this embodiment, the client is a MOBA game as an example. The second terminal 130 is a terminal used by a second user 132. The second user 132 uses the second terminal 130 to control a second virtual object in the virtual environment to perform activities. The second virtual object can be referred to as the virtual object of the second user 132. Schematically, the second virtual object is a second virtual object, such as a simulated human character or an anime character.

[0036] Optionally, the first virtual object and the second virtual object are in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations, or have a hostile relationship.

[0037] Optionally, the client installed on the first terminal 110 and the second terminal 130 is the same, or the client installed on the two terminals is the same type of client on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as an example. The first terminal 110 and the second terminal 130 can be of the same or different device types, including at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.

[0038] FIG1 shows only two terminals, but in different embodiments, multiple other terminals 140 may be connected to the server 120. Optionally, one or more terminals 140 may be terminals corresponding to developers, and a client development and editing platform supporting a virtual environment may be installed on the terminal 140. The developer may edit and update the client on the terminal 140 and transmit the updated client installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 may then download the client installation package from the server 120 to update the client.

[0039] The first terminal 110 , the second terminal 130 , and the other terminals 140 are connected to the server 120 via a wireless network or a wired network.

[0040] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for clients supporting a 3D virtual environment. Optionally, server 120 performs primary computing tasks, while the client performs secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while the client performs primary computing tasks; alternatively, server 120 and the client utilize a distributed computing architecture for collaborative computing.

[0041] In an illustrative example, the server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is configured to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124. The user account database 123 is configured to store user account data used by the first terminal 110, the second terminal 130, and other terminals 140, such as user account avatars, user account nicknames, user account combat power indexes, and the service areas where the user accounts are located. The battle service module 124 is configured to provide multiple battle rooms for users to engage in battles, such as 1v1 battles, 3v3 battles, 5v5 battles, etc. The user-facing I / O interface 125 is configured to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.

[0042] The method provided in this application can be applied to, but is not limited to, at least one of the following scenarios: virtual reality applications, three-dimensional map programs, first-person shooter games (FPS), third-person shooter games (TPS), multiplayer online battle arena games (MOBA), multiplayer gunfight survival games, etc. The following embodiments are illustrated by using applications in games as examples.

[0043] FIG2 is a schematic diagram showing a method for deforming a virtual object provided by an exemplary embodiment of the present application.

[0044] For example, in an avoidance game, the virtual camp of the first virtual object can be called the infiltrator or evader, and the virtual camp of the second virtual object can be called the defender or seeker. After a virtual game begins, the first virtual object changes its appearance to blend into the virtual objects placed in the virtual environment without being discovered by the second virtual object. The second virtual object needs to find the transformed first virtual object among the numerous virtual objects in the virtual environment and launch a virtual attack. After the first virtual object's identity is discovered by the second virtual object, it can use the terrain to perform movement operations such as running and jumping to re-disguise itself.

[0045] Exemplarily, the first area 310 is a display area on the display screen of the terminal for displaying a disguise control 312 and a jump control 314 , and the display screen of the terminal is used to display a first virtual object and at least one environmental virtual item in a virtual environment.

[0046] In response to a click operation on disguise control 312, the first virtual object is switched to be displayed as a first virtual item. Specifically, if the first virtual object is located indoors, i.e., inside a virtual building, the first object is switched to be displayed as a virtual book 322 or a virtual lamp 324. Virtual book 322 or virtual lamp 324 are virtual items already present in the indoor area. If the first virtual object is located outdoors, i.e., outside the virtual building, the first object is switched to be displayed as virtual grass 326 or virtual stone 328. Virtual grass 326 or virtual stone 328 are virtual items already present in the outdoor area.

[0047] FIG3 shows a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application. Taking the method applied in a terminal as an example, the method includes the following steps:

[0048] Step 510: Displaying a first virtual object and at least one environmental virtual item in a virtual environment;

[0049] Exemplarily, the virtual environment is an environment for the second virtual object to search for the deformed first virtual object; exemplary, the first virtual object and the second virtual object have opposite identities, for example: the second virtual object and the first virtual object belong to different virtual camps, the second virtual object searches for the deformed first virtual object in the virtual environment, and the first virtual object hides in the virtual environment by deforming, so as to realize a virtual game between the first virtual object and the second virtual object.

[0050] Exemplarily, a virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal or server. Optionally, the virtual scene is a simulation of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities.

[0051] For example, the virtual environment item is a virtual item already in the virtual environment, such as at least one of a virtual tree, a virtual animal, a virtual box, a virtual flower pot, a virtual staircase, a virtual curtain, etc. The virtual environment may have multiple virtual environment items with the same appearance.

[0052] Exemplarily, the first virtual object and the second virtual object are player characters controlled by control accounts logged into different terminals. Exemplarily, the first virtual object is a virtual object controlled by the control account logged into the current terminal. Exemplarily, displaying the first virtual object includes directly displaying the first virtual object or displaying a perspective image of the first virtual object. The perspective image of the first virtual object is a scene image obtained by observing the virtual environment from the perspective of the first virtual object. Optionally, in an embodiment of the present application, the virtual character is observed in the virtual environment through a camera model.

[0053] Step 520: In response to the disguise operation on the first virtual object, switch the first virtual object to be displayed as a first virtual item;

[0054] Exemplarily, the disguise operation is used to switch the appearance of the first virtual object. The disguise operation is an operation directed at the first virtual object. It should be noted that any operation that can trigger the switching of the display of the first virtual object is a disguise operation directed at the first virtual object. Methods for implementing the disguise operation on the first virtual object include, but are not limited to, at least one of the following: clicking, sliding, and rotating; for example, clicking a touch screen or button, sliding a touch screen or handle, or rotating a terminal or handle.

[0055] Exemplarily, the category range of the first virtual item is a subset of the category range of at least one environmental virtual item; exemplary, environmental virtual items of the same category have the same appearance; as described above, the virtual environment may include multiple environmental virtual items with the same appearance, and multiple environmental virtual items with the same appearance correspond to the same category of environmental virtual items.

[0056] Exemplarily, the first virtual object is switched to be displayed as a first virtual item, and the environmental virtual items in the virtual environment are simulated by switching the first virtual object to be displayed as the first virtual item having the same appearance as the environmental virtual items.

[0057] Exemplarily, the first virtual item is any environmental virtual item in the virtual environment. Furthermore, the first virtual item can be determined randomly from at least one environmental virtual item, or can be selected based on human-computer interaction, or can be determined based on a mapping relationship between the first virtual object and the first virtual item. This application does not limit the method for determining the first virtual item. In one example, the first virtual item and at least one environmental virtual item are of the same type, but the first virtual item and the environmental virtual item of the same type are different virtual items, for example, the positions of the first virtual item and the environmental virtual item are different. Exemplarily, the environmental virtual item is a first virtual tree, and the first virtual item is a second virtual tree; the first virtual item and the environmental virtual item are of the same type, for example, the appearance of the second virtual tree is the same as that of the first virtual tree; but in the virtual environment, the first virtual tree and the second virtual tree are two independent and different virtual items.

[0058] Step 530: In response to a control operation on the first virtual item, controlling the first virtual item to move in the virtual environment;

[0059] Exemplarily, the control operation on the first virtual object is used to control the first virtual object to perform at least one of virtual activities such as moving, jumping, climbing, running, and fixing in the virtual environment. By controlling the movement of the first virtual object in the virtual environment and adjusting the position of the first virtual object in the virtual environment, it is possible to find a second virtual object hidden in the virtual environment.

[0060] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual item is of the same type as at least one environmental virtual item, ensuring that there are environmental virtual items in the virtual environment that have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0061] Next, a method of determining the first virtual item according to the visual difference or visual similarity is introduced.

[0062] FIG4 shows a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application. This method is described using a terminal as an example. In the embodiment shown in FIG3 , step 520 can be implemented as step 522 or step 524:

[0063] Step 522: In response to the disguise operation on the first virtual object, switch the first virtual object to be displayed as a first virtual item whose visual difference meets a first condition;

[0064] Exemplarily, in this step, the environmental virtual item includes a first virtual object; as described above, the category range of the first virtual item is a subset of the category range of at least one environmental virtual item. Specifically, the first virtual item is determined from the at least one environmental virtual item, and the category of the first virtual item is the same as the category of an environmental virtual item in the virtual environment.

[0065] Exemplarily, when the environmental virtual items include a first virtual object, the first virtual object and the environmental virtual items in the virtual environment have the same appearance. The camouflage operation on the first virtual object is used to indicate that even if the first virtual object and the environmental virtual objects in the virtual environment are identical, hiding in the virtual environment is not conducive. By determining the first virtual object from the candidate object pool and increasing the appearance difference between the first virtual object and the first virtual object, the changed first virtual object is prevented from still being similar to the first virtual object.

[0066] For example, even if the first virtual object and the environmental virtual objects in the virtual environment are identical, hiding in the virtual environment may be hindered by the first virtual object's large virtual volume, or by the fact that the environmental virtual objects are densely packed together in the virtual environment and their distance from the first virtual object exceeds a distance threshold, preventing the first virtual object from being able to move to the location of the environmental virtual objects in the virtual environment in a timely manner. This embodiment does not limit these reasons.

[0067] Exemplarily, the visual difference is used to indicate the difference in appearance attributes between the first virtual object and the first virtual item. In one example, the visual difference reaching the first condition is used to indicate that the first virtual object and the first virtual item have at least two different appearance attributes. This is also referred to as the visual difference reaching the first condition being used to indicate that the first virtual object and the first virtual item have at least two different appearance attributes among color, material, texture, three-dimensional structure, size, and fill pattern.

[0068] It can be seen that in one example, the appearance attributes include but are not limited to at least one of the following:

[0069] Color is used to indicate the texture color of the virtual object. The color can be a single color or a combination of multiple colors.

[0070] Material is used to indicate that virtual objects simulate the material of real objects through parameter information such as reflectivity and transparency, such as metal, glass, rubber, etc.

[0071] Texture is used to instruct virtual objects to simulate the uneven texture of real objects through mapping and other means.

[0072] A three-dimensional structure is used to indicate the structure of a virtual object in three-dimensional space, such as at least one of a sphere, ellipsoid, cylinder, cone, prism, or pyramid, or a combination thereof. For example, a three-dimensional structure may be a solid structure whose outer surface is formed by stitching together triangles.

[0073] Size is used to indicate the length, width, height, and other information describing the size of a virtual object in three-dimensional space.

[0074] Fill pattern, used to indicate the pattern of the virtual object on the outer surface.

[0075] Exemplarily, the first virtual item and the first virtual object have at least two different appearance attributes; it is understandable that the first virtual item is determined within a subset of the range of types in the environmental virtual items; exemplarily, environmental virtual items having at least two different appearance attributes from the first virtual object are screened among the types of environmental virtual items to obtain at least one candidate type; the first virtual item is determined within the at least one candidate type; further, when the number of screened objects exceeds one, the first virtual item is randomly determined within the screened objects.

[0076] Step 524: In response to the disguise operation on the first virtual object, switch the first virtual object to be displayed as a first virtual item whose visual similarity meets a second condition;

[0077] Exemplarily, a first virtual item is determined from at least one environmental virtual item. Specifically, in this step, adjacent environmental items in the virtual environment and the first virtual item have at least two identical appearance attributes.

[0078] Exemplarily, the adjacent environmental item is an environmental virtual item whose distance from the first virtual object is less than a preset proximity distance threshold. By switching the first virtual object to be displayed as the first virtual item, the first virtual item and the adjacent environmental items within the proximity distance threshold have similar appearance attributes (for example, at least two identical appearance attributes), which facilitates masking the first virtual item in the virtual environment by leveraging the identical or similar appearance of the first virtual item and the adjacent environmental items.

[0079] Exemplarily, the proximity distance threshold between adjacent environmental items and the first virtual object can be pre-set or determined based on the adjacent environmental items, such as decreasing as the size of the adjacent environmental items increases. Exemplarily, visual salience increases with increasing volume in the virtual environment; that is, as the size of the first virtual item increases in the virtual environment, the difficulty of hiding in the virtual environment increases. Furthermore, by decreasing the proximity distance threshold as the size of the adjacent environmental items increases, the distance between the deformed first virtual object and the adjacent environmental items is reduced, facilitating the first virtual object's timely approach to or proximity to the adjacent environmental items, allowing it to hide by adopting an appearance identical to or similar to that of the adjacent environmental items.

[0080] Exemplarily, visual similarity is used to indicate the similarity of appearance attributes between adjacent environmental objects and the first virtual object. In one example, the visual similarity reaching the second condition is used to indicate that the first virtual object and the first virtual object have at least two identical appearance attributes; it is also called the visual similarity reaching the second condition is used to indicate that the first virtual object and the first virtual object have at least two identical appearance attributes of color, material, texture, three-dimensional structure, size, and fill pattern. For an introduction to the above-mentioned appearance attributes, please refer to step 522 above, which will not be repeated here.

[0081] In one optional implementation, the environmental virtual items do not include the first virtual object. In this case, the first virtual object and the environmental virtual items in the virtual environment have different appearances. The camouflage operation on the first virtual object is used to indicate that the first virtual object does not simulate the environmental virtual items effectively, resulting in a significant difference in appearance; or that the first virtual object does not simulate the environmental virtual items in the virtual environment, making it difficult to hide in the virtual environment. By switching the first virtual object to be displayed as the first virtual item, adjacent environmental items in the virtual environment are simulated in a targeted manner, thereby facilitating concealment of the first virtual object in the virtual environment by virtue of the identical or similar appearance of the first virtual object and the adjacent environmental items.

[0082] It should be noted that in FIG4 , step 520 can be implemented as step 522 or step 524, indicating that step 522 in this embodiment can be combined with step 510 and step 530 in FIG3 to form a new embodiment and be implemented separately, and this application does not limit this; similarly, step 524 in this embodiment can also be combined with step 510 and step 530 in FIG3 to form a new embodiment and be implemented separately, and this application does not limit this. In an optional example, the above two implementation methods can also be combined, that is, the first virtual object is switched to be displayed as a first virtual item; wherein the visual difference between the first virtual item and the first virtual object meets the first condition, and the similarity (visual similarity) of the appearance attributes between the first virtual item and the adjacent environmental items and the first virtual item meets the second condition.

[0083] In summary, the method provided in this embodiment switches the display of the first virtual object through a camouflage operation, and changes the display of the first virtual object to a first virtual item based on visual difference or visual similarity, thereby changing the appearance of the first virtual object; the changed first virtual item is of the same type as at least one environmental virtual item, ensuring that there are environmental virtual items in the virtual environment that have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0084] Next, the first virtual item is further introduced.

[0085] In an optional implementation, the first virtual item in step 520 can be implemented as any one of the following:

[0086] The type of the first virtual item is randomly determined from at least one environmental virtual item;

[0087] Exemplarily, different types of environmental virtual items may have different or the same weight information, where the weight information is used to indicate the probability of the environmental virtual item being selected as the first virtual item during the random determination process.

[0088] The type of the first virtual item is the same as the type of the most numerous environmental virtual item in the virtual environment;

[0089] For example, as the number of environmental virtual objects in the virtual environment increases, environmental virtual items become more and more common in the environment. By determining the type of the first virtual item to be the same as the type of the most numerous environmental virtual item in the virtual environment, it is beneficial to use the appearance of the environmental virtual item to mask it in the virtual environment, such as masking it near the deployment location of multiple environmental virtual items.

[0090] The first virtual item is an environmental virtual item in the virtual environment that is closest to the first virtual object;

[0091] Exemplarily, by determining the first virtual item as the environmental virtual item in the virtual environment that is closest to the first virtual object, it is ensured that there are environmental virtual items surrounding the first virtual item, i.e., with the same appearance attributes, which facilitates controlling the movement of the first virtual item in the virtual environment, facilitating observation and reference of the characteristics of the environmental virtual items in the virtual environment, and masking the first virtual item. Exemplarily, the first virtual item is of the same type as the environmental virtual item in the virtual environment that is closest to the first virtual object; the first virtual item is determined to be of the same type as the environmental virtual item in the virtual environment that is closest to the first virtual object.

[0092] The first virtual items are environmental virtual items arranged in a virtual environment according to a preset spacing rule;

[0093] Exemplarily, the environmental virtual items in the virtual environment arranged according to a preset spacing rule are arranged in an array or a ring in the virtual environment. By determining the first virtual item as an environmental virtual item arranged according to a preset spacing rule, it is convenient to mask it with environmental virtual items arranged in an array or a ring that is close to the regular arrangement. Furthermore, when there is a vacancy in the environmental virtual items arranged according to the preset spacing rule, the first virtual item can be controlled to move to the position where the vacancy occurs, filling the array or ring of environmental virtual items, and masking the first virtual item by hiding it in multiple environmental virtual items with the same appearance. Exemplarily, the type of the first virtual item is the same as the type of the environmental virtual items arranged according to the preset spacing rule in the virtual environment; the first virtual item is determined to be an item of the same type as the environmental virtual items arranged according to the preset spacing rule.

[0094] The first virtual items are environmental virtual items whose arrangement density in the virtual environment exceeds a first threshold.

[0095] Exemplarily, the environmental virtual items whose arrangement density exceeds the first threshold may be virtual trees, virtual boxes, virtual vehicles, and other objects. By identifying the first virtual item as an environmental virtual item, it is convenient to hide the first virtual item among the numerous environmental virtual items to avoid being found. Exemplarily, the location where the arrangement density exceeds the first threshold is a densely placed or densely grown location of multiple environmental virtual items. For example, the location where the arrangement density of virtual trees exceeds the first threshold is a virtual forest, and the location where the arrangement density of virtual boxes exceeds the first threshold is a virtual cargo yard. Hiding the first virtual item in such a location is not visually significant, and the presence of multiple environmental virtual items with the same appearance increases the difficulty of discovering the first virtual item. Exemplarily, the type of the first virtual item is the same as the type of environmental virtual items whose arrangement density exceeds the first threshold in the virtual environment. The first virtual item is identified as an item of the same type as the environmental virtual items whose arrangement density exceeds the first threshold in the virtual environment.

[0096] The first virtual item and the environmental virtual item deployed in the virtual environment are the same virtual item;

[0097] Exemplarily, the first virtual object is switched to a first virtual item to indicate that the virtual object controlled by the control account has been changed to an environmental virtual item already deployed in the virtual environment. For example, a virtual vase is deployed in the virtual environment. In response to the disguise operation, the virtual vase is identified as the first virtual item. It can be seen that the first virtual item and the environmental virtual item already deployed in the virtual environment are the same virtual item.

[0098] For example, by directly determining an already deployed environmental virtual item in the virtual environment as the first virtual object, the existing environmental virtual item in the virtual environment is directly utilized for hiding. This avoids comparing initial observation information of the virtual environment without the player character with in-game observation information during the virtual game, which could adversely affect the hiding of the first virtual item.

[0099] The first virtual item has a matching relationship with an environmental virtual item deployed in the virtual environment;

[0100] Exemplarily, the matching relationship is used to indicate that the first virtual item and the environmental virtual item are a group of items used in conjunction with each other; or the first virtual item and the environmental virtual item are a group of items that can be spliced ​​together to form the appearance of other virtual items. Exemplarily, the group of items formed by the first virtual item and the environmental virtual item includes a virtual teacup and a virtual teapot. In the real world, the teacup and the teapot are items used in conjunction with each other. Exemplarily, the group of items formed by the first virtual item and the environmental virtual item includes a virtual vehicle body and virtual tires. By splicing the virtual vehicle body on top of the virtual tires, the appearance of the virtual vehicle is formed. Exemplarily, by determining the first virtual item as an item with a matching relationship with the environmental virtual item that has been deployed in the virtual environment, it is beneficial to control the first virtual item to approach the environmental virtual item in the virtual environment, increase the rationality in the virtual environment, and achieve masking in the virtual environment.

[0101] For example, in the present application, there may be a cutscene when the first virtual object is switched to be displayed as the first virtual item, and this embodiment does not limit this. For example, by switching the first virtual object to be displayed as the first virtual item, the appearance of the virtual object controlled by the control account currently logged into the terminal is changed, and it is possible to hide in the virtual environment based on the first virtual item to conduct a virtual game. It should be noted that the various implementation methods of the first virtual item introduced in this embodiment can be combined with at least one of steps 522 and 524 in Figure 4 to form an embodiment that meets the constraints of at least one of steps 522 and 524 and meets the constraints of the various implementation methods of the first virtual item mentioned above. This application does not limit this.

[0102] In an optional implementation, switching the display of the first virtual object to the first virtual item can be implemented by: replacing the three-dimensional model of the first virtual object with the three-dimensional model of the first virtual item, and displaying the three-dimensional model of the first virtual item;

[0103] For example, a three-dimensional model is a model whose outer surface is composed of multiple triangular facets, also known as a mesh or skeleton model. By replacing the three-dimensional model of the first virtual object with the three-dimensional model of the first virtual item, the first virtual object is switched to be displayed as the first virtual item.

[0104] Exemplarily, displaying the three-dimensional mesh model of the first virtual object includes, but is not limited to, filling color or adding texture images on the triangular facets on the outer surface of the three-dimensional model of the first virtual object, rendering the three-dimensional model, and realizing the display of the first virtual object.

[0105] Figure 5 shows a schematic diagram of a three-dimensional model provided by an exemplary embodiment of the present application; illustratively, the first virtual object is a virtual doll, and the first virtual item is a virtual barrel; in response to a camouflage operation on the first virtual object, the first three-dimensional model 612 of the virtual doll is replaced and displayed with the second three-dimensional model 614 of the virtual barrel; it can be seen that the outer surfaces of the first three-dimensional model 612 of the virtual doll and the second three-dimensional model 614 of the virtual barrel are both composed of triangles, and the corresponding virtual doll or virtual barrel is displayed by filling each triangle with color or pattern.

[0106] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual item is of the same type as at least one environmental virtual item, ensuring that there are environmental virtual items in the virtual environment that have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0107] Next, the weight information of environmental virtual items is introduced.

[0108] FIG6 shows a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application. Taking the method applied in a terminal as an example, that is, in the embodiment shown in FIG3 , step 515 is further included:

[0109] Step 515: Obtain weight information of at least one environmental virtual item;

[0110] Exemplarily, the weight information corresponds to the type of environmental virtual item in a one-to-one relationship. Each type of environmental virtual item in the virtual environment corresponds to one piece of weight information. The weight information is used to indicate the probability of the environmental virtual item being selected as the first virtual item. Exemplarily, the weight information can be expressed as the probability that the type of the first virtual item and the type of the environmental virtual item are the same. For example, the weight information corresponding to the type of the environmental virtual item in the virtual environment can be obtained by counting a limited number of first virtual item types.

[0111] Exemplarily, the weight information may be normalized information, for example, the sum of the weight information of all types of environmental virtual items in the virtual environment is 1; the weight information may also be non-normalized information, for example, by comparing the weight information of two types of environmental virtual items, determining the probability that the type of the first virtual item is the same as the type of the two types of environmental virtual items.

[0112] For example, the weight information can be pre-set, determined based on virtual items in the virtual environment, or determined based on historical game information. This embodiment does not impose any restrictions on this. There are at least two implementation methods for determining the weight information, which are described in the following embodiments.

[0113] Implementation method 1: The weight information is determined based on the deployment information of the environmental virtual items in the virtual environment.

[0114] Implementation method 2: Weight information is determined based on historical games.

[0115] In implementation mode 1, step 515 above can be implemented as sub-step 15a:

[0116] Sub-step 15a: Determine weight information of at least one environmental virtual item based on the deployment information of the environmental virtual item in the virtual environment.

[0117] Exemplarily, the deployment information of an environmental virtual item indicates the deployment of the environmental virtual item within the virtual environment, such as at least one of its location and quantity within the virtual environment. As described above, the weight information corresponds to the type of environmental virtual item, and the deployment information of the environmental virtual item indicates the deployment of environmental virtual items of the same type within the virtual environment.

[0118] In an optional implementation, the weight information corresponding to the environmental virtual items is determined based on the quantity information of the environmental virtual items in the virtual environment; the quantity information and the weight information can be in a directly proportional relationship or can be other preset functional relationships, and unique weight information can be determined based on the quantity information as the weight information corresponding to the environmental virtual items.

[0119] In a specific example, there is a positive correlation between quantity information and weight information. As the number of virtual objects in the virtual environment increases, virtual objects become more and more common in the environment. By increasing the weight information of virtual objects, it is beneficial to use the appearance of virtual objects to mask in the virtual environment.

[0120] In another optional implementation, the weight information corresponding to the environmental virtual item is determined based on the distance information between the environmental virtual item and the first virtual object. Similar to the quantity information described above, the distance information and the weight information can be in a proportional relationship or another predetermined functional relationship.

[0121] In a specific example, there is an inverse correlation between distance information and weight information. As the distance between the first virtual object and the environmental virtual items increases, the time it takes for the first virtual object to approach the environmental virtual items after transformation increases. By reducing the weight information of the environmental virtual objects, it is beneficial for the first virtual object to approach the environmental virtual items in a timely manner after deformation and to be concealed in the virtual environment.

[0122] In the second implementation, step 515 above can be implemented as sub-step 15b:

[0123] Sub-step 15b: Determine the weight information corresponding to the environmental virtual item based on the number of times or time it was found in historical games;

[0124] Exemplarily, historical games are usually historical games in which the control account currently logged in to the terminal participated, so as to achieve targeted determination of the weight information corresponding to the control account's environmental virtual items in the current game based on the control account's historical games; however, it is not excluded that the historical game is the historical game of any participating account in the current game, or the virtual environment is any historical game in which an environment is provided in which a second virtual object searches for a deformed first virtual object.

[0125] For example, let's take a historical game involving the control account currently logged into the terminal as an example. In this historical game, the control account could be a first virtual object hiding in a virtual environment, or a second virtual object searching for a transformed first virtual object in the virtual environment. In one example, there's an inverse correlation between the number of times the control account was found and the weight information, while there's a positive correlation between the time it took to be found and the weight information.

[0126] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the first virtual object to a first virtual item, and changes the appearance of the first virtual object; by obtaining weight information of environmental virtual items, the probability of being selected as the first virtual item is set for different types of environmental virtual items; the changed first virtual item is of the same type as at least one of the environmental virtual items, ensuring that there is an environmental virtual item in the virtual environment that has the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0127] Next, the category range of the first virtual item and the category range of at least one environmental virtual item are introduced.

[0128] With reference to the description of step 520, the category range of the first virtual item is a subset of the category range of at least one environmental virtual item. It should be noted that the determination that the category range of the first virtual item is a subset of the category range of at least one environmental virtual item can be made through a finite number of statistics. For example, after repeating step 520 n times, statistics are performed on the first virtual item after the first switching display. If the first virtual item obtained in n repeated executions of step 520 is of the same category as the environmental virtual item in the virtual environment, then the category range of the first virtual item is a subset of the category range of the at least one environmental virtual item. Exemplarily, n is an empirical value greater than 1, such as 100 or 500. In another example, n is an integer multiple of the number of categories of environmental virtual items, such as 5. For example, if there are 20 categories of environmental virtual items in the virtual environment, statistics are performed on the first virtual items obtained after repeating step 520 20*5=100 times. If the first virtual item and the environmental virtual item in the virtual environment are of the same category, then the switching display mode of the first object has been exhausted, and the category range of the first virtual item after the switching display is a subset of the category range of the at least one environmental virtual item.

[0129] Further, the invention is introduced through the following three embodiments.

[0130] In one example, the category range of the first virtual item is a first subset of the category range of the at least one ambient virtual item;

[0131] Exemplarily, the virtual environment includes at least two virtual scenes connected by a transmission point. Exemplarily, the first subset includes one or more types of items, and the types of items included in the first subset are types of some or all environmental virtual items in the virtual environment. Furthermore, at least two virtual scenes in the virtual environment are independent virtual environments, such as corresponding to different virtual maps. Exemplarily, the environmental virtual items in the first subset and the first virtual object are located in the same virtual scene; exemplarily, the first virtual item after the first virtual object is deformed has the same type as at least one environmental virtual item in the virtual scene where the first virtual object is located. Exemplarily, the first virtual item is determined within the scope of the first subset, and the first subset is a collection of types of environmental virtual items in the virtual scene where the first virtual object is located.

[0132] Exemplarily, a teleportation point is a connection point between at least two virtual scenes. For example, the two virtual scenes include a first room and a second room, and the teleportation point corresponds to a door between the first room and the second room. Triggering the teleportation point in the first room transfers you to the second room. Furthermore, the first room and the second room are independent virtual environments. For example, the process of transferring from the first room to the second room requires scene loading and switching the display to the second room; and / or, while in the second room, the first room cannot be viewed through the virtual camera.

[0133] Optionally, the control account that controls the first virtual object carries an environment identifier of the virtual environment in which it is located, and the environment identifier is added to the control account when the first virtual object enters the virtual environment. Exemplarily, the location of the first virtual object is determined by reading the environment identifier carried by the control account. Furthermore, the environment identifier includes a scene identifier, which is added when the first virtual object enters a virtual scene in the virtual environment, and is used to indicate the virtual scene to which the current location of the first virtual object belongs. In different implementations, the environment identifier includes an area identifier, and the area identifier corresponds to a virtual area in the virtual environment. The introduction to the virtual area will be further calculated and introduced in the embodiments below.

[0134] Figure 7 shows a schematic diagram of a virtual environment identifier provided by an exemplary embodiment of the present application; the castle virtual scene 622 corresponds to the first environment identifier 622a, and the garden virtual scene 624 corresponds to the second environment identifier 624a; when the first virtual object enters the garden virtual scene 624, the corresponding second environment identifier 624a is written into the control account 620 of the first virtual object. When it is necessary to determine the corresponding position of the first virtual object, the second environment identifier 624a is read from the control account 620.

[0135] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the display of the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual item is of the same type as the environmental virtual items in the virtual scene, ensuring that the environmental virtual items in the virtual environment have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0136] In another example, the category range of the first virtual item is a second subset of the category range of the at least one ambient virtual item;

[0137] Exemplarily, the virtual environment includes at least two virtual areas with different environment types. Exemplarily, the second subset includes one or more item types, and the item types included in the second subset are types of some or all virtual items in the virtual environment. Furthermore, the environment type of the virtual area is used to indicate the type of environment constructed by the virtual items in the virtual area; specifically, the classification method of the environment type includes but is not limited to at least one of the following:

[0138] Based on whether the virtual area exists inside a virtual building, the environment type includes at least one of an indoor area and an outdoor area; in one example, the location of the first virtual object belongs to an indoor area, and the second subset is a set of types of environmental virtual objects that appear in at least one indoor area in the virtual environment.

[0139] Based on the height information of the virtual altitude of the virtual area, the environment type includes at least one of a depression area, a plain area, and a mountain area; in one example, the location of the first virtual object belongs to the plain area, and the second subset is a set of types of environmental virtual objects appearing in at least one plain area in the virtual environment.

[0140] Based on the type of virtual plants in the virtual area, the environment type includes at least one of a wasteland area, a bush area, a forest area, and a grassland area; in one example, the location of the first virtual object belongs to the forest area, and the second subset is a set of types of environmental virtual objects appearing in at least one forest area in the virtual environment.

[0141] Based on the building type of the virtual area, the environment type includes at least one of a rural area and an urban area. In one example, the location of the first virtual object belongs to an urban area, and the second subset is a set of types of environmental virtual objects appearing in at least one urban area in the virtual environment.

[0142] Exemplarily, the environmental virtual items in the second subset are located in a virtual area of ​​the same environmental type as the first virtual object. Exemplarily, the first virtual item after the first virtual object is transformed is of the same type as at least one environmental virtual item in the virtual area to which the first virtual object belongs. Exemplarily, the first virtual item is determined within the scope of the second subset, and the second subset is a collection of types of environmental virtual items in the virtual area to which the first virtual object is located.

[0143] It is understood that the above-described environmental classification methods can be combined with each other. For example, the environmental classification can be based on two dimensions: the type of virtual plants in the virtual area and the virtual altitude information of the virtual area. The location of the first virtual object belongs to the plain area based on the virtual altitude information dimension, and belongs to the forest area based on the virtual plant type dimension. Then, the second subset is the set of types of environmental virtual objects that appear in at least one area of ​​the virtual environment that belongs to both the plain area and the forest area.

[0144] For example, the shapes of at least two virtual areas of different environment types in the virtual environment can be regular shapes such as rectangles, circles, and ellipses, or irregular shapes surrounded by line segments or curves. It is understood that one or more virtual areas in the virtual environment can belong to the same environment type.

[0145] For example, when the first virtual object is located in an indoor area, the types of virtual objects included in the second subset include, but are not limited to, at least one of: a stack of books, a standing lamp, a wooden barrel, decorative armor, an iron box, a wooden box, a coat rack, a glass, a vase, a standing mirror, a candlestick, a telescope, a flag, an item rack, and a standing clock. Furthermore, the indoor area where the first virtual object is located is an area within a castle building.

[0146] For example, when the first virtual object is located in an outdoor area, the types of virtual objects included in the second subset include, but are not limited to, at least one of: grass, stones, wooden boxes, wood stakes, stone sculptures, trees, shrubs, succulents, trophies, oranges, tomatoes, plastic balls, stone pots, iron boxes, leaves, fire pots, and human-shaped sculptures. Furthermore, the indoor area where the first virtual object is located is an area within a virtual forest.

[0147] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the display of the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual item and the environmental virtual items in the virtual area are of the same type, ensuring that the environmental virtual items in the virtual environment have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0148] In yet another example, the category range of the first virtual item is a third subset of the category range of the at least one ambient virtual item;

[0149] Exemplarily, the distance between the environmental virtual items in the third subset and the first virtual object is less than the area distance threshold. Exemplarily, the third subset includes one or more item types, and the item types included in the third subset are types of some or all environmental virtual items in the virtual environment.

[0150] Exemplarily, the regional distance threshold can be pre-set or determined based on the first virtual object, such as increasing as the maximum movement speed of the first virtual object increases. Exemplarily, the regional distance threshold is used to indicate the upper limit of the safe distance within which the first virtual object can move to the position of the environmental virtual object in the virtual environment after deformation. In one implementation, the regional distance threshold is the product of the movement speed of the first virtual object and a preset time length, such as a preset time length of 5 seconds.

[0151] Exemplarily, the first virtual item after the first virtual object is transformed is of the same type as at least one environmental virtual item within a certain distance threshold. Exemplarily, the first virtual item is determined within a third subset, where the third subset is a set of types of environmental virtual items within a certain distance threshold from the first virtual object.

[0152] In summary, the method provided in this embodiment switches the display of the first virtual object through a camouflage operation, changes the display of the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual object is of the same type as the environmental virtual items in the adjacent area where it is located, ensuring that the environmental virtual items in the virtual environment have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0153] FIG8 shows a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application. This method is described by taking the application of the method in a terminal as an example, that is, in the embodiment shown in FIG3 , the method further includes step 542:

[0154] Step 542: In response to the move operation on the first virtual item, switch the first virtual item to be displayed as a second virtual item;

[0155] Illustratively, the distance between the first virtual item and the first environment item is greater than a first distance threshold, the distance between the second virtual item and the second environment item is less than a second distance threshold, the first environment item and the first virtual item are of the same type, and the second environment item and the second virtual item are of the same type.

[0156] For example, during the movement of the first virtual object, the virtual object is adaptively changed based on the movement operation, which can ensure that the virtual object and the surrounding virtual objects have similar appearance, thereby facilitating the control of the second virtual object to quickly approach the second environment object in the virtual environment, and then use the same appearance as the second environment object for masking.

[0157] For example, the first distance threshold and the second distance threshold may be the same or different. Similar to the adjacent distance threshold and / or regional distance threshold described above, the first distance threshold may be determined based on the size of the first virtual item, e.g., the first distance threshold decreases as the size of the first virtual item increases. The first distance threshold may also be determined based on the movement speed of the first virtual item, e.g., the first distance threshold increases as the maximum movement speed of the first virtual item increases.

[0158] In an optional implementation, the movement of the first virtual item in step 542 causes the first virtual item to cross from one virtual area to another virtual area. For the relevant introduction to virtual areas, please refer to the relevant introduction to environment types and virtual areas above. The environment types of the two virtual areas where the first virtual item is located are different before and after the movement operation. In the case where the first virtual item crosses virtual areas, there is a risk that the first virtual item and the environmental virtual items in the virtual area after the movement are of different types and have a large difference in appearance. Combined with the above introduction: the distance between the first virtual item and the first environmental item is greater than the first distance threshold, and the distance between the second virtual item and the second environmental item is less than the second distance threshold. The first virtual item cannot quickly approach the first environmental item in the virtual environment; by adaptively changing the style of the virtual item, it is convenient for the controller of the first virtual item to hide in the virtual environment through the appearance of the second virtual item, thereby expanding the method of changing the appearance of virtual objects in the virtual environment.

[0159] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the first virtual object to a first virtual item, and changes the appearance of the first virtual object; through a move operation, adaptively switches the display of the first virtual item to a second virtual item; the changed first virtual item and the second virtual item are both of the same type as at least one environmental virtual item, ensuring that there is an environmental virtual item in the virtual environment with the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the second virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0160] In one application scenario, the application providing the virtual environment is a game application, which provides at least an evasion-based competitive mode. In this evasion-based competitive mode, the virtual camp containing the first virtual object can be called the intruder or evader, and the virtual camp containing the second virtual object can be called the defender or seeker. The virtual competitive goal of the intruder virtual camp is to hide in the virtual environment and avoid virtual attacks from the defender virtual camp. The virtual competitive goal of the defender virtual camp is to find the virtual character in the intruder virtual camp and launch a virtual attack on it.

[0161] For example, after a virtual game begins, a first virtual object blends into the virtual environment by changing its appearance and is not discovered by a second virtual object. The second virtual object needs to find the first virtual object after its transformation among the numerous virtual objects in the virtual environment and launch a virtual attack.

[0162] FIG9 shows a flowchart of a method for deforming a virtual object provided by an exemplary embodiment of the present application. Taking the method applied in a terminal as an example, the method includes the following steps:

[0163] Step 702: Obtain a camouflage operation for a first virtual object;

[0164] Exemplarily, the disguise operation is used to switch the appearance of the first virtual object. The disguise operation is an operation on the first virtual object. Methods for implementing the disguise operation on the first virtual object include, but are not limited to, at least one of the following: clicking, sliding, and rotating; for example, clicking a touch screen or button, sliding a touch screen or handle, and rotating a terminal or handle.

[0165] Step 704: Determine whether the first virtual object is alive;

[0166] Exemplarily, if the first virtual object is alive, step 706 is executed; if the first virtual object is not alive, step 708 is executed;

[0167] Exemplarily, whether the first virtual object is alive is determined by querying the virtual health value of the first virtual object; exemplarily, if the virtual health value of the first virtual object is greater than 0, the first virtual object is alive; otherwise, the first virtual object is not alive.

[0168] Exemplarily, the first virtual object is a virtual object controlled by the control account currently logged in to the terminal; in various embodiments of the present application, there is no restriction on the appearance of the first virtual object. The first virtual object can be the image of at least one virtual character such as a virtual person, a virtual animal, or a cartoon character, or it can be the image of at least one virtual object such as a virtual box, a virtual flower pot, or a virtual staircase that has the same appearance as the virtual objects in the environment.

[0169] Step 706: Determine whether the user has permission to use the disguise skill.

[0170] Exemplarily, if the user has the permission to use the disguise skill, step 710 is executed; if the user does not have the permission to use the disguise skill, step 708 is executed;

[0171] For example, the determination of whether the first virtual object has permission to use the camouflage skill is performed by querying whether the first virtual object is equipped with a camouflage skill, or whether the first virtual object carries a virtual item that can release the camouflage skill. Furthermore, if the first virtual object has a camouflage skill, the determination of whether the first virtual object has permission to use the camouflage skill is performed by checking whether the camouflage skill is in a cooldown period.

[0172] Step 708: Keep displaying the first virtual object;

[0173] Exemplarily, when the first virtual object is not alive, or when the user does not have permission to use the disguise skill, the first virtual object is kept displayed, and the first virtual object is no longer switched to be displayed as the first virtual item.

[0174] Step 710: Obtaining position information of the first virtual object;

[0175] Exemplarily, the position information of the first virtual object in the virtual environment can be indicated by an environmental identifier. For an introduction to the environmental identifier, please refer to Figure 7 above and will not be repeated here. In one game, the virtual environment that provides the first virtual object with an evasion-type competitive mode is an island map; in another game, the virtual environment that provides the first virtual object with an evasion-type competitive mode is a city map. The environmental identifiers of the island map and the city map are different. The environmental identifier is the attribute information of the first virtual object added when the first virtual object enters the virtual environment to participate in the evasion-type competitive mode.

[0176] Step 712: Obtain a list of virtual environment items;

[0177] Exemplarily, the list of virtual environment items includes virtual items deployed in the virtual environment to which the first virtual object belongs. Exemplarily, the virtual items include, but are not limited to, at least one of virtual trees, virtual animals, virtual boxes, virtual flower pots, virtual stairs, virtual curtains, and the like.

[0178] Step 714: Determine the first virtual item in the environmental virtual item list;

[0179] Exemplarily, determining the first virtual item in the list of environmental virtual items can be determined by a random pool. Figure 10 shows a schematic diagram of a random pool provided by an exemplary embodiment of the present application. The configuration interface 630 is a setting interface for the random pool 632. There are multiple environmental virtual items in the random pool 632, and the environmental virtual items correspond to random items in the random pool. In this embodiment, the random pool includes the first random item to the fifth random item, a total of five random items. Exemplarily, the first random item 633 includes an object identifier 633a and weight information 633b; the object identifier 633a is used to indicate the object identifier of the environmental virtual object corresponding to the first random item 633, and the weight information 633b is used to indicate the probability of the environmental virtual item being selected as the first virtual item.

[0180] Step 716: Switch the first virtual object to be displayed as a first virtual item;

[0181] Exemplarily, the three-dimensional model of the first virtual object is replaced with the three-dimensional model of the first virtual item, and the three-dimensional model of the first virtual item is displayed.

[0182] In an optional implementation, the method further includes:

[0183] An appearance hiding operation for a first virtual item is obtained; in response to the appearance hiding operation, the first virtual item is hidden and displayed in the virtual environment, wherein the hidden display has a first effective period.

[0184] Exemplarily, after using the hide operation, the first virtual item is hidden and displayed to avoid being found by the second virtual object; in one example, the hide operation is used at an interval of 40 seconds; and the effective period of each hide operation is 6 seconds.

[0185] In an optional implementation, the method further includes:

[0186] In a case where the first virtual item is selected by the exploration operation, a location of the first virtual item is marked and displayed in the virtual environment, and the mark display has a second valid period.

[0187] For example, when the first virtual item is selected by the exploration operation, the location of the first virtual item is displayed on a virtual map, or a directional arrow is used to indicate the location of the first virtual item in the virtual environment. This embodiment does not limit the method of marking the first virtual item. The marking of the first virtual item is used to indicate that the first virtual item has a visually prominent mark in the virtual environment. In one example, each marking display is valid for 15 seconds.

[0188] In summary, the method provided in this embodiment switches the display of the first virtual object through a disguise operation, changes the first virtual object to a first virtual item, and changes the appearance of the first virtual object; the changed first virtual item is of the same type as at least one environmental virtual item, ensuring that there are environmental virtual items in the virtual environment that have the same appearance as the first virtual item, which is conducive to hiding in the virtual environment through the appearance of the first virtual item, and expands the method of changing the appearance of virtual objects in the virtual environment.

[0189] Those skilled in the art will appreciate that the above embodiments may be implemented independently, or the above embodiments may be freely combined to form new embodiments to implement the virtual object deformation method of the present application.

[0190] FIG11 shows a block diagram of a virtual object deformation device provided by an exemplary embodiment of the present application. The device includes:

[0191] The display module 810 is configured to execute step 510 in the embodiment of FIG. 3 ; the virtual environment is an environment for the second virtual object to search for the deformed first virtual object; the first virtual object and the second virtual object have opposite identities;

[0192] The display module 810 is further configured to execute step 520 in the embodiment of FIG. 3 ; the category range of the first virtual item is a subset of the category range of the at least one environmental virtual item;

[0193] The display module 810 is further configured to execute step 530 in the embodiment of FIG. 3 .

[0194] In an optional design of the present application, the display module 810 is further configured to execute step 522 in the embodiment of FIG. 4 ;

[0195] The visual difference is used to indicate the difference in appearance attributes between the first virtual object and the first virtual item, and the environmental virtual item includes the first virtual object.

[0196] In an optional design of the present application, the display module 810 is further configured to execute step 524 in the embodiment of FIG4 ;

[0197] The visual similarity is used to indicate the similarity of appearance attributes between the adjacent environmental objects and the first virtual object, and the distance between the adjacent environmental objects and the first virtual object is less than a proximity distance threshold.

[0198] In an optional design of the present application, the type of the first virtual item is randomly determined among the at least one environmental virtual item;

[0199] Or, the type of the first virtual item is the same as the type of the most numerous environmental virtual item in the virtual environment;

[0200] Alternatively, the first virtual item is an environmental virtual item in the virtual environment that is closest to the first virtual object;

[0201] Alternatively, the first virtual items are environmental virtual items arranged in a virtual environment according to a preset spacing rule;

[0202] Alternatively, the first virtual items are environmental virtual items whose arrangement density in the virtual environment exceeds a first threshold;

[0203] Or, the first virtual item and the environmental virtual item deployed in the virtual environment are the same virtual item;

[0204] Alternatively, the first virtual item has a matching relationship with an environmental virtual item deployed in the virtual environment.

[0205] In an optional design of the present application, the device further includes:

[0206] An acquisition module 820 is configured to execute step 515 in the embodiment of FIG6 ;

[0207] The weight information corresponds to the type of the environment virtual item in a one-to-one manner, and the weight information is used to indicate the probability of the environment virtual item being selected as the first virtual item.

[0208] In an optional design of the present application, the acquisition module 820 is further configured to:

[0209] The weight information of the at least one environmental virtual item is determined according to the deployment information of the environmental virtual item in the virtual environment.

[0210] In an optional design of the present application, the acquisition module 820 is further configured to perform at least one of the following:

[0211] Determining the weight information corresponding to the environmental virtual item according to the quantity information of the environmental virtual item in the virtual environment;

[0212] The weight information corresponding to the environmental virtual item is determined according to the distance information between the environmental virtual item and the first virtual object.

[0213] In an optional design of the present application, the acquisition module 820 is further configured to:

[0214] The weight information corresponding to the environmental virtual item is determined according to the number of times or the time consumed in finding the environmental virtual item in historical games.

[0215] In an optional design of the present application, the category range of the first virtual item is a first subset of the category range of the at least one environmental virtual item;

[0216] The environmental virtual items in the first subset and the first virtual object are located in the same virtual scene, and the virtual environment includes at least two virtual scenes connected by a transmission point.

[0217] In an optional design of the present application, the category range of the first virtual item is a second subset of the category range of the at least one environmental virtual item;

[0218] The environmental virtual items in the second subset and the first virtual object are located in the same virtual area, and the virtual environment includes at least two virtual areas with different environment types.

[0219] In an optional design of the present application, the category range of the first virtual item is a third subset of the category range of the at least one environmental virtual item;

[0220] The distance between the environmental virtual items in the third subset and the first virtual object is less than the area distance threshold.

[0221] In an optional design of the present application, the display module 810 is further configured to execute step 542 in the embodiment of FIG8 ;

[0222] The distance between the first virtual item and the first environment item is greater than a first distance threshold, the distance between the second virtual item and the second environment item is less than a second distance threshold, the first environment item and the first virtual item are of the same type, and the second environment item and the second virtual item are of the same type.

[0223] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0224] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method; the technical effects achieved by each module performing operations are the same as the technical effects in the embodiment of the method, and will not be elaborated here.

[0225] An embodiment of the present application further provides a computer device, comprising: a processor and a memory, wherein a computer program is stored in the memory; the processor is configured to execute the computer program in the memory to implement the virtual object deformation method provided by the above-mentioned method embodiments.

[0226] FIG12 shows a block diagram of a terminal structure provided by an exemplary embodiment of the present application. Terminal 1900 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Terminal 1900 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.

[0227] Typically, terminal 1900 includes: a processor 1901 and a memory 1902. Processor 1901 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 1901 may be implemented in at least one of the following hardware forms: a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). Processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, processor 1901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 1901 may also include an AI (Artificial Intelligence) processor, which is responsible for processing computing operations related to machine learning.

[0228] Memory 1902 may include one or more computer-readable storage media, which may be non-transitory. Memory 1902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1902 is used to store at least one instruction, which is executed by processor 1901 to implement the virtual object deformation method provided in the method embodiment of the present application.

[0229] In some embodiments, terminal 1900 may optionally include a peripheral device interface 1903 and at least one peripheral device. The processor 1901, memory 1902, and peripheral device interface 1903 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1903 via a bus, signal lines, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1904, a touchscreen display 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1908. The peripheral device interface 1903 may be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1901 and memory 1902. In some embodiments, the processor 1901, memory 1902, and peripheral device interface 1903 are integrated on the same chip or circuit board. In other embodiments, one or both of the processor 1901, memory 1902, and peripheral device interface 1903 may be implemented on separate chips or circuit boards, although this embodiment is not limiting. The RF circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1904 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1904 may also include circuits related to NFC (Near Field Communication). The touchscreen display 1905 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, or any combination thereof. The camera assembly 1906 is used to capture images or videos. Optionally, the camera assembly 1906 includes a front-facing camera and a rear-facing camera. The audio circuit 1907 may include a microphone and a speaker. The microphone is used to capture sound waves from the user and the environment and convert them into electrical signals that are input to the processor 1901 for processing, or to the RF circuit 1904 for voice communication. The power supply 1908 is used to power the various components in the terminal 1900. The power supply 1908 may be AC ​​power, DC power, a disposable battery, or a rechargeable battery.

[0230] In some embodiments, terminal 1900 also includes one or more sensors 1909. These one or more sensors 1909 include, but are not limited to, an accelerometer 1910, a gyroscope 1911, a pressure sensor 1912, an optical sensor 1913, and a proximity sensor 1914. Accelerometer 1910 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 1900. Pressure sensor 1912 can be located on the side frame of terminal 1900 and / or below the touchscreen display 1905. It detects a user's grip on terminal 1900 and / or controls operable controls on the UI based on the user's pressure on the touchscreen display 1905. Optical sensor 1913 is used to measure ambient light intensity. Proximity sensor 1914, also known as a distance sensor, is typically located on the front panel of terminal 1900. Proximity sensor 1914 is used to measure the distance between the user and the front of terminal 1900.

[0231] Those skilled in the art will appreciate that the above structure does not limit the terminal 1900 , and the terminal 1900 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0232] In an exemplary embodiment, a chip is further provided. The chip includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the virtual object deformation method described in the above aspects.

[0233] In an exemplary embodiment, a computer program product is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement the virtual object deformation methods provided in the above-described method embodiments.

[0234] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the virtual object deformation method provided by the above-mentioned method embodiments.

[0235] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0236] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

Claims

1. A method for deforming a virtual object, the method being executed by a terminal, the method comprising: Displaying a first virtual object and at least one virtual environmental item in a virtual environment, wherein the virtual environment is an environment for a second virtual object to search for the first virtual object after deformation; the first virtual object and the second virtual object have opposite identities; In response to a disguise operation on the first virtual object, switching the first virtual object to be displayed as a first virtual item, wherein a category range of the first virtual item is a subset of a category range of the at least one environmental virtual item; In response to a control operation on the first virtual item, the first virtual item is controlled to move in the virtual environment.

2. The method according to claim 1, wherein: In response to the disguise operation on the first virtual object, switching the first virtual object to be displayed as a first virtual item includes: In response to a disguise operation on the first virtual object, switching the first virtual object to be displayed as the first virtual item whose visual difference meets a first condition; The visual difference is used to indicate the difference in appearance attributes between the first virtual object and the first virtual item, and the environmental virtual item includes the first virtual object.

3. The method according to claim 1 or 2, wherein: In response to the disguise operation on the first virtual object, switching the first virtual object to be displayed as a first virtual item includes: In response to a disguise operation on the first virtual object, switching the first virtual object to be displayed as the first virtual item whose visual similarity meets a second condition; The visual similarity is used to indicate the similarity of appearance attributes between the adjacent environmental objects and the first virtual object, and the distance between the adjacent environmental objects and the first virtual object is less than a proximity distance threshold.

4. The method according to any one of claims 1 to 3, wherein: The type of the first virtual item is randomly determined among the at least one environmental virtual item; or, the type of the first virtual item is the same as the type of the largest number of environmental virtual items in the virtual environment; Or, the first virtual item is an environmental virtual item in the virtual environment that is closest to the first virtual object; Or, the first virtual items are environmental virtual items arranged in a virtual environment according to a preset interval rule; Or, the first virtual item is an environmental virtual item whose arrangement density in the virtual environment exceeds a first threshold; Or, the first virtual item and the environmental virtual item deployed in the virtual environment are the same virtual item; Alternatively, the first virtual item has a matching relationship with an environmental virtual item deployed in the virtual environment.

5. The method according to any one of claims 1 to 4, wherein: The method further comprises: Obtaining weight information of the at least one environmental virtual item; The weight information corresponds to the type of the environment virtual item in one-to-one correspondence, and the weight information is used to indicate the probability of the environment virtual item being selected as the first virtual item.

6. The method according to claim 5, wherein: The obtaining of the weight information of the at least one environmental virtual item includes: The weight information of the at least one environmental virtual item is determined according to the deployment information of the environmental virtual item in the virtual environment.

7. The method according to claim 6, wherein: The step of determining the weight information of the at least one environmental virtual item according to the deployment information of the environmental virtual item in the virtual environment includes at least one of the following: Determine the weight information corresponding to the environmental virtual item according to the quantity information of the environmental virtual item in the virtual environment; Determine the distance between the environment virtual item and the first virtual object according to the distance information between the environment virtual item and the first virtual object. The corresponding weight information.

8. The method according to claim 5, wherein: The obtaining of the weight information of the at least one environmental virtual item includes: The weight information corresponding to the environmental virtual item is determined according to the number of times or the time consumed in finding the environmental virtual item in historical games.

9. The method according to any one of claims 1 to 8, wherein: The category range of the first virtual item is a first subset of the category range of the at least one environmental virtual item; The environmental virtual items in the first subset and the first virtual object are located in the same virtual scene, and the virtual environment includes at least two virtual scenes connected by a transmission point.

10. The method according to any one of claims 1 to 9, wherein: The category range of the first virtual item is a second subset of the category range of the at least one environmental virtual item; The environmental virtual items in the second subset and the first virtual object are located in the same virtual area, and the virtual environment includes at least two virtual areas with different environment types.

11. The method according to any one of claims 1 to 10, wherein: The category range of the first virtual item is a third subset of the category range of the at least one environmental virtual item; The distance between the environmental virtual items in the third subset and the first virtual object is less than the area distance threshold.

12. The method according to any one of claims 1 to 11, wherein: The method further comprises: In response to a move operation on the first virtual item, switching the first virtual item to be displayed as a second virtual item; The distance between the first virtual item and the first environment item is greater than a first distance threshold, the distance between the second virtual item and the second environment item is less than a second distance threshold, the first environment item and the first virtual item are of the same type, and the second environment item and the second virtual item are of the same type.

13. A virtual object deformation device, the device comprising: A display module, configured to display a first virtual object and at least one virtual environmental item in a virtual environment, wherein the virtual environment is an environment for a second virtual object to search for the first virtual object after deformation; the first virtual object and the second virtual object have opposite identities; The display module is further configured to, in response to a disguise operation on the first virtual object, switch the first virtual object to be displayed as a first virtual item, wherein the category range of the first virtual item is a subset of the category range of the at least one environmental virtual item; The display module is further configured to control the first virtual item to move in the virtual environment in response to a control operation on the first virtual item.

14. A computer device, comprising: A processor and a memory, wherein at least one program is stored in the memory; The processor is used to execute the at least one program in the memory to implement the virtual object deformation method as described in any one of claims 1 to 12.

15. A computer-readable storage medium, wherein executable instructions are stored in the computer-readable storage medium, and wherein the executable instructions are loaded and executed by a processor to implement the virtual object deformation method according to any one of claims 1 to 12.

16. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the virtual object deformation method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Role conversion method and device, computer equipment and storage medium

    CN111359211A

  • Object form switching method and device, storage medium and electronic device

    CN112473139A

  • Game interaction method and device, electronic equipment and readable medium

    CN113384877A

  • Interaction method and device in game, electronic equipment and storage medium

    CN114307147A

  • Game interaction method and device, electronic equipment and readable medium

    CN116059628A