Display method, device, equipment, medium and program product of virtual object

By subdividing virtual props and calculating damage to multiple parts of virtual objects, and combining the effects of sub-attributes of each part, the problem of simple and inaccurate damage mechanism of virtual grenade props is solved, thus improving the damage accuracy of virtual objects and the gaming experience.

CN117180741BActive Publication Date: 2026-11-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210614755.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2026-11-24
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

The existing virtual grenade props have a relatively simple mechanism for damaging virtual objects, resulting in a single damage method and low accuracy, which negatively impacts the player's gaming experience.

Method used

By subdividing virtual props and calculating damage to multiple parts of a virtual object, and combining the effects of the sub-attributes of each part, the overall attribute impact of the virtual props on the virtual object is obtained.

Benefits of technology

It improves the accuracy of how virtual props affect virtual objects, enhancing the realism and interactivity of the game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117180741B_ABST
    Figure CN117180741B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, device, medium, and program product for displaying virtual objects, relating to the field of virtual scene technology. The method includes: when a first virtual object throws a virtual prop in a virtual scene, triggering a specified function of the virtual prop within its functional range; in response to a second virtual object being within its functional range, obtaining sub-attribute influence results corresponding to multiple object parts based on the positional relationships between multiple object parts of the second virtual object and the virtual prop; and fusing the sub-attribute influence results corresponding to the multiple object parts to obtain the attribute influence result of the second virtual object. By subdividing the attribute influence result of the virtual prop on the second virtual object, the granularity of the attribute influence result is improved, thereby increasing the accuracy of the virtual prop's influence on the virtual object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual scenes, and in particular to a method, apparatus, device, medium, and program product for displaying virtual objects. Background Technology

[0002] Applications that support virtual scenes can provide virtual props that can damage virtual objects, such as virtual grenades.

[0003] In related technologies, the mechanism by which virtual grenade props damage virtual objects is as follows: when a virtual grenade prop explodes at a designated location in a virtual scene, there is a corresponding blast radius. When a virtual object is within the blast radius, the virtual object's health value will decrease by the corresponding amount.

[0004] Among the aforementioned technologies, the damage mechanism of virtual grenade props is relatively simple, and the way they damage virtual objects is relatively singular; moreover, the accuracy of virtual grenade props in damaging virtual objects is low. Summary of the Invention

[0005] This application provides a method, apparatus, device, medium, and program product for displaying virtual objects, improving the accuracy of the influence of virtual props on virtual objects. The technical solution is as follows:

[0006] On the one hand, a method for displaying virtual objects is provided, the method comprising:

[0007] When the first virtual object throws a virtual prop in the virtual scene, the specified function of the virtual prop is triggered within the functional range of the virtual prop. The specified function is used to affect the attribute value of the virtual object within the functional range.

[0008] In response to the second virtual object being within the functional range, based on the positional relationship between multiple object parts of the second virtual object and the virtual prop, the sub-attribute influence results corresponding to the multiple object parts are obtained respectively, and the sub-attribute influence results are the influence results generated by the multiple object parts under the specified function respectively;

[0009] The sub-attribute influence results corresponding to the multiple object parts are fused to obtain the attribute influence result of the second virtual object. The attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

[0010] On the other hand, a method for displaying virtual objects is provided, the method comprising:

[0011] Display a second virtual object, which includes multiple object parts, and the second virtual object is the virtual object currently controlled by the terminal.

[0012] Displays virtual props thrown into a virtual scene. The virtual props are used to trigger a specified function within a functional range after being thrown into the virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional range.

[0013] The virtual item is displayed to trigger the specified function within the functional scope;

[0014] In response to the second virtual object being within the functional scope, the attribute influence result of the second virtual object is displayed, wherein the attribute influence result is a result obtained by combining the sub-attribute influence results corresponding to multiple object parts, and the sub-attribute influence result is the influence result generated by the multiple object parts under the specified function.

[0015] On the other hand, a display device for virtual objects is provided, the device comprising:

[0016] The triggering module is used to trigger a specified function of the virtual prop within the functional range of the virtual prop when the first virtual object throws a virtual prop in the virtual scene. The specified function is used to affect the attribute value of the virtual object within the functional range.

[0017] The acquisition module is used to, in response to the second virtual object being within the functional range, acquire the sub-attribute influence results corresponding to the multiple object parts based on the positional relationship between the multiple object parts of the second virtual object and the virtual prop, wherein the sub-attribute influence results are the influence results generated by the multiple object parts under the specified function.

[0018] The fusion module is used to fuse the sub-attribute influence results corresponding to the multiple object parts respectively to obtain the attribute influence result of the second virtual object. The attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

[0019] On the other hand, a display device for virtual objects is provided, the device comprising:

[0020] The display module is used to display a second virtual object, which includes multiple object parts. The second virtual object is the virtual object currently controlled by the terminal.

[0021] The display module is also used to display virtual props thrown into the virtual scene. The virtual props are used to trigger a specified function within the functional range after being thrown into the virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional range.

[0022] The display module is also used to display that the virtual prop triggers the specified function within the functional range;

[0023] The display module is further configured to display the attribute influence result of the second virtual object in response to the second virtual object being within the functional range, wherein the attribute influence result is a result obtained by combining the sub-attribute influence results corresponding to multiple object parts, and the sub-attribute influence result is the influence result generated by the multiple object parts under the specified function.

[0024] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the virtual object display method described in any of the embodiments of this application.

[0025] On the other hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded and executed by a processor to implement a method for displaying virtual objects as described in any of the embodiments of this application.

[0026] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the virtual object display methods described in the embodiments of this application.

[0027] The beneficial effects of the technical solutions provided in this application include at least the following:

[0028] The second virtual object comprises multiple object parts. When a virtual prop thrown into the virtual scene triggers a specified function within its functional range, if the second virtual object is within that range, the virtual prop affects each of the second virtual object's multiple object parts, resulting in multiple sub-attribute influence results. Finally, the influence results of these multiple sub-attributes are combined to determine the virtual prop's attribute influence on the second virtual object. By subdividing the virtual prop's influence on the second virtual object's attributes, the granularity of the attribute influence results is improved, thereby increasing the accuracy of the virtual prop's influence on the virtual object. Attached Figure Description

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

[0030] Figure 1 This is a schematic diagram illustrating the process of a virtual object display method provided in an exemplary embodiment of this application;

[0031] Figure 2 This is a schematic diagram of an implementation environment provided by an exemplary embodiment of this application;

[0032] Figure 3 This is a flowchart of a virtual object display method provided in an exemplary embodiment of this application;

[0033] Figure 4 This is a schematic diagram illustrating a specified scope provided by an exemplary embodiment of this application;

[0034] Figure 5 This is a schematic diagram illustrating a specified range provided by another exemplary embodiment of this application;

[0035] Figure 6 This is a schematic diagram illustrating a specified range provided by another exemplary embodiment of this application;

[0036] Figure 7 This is a schematic diagram of an attribute value box provided in an exemplary embodiment of this application;

[0037] Figure 8 This is a schematic diagram of a virtual character identifier provided in an exemplary embodiment of this application;

[0038] Figure 9 This is a flowchart of a method for displaying virtual objects provided in another exemplary embodiment of this application;

[0039] Figure 10This is a schematic diagram of an interface where there is an obstacle between the first object part and the virtual prop, provided in an exemplary embodiment of this application;

[0040] Figure 11 This is a flowchart of a method for displaying virtual objects provided in another exemplary embodiment of this application;

[0041] Figure 12 This is a schematic diagram of the interface for connecting skeletal points provided in an exemplary embodiment of this application;

[0042] Figure 13 This is a schematic diagram of the projection of a second virtual object within a functional scope provided in an exemplary embodiment of this application;

[0043] Figure 14 This is a schematic diagram of the projection of a second virtual object within a functional scope, provided in another exemplary embodiment of this application;

[0044] Figure 15 This is a schematic diagram of the projection of a second virtual object within a functional scope, provided in another exemplary embodiment of this application;

[0045] Figure 16 This is a flowchart of a method for displaying virtual objects provided in another exemplary embodiment of this application;

[0046] Figure 17 This is a projection diagram of different postures provided in an exemplary embodiment of this application;

[0047] Figure 18 This is a flowchart of a method for displaying virtual objects provided in another exemplary embodiment of this application;

[0048] Figure 19 This is a schematic diagram of an exemplary embodiment of the first aid effect identifier and the first aid range identifier provided in this application;

[0049] Figure 20 This is a complete flowchart of a virtual object display method provided in an exemplary embodiment of this application;

[0050] Figure 21 This is a schematic diagram of an interface illustrating a virtual object display method provided in an exemplary embodiment of this application;

[0051] Figure 22 This is a schematic diagram of the interface for a method of displaying virtual objects provided in another exemplary embodiment of this application;

[0052] Figure 23 This is a schematic diagram of the projection plane provided in another exemplary embodiment of this application;

[0053] Figure 24This is a structural block diagram of a virtual object display device provided in an exemplary embodiment of this application;

[0054] Figure 25 This is a structural block diagram of a virtual object display device provided in another exemplary embodiment of this application;

[0055] Figure 26 This is a structural block diagram of a virtual object display device provided in another exemplary embodiment of this application;

[0056] Figure 27 This is a structural block diagram of a computer device provided in an exemplary embodiment of this application. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0058] In this application, the terms "first" and "second" are used to distinguish between identical or similar items that have essentially the same function. It should be understood that there is no logical or temporal dependency between "first" and "second", nor is there any limitation on the quantity or execution order.

[0059] In applications that support virtual scenes, let's take shooting games as an example. The game provides players with virtual grenade props. When a player throws a virtual grenade, it explodes and damages virtual objects within the blast radius.

[0060] In related technologies, when virtual objects are not equipped with any protective gear, the damage caused by virtual grenades is fixed, and the damage mechanism is relatively simple. That is, as long as the virtual object is within the blast radius, it will suffer fixed damage. This mechanism is relatively simple and crude, resulting in a poor gaming experience for players.

[0061] The virtual object display method provided in this application provides players with a new way to use virtual items. The following description uses the virtual object display method provided in this application as an example in a game scene:

[0062] Taking a shooting game as an example, in the game, virtual character A and virtual character B are in a competitive relationship. When virtual character B throws a virtual grenade near virtual character A, it triggers an explosion. At this time, virtual character A's game interface will display the explosion animation of the virtual grenade. Simultaneously, the server will calculate the specific explosion damage received by virtual character A based on virtual character A's position in the virtual scene and the position of the virtual grenade when it explodes.

[0063] This is illustrative; please refer to it. Figure 1 In the game interface 100, the second virtual object is a virtual character 101, which includes multiple body parts such as hands, feet, head, waist, abdomen, and chest. When a virtual grenade is thrown near virtual character 101, the game interface 110 displays an explosion animation of the virtual grenade 111. At this time, since virtual character 112 (the same virtual character as virtual character 101) is within the explosion range of the virtual grenade 111, the virtual grenade 111 will damage virtual character 112. The damage mechanism is as follows: the total damage value to virtual character 112 is determined by combining the sub-damage values ​​of the virtual grenade 111 on each body part of virtual character 112, and the damage value of the virtual grenade 111 on each body part is calculated separately. Optionally, the total damage value 113 of the virtual grenade 111 on virtual character 112 is finally displayed in the game interface 110.

[0064] Figure 2 This is a schematic diagram of an implementation environment provided by an exemplary embodiment of this application, such as... Figure 2 As shown, the implementation environment includes a first terminal 201, a second terminal 202, and a server 210. The first terminal 201 and the server 210 are connected through a communication network 220; the second terminal 202 and the server 210 are connected through a communication network 220.

[0065] The first terminal 201 has a target application 203 that supports virtual scenes installed and running. Optionally, the first terminal 201 has a first account corresponding to the second virtual object logged in. When the first terminal 201 runs the target application 203, the virtual scene of the target application 203 is displayed on the screen of the first terminal 201, and the first terminal 201 can control the second virtual object. The second terminal 202 has a target application 204 that supports virtual scenes installed and running. Optionally, the second terminal 202 has a second account corresponding to the first virtual object logged in. When the second terminal 202 runs the target application 204, the virtual scene of the target application 204 is displayed on the screen of the second terminal 202, and the second terminal 202 can control the first virtual object.

[0066] In some optional embodiments, the target application 203 running in the first terminal 201 and the target application 204 running in the second terminal 202 are the same application, in which case the second virtual object and the first virtual object can be displayed in the same virtual scene. The target application 203 and the target application 204 can be any of the following: virtual reality application, first-person shooter (FPS) game, third-person shooter (TPS) game, multiplayer online battle arena (MOBA) game, massively multiplayer online role-playing game (MMORPG), etc., and this application embodiment does not limit this.

[0067] Optionally, target applications 203 and 204 provide control functions for virtual items and display functions for virtual objects. Taking as an example that target applications 203 and 204 are implemented as the same first-person shooter game, and the virtual items are implemented as virtual grenades, the first account and the second account are in the same game, and the first account and the second account are adversaries. Figure 2 As shown:

[0068] (1) Throwing operation of virtual grenade props.

[0069] The virtual scene 205 of the first-person shooter game currently running on the second terminal 202 provides virtual grenade props. The second terminal 202 receives the throwing operation of the virtual grenade props and sends the throwing operation to the server 210. The server 210 receives the throwing operation of the virtual grenade props and feeds back the first throwing interface rendering data to the first terminal 201 and the second throwing interface rendering data to the second terminal 202.

[0070] When the second terminal 202 receives the rendering data from the second throwing interface, it displays a virtual scene 206 on the interface of the second terminal 202. The virtual scene 206 displays an animation of a grenade being thrown and an explosion animation triggered by the grenade.

[0071] (2) Attributes affect the result display request.

[0072] Upon receiving the rendering data from the first throwing interface, the first terminal 201 displays a virtual scene 207 on its interface, showing an explosion animation triggered by a grenade. Simultaneously, the first terminal 201 sends an attribute influence result display request to the server 210, which includes the current position data of the second virtual object and the virtual grenade prop.

