Virtual object appearance control method and device, equipment, medium and program product

By replacing the appearance material and integrating virtual objects in the virtual environment, the problem of poor hiding virtual objects in different environments in the existing technology is solved, and the effective hiding and attack advantages in any environment are achieved.

CN119056056APending Publication Date: 2024-12-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310628581.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing virtual object hiding method is limited to being effective in grass, and cannot be effectively hidden in different virtual environments, resulting in being easily discovered and attacked by enemy virtual objects in other environments.

Method used

The virtual object has stealth skills. After receiving the skill release operation, the appearance material is changed according to the virtual environment in which the virtual object is located, so that it is integrated with the environment and thus hidden.

Benefits of technology

It realizes that virtual objects are not easily discovered in any virtual environment, confusing enemy virtual objects, avoiding attacks or ambushing successfully, and improving the attack effect on enemy virtual objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119056056A_ABST
    Figure CN119056056A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual object appearance control method, device and equipment, a medium and a program product, and the method comprises the steps: displaying a virtual object in a virtual environment, the virtual object having a stealth skill; receiving a skill release operation for triggering the release of the stealth skill; in response to the skill release operation, the first appearance material of the virtual object is replaced with a second appearance material, and the second appearance material is determined based on the virtual environment where the virtual object is located. According to the method, the hiding of the virtual object in various virtual environments can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In some game applications, users can control virtual objects to attack enemy virtual objects by shooting, throwing virtual grenades, throwing virtual bombs, etc. in a virtual environment.

[0003] In the process of controlling the virtual object to participate in the virtual battle, the virtual object can be controlled to move and use trees, stones, houses, etc. as cover to avoid the attack of the enemy virtual object. In particular, there is a virtual clothing with the same color and texture as green grass. After wearing it, it can be hidden in the grass and is not easy to be identified.

[0004] However, the above method of controlling the virtual object to hide is only effective when hiding in the grass. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment, medium and program product for controlling the appearance of a virtual object, which can make it difficult for a virtual object to be discovered when it is ambushed in different virtual environments. The technical solution is as follows:

[0006] According to one aspect of the present application, a method for controlling the appearance of a virtual object is provided, the method comprising:

[0007] Displaying a virtual object in a virtual environment, wherein the virtual object has a stealth skill;

[0008] Receiving a skill release operation for triggering the release of the stealth skill;

[0009] In response to the skill release operation, the first appearance material of the virtual object is replaced with a second appearance material, where the second appearance material is determined based on the virtual environment where the virtual object is located.

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

[0011] A display module, used for displaying a virtual object in a virtual environment, wherein the virtual object has a stealth capability;

[0012] A receiving module, used for receiving a skill release operation for triggering the release of the stealth skill;

[0013] A processing module is used to replace the first appearance material of the virtual object with a second appearance material in response to the skill release operation, where the second appearance material is determined based on the virtual environment where the virtual object is located.

[0014] 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 program, and the at least one program is loaded and executed by the processor to implement the appearance control method of a virtual object provided in various aspects of the present application.

[0015] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the appearance control method of a virtual object provided in various aspects of the present application.

[0016] According to another aspect of the present application, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, the method for controlling the appearance of a virtual object provided in various aspects of the present application is implemented.

[0017] According to another aspect of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip is running, it is used to implement the appearance control method of the virtual object provided in various aspects of the present application.

[0018] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0019] The appearance control method of a virtual object provided by the present application receives a skill release operation for triggering the release of the stealth skill when the virtual object has a stealth skill. In response to the skill release operation, a first appearance material of the virtual object is replaced with a second appearance material, and the second appearance material is determined based on the virtual environment in which the virtual object is located, so that the virtual object after the appearance material is replaced is integrated with the surrounding virtual environment to achieve the effect of hiding the virtual object. In this way, the virtual object is not easy to be discovered, and can confuse the enemy virtual object, thereby avoiding the attack of the enemy virtual object, or it is easier to successfully ambush the enemy virtual object, and achieve accurate and effective attack on the enemy virtual object. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a schematic diagram of an interface showing a change in the appearance of a virtual object provided by an exemplary embodiment of the present application;

[0022] Figure 2 is a schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present application;

[0023] Figure 3 is a flow chart of a method for controlling the appearance of a virtual object provided by an exemplary embodiment of the present application;

[0024] Figure 4 is a schematic diagram of a camera model corresponding to a perspective of a virtual object provided by an exemplary embodiment of the present application;

[0025] Figure 5 is a schematic diagram of an interface for showing appearance changes of a virtual object provided by another exemplary embodiment of the present application;

[0026] Figure 6 is a flow chart of a method for controlling the appearance of a virtual object provided by another exemplary embodiment of the present application;

[0027] Figure 7 is a schematic diagram of an imaging plane provided by an exemplary embodiment of the present application;

[0028] Figure 8 is a schematic diagram of an interface for showing appearance changes of a virtual object provided by another exemplary embodiment of the present application;

[0029] Fig. 9 is a schematic diagram of an interface for showing appearance changes of a virtual object provided by another exemplary embodiment of the present application;

[0030] Fig.10 is a flow chart of a process of releasing a stealth skill provided by an exemplary embodiment of the present application;

[0031] Fig.11 is a flow chart of a process of replacing an appearance material provided by an exemplary embodiment of the present application;

[0032] Fig.12 is a flow chart of a process of releasing a stealth skill provided by another exemplary embodiment of the present application;

[0033] Fig.13is a block diagram of a virtual object appearance control device provided by an exemplary embodiment of the present application;

[0034] Fig.14 It is a schematic diagram of the device structure of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0036] First, the nouns involved in the embodiments of the present application are introduced:

[0037] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and this application does not limit this. The following embodiments are illustrated by taking the virtual environment as a three-dimensional virtual environment.

[0038] Virtual object: refers to an active object in a virtual environment. The active object may be a virtual person, a virtual animal, an animated character, etc., such as a person, an animal, a plant, an oil drum, a wall, a stone, etc. displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in a three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.

[0039] Virtual props: refers to props used by virtual objects to perform certain actions in a virtual environment, such as virtual vehicles, virtual equipment, etc. For example, virtual explosives refer to virtual items that can explode in a virtual environment, and are a type of virtual equipment used by virtual objects in a virtual environment. When a virtual explosive is activated (or exploded), including at least one of grenades, mines, bombs, atomic bombs, and missiles, the health of virtual objects within the explosion range will be reduced. For another example, shooting virtual props can be used for shooting in a virtual environment, and are another type of virtual equipment used by virtual objects in a virtual environment. When shooting with shooting virtual props (such as bows and arrows, etc.), the health of enemy virtual objects within the range will be reduced.

[0040] Exemplarily, the virtual props "equipped, carried or equipped" by the virtual object include virtual props in use. The virtual object has a virtual backpack, and there are backpack slots in the virtual backpack. Virtual props not in use temporarily can be stored in the virtual backpack of the virtual object; the virtual props "equipped, carried or equipped" by the virtual object can also include virtual props stored in the virtual backpack.

[0041] Shooting games: refers to games that control virtual objects to fight in a virtual environment using virtual equipment. Exemplarily, shooting games include: First-Person Shooting (FPS) games and Third-Person Shooting (TPS) games. Among them, FPS games refer to shooting games that users can play from a first-person perspective, and the screen of the virtual environment in the game is a picture of the virtual environment observed from the perspective of the virtual object. TPS games refer to shooting games that users can play from a third-person perspective, and the screen of the virtual environment in the game is a picture of the virtual environment observed from the perspective of observing the virtual object. The third-person perspective can observe the actions of virtual objects.