[0073] Upon receiving the attribute impact result display request, server 210 retrieves the functional range corresponding to the virtual grenade prop and, based on the current position data of the second virtual object and the virtual grenade prop, determines whether the second virtual object is within the explosion range of the virtual grenade prop. If the second virtual object is within the explosion range, it retrieves the damage data of multiple parts of the second virtual object caused by the virtual grenade prop. Finally, it combines the damage data of multiple parts of the second virtual object caused by the virtual grenade prop to obtain the total damage data of the second virtual object caused by the virtual grenade prop, and obtains the attribute impact result display data of the second virtual object based on the total damage data. This attribute impact result display data is then sent to the first terminal 201. Upon receiving the attribute impact result display data, the first terminal 201 displays a screen 208 showing the second virtual object's health points decreasing.

[0074] Optionally, the first terminal 201 and the second terminal 202 can be smartphones, tablets, desktop computers, laptops, smart home appliances, vehicle terminals, aircraft, etc., but are not limited to these.

[0075] In some optional embodiments, server 210 is used to provide background services for target applications installed on the first terminal 201 and the second terminal 202. It is worth noting that server 210 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0076] Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Based on the cloud computing business model, cloud technology encompasses network technology, information technology, integration technology, management platform technology, and application technology. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to a backend system for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing. Optionally, server 210 can also function as a node in a blockchain system.

[0077] In some optional embodiments, the communication network 220 may be a wired network or a wireless network, and this application embodiment does not limit this.

[0078] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the attribute data involved in this application were obtained with full authorization.

[0079] Based on the above introduction and implementation environment, let's take the example of a virtual object throwing virtual props in a virtual scene. Figure 3 This is a flowchart illustrating a method for displaying a virtual object according to an embodiment of this application, which is applied to, for example... Figure 2 Taking the terminal shown as an example, the method includes:

[0080] Step 301: Display the second virtual object.

[0081] The second virtual object includes multiple object parts, and the second virtual object is the virtual object controlled by the current terminal.

[0082] Optionally, the target application is installed and running on the current terminal, and a first account is logged in in the target application. The target application is an application that supports virtual scenes. The target application includes any one of the following: first-person shooter game, third-person shooter game, multiplayer online tactical competitive game, massively multiplayer online role-playing game, etc. This application embodiment does not limit this.

[0083] A virtual scene is a scene displayed when the target application runs on a terminal. Optionally, the virtual scene may also include at least one of virtual sky, virtual land, and virtual ocean, wherein virtual land includes environmental elements such as deserts and cities. Optionally, taking a first-person shooter game as an example, the second virtual object may be a virtual character in the virtual scene controlled by the first account, or it may be a virtual vehicle in the virtual scene controlled by the first account.

[0084] An object part refers to a partial structure of a second virtual object, which includes multiple object parts. For example, if the second virtual object is a virtual character, the multiple object parts include at least one of the virtual character's left arm, right arm, left leg, right leg, head, chest, and abdomen; if the second virtual object is a virtual vehicle, the multiple object parts include at least one of the virtual vehicle's body, wheels, engine, and fuel tank.

[0085] Optionally, the number of object parts included in a second virtual object is greater than or equal to 2. That is, the second virtual object is composed of at least two object parts. For example, if the second virtual object is a virtual character, then the virtual character is composed of at least an upper body part and a lower body part.

[0086] Optionally, the first account can control the second virtual object to move in the virtual scene, such as walking, running, jumping, crouching, standing up, flying, gliding, etc.; the first account can also control the second virtual object to release skills in the virtual scene, such as punching, shooting, throwing, switching items, reloading, etc.

[0087] Step 302: Display the virtual props that have been thrown into the virtual scene.

[0088] Virtual props are used to trigger a specified function within a functional area after being thrown in a virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional area.

[0089] The attribute values ​​include at least one of the following: health points, energy points, attack power, attack speed, movement speed, etc., and this application embodiment does not limit them.

[0090] Optionally, the virtual scene also includes a first virtual object controlled by a second account, where the second account is an account logged into the target application on the second terminal. The second account can be either an adversary of the first account or a cooperative account. For example, assuming the target application is implemented as a first-person shooter game, the first and second accounts may be in the same team, fighting cooperatively; or the first and second accounts may belong to different teams and be adversaries.

[0091] Optionally, the virtual prop is a prop thrown into the virtual scene by the second virtual object, or the virtual prop is a prop thrown into the virtual scene by the first virtual object. This application embodiment does not limit this.

[0092] Optionally, the virtual props are thrown onto the ground in the virtual scene; or, thrown into the air in the virtual scene; or, thrown onto a virtual object. This application embodiment does not limit this.

[0093] The specified function refers to the functional effect that a virtual item performs when triggered. Optionally, the specified function includes at least one of the following functions:

[0094] 1. The specified function is used to produce a detrimental effect on the attribute values ​​of virtual objects within the function's scope.

[0095] In illustrative terms, the virtual prop can be implemented as a virtual grenade prop. When the virtual grenade prop triggers an explosion effect, that is, when the specified function is performed, the attribute values ​​of virtual objects within the explosion range of the virtual grenade prop will be reduced, such as: reduced health, obstructed vision, decreased hearing, decreased movement speed, slowed attack speed, and reduced critical hit rate. This application embodiment does not limit this.

[0096] 2. The specified function is used to produce a gain effect on the attribute values ​​of virtual objects within the function's scope.

[0097] In illustrative terms, the virtual prop can be implemented as a virtual first aid prop. When the virtual first aid prop triggers the first aid effect, that is, the specified function, the attribute values ​​of the virtual objects within the first aid range of the virtual first aid prop will be increased, such as: increased health, restored vision, restored hearing, increased movement speed, increased attack speed, increased critical hit rate, etc. This application embodiment does not limit this.

[0098] 3. The specified function is also used to restrict the actions of virtual objects within the function's scope.

[0099] For illustrative purposes, the virtual prop can be implemented as a virtual anesthesia prop. When the virtual anesthesia prop triggers its anesthesia effect, i.e., its designated function, virtual objects within the anesthesia range of the virtual anesthesia prop cannot move within the virtual scene, nor can they perform any skills. Optionally, the virtual anesthesia prop has a corresponding anesthesia duration, and the anesthesia effect includes at least one of the following:

[0100] Scenario 1: When the virtual anesthesia prop is triggered, the timer starts. During the anesthesia period, the effect of the anesthesia on the virtual object is fixed. That is, the virtual object cannot move during the anesthesia period, or its movement ability is greatly reduced, and it cannot use any skills.

[0101] Scenario 2: The timer starts when the virtual anesthesia prop is triggered. During the anesthesia period, the effect of the anesthesia on the virtual prop gradually weakens. For example, the virtual anesthesia prop is triggered at 0 seconds and the anesthesia lasts for 2 seconds. From 0 to 1 second, the virtual object cannot move at all and cannot use any skills. From 1 to 2 seconds, the virtual object regains the ability to walk and can use simple skills (such as boxing). After 2 seconds, the virtual object returns to its state before anesthesia.

[0102] Scenario 3: The timer starts when the virtual anesthesia prop is triggered. During the anesthesia period, the effect of the anesthesia on the virtual prop gradually increases. For example, the virtual anesthesia prop is triggered at 0 seconds and the anesthesia lasts for 2 seconds. From 0 to 1 second, the virtual object cannot run or move and cannot use prop skills (e.g., using virtual medicine to restore health). From 1 to 2 seconds, the virtual object cannot move at all and cannot use any skills. After 2 seconds, the virtual object returns to its state before anesthesia.

[0103] 4. The specified function is also used to change the appearance of virtual objects within the function's scope.

[0104] In a illustrative sense, virtual props can function as virtual transformation props. When a virtual transformation prop triggers a transformation effect, i.e., a specified function, the appearance of virtual objects within the transformation range of the virtual transformation prop in the virtual scene will change. For example, a virtual vehicle can be transformed into a smaller version of a virtual vehicle, or equipment can be added to a virtual character.

[0105] Optionally, the functional scope refers to the range within the virtual scene that a specified function triggered by a virtual item can affect, and the functional scope includes at least one of the following ranges:

[0106] 1. The functional range of a virtual prop is defined by a circle centered on the location where it is triggered and with a preset distance as the radius.

[0107] This is illustrated by the example of virtual props being thrown onto the ground in a virtual scene. Figure 4As shown, in the virtual scene 400, the virtual prop 401 is triggered at point A on the ground. The functional range of the virtual prop 401 is circle 402. The virtual object 403 is in circle 402, so the virtual object 403 is within the functional range of the virtual prop 401.

[0108] 2. The functional range of the virtual prop is defined by the interior of a cylinder with the virtual prop's trigger location as its center, a first preset distance as its radius, and a second preset distance as its height.

[0109] This is illustrated by the example of virtual props being thrown into the air within a virtual scene, such as... Figure 5 As shown, in the virtual scene 500, the virtual prop 501 is triggered at point B in the air. The functional range of the virtual prop 501 is the interior of the cylinder 502. Therefore, the second virtual object 503 on the ground and the first virtual object 504 in the air are both within the functional range of the virtual prop 501.

[0110] 3. The functional range of the virtual prop is defined by a sector centered on the location where the virtual prop is triggered, with a preset angle as the central angle and a preset distance as the radius.

[0111] This is illustrated by the example of virtual props being thrown onto the ground in a virtual scene. Figure 6 As shown, in the virtual scene 600, the virtual prop 601 is triggered at point C on the ground. The functional range of the virtual prop 601 is sector 602. The virtual object 603 is in sector 602, so the virtual object 603 is within the functional range of the virtual prop 601.

[0112] It should be noted that the above examples of functional scope are merely illustrative examples, and the embodiments of this application do not limit them.

[0113] In some optional embodiments, the virtual scene also displays sub-attributes corresponding to multiple object parts of the second virtual object. That is, each object part of the second virtual object has its own corresponding attribute, such as health points.

[0114] Step 303: Display the virtual props triggering the specified function within their functional scope.

[0115] Optionally, when a virtual item triggers a specified function, a specified animation is displayed within the function's range, and the specified animation matches the specified function. For example, when a virtual grenade item triggers explosion damage, an explosion animation is displayed within the function's range.

[0116] Optionally, the trigger location for a virtual item may be the same as the location where it is thrown; or, the trigger location may not be the same as the location where it is thrown. For illustrative purposes, the trigger location may not be the same as the throwing location. Specifically, when a virtual object throws a virtual item onto the ground in a virtual scene, it can be considered to have been thrown to the landing point, which is the throwing location. However, if the virtual item is not triggered immediately upon landing, it may move forward a certain distance before triggering. In this case, the trigger location is not the same as the throwing location.

[0117] Optionally, the triggering method for the specified function mentioned above includes at least one of the following methods:

[0118] 1. When a virtual item is thrown to a designated location, the specified function is triggered.

[0119] Indicatively, the first virtual character throws a virtual grenade into the virtual scene, and when the virtual grenade comes into contact with the ground in the virtual scene, it immediately triggers an explosion and causes damage; or, the first virtual character positions and throws a virtual grenade at the second virtual character, and when the virtual grenade comes into contact with the second virtual character, it immediately triggers an explosion and causes damage.

[0120] 2. Virtual items have corresponding trigger times. When a virtual item is thrown, the timer starts. When the trigger time is reached, the specified function is triggered.

[0121] For illustrative purposes, the virtual grenade prop has a trigger time of 3 seconds. At 0 seconds, the first virtual character throws the virtual grenade prop, and at 3 seconds, the virtual grenade prop triggers an explosion and deals damage.

[0122] 3. When a virtual prop is thrown into the virtual scene, the virtual object can choose whether to trigger the event.

[0123] In a demonstrative sense, the first virtual character throws a virtual grenade onto the ground in the virtual scene. When the first virtual character clicks the explosion button, the virtual grenade triggers an explosion and deals damage; or, the first virtual character steps on the virtual grenade, which triggers an explosion and deals damage.

[0124] It should be noted that the above examples of triggering methods for specified functions are merely illustrative examples, and the embodiments of this application do not limit them.

[0125] In some optional embodiments, a scope indicator is also displayed in the virtual scene. (Illustrative, such as...) Figure 4As shown, the functional range of virtual prop 401 is circle 402, and the functional range is marked by the circumference line 404. If virtual prop 401 is thrown on the ground but has not yet been triggered, the circumference line 404 can be highlighted to remind virtual object 403 of the functional range of virtual prop 401.

[0126] Step 304: In response to the second virtual object being within the functional scope, display the result of the second virtual object's attribute influence.

[0127] Among them, the attribute influence result is the result obtained by combining the influence results of the sub-attributes corresponding to multiple object parts. The sub-attribute influence result is the influence result generated by multiple object parts under the specified function.

[0128] In some optional embodiments, the second virtual object corresponds to an object identifier point, which represents the second virtual object. When the object identifier point is within the functional range, it means that the second virtual object is within the functional range. Schematic, the above-mentioned object identifier point is the central skeleton point of the second virtual object. When the central skeleton point of the second virtual object is within the functional range, it means that the second virtual object is within the functional range.

[0129] In some optional embodiments, the second virtual object includes multiple object parts, each corresponding to an object part skeletal point. The existence of at least one object part skeletal point within the functional range indicates that the second virtual object is within the functional range. For example, the second virtual object's head skeletal point being within the functional range signifies that the second virtual object is within the functional range.

[0130] In some optional embodiments, the fusion result of the sub-attribute influence results corresponding to multiple object parts is displayed as the attribute influence result of the second virtual object; or, the sub-attribute influence results corresponding to multiple object parts are displayed separately as the attribute influence result of the second virtual object.

[0131] Optionally, if the sub-attribute influence results corresponding to multiple object parts are displayed separately as the attribute influence results of the second virtual object, then the above-mentioned display of the attribute influence results of the second virtual object further includes:

[0132] First, in response to the second virtual object being within the functional range, when the first object part of the second virtual object and the virtual prop are in a first positional relationship, the first sub-attribute influence result of the first object part is displayed.

[0133] The first positional relationship refers to the existence of obstacles between the object part and the virtual prop.

[0134] Optionally, in response to the second virtual object being within the functional range, if there is an obstacle between the first object part of the second virtual object and the virtual prop, the result of the first object part avoiding the sub-attribute influence of the specified function is displayed.

[0135] Indicatively, when a virtual grenade explodes, if the virtual character is within the blast radius and there is an obstacle between the virtual character's left arm and the virtual grenade, the screen will show the virtual character's left arm remaining unaffected, such as the virtual character's left arm staying still, meaning the virtual character's left arm avoids the effects of the virtual grenade explosion.

[0136] Second, in response to the second virtual object being within the functional range, when the second object part of the second virtual object and the virtual prop are in a second positional relationship, the effect of the second sub-attribute of the second object part is displayed.

[0137] The second positional relationship refers to the absence of obstacles between the object part and the virtual prop.

[0138] Optionally, when the second object part among multiple object parts is connected to the virtual prop, the sub-attribute influence result of the second object part under the influence of the specified function is displayed.

[0139] Indicatively, when a virtual grenade explodes, if the virtual character is within the blast radius and there are no obstacles between the virtual character's head and the virtual grenade, the screen will show the virtual character's head being attacked, such as the virtual character's head tilting back.

[0140] The display of results affected by attributes includes at least one of the following:

[0141] 1. Display the result of the attribute value change of the second virtual object as the result of attribute influence.

[0142] Taking the implementation of the second virtual object as a virtual character and the virtual prop as a virtual grenade prop as an example, the display method of the attribute value change result includes at least one of the following methods:

[0143] Method 1: Directly display the numerical changes in attribute values.

[0144] For illustration purposes, when a virtual character is within the blast radius of a virtual grenade, and the grenade inflicts 20 points of damage to the character's left arm, 10 points of damage to the right arm, and 30 points of damage to the head, but does not inflict damage to the character's left leg, right leg, abdomen, or chest, then the total damage (i.e., the attribute effect) inflicted by the virtual grenade is 60 points. In this case, a "Health -60" message will be displayed around the virtual character.

[0145] Method 2: Display the changing attribute value box.

[0146] Indicative, such as Figure 7 As shown, when the virtual character is not damaged by the virtual grenade explosion, the black-filled area in the virtual character's health bar 701 is 100%, indicating that the virtual character's health is 100 points. When the virtual character is within the explosion range of the virtual grenade, the virtual grenade deals 20 points of health damage to the virtual character's left arm, 10 points of health damage to the right arm, and 30 points of health damage to the head, but does not deal any health damage to the virtual character's left leg, right leg, abdomen, or chest. In this case, the health damage (i.e., the attribute effect result) caused by the virtual grenade to the virtual character is 60 points. At this time, the black-filled area in the virtual character's health bar 702 is 40%, indicating that the virtual character's health is 40 points.

[0147] It is worth noting that when the second virtual object is within the functional scope, it can display only the numerical change of attribute values; it can display only the changed attribute value box; or it can display both the numerical change of attribute values ​​and the changed attribute value box at the same time.

[0148] 2. Display the appearance changes of the second virtual object as an attribute effect result.

[0149] Taking the implementation of the second virtual object as a virtual character and the virtual prop as a virtual grenade prop as an example, the display method of the appearance change result includes at least one of the following methods:

[0150] Method 1: Directly display the appearance changes of the second virtual object.

[0151] Optionally, the appearance of the second virtual object is displayed based on the attribute values ​​of the second virtual object. For example, when the virtual character's head has 100 health points (full health), the head is displayed normally (completely healthy); when the virtual character's head has 50 health points, the head is displayed as injured.

[0152] Optionally, the above injury display corresponds to an injury level, and the injury display is different for different injury levels. The first injury level corresponds to the second virtual object's health value of [0, 10); the second injury level corresponds to the second virtual object's health value of [10, 50); and the third injury level corresponds to the second virtual object's health value of [50, 100).

[0153] For illustrative purposes, when the virtual character is not damaged by the virtual grenade explosion, all parts of the virtual character are displayed normally, meaning each part has 100 health points (full health). When the virtual character is within the blast radius of the virtual grenade, if the grenade causes 20 health points of damage to the left arm, the left arm will be displayed as the third level of injury; if it causes 10 health points of damage to the right arm, the right arm will be displayed as the third level of injury; if it causes 60 health points of damage to the head, the head will be displayed as the second level of injury; if the grenade does not cause any health points of damage to the left leg, right leg, abdomen, or chest, the left leg, right leg, and chest will still be displayed normally.

[0154] Method 2: Display the changes to the appearance identifier of the second virtual object.

[0155] Optionally, the display of the appearance identifier of the second virtual object corresponds to the appearance of the second virtual object.

[0156] Indicative, such as Figure 8 As shown, when the virtual character is not damaged by the virtual grenade explosion and all parts of the virtual character have 100 health points (full health), virtual character identifier 801 only displays the outline of the virtual character without any color fill, indicating that the virtual character has not yet taken any damage. When the virtual character is within the blast radius of the virtual grenade, if the head of the virtual character takes 20 health points of damage, a red indicator will flash above the head of virtual character identifier 802 to indicate that the head of virtual character identifier 802 has been damaged. If the head of the virtual character takes 91 health points of damage, a red indicator will be displayed directly above the head of virtual character identifier 802 to indicate that the head injury is severe. Optionally, the virtual character will die within 10 seconds at this point. It should be noted that virtual character identifier 802 and virtual character identifier 801 correspond to the same virtual character.

[0157] It should be noted that the above examples of displaying the effects of attributes are merely illustrative examples, and the embodiments of this application do not limit this.

[0158] In summary, the virtual object display method provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual prop thrown into a virtual scene triggers a specified function within its functional range, if the second virtual object is within the functional range, the virtual prop affects the multiple object parts of the second virtual object respectively, thereby obtaining multiple sub-attribute influence results. Finally, the attribute influence result of the virtual prop on the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence result of the virtual prop on the second virtual object, the granularity of the attribute influence result is improved, thereby increasing the accuracy of the virtual prop's influence on the virtual object.

[0159] Figure 9 This is a flowchart illustrating a method for displaying a virtual object according to an embodiment of this application. This method can be applied to, for example... Figure 2 The terminal shown can also be applied to, for example... Figure 2 In the server shown, this method is applied to, for example... Figure 2 Taking the server shown as an example, the method includes:

[0160] Step 901: When the first virtual object throws a virtual prop in the virtual scene, the specified function of the virtual prop is triggered within the functional range of the virtual prop.

[0161] The specified function is used to affect the property values ​​of virtual objects within the function's scope.

[0162] The attribute values ​​include at least one of the following: health points, energy points, attack power, attack speed, movement speed, etc., which are not limited in this embodiment.

[0163] Optionally, the aforementioned virtual scene is a scene displayed when the target application runs on the terminal, and the first virtual object is a virtual object that throws virtual props in the virtual scene. Illustratively, when the first virtual object throws virtual props in the virtual scene, the terminal controlling the first virtual object sends a throwing command to the server. This throwing command includes specified function data and function range data of the virtual prop. Upon receiving the throwing command, the server triggers the specified function of the virtual prop within its function range.

[0164] In some optional embodiments, the specified function is a momentary function, that is, the specified function will affect the virtual objects within the function's scope for a moment when it is triggered, and will not have any effect after the triggering ends.

[0165] In some optional embodiments, the specified function is a persistent function, that is, the specified function can affect the virtual objects within the scope of the function for a period of time, and the specified function will only become invalid after a period of time.

[0166] Optionally, when the specified function is a continuous function, the specified function includes a first-stage function and a second-stage function. The effects of the first-stage function and the second-stage function are different. For example, using a virtual grenade as an illustration, the virtual grenade inflicts first-stage damage (the first-stage function) upon explosion. This first-stage damage lasts for 1 second. Within 0-1 second of the explosion, virtual objects within the blast radius will suffer first-stage damage, typically health damage. One second after the explosion, the virtual grenade inflicts second-stage damage, lasting for 2 seconds. If the virtual object has not left the blast radius by the second second, it will suffer second-stage damage (the second-stage function). This second-stage damage can be a small amount of health damage, or it can reduce the virtual object's speed, disable skills, or cause equipment to drop (in this state, the virtual object cannot pick up passively dropped equipment). It is worth noting that the explosion effect of the virtual grenade is continuous. If another virtual object enters the blast radius 2 seconds after the explosion, that virtual object will suffer a second stage of damage.

[0167] Step 902: In response to the second virtual object being within the functional range, based on the positional relationship between multiple object parts of the second virtual object and the virtual prop, obtain the sub-attribute influence results corresponding to each of the multiple object parts.

[0168] Among them, the sub-attribute influence result is the influence result of multiple object parts under the specified function.

[0169] Optionally, the second virtual object mentioned above is a virtual object within the functional scope of the virtual prop. It should be noted that the first virtual object and the second virtual object can be the same virtual object.

[0170] To illustrate this, let's take a virtual grenade as an example and a virtual character as the second virtual object. When the virtual grenade triggers an explosion, if the virtual character is within the explosion range, it is necessary to analyze the positional relationship between the various parts of the virtual character's body and the virtual grenade in order to obtain the injury status of multiple body parts of the virtual character.

[0171] In some optional embodiments, the above positional relationship includes a first positional relationship and a second positional relationship, wherein the first positional relationship refers to the existence of an obstacle between the virtual prop and the object part; and the second positional relationship refers to the existence of no obstacle between the virtual prop and the object part.

[0172] This example illustrates the concept of using a virtual grenade as a virtual prop and a virtual character as a secondary virtual object. Figure 10As shown, when the virtual grenade prop 1001 explodes on the ground, and the virtual character 1002 is within the explosion range 1003, it is determined whether there are obstacles between multiple body parts of the virtual character 1002 and the virtual grenade prop. If there are obstacles, the body parts and the virtual grenade prop have a first positional relationship; if there are no obstacles, the body parts and the virtual grenade prop have a second positional relationship.

[0173] Step 903: The sub-attribute influence results corresponding to multiple object parts are fused to obtain the attribute influence results of the second virtual object.

[0174] Among them, the attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

[0175] In some optional embodiments, the above-described methods for obtaining the attribute influence results of the second virtual object include at least one of the following:

[0176] 1. Sum the sub-attribute influence results corresponding to multiple object parts to obtain the attribute influence result of the second virtual object.

[0177] To illustrate, let's take a virtual grenade as an example and a virtual character as the second virtual object. We obtain the damage value of the virtual grenade to each body part of the virtual character, and add up the damage values ​​of each body part to obtain the total damage value of the virtual grenade to the virtual character.

[0178] 2. The influence results of the sub-attributes corresponding to the multiple object parts are weighted and summed to obtain the attribute influence results of the second virtual object.

[0179] Optionally, the sub-attribute influences the result with a weight coefficient, the value range of which is [0,1), and the sum of the weight coefficients of multiple object parts is in the range of (0,1).

[0180] To illustrate, let's take a virtual grenade as an example and a virtual character as the second virtual object. We obtain the damage value of the virtual grenade to each body part of the virtual character, obtain the weight coefficient of each body part, multiply the weight coefficient by the corresponding damage value of the body part, and add up the weighted damage values ​​of each body part to obtain the total damage value of the virtual grenade to the virtual character.

[0181] In summary, the virtual object display method provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual prop thrown into a virtual scene triggers a specified function within its functional range, if the second virtual object is within the functional range, the virtual prop affects the multiple object parts of the second virtual object respectively, thereby obtaining multiple sub-attribute influence results. Finally, the attribute influence result of the virtual prop on the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence result of the virtual prop on the second virtual object, the granularity of the attribute influence result is improved, thereby increasing the accuracy of the virtual prop's influence on the virtual object.

[0182] In related technologies, when a virtual prop triggers a specified function, if the virtual object is not within the functional range of the virtual prop, it is not affected by the specified function. Even if the virtual object is within the functional range of the virtual prop, if one part of the virtual object is blocked by an obstacle, the virtual object as a whole will not be affected by the virtual prop. Therefore, the assessment of the attack capability of virtual props in related technologies is relatively coarse. However, the virtual object display method provided in this application obtains the sub-attribute influence results of multiple object parts by separately determining whether there are obstacles between multiple object parts and the virtual prop. The judgment process for each sub-attribute influence result is independent, meaning that the acquisition process of the sub-attribute influence results does not interfere with each other. Furthermore, the sub-attribute influence results are merged by summation or weighted summation to obtain the attribute influence result. By subdividing the attribute influence result, the accuracy and detail of triggering the specified function of the virtual prop are improved, enhancing the user experience.

[0183] Figure 11 This is a flowchart illustrating a method for displaying a virtual object according to an embodiment of this application. This method can be applied to, for example... Figure 2 The terminal shown can also be applied to, for example... Figure 2 In the server shown, this method is applied to, for example... Figure 2 Taking the server shown as an example, the method includes:

[0184] Step 1101: When the first virtual object throws a virtual prop in the virtual scene, the specified function of the virtual prop is triggered within the functional range of the virtual prop.

[0185] The specified function is used to affect the property values ​​of virtual objects within the function's scope.

[0186] The attribute values ​​include at least one of the following: health points, energy points, attack power, attack speed, movement speed, etc., and this application embodiment does not limit them.

[0187] Step 1102: In response to the second virtual object being within the functional range, and in the case where there is an obstacle between the first object part and the virtual prop among multiple object parts, determine that the first object part avoids the sub-attribute influence generated by the specified function.

[0188] Optionally, avoiding the influence of the specified function of the virtual item on its sub-attributes means that the influence of the specified function of the virtual item on the sub-attribute values ​​it generates is 0.

[0189] In some optional embodiments, the method for determining the existence of an obstacle between the object part and the virtual prop includes:

[0190] Create skeletal points connecting the virtual prop to the location where it is thrown, corresponding to the multiple object parts; in response to the first object part being blocked, determine that there is an obstacle between the first object part and the virtual prop.

[0191] Indicative, such as Figure 12 As shown, the virtual character 1201 includes seven key body parts: left arm, right arm, head, chest, left leg, right leg, and abdomen. The virtual grenade prop is thrown at point A. Lines 1202, 1203, 1204, 1205, 1206, 1207, and 1208 are created connecting point A to the left arm bone point, right arm bone point, head bone point, chest bone point, left leg bone point, right leg bone point, and abdomen bone point. Lines 1202, 1203, 1204, 1205, and 1208 are blocked by obstacles, indicating that there are obstacles between the virtual character 1201's left arm, right arm, head, chest, abdomen, and the virtual grenade prop.

[0192] In some optional embodiments, if the obstacle between the first object part and the virtual prop corresponds to an obstacle attribute, then the process of determining the sub-attribute influence of the first object part further includes:

[0193] First, when there are obstacles between the first object and the virtual prop, obtain the obstacle attributes of the obstacles.