[0042] In the game, at least two virtual objects perform a single-game battle mode in a virtual environment. The virtual objects achieve the purpose of survival in the virtual environment by avoiding attacks launched by other virtual objects and dangers in the virtual environment (such as poison gas circles, swamps, etc.). When the life value of the virtual object in the virtual environment is zero, the life of the virtual object in the virtual environment ends, and the virtual object that survives in the virtual environment is the winner. Among them, the life value refers to the life length of the virtual object in the virtual environment. When the life value of the virtual object is zero, the life of the virtual object in the virtual environment ends. Optionally, the battle starts at the moment when the first client joins the battle and ends at the moment when the last client exits the battle. Each client can control one or more virtual objects in the virtual environment. Optionally, the competitive mode of the battle can include a single-player battle mode, a two-player team battle mode, or a multi-player group battle mode. The embodiment of the present application does not limit the battle mode.

[0043] Control: refers to a user interface (UI) control, which is any visual control or element that can be seen on the user interface of an application, such as pictures, input boxes, text boxes, buttons, labels, etc. Some UI controls can respond to user operations. For example, after the user triggers the skill release control of the stealth skill, the virtual object can be controlled to change its appearance material, thereby achieving the effect of stealth in the virtual environment.

[0044] The appearance control method of a virtual object provided in the present application can be applied to virtual reality (VR) applications, augmented reality (AR) applications, FPS games, TPS games, multiplayer online tactical competitive (MOBA) games, tactical competitive games, strategy games (SLG), etc. The following embodiments are illustrated by their application in games.

[0045] Games based on virtual environments are often composed of one or more maps of the game world. The virtual environment in the game simulates scenes in the real world. Users can manipulate virtual objects in the game to walk, run, jump, shoot, fight, drive, switch to use virtual equipment, use virtual equipment to attack other virtual objects, etc. in the virtual environment. The interactivity is strong, and multiple users can form teams online to play competitive games. Virtual objects controlled by users attack other virtual objects in the virtual environment, such as enemy virtual objects and non-player characters (NPCs); virtual objects controlled by users can also be attacked by other virtual objects in the virtual environment, such as enemy virtual objects and NPCs.

[0046] When the user controls the virtual object to dodge attacks or ambush the enemy, the virtual object can be controlled to hide. In some games, a virtual costume is provided. The virtual costume has the same color and texture as grass. The virtual object wearing the virtual costume is controlled to hide in the grass and is not easy to be identified. However, it is limited to hiding in the grass. If it is in a city, a desert, or a snowy area, the effect of hiding the virtual object cannot be achieved.

[0047] The virtual object appearance control method provided by the present application changes the appearance material of the virtual object according to the virtual environment in which the virtual object is located, and can achieve an effective hiding effect regardless of the virtual environment in which the virtual object is located. Figure 1 As shown, it shows a schematic diagram of an interface for changing the appearance of a virtual object provided by an exemplary embodiment of the present application.

[0048] A virtual environment screen 102 is displayed in the virtual environment interface 101. The virtual environment screen 102 includes a lawn 103 in the virtual environment, and a virtual object 104 stands on the lawn 103. A mobile control is also displayed in the virtual environment interface 101. The virtual environment screen 102 is a screen for observing the virtual environment from the perspective of the virtual object 104. The user can control the movement of the virtual object 104 in the virtual environment by triggering the mobile control; when the user controls the virtual object 104 to move in the virtual environment, the virtual object 104 changes its viewing angle of the virtual environment. The virtual environment interface 101 also includes a viewing angle adjustment control, and the user can also control the movement of the viewing angle of the virtual object 104 in observing the virtual environment through the viewing angle adjustment control.

[0049] The virtual object 104 in the virtual environment screen 102 is wearing a combat uniform 105. The virtual environment interface 101 also includes a skill release control 106 for the stealth skill; when the user triggers the skill release operation on the skill release control 106, the process animation of the appearance material change of the virtual object 104 is played first, such as Figure 1 As shown in the second interface diagram of the embodiment, the special effect 107 of changing the appearance material is displayed, and then the first appearance material of the combat uniform 105 is replaced with the second appearance material, and the second appearance material has the color and texture of grass, such as Figure 1 As shown in the combat suit 108 of the virtual object in the third interface diagram, the effect of hiding the virtual object 104 in the grass is achieved to avoid attacks and ambushes of enemy virtual objects.

[0050] The virtual object appearance control method provided in the present application can be applied to a computer system, such as Figure 2 , which shows a block diagram of a computer system provided by an exemplary embodiment of the present application. The computer system 200 includes: a first terminal 220, a server 240 and a second terminal 260.

[0051] The first terminal 220 is installed and runs an application that supports a virtual environment. The application may be any one of a virtual reality application, an augmented reality application, an FPS game, a TPS game, a MOBA game, and a multiplayer survival game. The first terminal 220 is a terminal used by a first user, and the first user uses the first terminal 220 to control a first virtual object in a virtual environment to perform an activity, the activity including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing virtual smoke bombs, and throwing virtual explosives. Exemplarily, the first virtual object is a first virtual character, such as a simulated character or an anime character.

[0052] The first terminal 220 is connected to the server 240 via a wireless network or a wired network.

[0053] The server 240 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, the server 240 includes a memory 242 and a processor 244, and the memory 242 includes a display module 2421, a control module 2422, and a receiving module 2423. The server 240 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 240 undertakes the main computing work, and the first terminal 220 and the second terminal 260 undertake the secondary computing work; or, the server 240 undertakes the secondary computing work, and the first terminal 220 and the second terminal 260 undertake the main computing work; or, the server 240, the first terminal 220, and the second terminal 260 adopt a distributed computing architecture for collaborative computing.

[0054] The second terminal 260 is installed and runs an application that supports a virtual environment. The application may be any one of a virtual reality application, an augmented reality application, an FPS game, a TPS game, a MOBA game, and a multiplayer survival game. The second terminal 260 is a terminal used by a second user, and the second user uses the second terminal 260 to control a second virtual object in a virtual environment to perform an activity, the activity including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing virtual smoke bombs, and throwing virtual explosives. Exemplarily, the second virtual object is a second virtual character, such as a simulated character or an anime character.

[0055] 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 team, the same organization, have a friend relationship, or have temporary communication permissions. Alternatively, the first virtual object and the second virtual object may belong to different teams, different organizations, or have a hostile relationship.

[0056] Optionally, the applications installed on the first terminal 220 and the second terminal 260 are the same, or the applications installed on the two terminals are the same type of applications of different control system platforms. The first terminal 220 may refer to one of a plurality of terminals, and the second terminal 260 may refer to one of a plurality of terminals. This embodiment is only illustrated by the first terminal 220 and the second terminal 260. The device types of the first terminal 220 and the second terminal 260 are the same or different, and the device types include: at least one of a smart phone, a tablet computer, a laptop computer, a wearable device, an AR smart device, a VR smart device, an e-book reader, a Moving Picture experts group audio layer III (MP3) player, a Moving Picture Experts Group IV (MP4) player, a laptop portable computer, and a desktop computer. The following embodiments are illustrated by taking the terminal including a smart phone as an example.

[0057] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0058] Figure 3 A flowchart of a method for controlling the appearance of a virtual object provided by an exemplary embodiment of the present application is shown. The method can be applied to Figure 2 The method comprises the following steps:

[0059] Step 301, displaying a virtual object in a virtual environment, where the virtual object has a stealth skill.

[0060] An application is running on the terminal, the application supports a virtual environment, and virtual objects exist in the virtual environment. A virtual environment interface is displayed on the terminal, and the virtual environment interface includes a virtual environment screen, which is a screen obtained by observing the virtual environment from the perspective of the virtual object.

[0061] Optionally, the viewing angle refers to the viewing angle when observing the virtual object in the virtual environment from the first-person perspective or the third-person perspective. Exemplarily, in an embodiment of the present application, the viewing angle is the angle when observing the virtual object through a camera model in the virtual environment. The camera model automatically follows the virtual object in the virtual environment, that is, when the position of the virtual object in the virtual environment changes, the camera model changes simultaneously with the position of the virtual object in the virtual environment, and the camera model is always within a preset distance range of the virtual object in the virtual environment. Optionally, during the automatic following process, the relative position of the camera model and the virtual object does not change.

[0062] The camera model refers to a three-dimensional model located around the virtual object in the virtual environment. When the first-person perspective is adopted, the camera model is located near the head of the virtual object or at the head of the virtual object; when the third-person perspective is adopted, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. The virtual object in the virtual environment can be observed from different angles through the camera model. For example, when the third-person perspective is the first-person over-the-shoulder perspective, the camera model is located behind the virtual object (for example, the head and shoulders of the virtual character). In addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view; when the bird's-eye view is adopted, the camera model can be located above the head of the virtual object. The bird's-eye view is a perspective for observing the virtual environment from an aerial perspective. The camera model will not be actually displayed in the virtual environment, that is, the camera model is not displayed in the virtual environment displayed in the virtual environment interface, that is, the camera model is not displayed in the above-mentioned virtual environment screen.

[0063] Taking the case where the camera model is located at any position at a preset distance from the virtual object as an example, one virtual object corresponds to one camera model, and the camera model can be rotated with the virtual object as the rotation center, such as rotating the camera model with any point of the virtual object as the rotation center. The camera model not only rotates in angle during the rotation process, but also shifts in displacement. During the rotation, the distance between the camera model and the rotation center remains unchanged, that is, the camera model is rotated on the surface of a sphere with the rotation center as the center of the sphere, wherein any point of the virtual object can be the head, torso, or any point around the virtual object, and the embodiments of the present application do not limit this. Optionally, when the camera model observes the virtual object, the center of the camera model's viewing angle points to the direction of the point on the sphere where the camera model is located pointing to the center of the sphere.

[0064] Optionally, the camera model can also observe the virtual object at different directions and at preset angles. Figure 4 As shown, a point is determined in the virtual object 41 as a rotation center 42, and the camera model rotates around the rotation center 42. The camera model is configured with an initial position 43, which can be a position above and behind the virtual object (such as the rear position of the brain). When the camera model rotates to position 44 or position 45, the viewing direction of the camera model changes with the rotation of the camera model.

[0065] Exemplarily, the virtual environment displayed on the virtual environment screen includes at least one of the following elements: mountains, plains, rivers, lakes, oceans, deserts, sky, clouds, sun, moon, stars, plants, animals, buildings, and vehicles. Figure 1 As shown, the virtual environment screen displays elements such as lawns, hills, stones, and houses.

[0066] In the embodiment of the present application, the stealth skill refers to the skill of blending the appearance of a virtual object into the virtual environment by changing the appearance material of the virtual object. Figure 1 As shown, after the appearance material of the virtual object is changed, the combat uniform of the virtual object is changed from combat uniform 105 to combat uniform 108. It should be noted that, when the virtual object is constructed based on a three-dimensional model, the change of the appearance material will not affect the three-dimensional model of the virtual object. For example, Figure 1 The texture of the combat suit in the game has been changed, but the model of the combat suit has not been changed.

[0067] Optionally, the stealth skill possessed by the virtual object is a skill possessed by the virtual object itself. Alternatively, it is a skill obtained by using virtual props; the ways of obtaining the virtual props include but are not limited to: picking up, purchasing, sharing with other virtual objects, and reward props obtained by completing tasks. Alternatively, it is a skill obtained by completing a task; for example, the stealth skill is a reward obtained by controlling a virtual object to complete a task.

[0068] Materials simulate the real physical properties of objects in a virtual environment. For example, materials can include color, reflection, transparency, texture, etc. The properties of materials can be collectively referred to as material balls. Exemplarily, the properties of material balls can include but are not limited to: ambient occlusion, diffuse reflection, highlight / metal, glossiness, self-illumination, opacity, normal, environment, and others. Among them, ambient occlusion (AO) refers to the artificial control of the intensity and distribution of ambient light on an object; diffuse reflection (Diffuse) refers to the inherent color of an object, which is a material attribute that directly expresses the color of an object; the highlight attribute is to keep the highlight color of the object unaffected by the environment; the metal attribute is to simulate the highlight effect in the real environment according to the ambient light; glossiness refers to the reflection intensity of an object; emissive refers to the intensity of the object's own light emission; opacity refers to the transparency intensity of an object; normal is used to achieve a concave and convex effect on a plane, which is used to preserve and enrich details; environment is a secondary operation on the reflection intensity of an object, mainly for highly reflective materials such as glass mirrors; others can be processing switches for object illumination, double-sidedness, and transparent front and back relationships, used to process special effects. Optionally, the appearance material of a virtual object refers to the material of the clothing worn by the virtual object; or, the appearance material of a virtual object refers to the observable surface material on the virtual object.

[0069] Step 302, receiving a skill release operation for triggering the release of a stealth skill.

[0070] Optionally, the skill release operation for triggering the release of the stealth skill may be a preset gesture operation. For example, triggering a gesture operation on a target area of ​​the virtual environment interface triggers the release of the stealth skill.

[0071] Optionally, the virtual environment interface includes a skill release control for the stealth skill. The terminal receives a skill release operation triggered on the skill release control for the stealth skill. Exemplarily, the triggering operation includes but is not limited to at least one of the following: a single-click operation, a double-click operation, a long-press operation, a drag operation, and a slide operation.

[0072] like Figure 1 As shown, a skill release control 106 of the stealth skill is displayed on the virtual environment interface, which is used to trigger the release of the stealth skill possessed by the virtual object. Optionally, when the virtual object has the stealth skill, the skill release control of the stealth skill is displayed on the virtual environment interface. For example, when the virtual object obtains the stealth skill through the use of virtual props, the skill release control of the stealth skill is displayed on the virtual environment interface.

[0073] Optionally, the skill release control of the stealth skill is located at any position on the virtual environment interface. Exemplarily, the skill release control can be located at the edge area of ​​the virtual environment interface, such as Figure 1 As shown, the skill release control is located at the right edge area of ​​the virtual environment interface. Alternatively, the position layout of the skill release control on the virtual environment interface can be customized by the user; for example, the skill release control can be dragged to a target position to change the layout position of the skill release control.

[0074] Optionally, the stealth skill needs to accumulate energy, and when the energy accumulation of the stealth skill is full, the skill release of the stealth skill can be triggered. Exemplarily, when the energy accumulation of the stealth skill is full, the skill release control is in a touchable state; when the skill release control is in a touchable state, the terminal can receive the skill release operation triggered on the skill release control. For example, in the initial stage or after completing a skill release, the terminal switches the state of the skill release control from a touchable state to an untouchable state; after the energy accumulation of the stealth skill is full, the state of the skill release control is switched from an untouchable state to a touchable state, and at this time, the terminal can receive the skill release operation on the skill release control.

[0075] For example, in the initial stage or after a skill is released, the energy is fully accumulated after the cooling time, and then the state of the skill release control is switched to a touchable state; for example, after a skill is released, the skill release control is switched to a non-touchable state, and after a 30s cooling time, the state of the skill release control is switched to a touchable state. In the initial stage or after a skill is released, the energy required for the release of the stealth skill can also be obtained by performing tasks; for example, picking up and using energy crystals to fill the energy required for the release of the stealth skill.

[0076] Step 303: In response to the skill release operation, the first appearance material of the virtual object is replaced with a second appearance material, where the second appearance material is determined based on the virtual environment where the virtual object is located.

[0077] In response to the skill release operation, the terminal determines a second appearance operation based on the virtual environment in which the virtual object is located; and replaces the first appearance material of the virtual object with the second appearance material.