[0194] Optionally, the aforementioned obstacles include brick walls, iron walls, trees, vehicles, fences, mounds of earth, haystacks, etc. in the virtual scene, and this application embodiment does not limit them.

[0195] In some alternative embodiments, the obstacle includes a virtual wall that occludes the first object portion, and the obstacle attribute of the virtual wall includes a wall damage occlusion limit.

[0196] This is an illustrative example, using the wall damage occlusion limit as the current sturdiness value of the virtual wall. The sturdiness value indicates how sturdy the virtual wall is; the higher the sturdiness value, the less likely the virtual wall is to be penetrated or damaged.

[0197] Second, determine the impact of the specified function of the virtual prop on the attributes of the obstacle.

[0198] Optionally, the influence of a virtual prop's specified function on the obstacle's attributes can be determined based on the distance between the virtual prop and the obstacle.

[0199] To illustrate, let's take an obstacle as a virtual wall and the wall damage blocking limit as the current solidity value of the virtual wall as an example. First, determine whether the distance between the virtual prop and the virtual wall is greater than a preset distance threshold. If it is greater than the preset distance threshold, the virtual prop will not affect the solidity value. If the distance between the virtual prop and the virtual wall is less than or equal to the preset distance threshold, multiply the distance coefficient corresponding to the distance between the virtual prop and the virtual wall by the baseline influence value of the virtual prop on the virtual wall to calculate the influence result of the specified function of the virtual prop on the solidity value of the virtual wall.

[0200] The distance coefficient is determined based on the distance between the virtual prop and the virtual wall, and a specified distance base. The specified distance base is greater than 0 and less than 1. The formula for calculating the distance coefficient is as follows:

[0201] Formula 1: Y=W D

[0202] Where Y represents the distance coefficient; W is the preset distance base, W∈(0,1); and D is the distance.

[0203] Optionally, the baseline influence value of virtual props on virtual walls is the influence of virtual props on the solidity value of virtual walls at extremely close distances. The formula for calculating the influence of a specific function of a virtual prop on the solidity value of a virtual wall is as follows:

[0204] Formula 2: E=Y*Z

[0205] Where E represents the impact result; Y represents the distance coefficient; and Z is the baseline impact value.

[0206] Third, in response to the specified function's influence on the obstacle's attributes reaching the penetration requirement, determine the sub-attribute influence of the obstacle on the first object part under the influence of the specified function.

[0207] Optionally, when the obstacle is implemented as a virtual wall, in response to the specified function's attack value on the wall reaching the wall damage occlusion limit, the sub-attribute influence generated by the wall on the first object part during the destruction and explosion process is determined.

[0208] In this formula, the attack value of the specified function on the wall is the effect result represented by E in Formula 2, and the upper limit of wall damage coverage is the current solidity value of the virtual wall. If E is greater than or equal to the current solidity value of the virtual wall, the virtual wall will explode, and the exploded virtual wall will affect the first target part. The effect of the virtual wall on the first target part is determined according to the initial damage value of the virtual wall on the first target part and the distance between the virtual wall and the first target part.

[0209] As an illustration, the virtual wall corresponds to a wall level; the higher the level, the higher the initial damage value of the virtual wall on the first target area. Based on the distance coefficient between the virtual wall and the first target area, the initial damage value is adjusted, and the calculation formula is as follows:

[0210] Formula 3: T = C * O P

[0211] Where T is the adjusted initial damage value; C is the initial damage value; O P is the distance coefficient between the virtual wall and the first object part, where O is the preset base, O∈(0,1), and P is the distance between the virtual wall and the first object part.

[0212] In Formula 3, T represents the influence of the virtual wall on the first object part, which is the sub-attribute influence of the obstacle on the first object part.

[0213] Step 1103: In response to the second virtual object being within the functional range, and in the case where the second object part and the virtual prop are connected in a continuous manner among multiple object parts, the sub-attribute influence result corresponding to the second object part is determined based on the influencing factors between the second object part and the virtual prop.

[0214] Among them, the influencing factors include at least one of the following: distance factor, armor factor, projection relationship factor, posture factor of the master virtual object, resistance factor, and duration factor.

[0215] In some alternative embodiments, skeletal point lines are created from the position where the virtual prop is thrown, corresponding to multiple object parts respectively; in response to the skeletal point lines corresponding to the second object part connecting the second object part and the virtual prop, it is determined that there are no obstacles between the second object part and the virtual prop.

[0216] Indicative, such as Figure 12As shown, the virtual character 1201 includes 7 key body parts: left arm, right arm, head, chest, left leg, right leg, and abdomen. The virtual grenade prop is thrown at point A. Lines 1202, 1203, 1204, 1205, 1206, 1207, and 1208 are created connecting point A to the left arm bone, right arm bone, head bone, chest bone, left leg bone, right leg bone, and abdomen bone. Lines 1206 and 1207 are not blocked by obstacles, indicating that there are no obstacles between the left and right legs of the virtual character 1201 and the virtual grenade prop.

[0217] In some optional embodiments, the process of determining the influence of the sub-attribute corresponding to the second object location further includes:

[0218] S1: In response to the second virtual object being within the functional range, when the second object part is connected to the virtual prop among multiple object parts, obtain the base attribute value corresponding to the second object part.

[0219] Optionally, the baseline attribute value refers to the pre-defined impact of a virtual item on a target body part under ideal conditions. Illustratively, an ideal state means there are no obstacles between the virtual item and the target body part, and the distance between them is infinitely close to 0. Taking a virtual grenade as an example, when the virtual grenade is triggered on a specific body part of a virtual object, the damage value of the virtual grenade to that body part is the baseline damage value.

[0220] In some alternative embodiments, the baseline attribute values ​​for different parts of the second virtual object are different. For example, in a shooting game, the baseline damage value of a virtual grenade to the head and chest of a virtual character can be increased, while the baseline damage value to the hands and feet of the virtual character can be decreased.

[0221] S2: Based on the influencing factors between the second object part and the virtual prop, determine the adjustment coefficient for adjusting the baseline attribute value.

[0222] Among them, the influencing factors include at least one of the following: distance factor, armor factor, projection relationship factor, posture factor of the master virtual object, resistance factor, and duration factor.

[0223] The following explains the process of determining the adjustment coefficients for adjusting the baseline attribute values ​​based on the aforementioned influencing factors:

[0224] 1. When the influencing factors include distance, the distance between the second object part and the virtual prop is used as the exponential coefficient, and the product of the specified base and the exponential coefficient is used as the first adjustment coefficient, wherein the specified base is greater than 0 and less than 1; the first adjustment coefficient is used to adjust the base attribute value by multiplying it with the base attribute value.

[0225] If the influencing factors include distance, let's take an example: the virtual prop is implemented as a virtual grenade prop, the second virtual object is implemented as a virtual character, and the part of the second object is implemented as the head of the virtual character. When creating the line connecting the coordinates of the virtual grenade prop's explosion to the head bone point of the virtual character, the distance of the line is obtained. If the distance is greater than the distance threshold, then the sub-attribute influence value of the virtual grenade prop on the head of the virtual character is determined to be 0.

[0226] If the distance is less than or equal to the distance threshold, it means the virtual grenade will cause head damage to the virtual character. To calculate the first adjustment coefficient, obtain the distance and a preset base (greater than 0 and less than 1). The preset base is used as the base coefficient, and the distance is used as the exponential coefficient. The specific formula is as follows:

[0227] Formula 4: X1 = K L

[0228] Where X1 represents the first adjustment coefficient; K is the preset base, K∈(0,1); and L is the distance.

[0229] In some optional embodiments, L in Formula 4 above can also be implemented as a distance level. Illustratively, the distance threshold of the virtual grenade prop is 12 meters. Distance level 1 refers to a distance within the range of (0 meters, 1 meter), where L in Formula 1 is 1; distance level 2 refers to a distance within the range of (1 meter, 5 meters), where L in Formula 1 is 2; distance level 3 refers to a distance within the range of (5 meters, 10 meters), where L in Formula 1 is 3; and distance level 4 refers to a distance within the range of (10 meters, 12 meters), where L in Formula 1 is 4.

[0230] By following the steps above, the first adjustment coefficient is calculated. Multiplying the first adjustment coefficient by the baseline attribute value will adjust the baseline attribute value.

[0231] 2. When the influencing factors include armor factors, the second adjustment coefficient is determined based on the product between the armor level corresponding to the armor factor and the specified coefficient, wherein the specified coefficient is greater than 0 and less than 1; the second adjustment coefficient is used to adjust the base attribute value by multiplying it with the base attribute value.

[0232] In some optional embodiments, multiple parts of the second virtual object are also equipped with armor, and the armor has corresponding armor levels. For example, in a first-person shooter game, a virtual character can acquire items such as helmets and bulletproof vests while playing the game. Helmets and bulletproof vests have corresponding levels; the higher the level, the stronger the protective capability of the helmet or bulletproof vest.

[0233] If the influencing factors include armor, it is first necessary to determine whether the second virtual object is equipped with armor on its second object part. For example, if the virtual prop is implemented as a virtual grenade prop and the second object part is implemented as the head of a virtual character, the armor factor will not be considered when the virtual grenade prop is triggered and the virtual character's head is not equipped with a helmet or other protective prop.

[0234] If the virtual character is wearing a helmet, the helmet's level is obtained, along with a preset coefficient. This preset coefficient is greater than 0 and less than 1. The helmet's level is used as the armor level, and the preset coefficient is used as a specified coefficient to calculate the second adjustment coefficient. The specific formula is as follows:

[0235] Formula 5: X2 = 1 - G * Q

[0236] Where X2 represents the second adjustment coefficient; Q is the preset coefficient, Q∈(0,1); and G is the armor level.

[0237] In some optional embodiments, the armor level decreases with each use. For example, if the helmet is level 4 without any attack, the armor level is 4. If it is attacked, the helmet's level drops to level 3, and the armor level becomes level 3. Optionally, the decrease in helmet level is not fixed; the higher the damage sustained in an attack, the greater the decrease.

[0238] In some alternative embodiments, the armor level will not decrease with the number of uses, but the number of times the armor can be used is limited. For example, a level 4 helmet can be used 4 times without being attacked. After being attacked 4 times, the helmet loses its protective ability, and the armor level of the helmet is level 4 for each attack.

[0239] By following the steps above, the second adjustment coefficient is calculated. Multiplying the second adjustment coefficient by the baseline attribute value will adjust the baseline attribute value.

[0240] 3. When the influencing factors include projection relationship factors, obtain the projection of the second virtual object within the functional range; use the ratio coefficient of the projection area of ​​the second virtual object within the functional range and the reference projection area of ​​the second virtual object as the third adjustment coefficient, wherein the ratio coefficient is greater than 0 and less than 1; the third adjustment coefficient is used to adjust the reference attribute value by multiplying it with the reference attribute value.

[0241] In some optional embodiments, the current posture of the second virtual object is different when the virtual prop triggers a specified function. For example, taking a virtual grenade prop as an illustration, when the virtual grenade prop explodes, it damages the virtual character through fragments emitted from its blast point. Therefore, the number of fragments the virtual character suffers varies depending on its posture. A third adjustment coefficient is determined by obtaining the projection of the virtual character within the blast radius. Optionally, obtaining the third adjustment coefficient requires obtaining the projected area of ​​the second virtual object within the functional range and the reference projected area of ​​the second virtual object. The process of obtaining these two projected areas is explained below:

[0242] First, obtain the projected area of ​​the second virtual object within its functional range.

[0243] In some optional embodiments, the method for obtaining the projection of the second virtual object within the functional range includes:

[0244] Create a line connecting the center skeleton point of the second virtual object to the position where the virtual prop is thrown, and determine a target projection plane perpendicular to the line connecting the center skeleton point; determine the projection of the second object part among multiple object parts onto the target projection plane as the projection of the second virtual object within its functional range.

[0245] Optionally, the central skeleton point of the second virtual object can be implemented as the middle position skeleton point of the second virtual object. Schematic, the central skeleton point of the virtual character can be implemented as the waist position of the virtual character.

[0246] Optionally, the projected area of ​​the second object part in the second virtual object on the target projection plane is calculated, which is the projected area of ​​the second virtual object within the functional range.

[0247] This is illustrative; if there are no obstacles between the various parts of the second virtual object and the virtual prop, such as... Figure 13 As shown, the explosion point of the virtual grenade prop is point A, and the center skeletal point of the virtual character 1301 is point B. Connect AB, and draw a plane 1302 perpendicular to line segment AB. Plane 1302 is then the target projection plane. Create lines connecting point A to each skeletal point of the virtual character 1301's body parts (it is worth noting that as many lines as possible need to be created from point A to each skeletal point of the virtual character 1301's body parts). Figure 13 (Only some of the connections are shown in the image). Extend the connecting lines of the skeletal points of each of the above-mentioned body parts to plane 1302. The closed image formed is the projection of the virtual character 1301. The area of ​​the closed image on plane 1302 is the projection area of ​​the virtual character within the explosion range, which is also the projection area of ​​the second virtual object within the functional range.

[0248] Schematic illustration: If there are no obstacles between one part of the object and the virtual prop in the second virtual object, but there are obstacles between another part of the object and the virtual prop, such as... Figure 14 As shown, the explosion point of the virtual grenade prop is point a, and the central skeletal point of the virtual character 1401 is point b. Connect ab and draw a plane 1402 perpendicular to line segment ab. Then, plane 1402 is the target projection plane. The line connecting the lower body skeletal points of the virtual character 1401 to point a is obstructed. The line connecting the upper body skeletal points of the virtual character 1401 to point a is unobstructed. Therefore, extend the line connecting the upper body skeletal points to a to plane 1402. The area of ​​the closed image on plane 1402 is the projection area of ​​the virtual character within the explosion range, which is also the projection area of ​​the second virtual object within the functional range.

[0249] Second, obtain the reference projected area of ​​the second virtual object.

[0250] In some optional embodiments, the method for obtaining the reference projected area of ​​the second virtual object includes at least one of the following methods:

[0251] Method 1: The reference projection area is a pre-set area, which is the front surface area of ​​the second virtual object in the virtual scene. For example, the reference projection area of ​​the virtual character is the area enclosed by the outer contour of the virtual character in a standard standing posture; the reference projection area of ​​the virtual vehicle is the area of ​​the virtual vehicle's body exposed on the outside.

[0252] Method 2: The reference projection area is the projection area of ​​the second virtual object on the target projection plane.

[0253] This is illustrative; please refer to it. Figure 15 A virtual character stands in a virtual scene. The explosion point of the virtual grenade prop is point c, and the center bone point of the virtual character 1501 is point d. Connect cd and draw a plane 1502 perpendicular to line segment cd. Then, plane 1502 is the target projection plane. Connect point c to the bone points of each body part respectively, and extend the above line segments to plane 1502 respectively. The area of ​​the closed image on plane 1502 is the reference projection area of ​​the virtual character, which is also the reference projection area of ​​the second virtual object.

[0254] It should be noted that the above method for obtaining the reference projected area of ​​the second virtual object is only an illustrative example, and the embodiments of this application do not limit it.

[0255] After obtaining the projected area of ​​the second virtual object within its functional range and the reference projected area of ​​the second virtual object, the third adjustment coefficient can be determined. Illustratively, the ratio of the projected area of ​​the second virtual object within its functional range to the reference projected area of ​​the second virtual object is the third adjustment coefficient. This ratio is greater than 0 and less than 1. The specific formula is as follows:

[0256] Formula 6: X3 = M / N

[0257] Where X3 represents the third adjustment coefficient, X3∈(0,1); M is the projected area of ​​the second virtual object within the functional range; N is the reference projected area of ​​the second virtual object.

[0258] By following the steps above, the third adjustment coefficient is calculated. Multiplying the third adjustment coefficient by the base attribute value will adjust the base attribute value.

[0259] 4. When the influencing factors include the posture of the second virtual object, obtain the current posture of the second virtual object; use the posture coefficient corresponding to the posture as the fourth adjustment coefficient, wherein the posture coefficient is greater than 0 and less than 1; the fourth adjustment coefficient is used to adjust the base attribute value by multiplying it with the base attribute value.

[0260] In some optional embodiments, when the virtual prop triggers a specified function, the current posture of the second virtual object is different, and different postures correspond to different posture coefficients. For example, when the virtual prop is implemented as a virtual grenade prop, the relationship between the posture coefficients corresponding to different postures is: standing posture > squatting posture > prone posture.

[0261] By obtaining the posture coefficient corresponding to the posture of the second virtual object when the virtual prop triggers the specified function, the fourth adjustment coefficient can be determined. The posture coefficient is greater than 0 and less than 1. The specific formula is as follows:

[0262] Formula 7: X4 = Z

[0263] Where X4 represents the fourth adjustment coefficient, X4∈(0,1); Z is the pose coefficient of the second virtual object.

[0264] By following the steps above, the fourth adjustment coefficient is calculated. Multiplying the fourth adjustment coefficient by the baseline attribute value will adjust the baseline attribute value.

[0265] 5. When the influencing factors include resistance factors, obtain the resistance coefficient of the environment in which the second object part of the second virtual object is located, wherein the resistance coefficient is greater than 0 and less than 1; the resistance coefficient is used to adjust the base attribute value by multiplying it with the base attribute value.

[0266] In some optional embodiments, the virtual scene includes virtual water flow, and the resistance coefficient when a virtual prop triggers a specified function is included in the resistance coefficient within the virtual water flow. For example, assuming the virtual prop is a virtual grenade and the second virtual object is a virtual character, when the virtual grenade's explosion point is in the virtual water flow and can damage the virtual character, the resistance of the water flow to the virtual grenade also needs to be calculated, because the resistance of the exploding fragments of the virtual grenade in air is different from the resistance in water. This resistance corresponds to a resistance coefficient; the greater the resistance, the smaller the corresponding resistance coefficient.

[0267] Obtain the resistance coefficient of the virtual item when triggering a specified function, and multiply the resistance coefficient by the base attribute value to adjust the base attribute value.

[0268] 6. When the influencing factors include duration, obtain the duration for which the virtual item triggers the specified function, and determine the duration influence coefficient based on the duration. The duration influence coefficient is greater than 0 and less than 1. The duration influence coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

[0269] In some optional embodiments, the specified function triggered by the virtual prop corresponds to a function duration. During the function duration, the virtual prop can continuously affect the attribute values ​​of virtual objects within the function's range. However, the influence of these attribute values ​​gradually decreases or increases over time. For example, taking a virtual grenade as an example, the virtual grenade has a 3-second explosion duration after triggering its explosion effect. If the virtual character is within the blast radius at 0 seconds (i.e., the moment the virtual grenade explodes), they will suffer relatively severe explosion damage; if the virtual character enters the blast radius at 2 seconds, they will suffer relatively minor explosion damage.

[0270] Obtain the duration impact coefficient of virtual items when triggering a specified function, and multiply the duration impact coefficient by the base attribute value to adjust the base attribute value.

[0271] 7. In some optional embodiments, the influencing factors also include the residual attribute value factor. When the influencing factors include the residual attribute value factor of the second object part, the product between the level number corresponding to the residual attribute value of the second object part and the specified coefficient is obtained as the fifth adjustment coefficient, wherein the specified coefficient is greater than 0 and less than 1; the fifth adjustment coefficient is used to adjust the base attribute value by multiplying it with the base attribute value.

[0272] In some optional embodiments, taking a virtual first aid item as an example, the fewer the remaining attribute values, the more attribute values ​​are restored, and the better the restoration effect of the virtual first aid item. Illustratively, taking health points as an example, a full-health state has a health value of 100. When the health value is (0, 30], it is level 1, level number 1, with the best restoration effect; when the health value is (30, 60], it is level 2, level number 2; when the health value is (60, 90], it is level 3, level number 3; and when the health value is (90, 100], it is level 4, level number 4, with the worst restoration effect.

[0273] It should be noted that if the player is at full health with 100 HP, the maximum HP that can be restored is 100.

[0274] By obtaining the remaining attribute values ​​of the second object part of the virtual item when the specified function is triggered, and simultaneously obtaining the specified coefficient, the fifth adjustment coefficient can be determined. The specified coefficient is greater than 0 and less than 1. The specific formula is as follows:

[0275] Formula 8: X5 = H * Z

[0276] Where X5 represents the fifth adjustment coefficient; Z is the specified coefficient, Z∈(0,1); H is the number of remaining attribute value levels for the second object part.

[0277] By following the steps above, the fifth adjustment coefficient is calculated. Multiplying the fifth adjustment coefficient by the base attribute value will adjust the base attribute value.

[0278] It is worth noting that the process of determining the adjustment coefficient for adjusting the baseline attribute value based on the above-mentioned influencing factors is only an illustrative example, and the embodiments of this application do not limit it.

[0279] S3: Adjust the baseline attribute value by adjusting the coefficient to obtain the sub-attribute influence result corresponding to the second object part.

[0280] Optionally, one or more of the above adjustment coefficients can be selected to adjust the baseline attribute value to obtain the sub-attribute influence result corresponding to the second object part. If the first adjustment coefficient, the second adjustment coefficient, and the fourth adjustment coefficient are selected to adjust the baseline attribute value, the calculation formula is as follows:

[0281] Formula 9: S' = S * X1 * X2 * X4

[0282] Where S is the baseline attribute value and S' is the adjusted baseline attribute value.

[0283] Optionally, if the second object part includes two or more object parts, the base attribute value of each object part is adjusted to obtain multiple adjusted base attribute values.

[0284] Step 1104: Merge the sub-attribute influence results corresponding to multiple object parts to obtain the attribute influence results of the second virtual object.

[0285] The attribute impact result refers to the overall impact of a virtual item's specified function on a second virtual object.

[0286] In some optional embodiments, the influence results of the sub-attributes corresponding to multiple object parts are summed to obtain the attribute influence result of the second virtual object; or, the influence results of the sub-attributes corresponding to multiple object parts are weighted and summed to obtain the attribute influence result of the second virtual object.

[0287] In summary, the virtual object display method provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual prop thrown into a virtual scene triggers a specified function within its functional range, if the second virtual object is within the functional range, the virtual prop affects the multiple object parts of the second virtual object respectively, thereby obtaining multiple sub-attribute influence results. Finally, the attribute influence result of the virtual prop on the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence result of the virtual prop on the second virtual object, the granularity of the attribute influence result is improved, thereby increasing the accuracy of the virtual prop's influence on the virtual object.

[0288] The virtual object display method provided in this application improves the accuracy of determining positional relationships by creating lines connecting multiple object part skeletal points of virtual props and second virtual objects respectively.

[0289] The virtual object display method provided in this application adjusts the baseline attribute value based on multiple influencing factors between the second object part and the virtual prop, thereby improving the precision of the attribute value adjustment; finally, the sub-attribute influence results corresponding to the first object part and the second object part are obtained, and the sub-attribute influence results corresponding to multiple object parts are fused to obtain the attribute influence result of the second virtual object, thereby reducing the granularity of the attribute influence result.

[0290] In some optional embodiments, when the virtual item is a virtual attack item, the specified function of the virtual item has a debuff effect on the second virtual object. This will be illustrated using a virtual grenade as an example of a virtual attack item. Figure 16 This is a flowchart illustrating a method for displaying a virtual object according to an embodiment of this application. This method can be applied to, for example... Figure 2 The terminal shown can also be applied to, for example... Figure 2 In the server shown, this method is applied to, for example... Figure 2 Taking the server shown as an example, the method includes:

[0291] Step 1601: When the first virtual object throws a virtual grenade prop in the virtual scene, the explosion damage of the virtual grenade prop is triggered within the explosion range of the virtual grenade prop.

[0292] Among them, explosion damage is used to debuff the attribute values ​​of virtual objects within the explosion radius.

[0293] In some optional embodiments, the virtual scene described above is implemented as a game battle screen between the second virtual object and the first virtual object, and the virtual grenade prop is a prop thrown by the first virtual object at the second virtual object. The relationship between the first virtual object and the second virtual object can be adversarial or cooperative.

[0294] Optionally, when the first virtual object and the second virtual object are in a cooperative relationship, the virtual grenade prop has a corresponding damage reduction effect. For example, when a teammate of the second virtual object throws a virtual grenade prop in the virtual scene, and the second virtual object is within the explosion range of the virtual grenade prop, the second virtual object will not be damaged.

[0295] In some optional embodiments, the virtual scene described above can also be implemented as a throwing practice scene for the second virtual object. For example, in a shooting game, the second virtual object can practice throwing virtual grenade props in the throwing practice scene; the second virtual object can also experience the explosive damage of the virtual grenade props in the throwing practice scene. Optionally, the virtual grenade props thrown by the second virtual object itself will cause damage to itself.

[0296] The attributes include the virtual object's health, line of sight, and hearing. For example, when a virtual grenade explodes near a virtual object, it reduces the virtual object's health; it reduces the virtual object's line of sight by emitting smoke, dust, and debris; and the explosion of the virtual grenade reduces the virtual object's hearing, making it unable to hear the gunshots and footsteps of the nearest virtual object.

[0297] In some alternative embodiments, the virtual grenade prop is an instantaneous damage prop. For example, the virtual grenade prop will damage virtual objects within the blast radius for a moment when it explodes, but will not cause damage after the explosion.

[0298] In some optional embodiments, the virtual grenade is a damage-over-time item, and the virtual grenade has a corresponding damage duration. Optionally, the damage intensity and blast radius of the virtual grenade gradually decrease during the damage duration.

[0299] For illustrative purposes, the damage duration of the virtual grenade prop is 3 seconds. At 0 seconds, the virtual grenade prop triggers an explosion; from 0 to 1 second, the damage level of the virtual grenade prop is level 3 (i.e., the highest damage level of the virtual grenade prop), and the explosion radius is a circular area with a diameter of 24 meters; from 1 to 2 seconds, the damage level of the virtual grenade prop is level 2, and the explosion radius is a circular area with a diameter of 12 meters; from 2 to 3 seconds, the damage level of the virtual grenade prop is level 1, and the explosion radius is a circular area with a diameter of 6 meters; after 3 seconds, the explosion damage of the virtual grenade prop is nullified.

[0300] Step 1602: In response to the second virtual object being within the explosion range, based on the positional relationship between multiple object parts of the second virtual object and the virtual grenade prop, obtain the sub-attribute influence results corresponding to the multiple object parts respectively.

[0301] Among them, the sub-attribute effect result is the debuff result generated by multiple object parts under explosion damage.

[0302] To illustrate, first determine whether the second virtual object is within the blast radius. If the second virtual object is within the blast radius, it means that the virtual grenade prop will damage the main virtual prop. Then, obtain the sub-attribute influence results corresponding to the multiple object parts.

[0303] In some optional embodiments, lines are created connecting the explosion center to multiple object part bone points. If at least one bone point connection is within the explosion range, it indicates that the second virtual object is within the explosion range; if all bone point connections are outside the explosion range, it indicates that the second virtual object is not within the explosion range.

[0304] In some optional embodiments, by creating lines connecting the explosion center and the skeletal points of multiple object parts respectively, the positional relationship between multiple object parts and the virtual grenade prop is determined, thereby obtaining the sub-attribute influence results corresponding to multiple object parts respectively.

[0305] Optionally, the location where the virtual grenade prop is thrown in the virtual scene is designated as the explosion center of the virtual grenade prop. Lines are created connecting the explosion center to the skeletal points of multiple object parts. Based on the connections between these skeletal points, the multiple object parts can be categorized.

[0306] If the line connecting the explosion center and the target area is blocked, it indicates that the target area belongs to the first target area. The virtual grenade will not damage the first target area, that is, it will not reduce the attribute value of the first target area. If the line connecting the explosion center and the target area is not blocked, it indicates that the target area belongs to the second target area. The virtual grenade may damage the second target area. It is necessary to determine whether it will damage the second target area and the corresponding sub-attribute influence result by examining the influencing factors between the second target area and the virtual grenade (among which, the influencing factors include at least one of the following: distance factor, armor factor, projection relationship factor, and posture factor of the second virtual object).

[0307] First, by considering the distance factor, determine whether the virtual grenade prop will cause damage to the second target's body part.

[0308] Optionally, it can be determined whether the line connecting the bone point of the second object part and the explosion center exceeds the distance threshold. If it exceeds the distance threshold, it means that the virtual grenade prop will not cause damage to the second object part, that is, it will not reduce the attribute value of the second object part.