[0078] Optionally, according to the skill release operation, the position of the virtual object in the virtual environment is determined; according to the appearance material at the position of the virtual object in the virtual environment, a second appearance material is determined; and the first appearance material of the virtual object is replaced with the second appearance material.

[0079] Optionally, when the state of the virtual object meets the skill release condition, the terminal executes a step of replacing the first appearance material of the virtual object with the second appearance material in response to the skill release operation.

[0080] Exemplarily, the skill release conditions include but are not limited to at least one of the following: the virtual object is in a moving state, the virtual object is in a shooting state, the virtual object is in a jumping state, the virtual object is in a sprinting state, the virtual object is in a sliding state, the virtual object is in a crouching state, the virtual object is in a lying state, the virtual object is in a stationary state, and the virtual object is in a skill release area of ​​the stealth skill. The skill release area of ​​the stealth skill can be any area in the virtual environment, or a partial area in the virtual environment.

[0081] In some embodiments, when the state of the virtual object satisfies the condition that the skill cannot be released, the skill release operation of the stealth skill is not responded to; wherein the condition that the skill cannot be released includes but is not limited to at least one of the following: the virtual object is knocked down, the virtual object is climbing, the virtual object is rescuing or being rescued, the virtual object is driving or riding a virtual vehicle, and the virtual object is in a restricted area for the skill release of the stealth skill, and the restricted area for the skill release of the stealth skill may be a partial area in the virtual environment.

[0082] It should be noted that the skill release conditions and the conditions for not being able to release the skill corresponding to the stealth skill are preset according to application requirements.

[0083] Optionally, the terminal switches the entire appearance material of the virtual object from the first appearance material to the second appearance material. Alternatively, the terminal switches the partial appearance material of the virtual object exposed in the virtual environment from the first appearance material to the second appearance material.

[0084] The switching of the appearance material may be a change of the parameters of the appearance material of the virtual object. The first appearance material corresponds to a set of material parameters, and the second appearance material corresponds to another set of material parameters. By changing the material parameters corresponding to the first appearance material used by the virtual object to the material parameters corresponding to the second appearance material, the appearance material is replaced.

[0085] Optionally, the terminal controls the process of switching the first appearance material to the second appearance material by an instantaneous change, that is, directly transitioning from the first appearance material to the second appearance material; or, it can also use a gradual change, that is, gradually changing from the first appearance material to the second appearance material.

[0086] Optionally, in response to the skill release operation, the terminal first plays an effect animation of changing the appearance material of the virtual object. During the playing of the effect animation, the terminal gradually switches the first appearance material to the second appearance material, and the playing of the effect animation and the switching of the appearance material are completed simultaneously; or, after playing the effect animation of changing the appearance material of the virtual object, the terminal directly switches the first appearance material to the second appearance material.

[0087] For example, Figure 5 As shown, a virtual environment screen 502 is displayed in a virtual environment interface 501, and the virtual environment screen 502 includes a floor tile 503 in the virtual environment, and a virtual object 504 stands on the floor tile 503. A mobile control is also displayed in the virtual environment interface 501. The virtual environment screen 502 is a screen for observing the virtual environment from the perspective of the virtual object 504. The user can control the movement of the virtual object 504 in the virtual environment by triggering the mobile control; when the user controls the virtual object 504 to move in the virtual environment, the virtual object 504 changes its viewing angle of the virtual environment. The virtual environment interface 501 also includes a viewing angle adjustment control, and the user can also control the movement of the viewing angle of the virtual object 504 in observing the virtual environment through the viewing angle adjustment control.

[0088] The virtual object 504 in the virtual environment screen 502 is wearing a combat uniform 505. The virtual environment interface 501 also includes a skill release control 506 for the stealth skill; when the user triggers the skill release operation on the skill release control 506, the effect animation of the appearance material change of the virtual object 504 is played first, such as Figure 5 As shown in the second interface diagram of , the special effect 507 of appearance material replacement is displayed, and then the first appearance material of the combat uniform 505 is replaced with the second appearance material, and the second appearance material has the color and texture of the floor tile 503, such as Figure 5 As shown in the combat suit 508 of the virtual object in the third interface diagram, the effect of hiding the virtual object 504 in the grass is achieved to avoid attacks and ambushes of enemy virtual objects.

[0089] Optionally, the above-mentioned stealth skill is continuously effective, and the use of the stealth skill can be terminated later by terminating the skill release operation. Alternatively, the above-mentioned stealth skill is set with a duration threshold, which is used to indicate the effective duration of the stealth skill; in response to the duration reaching the duration threshold, the second appearance material of the virtual object is replaced with the first appearance material, and the duration refers to the duration of the virtual object wearing the second appearance material starting from the moment when the virtual object replaces the second appearance material. For example, the stealth skill can last for 60 seconds (second, s) after being released, and after 60s, it switches from the second appearance material back to the first appearance material.

[0090] Optionally, during the time when the stealth skill is effective, the terminal controls the virtual object to continue to move in the virtual environment, and during the movement, the appearance material of the virtual object changes as the surrounding virtual environment of the virtual object changes. Exemplarily, after the terminal replaces the first appearance material of the virtual object with the second appearance material, it controls the virtual object to continue to move in the virtual environment; re-determines the appearance material that needs to be replaced for the virtual object according to the position of the virtual object after movement, and obtains a third appearance material; and replaces the second appearance material of the virtual object with the third appearance material.

[0091] Optionally, during the time when the stealth skill is effective, as the virtual object moves in the virtual environment, the appearance material of the virtual object is updated in real time. Alternatively, during the time when the stealth skill is effective, the virtual object is controlled to move from a first position to a second position in the virtual environment, and in response to the virtual object's static time at the second position reaching a static time threshold, the appearance material that needs to be replaced for the virtual object is re-determined based on the second position after the virtual object moves, and a third appearance material is obtained; the second appearance material of the virtual object is replaced with the third appearance material.

[0092] Optionally, during the time when the stealth skill is effective, in response to an event that meets the termination condition of the stealth skill, the second appearance material of the virtual object is replaced with the first appearance material.

[0093] Optionally, the above-mentioned termination conditions include but are not limited to at least one of the following: being hit by an enemy virtual object, the life value of the virtual object being reduced to below a life value threshold, the energy value of the virtual object being reduced to below an energy value threshold, entering a restricted area for releasing stealth skills (for example, the virtual object falling into or entering water), and performing a first type of action. The first type of action includes but is not limited to: climbing, driving a virtual vehicle, and riding a virtual vehicle.

[0094] For example, after the first appearance material of the virtual object is replaced with the second appearance material, in response to the virtual object being hit by an enemy virtual object, the second appearance material of the virtual object is replaced with the first appearance material. For another example, after the first appearance material of the virtual object is replaced with the second appearance material, in response to controlling the virtual object to perform a first type of action, the second appearance material of the virtual object is replaced with the first appearance material.

[0095] Optionally, during the time when the stealth skill is effective, the release effect of the second type of action is also enhanced, and the second type of action is a different type of action from the first type of action. Exemplarily, in response to controlling the virtual object to perform the second type of action, the release effect of the second type of action is enhanced, and the second type of action is a different type of action from the first type of action. Exemplarily, the second type of action can be an attack action and / or an action to replenish its own energy. For example, during the time when the stealth skill is effective, the virtual object is controlled to shoot, and the damage value and range of the shooting are increased according to the first preset ratio, such as increasing to 120% of the original damage value, and increasing to 110% of the original range. For another example, during the time when the stealth skill is effective, the virtual object is controlled to perform the action of replenishing energy, and the time required for replenishing energy is reduced according to the second preset ratio, such as subtracting 5s from the original time; and / or increasing the energy value of the virtual props used to replenish energy, such as increasing the energy value of the virtual props used to replenish energy to the original 110%. For example, during the effective time of the stealth skill, the virtual object is controlled to throw a virtual explosive, and the damage range and damage value of the virtual explosive after activation are increased according to a third preset ratio, such as increased to 120% of the original damage value and increased to 120% of the original damage range.