[0309] Second, if the line connecting the skeletal point of the second target area to the center of the explosion does not exceed the distance threshold, it means that the virtual grenade prop will cause damage to the second target area.

[0310] In some optional embodiments, the sub-attribute influence result corresponding to the first virtual object part is determined by distance factor, armor factor, and projection relationship factor.

[0311] Indicatively, if the second object part does not exceed the distance threshold, it is the left leg and the head:

[0312] 1. First, obtain the initial base damage values ​​for the left leg and head of the virtual grenade prop, for example: the base damage value for the left leg is 20, and the base damage value for the head is 50.

[0313] 2. Next, obtain the first adjustment coefficient corresponding to the distance factor. For example, if the distance to the left leg is 4 meters, the distance to the head is 5 meters, and the preset base value is 0.9, then the base damage value after adjustment by the first adjustment coefficient is:

[0314] Left leg = 40 * 0.9^4 = 13.122;

[0315] Head = 50 * 0.9^5 = 29.525.

[0316] 3. Next, obtain the second adjustment coefficient corresponding to the armor factor. Before obtaining the second adjustment coefficient, it is first necessary to determine whether the left leg and head of the second virtual object are equipped with armor items. For example, if the left leg is equipped with a level 2 armor item and the head is not equipped with an armor item, and the specified coefficient is 0.1, then the base damage value after adjustment by the first and second adjustment coefficients is:

[0317] Left leg = 13.122 * 0.8 = 10.4976;

[0318] Head = 29.525 (No head adjustment is needed if no armor is equipped).

[0319] 4. Finally, to obtain the third adjustment coefficient corresponding to the projection relationship factor, it is necessary to obtain the reference projection area and the projection area of ​​the second virtual object within the explosion range. The method for obtaining the reference projection area and the projection area of ​​the second virtual object within the explosion range has been specifically explained in step 1103, and will not be repeated here.

[0320] For example: if the base projected area is 10, and the projected area of ​​the second virtual object within the explosion radius is 5, then the third adjustment coefficient is 0.5. Therefore, the base damage value after adjustment by the first, second, and third adjustment coefficients is:

[0321] Left leg = 10.4976 * 0.5 = 5.2488;

[0322] Head = 29.525 * 0.5 = 14.7625.

[0323] In some alternative embodiments, the posture of the second virtual object about to be damaged by the explosion can also be directly detected, and damage reduction can be applied based on the posture. For example, when the same virtual grenade explodes, the damage received in a crouching position is less than that in a standing position. (Illustrative example, please refer to...) Figure 17 Virtual object 1701 is standing, and virtual object 1703 is crouching. Virtual objects 1701 and 1703 belong to the same virtual object, and they are equidistant from the explosion center point A. Figure 17 As shown, the area of ​​the projection 1702 of virtual object 1701 is significantly larger than the area of ​​the projection 1704 of virtual object 1703. This means that when facing the center of the explosion, virtual object 1701 obviously has a larger exposed area, and therefore suffers greater damage.

[0324] The third adjustment coefficient mentioned above can also be implemented as the posture coefficient corresponding to the posture of the second virtual object when the virtual grenade explodes. For example, if the posture of the second virtual object when the virtual grenade explodes is crouching, then the posture coefficient is 0.5. The base damage value after adjustment by the first, second, and third adjustment coefficients is:

[0325] Left leg = 10.4976 * 0.5 = 5.2488;

[0326] Head = 29.525 * 0.5 = 14.7625.

[0327] Step 1603: The effects of the sub-attributes corresponding to the multiple object parts are fused to obtain the effects of the detrimental attributes of the second virtual object.

[0328] As an illustration, the virtual grenade props affect the sub-attributes of the second virtual object by reducing the left leg's health by 5.2488 and the head's health by 14.7625.

[0329] Adding the damage values ​​of the left leg and the head will give the result of the second virtual object's attribute impact, which is that the virtual object's total health is reduced by 20.0113.

[0330] In summary, the virtual object display method provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual grenade prop thrown into a virtual scene triggers explosion damage within its blast radius, if the second virtual object is within the blast radius, the virtual grenade prop affects multiple object parts of the second virtual object, resulting in multiple sub-attribute influence results. Finally, the attribute influence result of the virtual grenade prop reducing the attribute value of the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence results of the virtual grenade prop on the second virtual object, the granularity of the attribute influence results is improved, thereby increasing the accuracy of the virtual grenade prop's influence on the virtual object.

[0331] In some optional embodiments, when the virtual prop is a virtual medical prop, the specified function of the virtual prop has a beneficial attribute effect on the second virtual object. This will be illustrated using a virtual first aid prop as an example. Figure 18 This is a flowchart illustrating a method for displaying a virtual object according to an embodiment of this application. This method can be applied to, for example... Figure 2 The terminal shown can also be applied to, for example... Figure 2 In the server shown, this method is applied to, for example... Figure 2 Taking the server shown as an example, the method includes:

[0332] Step 1801: When the first virtual object throws a virtual first aid prop in the virtual scene, the first aid effect of the virtual first aid prop is triggered within the first aid range of the virtual first aid prop.

[0333] The first aid effect is used to generate a boost to the attribute values ​​of virtual objects within the first aid range.

[0334] Attribute values ​​include the virtual object's health, movement speed, line of sight, hearing, etc. For illustrative purposes, when a virtual first aid item triggers its first aid effect near a virtual object, it will restore at least one of the virtual object's health, movement speed, line of sight, hearing, etc.

[0335] In some optional embodiments, the virtual scene is implemented as a battle scene in a shooting game. The second virtual object is injured in the battle, its health points decrease, and it is unable to use skills to fight; or, the second virtual object's movement speed is reduced, preventing it from moving quickly. In this case, the first virtual object can throw virtual first aid items into the virtual scene to provide first aid to the second virtual object. It should be noted that the first and second virtual objects here can be the same virtual object.

[0336] In some optional embodiments, the virtual first aid prop is an instant recovery prop. For example, the virtual first aid prop will restore the attribute values ​​of virtual objects within the first aid range the moment the first aid effect is triggered. After the first aid effect is triggered, the attribute values ​​cannot be restored.

[0337] In some optional embodiments, the virtual first aid tool is a continuous recovery tool, and the virtual first aid tool has a corresponding recovery duration. Optionally, the recovery strength and first aid range of the virtual first aid tool will gradually decrease during the recovery duration.

[0338] For illustrative purposes, the virtual first aid item's recovery duration is 3 seconds. At 0 seconds, the virtual first aid item triggers its first aid effect; from 0 to 1 second, the virtual first aid item's recovery level is 3 (i.e., the highest recovery level of the virtual first aid item), and the first aid range is a circular area with a diameter of 24 meters; from 1 to 2 seconds, the virtual first aid item's recovery level is 2, and the first aid range is a circular area with a diameter of 12 meters; from 2 to 3 seconds, the virtual first aid item's recovery level is 1, and the first aid range is a circular area with a diameter of 6 meters; after 3 seconds, the virtual first aid item's first aid effect expires.

[0339] In some optional embodiments, the display of the first aid effect indicator and the first aid range indicator of the virtual first aid prop will also be triggered within the first aid range.

[0340] As an illustration, the virtual first aid item has a corresponding first aid duration. When the virtual first aid item triggers the first aid effect, if the second virtual object is not within the first aid range, it cannot receive treatment. However, the first aid effect of the virtual first aid item will last for a period of time. As long as the second virtual object moves into the first aid range during this period, it can receive treatment.

[0341] Please refer to Figure 19When the display of the emergency effect indicator and emergency range indicator of the virtual emergency aid prop is triggered, the emergency effect indicator 1901 will be displayed in the virtual scene. The second virtual object can quickly locate the triggered virtual emergency aid prop based on the emergency effect indicator and know the type of virtual emergency aid prop. The emergency range indicator 1902 will be highlighted, and the second virtual object can know the current emergency range of the virtual emergency aid prop.

[0342] Step 1802: In response to the second virtual object being within the emergency rescue range, based on the positional relationship between multiple object parts of the second virtual object and the virtual emergency rescue prop, obtain the sub-attribute influence results corresponding to each of the multiple object parts.

[0343] Among them, the sub-attribute influence result is the gain result generated by multiple object parts under the first aid effect.

[0344] To illustrate, first determine whether the second virtual object is within the emergency rescue range. If the second virtual object is within the emergency rescue range, it means that the virtual emergency rescue prop will provide emergency rescue to the second virtual object. Then, obtain the sub-attribute influence results corresponding to multiple object parts.

[0345] In some optional embodiments, lines are created connecting the trigger location of the virtual first aid prop to multiple object body bone points. If at least one bone point connection is within the first aid range, it indicates that the second virtual object is within the first aid range; if all bone point connections are outside the first aid range, it indicates that the second virtual object is not within the first aid range.

[0346] In some optional embodiments, by creating the trigger position of the virtual first aid prop and the connection lines between the skeletal points of multiple object parts, the positional relationship between the multiple object parts and the virtual first aid prop is determined, thereby obtaining the sub-attribute influence results corresponding to the multiple object parts respectively.

[0347] Optionally, multiple object parts can be classified based on the connection of skeletal points:

[0348] If the line connecting the trigger location of the virtual first aid tool to the target body part is blocked, it indicates that the target body part belongs to the first target body part. The virtual first aid tool will not affect the first target body part, that is, it will not increase the attribute value of the first target body part. If the line connecting the trigger location of the virtual first aid tool to the target body part is not blocked, it indicates that the target body part belongs to the second target body part. The virtual first aid tool may affect the second target body part. It is necessary to determine whether it will affect the second target body part and the corresponding sub-attribute of the second target body part by examining the influencing factors between the second target body part and the virtual first aid tool (where the influencing factors include at least one of the distance factor and the remaining attribute value factor).

[0349] First, by considering the distance factor, determine whether the virtual first aid tool will cause harm to the second object's body part.

[0350] Optionally, it can be determined whether the line connecting the skeletal point of the second object part and the trigger position of the virtual first aid prop exceeds a distance threshold. If it exceeds the distance threshold, it means that the virtual first aid prop will not affect the second object part, that is, it will not increase the attribute value of the second object part.

[0351] Second, if the line connecting the skeletal point of the second object's body part and the trigger position of the virtual first aid prop does not exceed the distance threshold, it means that the virtual first aid prop will affect the second object's body part.

[0352] In some optional embodiments, the sub-attribute influence result corresponding to the first virtual object part is determined by at least one of the distance factor and the remaining attribute value factor of the second object part.

[0353] Indicatively, if the second object part does not exceed the distance threshold, it is the left leg and the head:

[0354] 1. First, obtain the baseline recovery values ​​for the left leg and head in the initial settings of the virtual first aid prop. For example, the baseline recovery value for the left leg is 20, and the baseline recovery value for the head is 50.

[0355] 2. Next, obtain the first adjustment coefficient corresponding to the distance factor. For example, if the distance to the left leg is 4 meters, the distance to the head is 5 meters, and the preset base value is 0.9, then the baseline recovery value after adjustment by the first adjustment coefficient is:

[0356] Left leg = 40 * 0.9^4 = 13.122;

[0357] Head = 50 * 0.9^5 = 29.525.

[0358] 3. Next, obtain the second adjustment coefficient corresponding to the remaining attribute value of the second object part. For example, if the left leg has 38 remaining health points, the corresponding level is 2; if the head has 85 remaining health points, the corresponding level is 3. With a specified coefficient of 0.1, the baseline recovery value after adjustment by the first and second adjustment coefficients is:

[0359] Left leg = 13.122 * 0.2 = 2.6244;

[0360] Head = 29.525 * 0.1 = 2.9525.

[0361] Optionally, if the reference recovery value adjusted by the first and second adjustment coefficients is the reference recovery attenuation value, then the recovery value of the second object part is the reference recovery value minus the reference recovery attenuation value. Therefore, the final recovery value of the object part is:

[0362] Left leg = 20 - 2.6244 = 17.3756;

[0363] Head = 50 - 2.9525 = 47.0475.

[0364] This refers to how sub-attributes affect the results.

[0365] Step 1803: The influence results of the sub-attributes corresponding to multiple object parts are fused to obtain the gain attribute influence result of the second virtual object.

[0366] In some optional embodiments, the sub-attribute influence results corresponding to multiple object parts are added together to obtain the gain attribute influence result of the second virtual object.

[0367] As an illustration, the virtual first aid item's effect on the second virtual object's sub-attributes is an increase of 17.3756 health points for the left leg and 47.0475 health points for the head. Adding the recovery values ​​for the left leg and head gives the attribute effect on the second virtual object, which is a total health recovery of 64.42231.

[0368] In summary, the virtual object display method provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual first aid prop thrown into a virtual scene triggers a first aid effect within the first aid range, if the second virtual object is within the first aid range, the virtual first aid prop affects multiple object parts of the second virtual object, resulting in multiple sub-attribute influence results. Finally, the attribute influence result of the virtual first aid prop increasing the attribute value of the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence results of the virtual first aid prop on the second virtual object, the granularity of the attribute influence results is improved, thereby increasing the accuracy of the virtual first aid prop's influence on the virtual object.

[0369] In some alternative embodiments, the aforementioned virtual prop is implemented as a virtual grenade. Figure 20 This is a complete flowchart of a virtual object display method provided in an exemplary embodiment of this application, such as... Figure 20 As shown, the method includes:

[0370] Step 2001: Virtual grenade explosion.

[0371] This is illustrative; please refer to it. Figure 21 An animation of a virtual grenade explosion is displayed in virtual scene 2100, where the explosion center of the virtual grenade is point A.

[0372] The virtual scene also includes a virtual character 2101. The virtual character 2101 is in a prone position in the virtual scene 2100 and is facing the explosion center point A horizontally.

[0373] Optionally, the virtual grenade is thrown in the virtual scene 2100 by a virtual character 2101; or, the virtual grenade is thrown in the virtual scene 2100 by a virtual character controlled by another player or a non-player character.

[0374] Step 2002: Are there any virtual characters within the blast radius?

[0375] In other words, it detects whether a virtual character exists within the blast radius of a virtual grenade.

[0376] Optionally, the blast radius of the virtual grenade includes at least one of the following ranges:

[0377] 1. The blast radius of the virtual grenade is defined by a circular area centered on the explosion center of the virtual grenade and with a preset distance as the radius.