[0096] Optionally, the virtual object is also equipped with a virtual prop; in response to a skill release operation, the first appearance material of the virtual object is replaced with the second appearance material, and the fourth appearance material of the virtual prop is replaced with the first appearance material. For example, when the virtual object uses a virtual explosive during the effective time of the stealth skill, the fourth appearance material of the virtual explosive is replaced with the first appearance material; for another example, when the virtual object is equipped with a virtual shooting prop, the fourth appearance material of the virtual shooting prop is replaced with the first appearance material, and the appearance material of the prop shot out can also be replaced with the first appearance material.

[0097] To sum up, the appearance control method of a virtual object provided in the present embodiment receives a skill release operation for triggering the release of the stealth skill when the virtual object has a stealth skill. In response to the skill release operation, the first appearance material of the virtual object is replaced with a second appearance material, and the second appearance material is determined based on the virtual environment in which the virtual object is located, so that the virtual object after the appearance material is replaced is integrated with the surrounding virtual environment, thereby achieving the effect of hiding the virtual object. In this way, the virtual object is not easy to be discovered, and can confuse the enemy virtual object, thereby avoiding the attack of the enemy virtual object, or it is easier to successfully ambush the enemy virtual object, thereby achieving accurate and effective attack on the enemy virtual object.

[0098] Secondly, during the effective time of the stealth skill, as the virtual object moves in the virtual environment, the appearance material of the virtual object changes according to the changes in the virtual environment around the virtual object, so that the virtual object can be better hidden in the surrounding virtual environment, improving the hiding effect of the virtual object in the virtual environment. In addition, the stealth skill can also enhance the release effect of some actions, and cooperate with the stealth effect to achieve a better effect of ambush the enemy.

[0099] Figure 6 A flowchart of a method for controlling the appearance of a virtual object provided by an exemplary embodiment of the present application is shown. The method can be applied to Figure 2 In the terminal of the computer system shown. Figure 6 As shown, the above step 303 can be implemented by the following steps 3031 to 3033, so as to determine the second appearance material that is more harmonious with the surrounding virtual environment of the virtual object. The method includes the following steps:

[0100] Step 3031, determining the position of the virtual object in the virtual environment according to the skill release operation.

[0101] In response to the skill release operation, the terminal determines the position of the virtual object in the virtual environment. Exemplarily, the position of the virtual object refers to the position of the virtual object on the virtual map.

[0102] Step 3032: Determine a second appearance material according to the appearance material at the position of the virtual object in the virtual environment.

[0103] The terminal determines a target object located at the position of the virtual object in the virtual environment, and determines a second appearance material according to the appearance material of the target object.

[0104] In some embodiments, the terminal determines the target object in the virtual environment that the body part of the virtual object contacts based on the position of the virtual object; and determines the second appearance material according to the appearance material of the target object. Exemplarily, the terminal determines the three-dimensional space where the virtual object is located in the virtual environment based on the position of the virtual object, and the three-dimensional space where the virtual object is located is larger than the space occupied by the three-dimensional model of the virtual object; in the three-dimensional space where the virtual object is located, the terminal determines the target object that contacts the body part of the virtual object; and determines the second appearance material according to the appearance material of the target object. For example, the grass that the foot of the virtual object contacts is taken as the target object, and the second appearance material is determined according to the appearance material of the grass.

[0105] Optionally, the terminal may determine the appearance material of the target object as the second appearance material. Alternatively, the terminal may determine some parameters of the appearance material of the target object as parameters of the second appearance material.

[0106] Optionally, the object contacted by the virtual object may be one or more objects. If the body part of the virtual object contacts multiple objects in the virtual environment, at least one of the following methods may be used to determine the target object from the multiple objects;

[0107] (i) Based on the position of the virtual object, the terminal determines that at least two body parts of the virtual object are in one-to-one contact with at least two objects in the virtual environment; according to the pre-set priorities of the body parts, the terminal determines the target body part with the highest priority from the at least two body parts; and uses the object corresponding to the target body part in the at least two objects as the target object. For example, if the back of the virtual object is in contact with the wall and the feet of the virtual object are in contact with the ground, and the priority of the back is higher than that of the feet, the wall that the back of the virtual object is in contact with is determined as the target object.

[0108] (2) The terminal determines, based on the position of the virtual object, that at least two body parts of the virtual object are in one-to-one contact with at least two objects in the virtual environment; for each of the at least two objects, calculates a contact area between the object and the body part corresponding to the object to obtain at least two contact areas corresponding to the at least two objects; and determines a target object corresponding to a maximum contact area among the at least two contact areas.

[0109] In other embodiments, the terminal determines the three-dimensional space where the virtual object is located in the virtual environment based on the position of the virtual object; determines the target object from the three-dimensional space; and determines the second appearance material according to the appearance material of the target object.

[0110] Optionally, the three-dimensional space contains one or more objects. When the three-dimensional space contains one object, the object is determined as the target object.

[0111] When a three-dimensional space contains multiple objects, for each of at least two objects in the three-dimensional space, the terminal calculates the overlapping area of ​​the object and the virtual object projected on the imaging plane of the camera model, and obtains at least two overlapping areas corresponding to the at least two objects; and determines the target object corresponding to the largest overlapping area among the at least two overlapping areas.

[0112] For example, Figure 7As shown, it is a schematic diagram of the process of mapping an object in a three-dimensional space 701 to an imaging plane 703 of a camera model. The camera plane 702 is determined by the posture of the camera model. The camera plane 702 is a plane perpendicular to the shooting direction of the camera model. The imaging plane 703 and the camera plane 702 are parallel to each other. The imaging plane 703 is the plane of the virtual environment within the field of view when the camera model images the virtual environment when observing the virtual environment. The sphere represents the virtual object, and the cylinder represents the object in contact with the body part of the virtual object. The overlapping area between the image of the sphere and the image of the cylinder on the imaging plane 703 is the overlapping area of ​​the projection of the object and the virtual object on the imaging plane of the camera model.

[0113] Exemplarily, the terminal calculates the overlapping area between each object and the image of the virtual object on the imaging plane of the camera model to obtain the corresponding overlapping area of ​​each object.

[0114] Exemplarily, the size of the three-dimensional space is set based on application requirements, and the size of the three-dimensional space is larger than the model size of the virtual object. Exemplarily, the distance between each position in the three-dimensional space and the virtual object is less than a preset threshold. The preset threshold may be the height of the virtual object, or 1.5 times or 2 times the height.

[0115] In other embodiments, the terminal determines a viewing frustum of a camera model based on the position of the virtual object, the camera model is used to follow and observe the virtual object, and the viewing frustum of the camera model contains the virtual object; at least two objects in the viewing frustum of the camera model are determined; for each of the at least two objects, an overlapping area between the projection of the object and the virtual object on the imaging plane of the camera model is calculated to obtain at least two overlapping areas corresponding to the at least two objects; a target object corresponding to the maximum overlapping area among the at least two overlapping areas is determined; and a second appearance material is determined according to the appearance material of the target object.

[0116] In other embodiments, the terminal determines at least two objects in the viewing frustum of the camera model; for each of the at least two objects, calculates the overlapping area of ​​the object and the virtual object projected on the imaging plane of the camera model to obtain at least two overlapping areas corresponding to the at least two objects; determines the target object corresponding to the maximum overlapping area among the at least two overlapping areas; and determines the second appearance material according to the appearance material of the target object.