[0378] 2. The explosion range of the virtual grenade is defined by a fan-shaped area with the explosion center of the virtual grenade as the center, a preset angle as the central angle, and a preset distance as the radius.

[0379] Step 2003: If there is no virtual character at the explosion center, the process ends.

[0380] This is for illustrative purposes only; please refer to it. Figure 22 In virtual scene 2200, when the virtual grenade explodes, if the virtual character 2201 in the image is too far away from the explosion center 2202, the damage calculation of the virtual grenade to the virtual character 2201 ends, that is, the process ends.

[0381] Step 2004: If there is a virtual character at the center of the explosion, then connect the skeletal points of the 7 key parts from the center of the explosion.

[0382] This is illustrative; please refer to it. Figure 21 Area 2102 represents the blast radius of the virtual grenade, which is a circle with a radius of 12 meters centered at the blast center. If the virtual character 2101 is located within area 2102, it means that the virtual character will suffer damage from the virtual grenade's explosion.

[0383] If a virtual character exists within the blast radius of a virtual grenade, a connection is made from the blast center to the seven key skeletal points of the virtual character. For example... Figure 21 As shown, the explosion center is point A. Lines are created from point A and connected to the left arm bone point, right arm bone point, head bone point, chest bone point, abdomen bone point, left leg bone point, and right leg bone point of the virtual character 2101.

[0384] Step 2005: Is the connection blocked?

[0385] That is, determine whether the lines connecting the explosion center and the seven key skeletal points are blocked.

[0386] Indicatively, determine whether the lines connecting the skeletal points of the various body parts of the virtual character 2101 created from point A at the explosion center are blocked by obstacles.

[0387] Step 2006: If the connection is blocked, no harm will be caused.

[0388] If the line connecting the explosion center and the skull is blocked, it means the explosion will not cause damage to the virtual character's head.

[0389] like Figure 21 As shown, the upper body of the virtual character 2101 is behind the wall 2103. The black lines in the picture are the lines blocked by the wall 2103, indicating that the left arm, right arm, head and chest will not be damaged by the explosion.

[0390] Step 2007: If the connection is not blocked, calculate the theoretical maximum damage to this part based on the distance damage attenuation.

[0391] Indicative, such as Figure 21 As shown, the white lines are the lines not blocked by the wall 2103. Therefore, the virtual character's left leg, right leg, and abdomen will suffer explosion damage. The theoretical maximum damage of the virtual grenade to the virtual character's left leg, right leg, and abdomen is calculated below. The theoretical maximum damage is determined by the initial explosion damage value and the distance damage decay.

[0392] First, determine the initial damage value of the virtual grenade to each part of the virtual character's body.

[0393] Optionally, the damage multiplier of the virtual grenade varies depending on the body part of the virtual character, and the damage ratio for each part can be set. For example, to emphasize "head protection," the proportion of explosion damage to the head can be increased, and vice versa. As an illustration, the initial explosion damage value of the virtual grenade is configured as follows: at very close range, the virtual grenade deals 60 damage to the head, 40 damage to the left / right arm, 50 damage to the chest / abdomen, and 40 damage to the left / right leg.

[0394] Secondly, the distance-based damage attenuation of virtual grenades on various body parts of virtual characters was determined.

[0395] Optionally, the formula for distance damage attenuation is as follows:

[0396] Formula 10: F(X) = 0.9^X, X∈(0, 12]

[0397] F(X) = 0, X ∈ (12, +∞)

[0398] That is, within 12 meters, the damage decreases by a factor of 0.9^X (where X is the distance), and beyond 12 meters, the damage is 0.

[0399] Based on the above explanation, illustratively speaking, the distances of each body part of the virtual character from the explosion center are calculated separately for each part. Figure 21 Based on the distances of the legs and abdomen from the explosion center, the left leg is closest at 4 meters, followed by the abdomen at 5 meters, and then the right leg at 6 meters. The damage inflicted after distance attenuation for each body part is calculated as follows:

[0400] Left leg = 40 * 0.9^4 = 26.244;

[0401] Abdomen = 50 * 0.9^5 = 29.525;

[0402] Right leg = 40 * 0.9^6 = 21.25764.

[0403] This represents the theoretical maximum damage for each body part.

[0404] Step 2008: Is the area covered by armor?

[0405] That is, determining whether the virtual character's body parts are covered by armor.

[0406] Optionally, the system sequentially detects whether the virtual character's head, chest, abdomen, hands, and legs are covered by armor. Only areas covered by armor will receive damage reduction. For illustration, the target application provides a virtual helmet that can protect the virtual character's head.

[0407] Step 2009: If the body part is not covered by armor, the armor damage reduction coefficient is not calculated, and the damage is calculated normally.

[0408] Indicative, such as Figure 21 As shown, the left and right legs of the virtual character 2101 are not covered by armor, so there is no armor damage reduction and there is no need to calculate the armor damage reduction coefficient. The damage can be calculated normally, that is, the damage received by the left leg is 26.244 and the damage received by the right leg is 21.25764; and continue to execute step 2011.

[0409] Step 2010: If the area is covered by armor, calculate the armor damage reduction coefficient based on the armor level of that area.

[0410] Optionally, armor has corresponding armor levels. Different armor levels have different armor damage reduction coefficients. The armor damage reduction coefficient is determined by the armor damage attenuation multiplier, and the formula for the armor damage attenuation multiplier is as follows:

[0411] Formula 11: O = 0.1 * Y, where Y is the armor level.

[0412] The armor damage reduction coefficient is 1-0, for illustrative purposes only. Figure 21 As shown, the abdomen of the virtual character 2101 is covered by level 5 armor. The armor damage reduction coefficient of level 5 armor is 1 - 0.1 * 5 = 0.5. Therefore, after calculating the armor damage reduction, the damage of the virtual grenade to the abdomen is 29.525 * 0.5 = 14.7625.

[0413] In some alternative embodiments, when damage reduction is applied, the durability of the armor is reduced to a certain extent. The damage reduction coefficient of the armor increases as the durability of the armor decreases. That is, as the durability of the armor decreases, the effect of the armor damage reduction becomes smaller and smaller.

[0414] Step 2011: Calculate the projection damage reduction coefficient by combining the projected area exposed by the character's pose.

[0415] The explosion damage of a virtual grenade is calculated based on the projection of the virtual character in front of the virtual grenade; the smaller the exposed projection, the less damage the virtual character will suffer from the grenade. For example, when the virtual character is in a vertical prone position facing the center of the explosion, the exposed projection area is significantly smaller than when standing.

[0416] Optionally, the ratio of the projected area of ​​the virtual character exposed at the center of the explosion to the reference projected area of ​​the virtual character is the projection damage reduction coefficient.

[0417] First, obtain the projected area of ​​the virtual character exposed at the center of the explosion.

[0418] First, the projection plane must be determined, schematically, such as... Figure 23 As shown, in the virtual scene 2300, the explosion center of the virtual grenade is point B. Create a line connecting point B and the center bone point of the virtual character 2301 (approximately at the waist of the virtual character 2301), and draw a plane 2302 perpendicular to this line, which is the projection plane.

[0419] Secondly, draw lines from point B, the explosion center, to the head, feet, and other skeletal points of the virtual character 2301. The projection of the extension of these lines onto the plane is the first projected area corresponding to the current pose of the virtual character 2301. Figure 23 It can be seen that half of the body of the virtual character 2301 is blocked by the wall 2303, so the final projection area exposed by the virtual character 2301 is half of the first projection area.

[0420] Second, obtain the reference projection area of ​​the virtual character.

[0421] Optionally, the reference projection area of ​​the virtual character is the projection of the extension of a line drawn from point B at the explosion center to the head, feet, and other skeletal points of the virtual character when the virtual character is standing. This projection on the plane is the reference projection area of ​​the virtual character.

[0422] This is illustrative; please refer to it. Figure 23 As can be seen, the virtual character 2301 is lying horizontally on the ground facing the center of the explosion. At this time, the difference in the projected area between the lying and standing positions of the virtual character 2301 is not significant. Therefore, the reference projected area of ​​the virtual character 2301 is the first projected area.

[0423] Therefore, the projection damage reduction coefficient is approximately 0.5.

[0424] Step 2012 will output the final damage, which combines distance damage reduction, armor damage reduction coefficient, and projection damage reduction coefficient, to the player.

[0425] It should be noted that, Figure 21 and Figure 23 The virtual scenes in the text are the same virtual scene, therefore Figure 23 The calculated projection damage reduction coefficient of the virtual character 2301 is... Figure 22 The projection damage reduction coefficient of the virtual character 2101.

[0426] In steps 2007 to 2010, the distance damage reduction coefficient and armor damage reduction coefficient have been calculated. Therefore, by combining these damage reduction coefficients, the final damage received by each part of the virtual character 2101 can be obtained as follows:

[0427] Left leg: 26.244 * 0.5 = 13.122;

[0428] Right leg: 21.25764 * 0.5 = 13.122;

[0429] Abdomen: 14.7625 * 0.5 = 7.38125.

[0430] The total damage received by the virtual character 2101 is: 13.122 + 13.122 + 7.38125 = 33.62525.

[0431] Optionally, the total damage received by the virtual character 2101 can be displayed in the virtual scene 2101.

[0432] Please refer to Figure 24 This illustration shows a structural block diagram of a virtual object display device provided in an exemplary embodiment of this application. The device includes:

[0433] Trigger module 2410 is used to trigger a specified function of the virtual prop within the functional range of the virtual prop when the first virtual object throws a virtual prop in the virtual scene. The specified function is used to affect the attribute value of the virtual object within the functional range.

[0434] The acquisition module 2420 is configured to, in response to the second virtual object being within the functional range, acquire the sub-attribute influence results corresponding to the multiple object parts based on the positional relationship between the multiple object parts of the second virtual object and the virtual prop, wherein the sub-attribute influence results are the influence results generated by the multiple object parts under the specified function.

[0435] The fusion module 2430 is used to fuse the sub-attribute influence results corresponding to the multiple object parts respectively to obtain the attribute influence result of the second virtual object. The attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

[0436] In some optional embodiments, the fusion module 2430 is further configured to sum the sub-attribute influence results corresponding to the plurality of object parts respectively to obtain the attribute influence result of the second virtual object; or, to perform a weighted summation of the sub-attribute influence results corresponding to the plurality of object parts respectively to obtain the attribute influence result of the second virtual object.

[0437] Please refer to Figure 25 In some optional embodiments, the acquisition module 2420 includes:

[0438] The determination submodule 2421 is used to determine, when there is an obstacle between the first object part and the virtual prop in the plurality of object parts, that the first object part avoids the sub-attribute influence generated by the specified function;

[0439] The determining submodule 2421 is further configured to, when the second object part among the plurality of object parts is connected to the virtual prop, determine the sub-attribute influence result corresponding to the second object part based on the influencing factors between the second object part and the virtual prop; wherein the influencing factors include at least one of distance factor, armor factor, projection relationship factor, posture factor of the second virtual object, resistance factor, and duration factor.

[0440] In some alternative embodiments, the apparatus further includes:

[0441] A creation module 2440 is used to create lines connecting the skeletal points corresponding to the multiple object parts from the position where the virtual prop is thrown.

[0442] The determination module 2450 is used to determine that there is an obstacle between the first object part and the virtual prop in response to the blocking of the line connecting the skeletal points corresponding to the first object part.

[0443] The determining module 2450 is further configured to determine, in response to the connection of the skeletal points corresponding to the second object part to the virtual prop, that there is no obstacle between the second object part and the virtual prop.

[0444] In some optional embodiments, the determining submodule 2421 includes:

[0445] Acquisition unit 2422 is used to acquire the reference attribute value corresponding to the second object part;

[0446] Determining unit 2423 is used to determine an adjustment coefficient for adjusting the baseline attribute value based on the influencing factors between the second object part and the virtual prop;

[0447] The adjustment unit 2424 is used to adjust the baseline attribute value using the adjustment coefficient to obtain the sub-attribute influence result corresponding to the second object part.

[0448] In some optional embodiments, the determining unit 2423 is configured to, when the influencing factors include a distance factor, use the distance between the second object part and the virtual prop as an exponential coefficient, and use the product of the exponential coefficient with a specified base as a first adjustment coefficient, wherein the specified base is greater than 0 and less than 1; the first adjustment coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value; the determining unit 2423 is further configured to, when the influencing factors include an armor factor, determine a second adjustment coefficient based on the product between the armor level corresponding to the armor factor and a specified coefficient, wherein the specified coefficient is greater than 0 and less than 1; the second adjustment coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

[0449] In some optional embodiments, the determining unit 2423 is configured to, when the influencing factors include projection relationship factors, obtain the projection of the second virtual object within the functional range; use the ratio coefficient of the projection area of ​​the second virtual object within the functional range to the reference projection area of ​​the second virtual object as a third adjustment coefficient, wherein the ratio coefficient is greater than 0 and less than 1; the third adjustment coefficient is used to adjust the reference attribute value by multiplying it with the reference attribute value.

[0450] In some optional embodiments, the determining unit 2423 is configured to create a line connecting the center bone point of the second virtual object from the position where the virtual prop is thrown, and determine a target projection plane perpendicular to the line connecting the center bone point; the determining unit 2423 is further configured to determine the projection of the second object part among the plurality of object parts onto the target projection plane as the projection of the second virtual object within the functional range.

[0451] In some optional embodiments, the determining unit 2423 is configured to obtain the current pose of the second virtual object when the influencing factors include the pose factor of the second virtual object; use the pose coefficient corresponding to the pose as a fourth adjustment coefficient, wherein the pose coefficient is greater than 0 and less than 1; the fourth adjustment coefficient is used to adjust the reference attribute value by multiplying it with the reference attribute value.

[0452] In some optional embodiments, the determining unit 2423 is configured to, when the influencing factors include resistance factors, obtain the resistance coefficient of the environment in which the second object part of the second virtual object is located, wherein the resistance coefficient is greater than 0 and less than 1; the resistance coefficient is used to adjust the reference attribute value by multiplying it with the reference attribute value;

[0453] When the influencing factors include the duration factor, the duration for which the virtual item triggers the specified function is obtained, and the duration influence coefficient is determined based on the duration, wherein the duration influence coefficient is greater than 0 and less than 1; the duration influence coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