[0117] In other embodiments, the terminal determines M objects in the viewing cone of the camera model; for each object in the M objects, calculates the vertical distance between the object and the central axis of the viewing cone, and obtains M vertical distances corresponding to the M objects; sorts the M objects in order from near to far, and obtains sorted M objects; for each of the first R objects in the sorted M objects, calculates the overlapping area between the object and the virtual object projected on the imaging plane of the camera model, and obtains R overlapping areas corresponding to the first R objects, where R is an integer greater than 1 and less than or equal to M; determines the target object corresponding to the largest overlapping area among the R overlapping areas; and determines the second appearance material according to the appearance material of the target object.

[0118] In other embodiments, the terminal determines M objects in the viewing frustum of the camera model, where M is an integer greater than 1; based on the position of the virtual object, determines the distance between each of the M objects and the virtual object; sorts the M objects in order of the distance to the virtual object from near to far, to obtain sorted M objects; for each of the first R objects in the sorted M objects, calculates the overlapping area between the object and the projection of the virtual object on the imaging plane of the camera model, to obtain R overlapping areas corresponding to the first R objects, where R is an integer greater than 1 and less than or equal to M; determines the target object corresponding to the largest overlapping area among the R overlapping areas; and determines the second appearance material according to the appearance material of the target object.

[0119] Optionally, the target object includes at least one of buildings, vehicles, plants, animals, and objects in the virtual environment. For example, the target object may be a house wall, door and window, roof, pillar, etc. in the virtual environment. The target object may also be a tree, flower, bucket, stone, box, etc. in the virtual environment.

[0120] Optionally, the target object includes an object that cannot be moved in the virtual environment, such as a house, an object, a plant, a stationary vehicle, a stationary airplane, a parked ship or other means of transportation in the virtual environment.

[0121] Step 3033: Replace the first appearance material of the virtual object with the second appearance material.

[0122] For example, Figure 8As shown, a virtual environment screen 802 is displayed in a virtual environment interface 801, and the virtual environment screen 802 includes a sandy ground 803 in a virtual environment. A virtual object 804 in the virtual environment screen 802 is wearing a combat uniform 805 and standing on the sandy ground 803, and the feet of the virtual object 804 are in contact with the sandy ground 803. The virtual environment interface 801 also includes a skill release control 806 for the stealth skill; the user triggers the skill release operation on the skill release control 806, and determines the sandy ground 803 as the target object. After playing the effect animation 807 of the appearance material change of the virtual object 804, "as shown in FIG. Figure 8 As shown in the second interface diagram of the ", replace the first appearance material of the combat uniform 805 with the second appearance material corresponding to the sand 803, such as Figure 8 As shown in the combat suit 808 of the virtual object in the third interface diagram, the effect of hiding the virtual object 804 in the sand 803 is achieved to avoid attacks and ambushes of enemy virtual objects.

[0123] After the terminal replaces the first appearance material of the virtual object with the second appearance material, the terminal also switches the appearance material of the virtual object back to the first appearance material under certain conditions. For example, Fig. 9 As shown, when the stealth skill is effective, the virtual object 804 wears the combat uniform 808. After the stealth skill is invalid, the effect animation 809 of the invalidation of the stealth skill is played, and then the second appearance material of the combat uniform 808 is replaced with the first appearance material, and the virtual object wearing the combat uniform 805 is displayed. The first appearance material is the original appearance material of the virtual clothing worn by the virtual object.

[0124] It should be noted that the determination of the third appearance material may refer to the determination method of the second appearance material, which will not be described in detail here.

[0125] In summary, the virtual object appearance control method provided in this embodiment, when the virtual object has the stealth skill, receives a skill release operation for triggering the release of the stealth skill, and in response to the skill release operation, replaces the first appearance material of the virtual object with the second appearance material, the second appearance material is determined based on the virtual environment in which the virtual object is located, so that the virtual object after the appearance material is replaced is integrated with the surrounding virtual environment, achieving the effect of hiding the virtual object, so that the virtual object is not easy to be discovered, and can confuse the enemy virtual object, thereby avoiding the attack of the enemy virtual object, or it is easier to successfully ambush the enemy virtual object, and achieve accurate and effective attack on the enemy virtual object. And by contacting the virtual object, the target object in the virtual environment is determined, so that the appearance of the virtual object after the replacement is better integrated with the virtual environment in which it is located, thereby achieving a better hiding effect.

[0126] Take the use of the above stealth skill in the game as an example for explanation. Among them, the stealth skill includes active skills and passive skills.

[0127] Active Skills

[0128] After releasing the stealth skill, the first appearance material of the virtual object will change to the material of the contact surface under the feet of the virtual object (ie, the second appearance material), thereby hiding the virtual object in the virtual environment.

[0129] Passive Skills

[0130] Taking the virtual props equipped by the virtual object as virtual shooting props as an example, the shooting speed and range of the virtual shooting props are increased.

[0131] The release process of the stealth skill is as follows:

[0132] 1. The energy of the stealth skill is full;

[0133] 2. The virtual object is in a state where the stealth skill can be released (for example, it cannot be released when climbing, wing suit, falling, riding a virtual vehicle, etc.);

[0134] 3. Release the stealth skill. During the effective time of the stealth skill, the virtual object can perform actions such as moving, shooting, jumping, sprinting, sliding, etc.;

[0135] 4. The effective duration of the stealth skill is T;

[0136] 5. It takes effect on the virtual object that is the releaser.

[0137] The invisibility skill can be canceled. The cancellation mechanism is as follows:

[0138] It will be automatically canceled when being hit or chopped, and the recovery effect will be played.

[0139] It will be automatically canceled after riding the virtual vehicle and the recovery effects will be played.

[0140] It will be automatically canceled after falling into water, and the recovery effect will be played.

[0141] Situations where the stealth skill cannot be released include:

[0142] The virtual object is in a knocked-down state and cannot be released;

[0143] The virtual object rides in a virtual vehicle and cannot be released;

[0144] The virtual object is in climbing state and cannot be released;

[0145] The virtual object is in the rescuing state or the rescued state and cannot be released.

[0146] Resources required for appearance material switching:

[0147] Hidden materials (i.e., second appearance materials) on various virtual objects, such as hidden materials when they are on grass, on rocks, inside buildings, etc.

[0148] When releasing the stealth skill, the special effect used to change the material of the body;

[0149] The special effect of restoring the original appearance material when the invisibility skill disappears.

[0150] Fig.10 A flowchart of a process of releasing a stealth skill provided by an exemplary embodiment of the present application is shown, and the method includes:

[0151] Step 901, wait for the energy of the stealth skill to be full.

[0152] This process is pre-configured by the planner as to the time required for energy accumulation. The server updates the value and sends it to the client, which is reflected as the energy bar of the stealth skill slowly filling up.

[0153] Step 902, click the skill release control of the stealth skill.

[0154] When the stealth skill's energy is full, the stealth skill's skill release control can be clicked to release the stealth skill.

[0155] Step 903, providing hidden material of the virtual object.

[0156] After the skill is released, the virtual object will obtain hidden material, changing the appearance material of the virtual object to achieve a hidden effect.

[0157] Step 904, providing the added shooting speed and shooting range of the virtual object when shooting.

[0158] After the stealth skill is released, the shooting speed and range of the virtual object will be increased, that is, the shooting speed and range will be increased, the character's attack power will be improved, and the enemy virtual object will be killed quickly.

[0159] Step 905, the stealth skill ends.

[0160] The virtual object returns to the state before the skill is released, and the original appearance material of the virtual object is restored.

[0161] Fig.11 A flowchart of a process for replacing an appearance material provided by an exemplary embodiment of the present application is shown, and the method includes:

[0162] Step 1001, dynamically load various hidden material files.

[0163] Hidden materials are appearance materials made in advance by art students based on the materials of objects in the virtual scene. The loading of these material files is changed to dynamic loading, so that various materials can be easily replaced without changing the code, and only this file needs to be updated when updating.

[0164] Step 1002, detecting the material of the object under the feet of the virtual object and selecting to hide the material.

[0165] A spherical ray is extended downward through the heel of the virtual object to determine the collision point, and then the material of the collision point is determined. The object under the foot is determined by the material of the collision point, and then the hidden material for the virtual object is determined based on the object under the foot.

[0166] Step 1003, sending the hidden material and effective duration to the material management system.

[0167] The material management system is a system used to add, search, delete, replace and present materials. After the invisibility skill is triggered, the relevant material resource identifier and effective duration are passed into the material management system as parameters to realize the display of hidden materials on the character.

[0168] Step 1004: Replace the appearance material of the virtual object with a hidden material through the material management system.

[0169] The parameters of the hidden material are passed into the material management system, and the original appearance material of the virtual object is replaced with the hidden material.

[0170] Step 1005, play the display and disappearance of the hidden material in chronological order.

[0171] If the playback time of this hidden material in the material management system does not reach the effective duration, the hidden material will be displayed on the virtual object. If the playback time of the hidden material reaches the effective duration, the hidden material on the virtual object will be restored to the previous original appearance material, such as the first appearance material.

[0172] Fig.12 A flowchart of a process of releasing a stealth skill provided by an exemplary embodiment of the present application is shown, and the method includes:

[0173] Step 1101, the client receives a skill release operation of a stealth skill triggered by a user, and sends a network request packet to a server. The network request packet includes user information, virtual object information, and stealth skill information.

[0174] The client is a client of an application that supports a virtual environment and runs on a terminal.

[0175] Step 1102, the server verifies based on the information in the network request packet, and if the information is legal, sends the first network packet indicating the successful release of the stealth skill.

[0176] Step 1103: The server continues to send a second network packet, where the second network packet is used to provide hidden material for the virtual object.

[0177] Step 1104: The client receives the second network packet and replaces the appearance material of the virtual object with a hidden material through the material management system.

[0178] Step 1105, the server continues to send a third network packet, and the third network packet is used to provide the added shooting speed and range.

[0179] Step 1106, the client controls the hidden virtual object to shoot, and sends a movement packet, a prop status packet, etc. to the server.

[0180] Step 1107, the server indicates to the client that the stealth skill has ended.

[0181] Step 1108: The client switches the hidden material of the virtual object back to the original material (ie, the first appearance material).

[0182] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, and they will not be repeated herein.

[0183] Fig.13 A schematic diagram of the structure of a virtual object appearance control device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a terminal through software, hardware, or a combination of both. The device includes:

[0184] Display module 1201, used to display virtual objects in a virtual environment, where the virtual objects have a stealth capability;

[0185] The receiving module 1202 is used to receive a skill release operation for triggering the release of a stealth skill;

[0186] The processing module 1203 is used to replace the first appearance material of the virtual object with a second appearance material in response to the skill release operation, where the second appearance material is determined based on the virtual environment where the virtual object is located.

[0187] In some embodiments, the processing module 1203 is used to:

[0188] Determine the position of the virtual object in the virtual environment according to the skill release operation;

[0189] Determining a second appearance material according to an appearance material at a position of the virtual object in the virtual environment;

[0190] Replaces the first appearance material of the virtual object with the second appearance material.

[0191] In some embodiments, the processing module 1203 is used to:

[0192] Based on the position of the virtual object, determining a target object in the virtual environment that is contacted by a body part of the virtual object;

[0193] The second appearance material is determined according to the appearance material of the target object.

[0194] In some embodiments, the processing module 1203 is used to:

[0195] Based on the position of the virtual object, determining that at least two body parts of the virtual object are in one-to-one contact with at least two objects in the virtual environment;

[0196] For each of the at least two objects, calculating an overlap area between the projection of the object and the virtual object on the imaging plane of the camera model, and obtaining at least two overlap areas corresponding to the at least two objects;

[0197] A target object corresponding to the largest overlapping area among the at least two overlapping areas is determined.

[0198] In some embodiments, the processing module 1203 is used to:

[0199] Based on the position of the virtual object, determining that at least two body parts of the virtual object are in one-to-one contact with at least two objects in the virtual environment;

[0200] For each of the at least two objects, calculating a contact area between the object and a body part corresponding to the object to obtain at least two contact areas corresponding to the at least two objects;

[0201] A target object corresponding to the largest contact area among the at least two contact areas is determined.

[0202] In some embodiments, the processing module 1203 is configured to control the virtual object to continue to move in the virtual environment after replacing the first appearance material of the virtual object with the second appearance material;

[0203] Re-determining the appearance material that needs to be replaced for the virtual object according to the position of the virtual object after the move, to obtain a third appearance material;

[0204] Replace the dummy object's second appearance material with the third appearance material.

[0205] In some embodiments, the processing module 1203 is configured to play an effect animation of the replacement of the appearance material of the virtual object before replacing the first appearance material of the virtual object with the second appearance material.

[0206] In some embodiments, the processing module 1203 is used to replace the first appearance material of the virtual object with the second appearance material, and in response to the duration reaching a duration threshold, replace the second appearance material of the virtual object with the first appearance material, where the duration refers to the duration of the virtual object wearing the second appearance material starting from the moment when the virtual object replaces the second appearance material.

[0207] In some embodiments, the processing module 1203 is configured to replace the first appearance material of the virtual object with the second appearance material, and then, in response to the virtual object being hit by an enemy virtual object, replace the second appearance material of the virtual object with the first appearance material.

[0208] In some embodiments, the processing module 1203 is configured to, after replacing the first appearance material of the virtual object with the second appearance material, replace the second appearance material of the virtual object with the first appearance material in response to controlling the virtual object to perform the first type of action;

[0209] or,

[0210] The processing module 1203 is used to replace the first appearance material of the virtual object with the second appearance material, and then, in response to controlling the virtual object to perform a second type of action, enhance the release effect of the second type of action, where the second type of action is different from the first type of action.

[0211] In some embodiments, the virtual object is equipped with a virtual prop;

[0212] The processing module 1203 is used to replace the fourth appearance material of the virtual prop with the first appearance material.

[0213] In some embodiments, the processing module 1203 is used to execute a step of replacing a first appearance material of the virtual object with a second appearance material in response to a skill release operation when the state of the virtual object meets a skill release condition.

[0214] In some embodiments, the processing module 1203 is used to not respond to the skill release operation when the state of the virtual object meets the condition that the skill cannot be released;

[0215] Among them, the conditions for being unable to release skills include at least one of the following: the virtual object is knocked down, the virtual object is climbing, the virtual object is rescuing or being rescued, and the virtual object is driving or riding a virtual vehicle.

[0216] Fig.14The block diagram of the structure of a computer device 1900 provided by an exemplary embodiment of the present application is shown. The computer device 1900 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1900 may also be called a user device, a portable terminal, or other names.

[0217] Typically, the computer device 1900 includes a processor 1901 and a memory 1902 .

[0218] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The 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, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

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

[0220] In some embodiments, the computer device 1900 may further include: a peripheral device interface 1903 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1904 , a touch display screen 1905 , a camera 1906 , an audio circuit 1907 and a power supply 1909 .

[0221] The peripheral device interface 1903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0222] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0223] The touch display screen 1905 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1905 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1905. The touch signal may be input to the processor 1901 as a control signal for processing. The touch display screen 1905 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1905 may be one, and the front panel of the computer device 1900 is set; in other embodiments, the touch display screen 1905 may be at least two, which are respectively set on different surfaces of the computer device 1900 or are folded; in still other embodiments, the touch display screen 1905 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1900. Even, the touch display screen 1905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1905 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0224] The camera assembly 1906 is used to capture images or videos. Optionally, the camera assembly 1906 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0225] The audio circuit 1907 is used to provide an audio interface between the user and the computer device 1900. The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1901 for processing, or input them into the radio frequency circuit 1904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1900. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1907 may also include a headphone jack.