[0454] In some optional embodiments, the acquisition unit 2422 is further configured to acquire the obstacle attribute of the obstacle when there is an obstacle between the first object part and the virtual prop; the determination unit 2423 is further configured to determine the attribute influence of the specified function of the virtual prop on the obstacle attribute; the determination unit 2423 is further configured to determine the sub-attribute influence of the obstacle on the first object part under the influence of the specified function in response to the attribute influence of the specified function on the obstacle attribute reaching the penetration requirement.

[0455] In some optional embodiments, the obstacle includes a virtual wall that obscures the first object portion, and the obstacle attribute of the virtual wall includes a wall damage occlusion limit; the determining unit 2423 is further configured to determine the sub-attribute influence of the wall on the first object portion during the damage and explosion process in response to the attack value of the wall on the wall by the specified function reaching the wall damage occlusion limit.

[0456] In some optional embodiments, when the virtual item is a virtual attack item, the specified function of the virtual item has a debuff effect on the second virtual object; when the virtual item is a virtual medical item, the specified function of the virtual item has a buff effect on the second virtual object.

[0457] In summary, the virtual object display device provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual first aid prop thrown into a virtual scene triggers a first aid effect within the first aid range, if the second virtual object is within the first aid range, the virtual first aid prop affects multiple object parts of the second virtual object, resulting in multiple sub-attribute influence results. Finally, the attribute influence result of the virtual first aid prop increasing the attribute value of the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence results of the virtual first aid prop on the second virtual object, the granularity of the attribute influence results is improved, thereby enhancing the accuracy of the virtual first aid prop's influence on the virtual object.

[0458] Please refer to Figure 26 This illustrates a block diagram of a virtual object display device provided in another exemplary embodiment of this application, the device comprising:

[0459] Display module 2610 is used to display a second virtual object, the second virtual object including multiple object parts, and the second virtual object is a virtual object controlled by the current terminal.

[0460] The display module 2610 is also used to display virtual props thrown into a virtual scene. The virtual props are used to trigger a specified function within a functional range after being thrown into the virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional range.

[0461] The display module 2610 is also used to display that the virtual prop triggers the specified function within the functional range;

[0462] The display module 2610 is further configured to display the attribute influence result of the second virtual object in response to the second virtual object being within the functional range, wherein the attribute influence result is a result obtained by combining the sub-attribute influence results corresponding to multiple object parts, and the sub-attribute influence result is the influence result generated by the multiple object parts under the specified function.

[0463] In some optional embodiments, the display module 2610 is further configured to, in response to the second virtual object being within the functional range, display the result of the first object part avoiding the sub-attribute influence of the specified function when there is an obstacle between the first object part of the second virtual object and the virtual prop; the display module 2610 is further configured to, when the second object part among the plurality of object parts is connected to the virtual prop, display the result of the sub-attribute influence of the second object part under the influence of the specified function.

[0464] In summary, the virtual object display device provided in this application embodiment includes a second virtual object comprising multiple object parts. When a virtual first aid prop thrown into a virtual scene triggers a first aid effect within the first aid range, if the second virtual object is within the first aid range, the virtual first aid prop affects multiple object parts of the second virtual object, resulting in multiple sub-attribute influence results. Finally, the attribute influence result of the virtual first aid prop increasing the attribute value of the second virtual object is determined by comprehensively considering the multiple sub-attribute influence results. By subdividing the attribute influence results of the virtual first aid prop on the second virtual object, the granularity of the attribute influence results is improved, thereby enhancing the accuracy of the virtual first aid prop's influence on the virtual object.

[0465] It should be noted that the virtual object display device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual object display device and the virtual object display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0466] Figure 27 This illustration shows a structural block diagram of a computer device 2700 provided in an exemplary embodiment of this application. The computer device 2700 may be a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, or desktop computer. The computer device 2700 may also be referred to as a user device, portable computer device, laptop computer device, desktop computer device, or other names.

[0467] Typically, computer device 2700 includes a processor 2701 and a memory 2702.

[0468] Processor 2701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2701 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 2701 may also include a main processor and a coprocessor. The main processor, also known as a central processing unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2701 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 2701 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0469] The memory 2702 may include one or more computer-readable storage media, which may be non-transitory. The memory 2702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2702 is used to store at least one instruction, which is executed by the processor 2701 to implement the virtual object display method provided in the method embodiments of this application.

[0470] This is illustrative; computer device 2700 also includes other components, as those skilled in the art will understand. Figure 27 The structure shown does not constitute a limitation on the computer device 2700, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0471] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, which may be a computer-readable storage medium included in the memory described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a computer device. The computer-readable storage medium stores at least one instruction, at least one program segment, a code set, or an instruction set. The at least one instruction, the at least one program segment, the code set, or the instruction set is loaded and executed by the processor to implement any of the virtual object display methods described in the above embodiments.

[0472] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM). The sequence numbers of the embodiments in this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0473] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0474] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for displaying a virtual object, characterized in that, The method includes: When the first virtual object throws a virtual prop in the virtual scene, the specified function of the virtual prop is triggered within the functional range of the virtual prop. The specified function is used to affect the attribute value of the virtual object within the functional range. In response to the second virtual object being within the functional range, if there is an obstacle between the first object part of the second virtual object and the virtual prop, it is determined that the first object part avoids the sub-attribute influence generated by the specified function; When a second object part among the plurality of object parts is connected to the virtual prop, a baseline attribute value corresponding to the second object part is obtained, and different object parts of the second virtual object correspond to different baseline attribute values; based on the influencing factors between the second object part and the virtual prop, an adjustment coefficient for adjusting the baseline attribute value is determined; the baseline attribute value is adjusted using the adjustment coefficient to obtain the sub-attribute influence result corresponding to the second object part, and the sub-attribute influence result is the influence result generated by the plurality of object parts under the specified function respectively; The sub-attribute influence results corresponding to the multiple object parts are fused to obtain the attribute influence result of the second virtual object. The attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

2. The method according to claim 1, characterized in that, The process of fusing the sub-attribute influence results corresponding to the multiple object parts to obtain the attribute influence result of the second virtual object includes: The attribute influence results corresponding to the various object parts are summed to obtain the attribute influence result of the second virtual object; or... The attribute influence results of the multiple object parts are weighted and summed to obtain the attribute influence result of the second virtual object.

3. The method according to claim 1, characterized in that, The influencing factors include at least one of the following: distance factor, armor factor, projection relationship factor, posture factor of the second virtual object, resistance factor, and duration factor.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Create lines connecting the skeletal points corresponding to the various object parts from the position where the virtual prop is thrown; In response to the blocking of the line connecting the skeletal points corresponding to the first object part, it is determined that there is an obstacle between the first object part and the virtual prop; In response to the connection of the skeletal points corresponding to the second object part to the virtual prop, it is determined that there are no obstacles between the second object part and the virtual prop.

5. The method according to claim 1, characterized in that, The step of determining the adjustment coefficient for adjusting the baseline attribute value based on the influencing factors between the second object part and the virtual prop includes: When the influencing factors include distance, the distance between the second object part and the virtual prop is used as an exponential coefficient, and the product of the exponential coefficient with a specified base is used as a first adjustment coefficient, wherein the specified base is greater than 0 and less than 1; the first adjustment coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value. When the influencing factors include armor factors, a second adjustment coefficient is determined based on the product of the armor level corresponding to the armor factor and a specified coefficient, wherein the specified coefficient is greater than 0 and less than 1; the second adjustment coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

6. The method according to claim 1, characterized in that, The step of determining the adjustment coefficient for adjusting the baseline attribute value based on the influencing factors between the second object part and the virtual prop includes: When the influencing factors include projection relationship factors, the projection of the second virtual object within the functional range is obtained; the ratio coefficient of the projection area of ​​the second virtual object within the functional range to the reference projection area of ​​the second virtual object is used as a third adjustment coefficient, wherein the ratio coefficient is greater than 0 and less than 1; the third adjustment coefficient is used to adjust the reference attribute value by multiplying it with the reference attribute value.

7. The method according to claim 6, characterized in that, The step of obtaining the projection of the second virtual object within the functional scope includes: Create a line connecting the center skeleton point of the second virtual object from the position where the virtual prop is thrown, and determine a target projection plane perpendicular to the line connecting the center skeleton point; The projection of the second object part among the plurality of object parts onto the target projection plane is determined as the projection of the second virtual object within the functional range.

8. The method according to claim 1, characterized in that, The step of determining the adjustment coefficient for adjusting the baseline attribute value based on the influencing factors between the second object part and the virtual prop includes: When the influencing factors include the posture factor of the second virtual object, the current posture of the second virtual object is obtained; the posture coefficient corresponding to the posture is used as the fourth adjustment coefficient, wherein the posture coefficient is greater than 0 and less than 1; the fourth adjustment coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

9. The method according to claim 1, characterized in that, The step of determining the adjustment coefficient for adjusting the baseline attribute value based on the influencing factors between the second object part and the virtual prop includes: When the influencing factors include resistance factors, the resistance coefficient of the environment in which the second object part of the second virtual object is located is obtained, wherein the resistance coefficient is greater than 0 and less than 1; the resistance coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value; When the influencing factors include the duration factor, the duration for which the virtual item triggers the specified function is obtained, and a duration influence coefficient is determined based on the duration, wherein the duration influence coefficient is greater than 0 and less than 1; the duration influence coefficient is used to adjust the baseline attribute value by multiplying it with the baseline attribute value.

10. The method according to claim 1, characterized in that, In the case where there is an obstacle between the first object part and the virtual prop among multiple object parts of the second virtual object, determining that the first object part avoids the sub-attribute influence generated by the specified function includes: When there is an obstacle between the first object and the virtual prop, obtain the obstacle attribute of the obstacle; Determine the effect of the specified function of the virtual prop on the attribute of the obstacle; In response to the specified function's influence on the obstacle's attributes reaching the penetration requirement, the sub-attribute influence of the obstacle on the first object part under the influence of the specified function is determined.

11. The method according to claim 10, characterized in that, The obstacle includes a virtual wall that obscures the first object part, and the obstacle attributes of the virtual wall include the wall damage occlusion limit; The step of responding to the specified function's influence on the obstacle's attributes reaching the penetration requirement, and determining the sub-attribute influence of the obstacle on the first object portion under the influence of the specified function, includes: In response to the specified function's attack value on the wall reaching the wall's damage occlusion limit, the sub-attribute influence generated by the wall on the first object part during the destruction and explosion process is determined.

12. The method according to any one of claims 1 to 3, characterized in that, In the case that the virtual item is a virtual attack item, the specified function of the virtual item has a debuff effect on the second virtual object. When the virtual prop is a virtual medical prop, the specified function of the virtual prop has a beneficial effect on the second virtual object.

13. A method for displaying a virtual object, characterized in that, The method includes: Display a second virtual object, which includes multiple object parts, and the second virtual object is the virtual object currently controlled by the terminal. Displays virtual props thrown into a virtual scene. The virtual props are used to trigger a specified function within a functional range after being thrown into the virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional range. The virtual item is displayed to trigger the specified function within the functional scope; In response to the second virtual object being within the functional range, if there is an obstacle between the first object part of the second virtual object and the virtual prop, the result of the first object part avoiding the sub-attribute influence of the specified function is displayed; When the second object part among the plurality of object parts is connected to the virtual prop, the sub-attribute influence result of the second object part under the influence of the specified function is displayed, and the sub-attribute influence result is the influence result generated by the plurality of object parts under the specified function respectively. The sub-attribute influence result corresponding to the second object part is obtained by adjusting the baseline attribute value corresponding to the second object part by adjusting the adjustment coefficient. Different object parts of the second virtual object correspond to different baseline attribute values. The adjustment coefficient is determined based on the influence factors between the second object part and the virtual prop.

14. A display device for virtual objects, characterized in that, The device includes: The triggering module is used to trigger a specified function of the virtual prop within the functional range of the virtual prop when the first virtual object throws a virtual prop in the virtual scene. The specified function is used to affect the attribute value of the virtual object within the functional range. The acquisition module is configured to, in response to the second virtual object being within the functional range, and in the case where there is an obstacle between the first object part of the second virtual object and the virtual prop, determine that the first object part avoids the sub-attribute influence generated by the specified function; When a second object part among the plurality of object parts is connected to the virtual prop, a baseline attribute value corresponding to the second object part is obtained, and different object parts of the second virtual object correspond to different baseline attribute values; based on the influencing factors between the second object part and the virtual prop, an adjustment coefficient for adjusting the baseline attribute value is determined; the baseline attribute value is adjusted using the adjustment coefficient to obtain the sub-attribute influence result corresponding to the second object part, and the sub-attribute influence result is the influence result generated by the plurality of object parts under the specified function respectively; The fusion module is used to fuse the sub-attribute influence results corresponding to the multiple object parts respectively to obtain the attribute influence result of the second virtual object. The attribute influence result refers to the overall influence result of the specified function of the virtual prop on the second virtual object.

15. A display device for virtual objects, characterized in that, The device includes: The display module is used to display a second virtual object, which includes multiple object parts. The second virtual object is the virtual object currently controlled by the terminal. The display module is also used to display virtual props thrown into the virtual scene. The virtual props are used to trigger a specified function within the functional range after being thrown into the virtual scene. The specified function is used to affect the attribute values ​​of virtual objects within the functional range. The display module is also used to display that the virtual prop triggers the specified function within the functional range; The display module is further configured to, in response to the second virtual object being within the functional range, display the result of the first object part avoiding the sub-attribute influence of the specified function when there is an obstacle between the first object part of the second virtual object and the virtual prop; When the second object part among the plurality of object parts is connected to the virtual prop, the sub-attribute influence result of the second object part under the influence of the specified function is displayed, and the sub-attribute influence result is the influence result generated by the plurality of object parts under the specified function respectively. The sub-attribute influence result corresponding to the second object part is obtained by adjusting the baseline attribute value corresponding to the second object part by adjusting the adjustment coefficient. Different object parts of the second virtual object correspond to different baseline attribute values. The adjustment coefficient is determined based on the influence factors between the second object part and the virtual prop.

16. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the method for displaying virtual objects as described in any one of claims 1 to 13.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the method for displaying virtual objects as described in any one of claims 1 to 13.

18. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method for displaying virtual objects as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Program, information storage medium, and game device

    JP2008119224A