[0226] The power supply 1909 is used to power various components in the computer device 1900. The power supply 1909 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1909 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0227] In some embodiments, the computer device 1900 further includes one or more sensors 1910 , including but not limited to: an acceleration sensor 1911 , a gyroscope sensor 1912 , a pressure sensor 1913 , an optical sensor 1915 , and a proximity sensor 1916 .

[0228] The acceleration sensor 1911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1900. For example, the acceleration sensor 1911 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1901 can control the touch display screen 1905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1911. The acceleration sensor 1911 can also be used to collect game or user motion data.

[0229] The gyro sensor 1912 can detect the body direction and rotation angle of the computer device 1900, and the gyro sensor 1912 can cooperate with the acceleration sensor 1911 to collect the user's 3D actions on the computer device 1900. The processor 1901 can implement the following functions based on the data collected by the gyro sensor 1912: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0230] The pressure sensor 1913 can be set on the side frame of the computer device 1900 and / or the lower layer of the touch display screen 1905. When the pressure sensor 1913 is set on the side frame of the computer device 1900, it can detect the user's grip signal of the computer device 1900, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1913 is set on the lower layer of the touch display screen 1905, it can control the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0231] The optical sensor 1915 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the touch display screen 1905 according to the ambient light intensity collected by the optical sensor 1915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1905 is reduced. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera component 1906 according to the ambient light intensity collected by the optical sensor 1915.

[0232] The proximity sensor 1916, also called a distance sensor, is usually arranged on the front of the computer device 1900. The proximity sensor 1916 is used to collect the distance between the user and the front of the computer device 1900. In one embodiment, when the proximity sensor 1916 detects that the distance between the user and the front of the computer device 1900 is gradually decreasing, the processor 1901 controls the touch display screen 1905 to switch from the screen-on state to the screen-off state; when the proximity sensor 1916 detects that the distance between the user and the front of the computer device 1900 is gradually increasing, the processor 1901 controls the touch display screen 1905 to switch from the screen-off state to the screen-on state.

[0233] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the computer device 1900, and the computer device 1900 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.

[0234] The present application also provides a computer device, which includes: a processor and a memory, wherein the storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual object appearance control method provided by the above-mentioned method embodiments.

[0235] The present application also provides a computer-readable storage medium, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the virtual object appearance control method provided by the above-mentioned method embodiments.

[0236] The present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the virtual object appearance control method provided by the above-mentioned method embodiments.

[0237] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0238] A person 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 instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0239] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling the appearance of a virtual object, characterized in that: The method comprises: Displaying a virtual object in a virtual environment, wherein the virtual object has a stealth skill; Receiving a skill release operation for triggering the release of the stealth skill; In response to the skill release operation, the first appearance material of the virtual object is replaced with a second appearance material, where the second appearance material is determined based on the virtual environment where the virtual object is located.

2. The method according to claim 1, characterized in that In response to the skill release operation, replacing the first appearance material of the virtual object with the second appearance material includes: Determining a position of the virtual object in the virtual environment according to the skill release operation; determining the second appearance material according to the appearance material at the position of the virtual object in the virtual environment; The first appearance material of the virtual object is replaced with the second appearance material.

3. The method according to claim 2, characterized in that The determining the second appearance material according to the appearance material at the position of the virtual object in the virtual environment includes: Based on the position of the virtual object, determining a target object in the virtual environment that is contacted by a body part of the virtual object; The second appearance material is determined according to the appearance material of the target object.

4. The method according to claim 3, characterized in that The step of determining, based on the position of the virtual object, a target object in the virtual environment that is contacted by a body part of the virtual object comprises: Based on the position of the virtual object, determining that at least two body parts of the virtual object are in one-to-one contact with at least two objects in the virtual environment; For each of the at least two objects, calculating a contact area between the object and a body part corresponding to the object, to obtain at least two contact areas corresponding to the at least two objects; The target object corresponding to the largest contact area among the at least two contact areas is determined.

5. The method according to claim 2, characterized in that: The determining the second appearance material according to the appearance material at the position of the virtual object in the virtual environment includes: Based on the position of the virtual object, determining a viewing frustum of a camera model, wherein the camera model is used to follow and observe the virtual object, and the viewing frustum of the camera model contains the virtual object; determining at least two objects in a viewing frustum of the camera model; For each of the at least two objects, calculating an overlap area between the object and the projection of the virtual object on the imaging plane of the camera model, to obtain at least two overlap areas corresponding to the at least two objects; Determining the target object corresponding to the largest overlapping area among the at least two overlapping areas; The second appearance material is determined according to the appearance material of the target object.

6. The method according to any one of claims 1 to 5, characterized in that: After replacing the first appearance material of the virtual object with the second appearance material, the method further includes: Controlling the virtual object to continue moving in the virtual environment; Re-determining the appearance material of the virtual object that needs to be replaced according to the position of the virtual object after the movement, to obtain a third appearance material; The second appearance material of the virtual object is replaced with the third appearance material.

7. The method according to any one of claims 1 to 5, characterized in that: Before replacing the first appearance material of the virtual object with the second appearance material, the method further includes: Play the effect animation of the appearance material change of the virtual object.

8. The method according to any one of claims 1 to 5, characterized in that: After replacing the first appearance material of the virtual object with the second appearance material, the method further includes: In response to the duration reaching a duration threshold, the second appearance material of the virtual object is replaced with the first appearance material, and the duration refers to the duration of the virtual object wearing the second appearance material starting from the moment when the virtual object is replaced with the second appearance material.

9. The method according to any one of claims 1 to 5, characterized in that: After replacing the first appearance material of the virtual object with the second appearance material, the method further includes: In response to the virtual object being hit by an enemy virtual object, the second appearance material of the virtual object is replaced with the first appearance material.

10. The method according to any one of claims 1 to 5, characterized in that: After replacing the first appearance material of the virtual object with the second appearance material, the method further includes: In response to controlling the virtual object to perform a first type of action, replacing the second appearance material of the virtual object with the first appearance material; or, In response to controlling the virtual object to perform a second type of action, a release effect of the second type of action is enhanced, and the second type of action and the first type of action are actions of different categories.

11. The method according to any one of claims 1 to 5, characterized in that: The virtual object is equipped with virtual props; The method further comprises: The fourth appearance material of the virtual prop is replaced with the first appearance material.

12. The method according to any one of claims 1 to 5, characterized in that: The step of replacing the first appearance material of the virtual object with the second appearance material in response to the skill release operation further includes: When the state of the virtual object satisfies a skill release condition, the step of replacing the first appearance material of the virtual object with a second appearance material in response to the skill release operation is performed.

13. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the state of the virtual object satisfies the condition that the skill cannot be released, not responding to the skill release operation; The condition for being unable to release a skill includes at least one of the following: the virtual object is knocked down, the virtual object is climbing, the virtual object is rescuing or being rescued, and the virtual object is driving or riding a virtual vehicle.

14. A virtual object appearance control device, characterized in that: The device comprises: A display module, used for displaying a virtual object in a virtual environment, wherein the virtual object has a stealth capability; A receiving module, used for receiving a skill release operation for triggering the release of the stealth skill; A processing module is used to replace the first appearance material of the virtual object with a second appearance material in response to the skill release operation, where the second appearance material is determined based on the virtual environment where the virtual object is located.

15. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the appearance control method of a virtual object according to any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the appearance control method of a virtual object according to any one of claims 1 to 13.

17. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, the method for controlling the appearance of a virtual object as described in any one of claims 1 to 13 is implemented.