Virtual item display method and device, terminal and storage medium

By combining the hand status and health value of the virtual object to adjust the shaking state of the virtual prop, the problem of insufficient matching between the shaking of the virtual shooting prop and the object status is solved, thereby improving the realism of the shaking of the virtual prop and the realism of the shooting operation.

CN120919613APending Publication Date: 2025-11-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the shaking of virtual shooting props has a low degree of matching with the state of virtual objects, resulting in insufficient shaking realism and affecting the realism of shooting operations.

Method used

By displaying a virtual object holding a virtual prop in a virtual scene, the shaking state of the virtual prop is adjusted according to the hand state and health value of the virtual object, so that the degree of shaking changes with the hand state, including changes in breathing rate, hand health and upper limb strength, simulating the holding action in a real environment.

Benefits of technology

The virtual props' shaking has been made more realistic, enhancing the realism and accuracy of shooting operations and improving the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120919613A_ABST
    Figure CN120919613A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a virtual item display method and device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying a virtual object holding a virtual item in a picture; under the condition that the hand of the virtual object is in the first hand state, the virtual item in the first shaking state is displayed, and the hand state of the virtual object is related to at least one of the upper limb physical strength value and the hand health value of the virtual object; under the condition that the hand of the virtual object is changed from the first hand state to a second hand state, the virtual item in a second shaking state is displayed, and the shaking degree of the second shaking state is larger than that of the first shaking state. By adopting the scheme provided by the embodiment of the invention, when the virtual object holds the virtual item, the jitter trueness of the virtual item can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, terminal and storage medium for displaying virtual props. Background Technology

[0002] In shooting games, in order to complete the mission of attacking different targets, players often need to control a virtual object to hold a virtual shooting tool and perform aiming and shooting operations.

[0003] In related technologies, when a player controls a virtual shooting prop to enter the aiming state, the player can set the corresponding displacement jitter parameters for the virtual shooting prop and use these parameters to control the jitter of the virtual shooting prop, thereby improving the realism of aiming and shooting.

[0004] However, directly setting the displacement jitter parameter to control the jitter state of the virtual shooting prop results in a low degree of matching between the jitter of the virtual prop and the state of the virtual object, reducing the realism of the jitter of the virtual prop. Summary of the Invention

[0005] This application provides a method, apparatus, terminal, and storage medium for displaying virtual items. The technical solution is as follows:

[0006] On one hand, embodiments of this application provide a method for displaying virtual items, the method comprising:

[0007] Display a virtual object holding a virtual prop in the virtual scene;

[0008] When the virtual object's hand is in a first hand state, the virtual prop is displayed in a first shaking state. The hand state of the virtual object is related to at least one of the virtual object's upper limb strength value and hand health value.

[0009] When the virtual object's hand changes from the first hand state to the second hand state, the virtual prop is displayed in a second shaking state, where the shaking degree of the second shaking state is greater than that of the first shaking state.

[0010] On the other hand, embodiments of this application provide a display device for virtual props, the device comprising:

[0011] The first display module is used to display a virtual object holding a virtual prop in the virtual scene.

[0012] The second display module is used to display the virtual prop in a first shaking state when the virtual object's hand is in a first hand state, wherein the virtual object's hand state is related to at least one of the virtual object's upper limb strength value and hand health value;

[0013] The third display module is used to display the virtual prop in a second shaking state when the virtual object's hand changes from the first hand state to the second hand state, wherein the shaking degree of the second shaking state is greater than the shaking degree of the first shaking state.

[0014] On the other hand, embodiments of this application provide a terminal, the terminal including a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the virtual prop display method as described above.

[0015] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one program, which is loaded and executed by a processor to implement the virtual prop display method as described above.

[0016] On the other hand, embodiments of this application provide a computer program product including computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual item display method described above.

[0017] In this embodiment, when a virtual object holds a virtual prop, the shaking state of the virtual prop is combined with the hand state of the virtual object. When the virtual object's hand is in a first hand state, the virtual prop in the first shaking state is displayed; when the virtual object's hand changes from the first hand state to the second hand state, the virtual prop in the second shaking state is displayed. This allows the shaking state of the virtual prop to change with the change of the virtual object's hand state, improving the realism of the shaking when the virtual prop is held. Attached Figure Description

[0018] 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.

[0019] Figure 1This application shows a structural block diagram of a computer system provided in an exemplary embodiment;

[0020] Figure 2 A flowchart illustrating a method for displaying virtual items according to an exemplary embodiment of this application is shown;

[0021] Figure 3 This illustration shows a schematic diagram of a virtual prop provided in an exemplary embodiment of this application changing from a first shaking state to a second shaking state;

[0022] Figure 4 This illustration shows a schematic diagram of the division of health values ​​for different parts of a virtual object provided in an exemplary embodiment of this application;

[0023] Figure 5 A flowchart illustrating a method for displaying virtual props provided in another exemplary embodiment of this application is shown;

[0024] Figure 6 The diagram shows an interface of the hand tremor parameter setting bar provided in an exemplary embodiment of this application;

[0025] Figure 7 This application illustrates an exemplary embodiment of a scaling value setting interface for hand displacement during breathing.

[0026] Figure 8 This application illustrates an exemplary embodiment of a scaling value setting interface for hand rotation during breathing.

[0027] Figure 9 This application shows an exemplary embodiment of the interface for setting the scaling value of the camera displacement during breathing.

[0028] Figure 10 This application shows an exemplary embodiment of the interface for setting the zoom value of camera rotation during breathing;

[0029] Figure 11 This application illustrates a scaling value setting interface during the aiming stabilization process, as provided in an exemplary embodiment.

[0030] Figure 12 This illustration shows a schematic diagram of the shaking of a virtual item when it changes from a non-aiming state to an aiming state, according to an exemplary embodiment of this application.

[0031] Figure 13 A flowchart illustrating a method for displaying virtual props provided in another exemplary embodiment of this application is shown;

[0032] Figure 14 This illustration shows a diagram of the shaking of a virtual prop when it changes from a first breathing state to a second breathing state, according to an exemplary embodiment of this application.

[0033] Figure 15 This application illustrates a zoom value setting interface for entering a breath-holding state, provided by an exemplary embodiment of the present application.

[0034] Figure 16 This illustration shows a diagram of the shaking of a virtual prop when the upper limb force value is less than the physical strength threshold, provided by an exemplary embodiment of this application.

[0035] Figure 17 This application illustrates an exemplary embodiment of a hand offset setting interface when the hand health value is less than a health threshold.

[0036] Figure 18 This application illustrates an exemplary embodiment of a setting interface for the degree of hand sinking when the hand health value is less than a health threshold.

[0037] Figure 19 This illustration shows a schematic diagram of the shaking of a virtual prop in a second shaking state, provided in an exemplary embodiment of this application.

[0038] Figure 20 A flowchart illustrating a method for displaying virtual props provided in another exemplary embodiment of this application is shown;

[0039] Figure 21 This illustration shows a structural block diagram of a display device for virtual props provided in an exemplary embodiment of this application;

[0040] Figure 22 A structural block diagram of a terminal provided in an exemplary embodiment of this application is shown. Detailed Implementation

[0041] 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.

[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0043] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0044] It should be understood that although the terms first, second, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, a first parameter may also be referred to as a second parameter, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0045] Please refer to Figure 1 This diagram illustrates a structural block diagram of a computer system provided in an exemplary embodiment of this application. The computer system 100 may include: a first terminal 110, a server 120, and a second terminal 130.

[0046] The first terminal 110 runs an application 111 that supports a virtual environment. This application 111 can be a multiplayer online battle arena (MOBA) game, a simulation game (SLG), a massively multiplayer online role-playing game (MMORPG), or a first-person shooter (FPS) game. In this embodiment, the application 111 is an example of a massively multiplayer online role-playing game. The first terminal 110 is the terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment. The first virtual object can be referred to as the master virtual object controlled by the first user 112. The activities of the first virtual object include, but are not limited to, at least one of the following: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. In a symbolic sense, the first virtual object is the first virtual character, such as a lifelike character or an anime character.

[0047] The second terminal 130 runs an application 131 that supports a virtual environment. This application 131 can be a multiplayer online battle arena (MOBA) program. When the second terminal 130 runs the application 131, the user interface of the application 131 is displayed on the screen of the second terminal 130. This client can be any of the following: MOBA game, SLG game, MMORPG game, or FPS game. In this embodiment, the application 131 is an FPS game as an example. The second terminal 130 is the terminal used by the second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment. The second virtual object can be referred to as the main virtual character controlled by the second user 132. Schematic, the second virtual object is a second virtual character, such as a lifelike character or an anime character.

[0048] Optionally, the first virtual object and the second virtual object reside in the same virtual world. Optionally, the first virtual object and the second virtual object may belong to the same faction, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different factions, different teams, different organizations, or have an adversarial relationship.

[0049] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of application on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of a plurality of terminals, and the second terminal 130 can refer to another of a plurality of terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different. The device types include at least one of the following: smartphones, tablets, e-book readers, Moving Picture Experts Group Audio Layer III (MP3) players, Moving Picture Experts Group Audio Layer IV (MP4) players, laptops, and desktop computers.

[0050] Figure 1Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals can access the server 120. Optionally, one or more terminals may also be terminals corresponding to developers, on which a development and editing platform for applications supporting virtual environments is installed. Developers can edit and update applications on these terminals and transmit the updated application installation packages to the server 120 via wired or wireless networks. The first terminal 110 and the second terminal 130 can download the application installation packages from the server 120 to update the applications.

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

[0052] Server 120 includes at least one of the following: a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide background services for applications that support a 3D virtual environment. Optionally, server 120 undertakes the primary computing task, and the terminal undertakes the secondary computing task; or, server 120 undertakes the secondary computing task, and the terminal undertakes the primary computing task; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.

[0053] In an illustrative example, server 120 includes memory 121, processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. The processor 122 loads instructions stored in server 120 and processes data in user account database 123 and battle service module 124. User account database 123 stores user account data used by first terminal 110, second terminal 130, and other terminals, such as user account avatars, nicknames, combat power indices, and service regions. Battle service module 124 provides multiple battle rooms for users to engage in battles, such as 1v1, 3v3, 5v5, and 1v5 battles. User-facing I / O interface 125 establishes communication and exchanges data with first terminal 110 and / or second terminal 130 via wireless or wired networks.

[0054] Based on the above introduction, the method for displaying virtual items provided in this application will be described. This method can be executed by the terminal or jointly by the server and the terminal.

[0055] Optionally, when the method is executed by the terminal, the terminal first displays a virtual object holding a virtual prop in the virtual scene screen, and detects the hand state of the virtual object in real time. When the virtual object's hand is in a first hand state, the virtual prop in a first shaking state is displayed; when the virtual object's hand changes from the first hand state to a second hand state, the virtual prop in a second shaking state is displayed.

[0056] Optionally, when the method is jointly executed by the terminal and the server, when the virtual object holds the virtual prop, the server detects the hand state of the virtual object in real time and sends the detection result to the terminal. Thus, when the terminal receives the detection result that the virtual object's hand is in a first hand state, the terminal displays the virtual prop in a first shaking state; when the terminal receives the detection result that the virtual object's hand changes from the first hand state to a second hand state, the terminal displays the virtual prop in a second shaking state.

[0057] Please refer to Figure 2 This document illustrates a flowchart of a method for displaying virtual items according to an exemplary embodiment of this application. This embodiment uses the example of the method being executed by a terminal to illustrate the method, which includes the following steps:

[0058] Step 201: Display the virtual object holding the virtual prop in the virtual scene.

[0059] Virtual objects refer to movable objects controlled by a terminal in a virtual environment. Movable objects can be virtual characters, virtual animals, etc., such as characters and animals displayed in a 3D virtual environment. Optionally, virtual objects are 3D models created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual environment and occupies a portion of the space within the 3D virtual environment.

[0060] Optionally, virtual props can be virtual shooting props, such as virtual bows and arrows, which have shooting functions. Virtual objects in the virtual environment can pick up virtual props and use the picked-up virtual props to attack other virtual objects.

[0061] Optionally, the virtual scene image is a view of the virtual environment from the first-person perspective of the virtual object; or, the virtual scene image is a view of the virtual environment from the third-person perspective of the virtual object.

[0062] In some embodiments, when controlling a virtual object to use virtual props to attack other virtual objects, the terminal displays the virtual object holding the virtual props in the virtual scene screen.

[0063] Indicative, such as Figure 3As shown, the terminal displays a virtual object 301 holding a virtual prop 302 in the virtual scene.

[0064] Step 202: When the virtual object's hand is in the first hand state, display the virtual prop in the first shaking state. The virtual object's hand state is related to at least one of the virtual object's upper limb strength value and hand health value.

[0065] In some embodiments, considering that when holding an object in a real environment, the arm usually shakes with breathing, or the arm shakes due to insufficient strength caused by holding it for a long time, in order to improve the realism of the virtual object holding the virtual prop, the terminal can adjust the shaking state of the virtual prop according to the hand state of the virtual object. Thus, when the virtual prop is in a shaking state, the shooting trajectory of the virtual prop will also change, affecting the shooting accuracy of the virtual prop.

[0066] Optionally, the hand state of the virtual object can be at least one of hand health state and hand strength state. The hand strength state can be related to the upper limb strength value of the virtual object, and the hand health state can be related to the hand health value of the virtual object.

[0067] In some embodiments, considering that different parts of a virtual object suffer varying degrees of damage when attacked in a virtual environment, a health value can be assigned to each part of the virtual object to quantify its health. A higher health value indicates a healthier part. For example, if a virtual object's leg is hit by virtual ammunition, the leg's health value will be lower. Optionally, the terminal can display a health indicator of the virtual object on the interface to inform the player of the current health status of different parts of the virtual object.

[0068] Indicative, such as Figure 4 As shown, the terminal can divide the virtual object 401 into parts such as head, chest, abdomen, right arm, left arm, left leg, and right leg. Based on the damage tolerance of different parts, the terminal sets the maximum health value of the virtual object 401's head to 35, the maximum health value of the virtual object 401's chest to 85, the maximum health value of the virtual object 401's abdomen to 70, the maximum health value of the virtual object 401's left and right arms to 60, and the maximum health value of the virtual object 401's left and right legs to 65. Thus, when a part of the virtual object 401 is attacked, the terminal correspondingly reduces the health value of that part.

[0069] Optionally, the virtual object can increase its health value by acquiring virtual supplies, which can be to increase the health value of a specific part or the overall health value; it can also increase its health value by increasing its game level, or other methods that can increase its health value. This application embodiment does not limit these methods.

[0070] In some embodiments, the terminal can increase the movement restrictions of virtual objects in the virtual environment and increase the difficulty of the game by setting stamina consumption. Optionally, considering the differences in muscle structure between the upper and lower limbs, which result in different stamina consumption values ​​for the upper and lower limbs in different movement states, the terminal can divide the stamina value of virtual objects into upper limb stamina value and lower limb stamina value to describe the stamina value of virtual objects in more detail.

[0071] Optionally, the amount of force consumed by the upper limbs and the lower limbs may differ under different exercise conditions. For example, when walking, the amount of force consumed by the lower limbs is greater than that consumed by the upper limbs, while when standing and holding an object, the amount of force consumed by the upper limbs is greater than that consumed by the lower limbs.

[0072] In this embodiment, when a virtual object holds a virtual item, the main energy consumed is the upper limb stamina of the virtual object. Optionally, the terminal can display a stamina progress bar on the interface to indicate the current stamina value of the virtual object to the player.

[0073] In some embodiments, when a virtual object holds a virtual prop, the terminal first determines the current hand state of the virtual object based on at least one of the upper limb strength value or hand health value. Then, when the virtual object's hand is in a first hand state, the terminal displays the virtual prop in a first shaking state.

[0074] Optionally, the first hand state indicates that the virtual object has a high hand health value and / or a high upper limb strength value. Therefore, when the virtual object's hand is in the first hand state, the virtual prop's shaking degree is low. For example, the first shaking state can be a small-amplitude shaking that occurs with the virtual object's breathing frequency.

[0075] Optionally, the shaking parameters of the virtual prop in the first shaking state can be determined based on the shaking parameters of the virtual object's hand. Furthermore, when the virtual scene is viewed from the first-person perspective of the virtual object, the virtual scene will also change as the virtual object shakes.

[0076] Indicative, such as Figure 3As shown, when the hand of the virtual object 301 is in the first hand state, the terminal displays the virtual prop 302 in the first shaking state in the virtual scene screen. At this time, the shaking amplitude of the virtual prop 302 is relatively small.

[0077] Step 203: When the virtual object's hand changes from the first hand state to the second hand state, display the virtual prop in the second shaking state. The shaking degree of the second shaking state is greater than that of the first shaking state.

[0078] In some embodiments, considering that in a real environment, when holding an object with less arm strength, the object will usually shake more due to lack of support, in order to simulate this phenomenon, the terminal can display the virtual prop in the second shaking state when it detects that the virtual object's hand changes from the first hand state to the second hand state, wherein the shaking degree of the second shaking state is greater than the shaking degree of the first shaking state.

[0079] Optionally, the second hand state indicates that the virtual object's hand health value is low, and / or the virtual object's upper limb strength value is low. Therefore, when the virtual object's hand changes from the first hand state to the second hand state, the virtual prop's shaking degree is higher. For example, the second shaking state could be a large shaking caused by the virtual object's arm weakness, or it could be a large shaking caused by the virtual object being attacked.

[0080] Indicative, such as Figure 3 As shown, when the hand of the virtual object 301 changes from the first hand state to the second hand state, the terminal displays the virtual prop 302 in the virtual scene screen, which is in the second shaking state. At this time, the shaking amplitude of the virtual prop 302 is relatively large.

[0081] In summary, in the embodiments of this application, when a virtual object holds a virtual prop, the shaking state of the virtual prop is combined with the hand state of the virtual object. When the virtual object's hand is in a first hand state, the virtual prop in the first shaking state is displayed; when the virtual object's hand changes from the first hand state to the second hand state, the virtual prop in the second shaking state is displayed. This allows the shaking state of the virtual prop to change with the change of the virtual object's hand state, improving the realism of the shaking when the virtual prop is held.

[0082] In some embodiments, when a virtual object holds a virtual prop to perform a shooting operation, in order to improve the accuracy of shooting, it is necessary to aim before shooting. When changing from an unaimed state to an aiming state, the arm usually contracts and the muscles tighten. Therefore, in order to further improve the realism of the shaking when the virtual prop is held, the terminal can also simulate the shaking state of the virtual prop when the above phenomenon occurs.

[0083] Please refer to Figure 5 This illustration shows a flowchart of a method for displaying virtual items provided in another exemplary embodiment of this application. This embodiment illustrates the method by way of execution by a terminal, and the method includes the following steps:

[0084] Step 501: When the virtual object's hand is in a first hand state and the virtual object is in a first breathing state, display the virtual prop in a first shaking state. The breathing state of the virtual object is related to at least one of the virtual object's action posture and the virtual prop's aiming state.

[0085] In some embodiments, to improve the realism of virtual objects' activities in a virtual environment, the terminal can simulate the normal breathing rate of a human body and set the breathing state of the virtual objects. Optionally, the breathing state of the virtual objects can be set to be related to at least one of the virtual object's action posture and the aiming state of virtual props.

[0086] For example, the breathing patterns of a virtual object when walking differ from those when running; the breathing frequency during walking is lower than that during running. Similarly, the breathing patterns of a virtual object controlling a virtual item in a non-aiming state differ from those controlling the item in an aiming state; when the virtual item is in an aiming state, the virtual object typically holds its breath.

[0087] Optionally, the first breathing state can be the breathing state when the virtual object is standing, and the breathing frequency can be set to 16 times per minute.

[0088] In one possible implementation, the terminal detects the hand state and breathing state of the virtual object in real time. When the virtual object's hand is in a first hand state and the virtual object is in a first breathing state, the virtual prop in the first shaking state is displayed in the virtual scene.

[0089] Regarding the method of determining the breathing state of a virtual object, in one possible implementation, the terminal determines the breathing state of the virtual object based on the virtual object's action posture, wherein different action postures correspond to different breathing states, and the degree of shaking of the virtual prop is different in different breathing states.

[0090] For example, when a virtual object performs different actions and postures such as standing, squatting, or lying down, the virtual object's breathing state is different, resulting in different degrees of shaking of the virtual object's breathing, which in turn causes different degrees of shaking of the virtual prop.

[0091] For example, when a virtual object performs different actions such as walking, running, or sprinting, its breathing state is different, resulting in different degrees of shaking of the virtual object's breathing, which in turn causes different degrees of shaking of the virtual prop.

[0092] In some embodiments, in order to control the virtual prop to be in a first shaking state, when the virtual object's hand is in a first hand state and the virtual object is in a first breathing state, the terminal can first determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions, and then display the virtual prop in the first shaking state according to the shaking amplitude, shaking frequency and a first scaling factor.

[0093] The first scaling factor is used to adjust the amplitude and frequency of the virtual prop's jitter. Optionally, the first scaling factor can also be called the non-ADS scaling factor (Non-ADS Scale).

[0094] Optionally, when the virtual object performs different actions and postures, different scaling factors can be set for different actions and postures, thereby producing different shaking effects under different actions and postures.

[0095] Regarding the horizontal jitter amplitude and frequency of virtual props, in one possible implementation, the terminal can set a horizontal jitter frequency and a maximum horizontal jitter amplitude, and randomly select a value within a range less than the maximum horizontal jitter amplitude based on the horizontal jitter frequency to obtain the horizontal jitter amplitude in the current period.

[0096] Regarding the vertical jitter amplitude and frequency of virtual props, in one possible implementation, the terminal can set a vertical jitter frequency and a vertical jitter amplitude range, and randomly select a value within the vertical jitter amplitude range based on the vertical jitter frequency to obtain the vertical jitter amplitude in the current period.

[0097] Optionally, considering that the virtual prop is held by the hand of the virtual object, the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions can be determined based on the hand displacement parameters of the virtual object.

[0098] Indicative, such as Figure 6 As shown, the terminal can determine the shaking amplitude and frequency of the virtual prop in the horizontal and vertical directions based on the shaking frequency (Frequency Scale) and shaking amplitude (Amplitude) of the hand in the horizontal direction (Breath Y) and the shaking frequency (Period) and shaking amplitude (Amplitude Range) of the hand in the vertical direction (Breath Z) set by the developer in the hand shaking parameter settings. Figure 6 The frequency of hand shaking in the horizontal direction is once every 0.25 seconds, and the shaking amplitude is 150 mm from left to right. The frequency of hand shaking in the vertical direction is once every 3.2 seconds, and the shaking amplitude is between 25 mm and 60 mm downward.

[0099] In one possible implementation, the terminal can first use a first scaling factor to multiply by the horizontal jitter frequency, the maximum horizontal jitter amplitude, the vertical jitter frequency, and the vertical jitter amplitude range respectively to obtain the horizontal jitter frequency, the maximum horizontal jitter amplitude, the vertical jitter frequency, and the vertical jitter amplitude range of the current cycle. Then, based on the horizontal jitter frequency of the current cycle, a value is randomly selected within the maximum horizontal jitter amplitude range to obtain the horizontal jitter amplitude in the horizontal direction of the current cycle. And based on the vertical jitter frequency of the current cycle, a value is randomly selected within the vertical jitter amplitude range to obtain the vertical jitter amplitude in the vertical direction of the current cycle.

[0100] Optionally, in order to more accurately control the shaking state of the virtual prop, the terminal can determine the hand displacement shaking and hand rotation shaking respectively based on the first scaling factor corresponding to the hand displacement of the virtual object and the first scaling factor corresponding to the hand rotation, that is, determine the displacement shaking and rotation shaking of the virtual prop.

[0101] Indicative, Figure 7 This application illustrates an exemplary embodiment of the Breath Hand Translation Modifier interface, which sets the scaling values ​​for hand displacement during breathing. Figure 8 An exemplary embodiment of this application illustrates a Breath Hand Rotation Modifier interface, where each scaling value setting interface includes scaling factors for non-ADS (Non-Aiming Scale), aiming Scale, Standing Pose Scale, Crouching Pose Scale, Prone Pose Scale, Silent Walk Scale, Running Scale, and Sprint Scale. Furthermore, the terminal retrieves the corresponding scaling factor from the scaling value setting bar based on the virtual object's current action posture and aiming posture. Based on the scaling factor, it adjusts the shaking amplitude and shaking frequency to obtain the shaking amplitude for the current cycle, determines the virtual object's breathing state, and then controls the virtual prop to enter the shaking state.

[0102] Optionally, when the virtual scene is a view of the virtual environment from the first-person perspective of the virtual object, a virtual camera is usually placed at the head or shoulder of the virtual object. The view corresponding to the virtual camera's perspective is used as the virtual scene. Therefore, as the virtual object shakes with its breathing, the virtual camera will also shake accordingly, thus changing the virtual scene.

[0103] In one possible implementation, in order to display the virtual scene more accurately based on the shaking state of the virtual camera, the terminal can determine the displacement and rotation shaking of the virtual camera by setting the scaling coefficients corresponding to the camera displacement and camera rotation according to the frequency and amplitude of hand shaking, and then display the corresponding virtual scene image according to the displacement and rotation shaking of the virtual camera.

[0104] Indicative, Figure 9 This embodiment of the present application shows an interface for setting the scaling values ​​of the camera displacement during breathing (Breath Camera Translation Modifier). Figure 10 This embodiment of the present application illustrates a Breath Camera Rotation Modifier interface, which sets the camera rotation scale during breathing. Each scaling setting interface includes scaling factors for non-ADS (Non-Aiming Scale), aiming, standing, crouching, prone, silent walk, running, and sprinting states. The terminal then retrieves the corresponding scaling factor from the scaling setting based on the virtual object's current pose and aiming posture. Based on this scaling factor, it adjusts the jitter amplitude and frequency, thereby controlling the virtual camera's jitter and displaying the corresponding virtual scene.

[0105] Step 502: When the virtual object's hand is in the first hand state, the virtual object is in the first breathing state, and the virtual prop changes from the non-aiming state to the aiming state, the virtual prop in the third shaking state is displayed within the first duration. The shaking degree of the third shaking state is less than the shaking degree of the first shaking state.

[0106] Considering that when changing from a non-aiming state to an aiming state, the arm usually contracts and the muscles tighten, and the hand tremor is relatively small at this time, in some embodiments, when the virtual object's hand is in a first hand state, the virtual object is in a first breathing state, and the virtual prop changes from a non-aiming state to an aiming state, the terminal displays the virtual prop in a third shaking state for a first duration, wherein the shaking degree of the third shaking state is less than the shaking degree of the first shaking state.

[0107] Optionally, upon receiving a player's trigger operation on the aiming control, the terminal controls the virtual item to switch from an aiming state to an aiming state. The first duration is the transition time (Ads Steady Duration) of the virtual object's muscles from tension to relaxation when the virtual item switches from an aiming state to an aiming state.

[0108] In some embodiments, in order to control the virtual prop to be in the third jitter state, when the virtual prop changes from the non-aiming state to the aiming state, the terminal can first determine the jitter amplitude and jitter frequency of the virtual prop in the horizontal and vertical directions, and then display the virtual prop in the third jitter state according to the jitter amplitude, jitter frequency and third scaling factor, wherein the third scaling factor is different from the first scaling factor.

[0109] In one possible implementation, the terminal multiplies the horizontal jitter frequency, maximum horizontal jitter amplitude, vertical jitter frequency, and vertical jitter amplitude range by a third scaling factor to obtain the horizontal jitter frequency, maximum horizontal jitter amplitude, vertical jitter frequency, and vertical jitter amplitude range for the current cycle. Then, based on the horizontal jitter frequency of the current cycle, a value is randomly selected within the maximum horizontal jitter amplitude range to obtain the horizontal jitter amplitude in the horizontal direction of the current cycle. And based on the vertical jitter frequency of the current cycle, a value is randomly selected within the vertical jitter amplitude range to obtain the vertical jitter amplitude in the vertical direction of the current cycle.

[0110] Indicative, Figure 11 An exemplary embodiment of this application illustrates a scaling value setting interface during the aiming stabilization process. This includes a scaling factor (Ads Steady Scale) for the aiming stabilization process in a first hand position, a scaling factor (Ads Steady Tremble Scale) for the aiming stabilization process in a second hand position, and a transition duration from tension to relaxation (Ads Steady Duration). When the virtual prop changes from a non-aiming state to an aiming state, the terminal first obtains the scaling factor (Ads Steady Scale) for the aiming stabilization process from this interface, and adjusts the jitter frequency and amplitude of the virtual prop in the horizontal and vertical directions using this scaling factor. Figure 11 The example uses a scaling factor of 0.3 to show the transition time of a virtual object's muscles from tension to relaxation, which is 3 seconds.

[0111] It should be noted that when adjusting the jitter frequency and jitter amplitude based on the scaling factor during the aiming stabilization process, the terminal can also simultaneously adjust the jitter frequency and jitter amplitude according to the scaling factor corresponding to the virtual object's action posture. Thus, the final jitter frequency and jitter amplitude are the values ​​after adjustment by superimposing multiple scaling factors.

[0112] Indicative, such as Figure 12 As shown, when the virtual object 1201's hand is in the first hand state, the virtual object 1201 is in the first breathing state, and the virtual prop 1202 is in the non-aiming state, the terminal displays the virtual prop 1202 in the first shaking state. When the virtual prop 1202 changes from the non-aiming state to the aiming state, the terminal displays the virtual prop 1202 in the third shaking state. Taking the target object 1203 that the virtual prop 1202 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1202 is relatively small at this time.

[0113] Step 503: After the first duration has been reached, the virtual prop in the fourth shaking state is displayed. The shaking degree of the fourth shaking state is greater than that of the third shaking state.

[0114] Considering that arm muscles usually relax gradually after switching from a non-aiming state to an aiming state, resulting in increased hand tremors, the terminal displays the virtual prop in the fourth tremor state after the first duration, and the tremor level of the fourth tremor state is greater than that of the third tremor state.

[0115] In some embodiments, when the first duration is reached, the terminal can first determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions, and then display the virtual prop in the fourth shaking state according to the shaking amplitude, shaking frequency and second scaling factor.

[0116] The second scaling factor is used to adjust the amplitude and frequency of the virtual prop's jitter. The second scaling factor differs from the first scaling factor. Optionally, the second scaling factor can also be called the aiming scaling factor.

[0117] In one possible implementation, the terminal multiplies the horizontal jitter frequency, maximum horizontal jitter amplitude, vertical jitter frequency, and vertical jitter amplitude range by the second scaling factor to obtain the horizontal jitter frequency, maximum horizontal jitter amplitude, vertical jitter frequency, and vertical jitter amplitude range for the current cycle. Then, based on the horizontal jitter frequency of the current cycle, a value is randomly selected within the maximum horizontal jitter amplitude range to obtain the horizontal jitter amplitude in the horizontal direction of the current cycle. And based on the vertical jitter frequency of the current cycle, a value is randomly selected within the vertical jitter amplitude range to obtain the vertical jitter amplitude in the vertical direction of the current cycle.

[0118] Indicative, such as Figure 7 and 8 As shown, when the first duration is reached and the muscles of the virtual object gradually relax, the terminal can obtain the scaling factor (ADS Scale) in the aiming state from the scaling value setting interface for hand displacement during breathing and the scaling value setting interface for hand rotation. Based on this scaling factor, the horizontal and vertical shaking amplitude and shaking frequency are adjusted.

[0119] Indicative, such as Figure 12 As shown, after the first duration is reached, the muscles of the virtual object gradually relax, and the terminal displays the virtual prop 1202 in the fourth shaking state. Taking the target object 1203 that the virtual prop 1202 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1202 increases at this time.

[0120] In the above embodiments, by determining the shaking state of the virtual prop based on the hand state, breathing state, and aiming state of the virtual object, the simulation of the muscles of the virtual object from tension to relaxation is realized during the process of the virtual prop changing from a non-aiming state to an aiming state. This makes the shaking degree of the virtual prop show a trend of first decreasing and then increasing, thus improving the realism of the shaking when the virtual prop is held and changes from a non-aiming state to an aiming state.

[0121] In some embodiments, when the virtual prop is in the aiming state, in order to improve the accuracy of shooting, a breath-holding phenomenon usually occurs during the aiming of the target object. Therefore, in order to further improve the realism of the shaking when the virtual prop is held, the terminal can also simulate the shaking state of the virtual prop when the breath-holding phenomenon occurs.

[0122] Please refer to Figure 13 This illustration shows a flowchart of a method for displaying virtual items provided in another exemplary embodiment of this application. This embodiment illustrates the method by way of execution by a terminal, and the method includes the following steps:

[0123] Step 1301: When the virtual prop is in the aiming state and the virtual object changes from the first breathing state to the second breathing state, the virtual prop in the fifth shaking state is displayed. The breathing frequency of the second breathing state is lower than that of the first breathing state, and the shaking degree of the fifth shaking state is less than that of the fourth shaking state.

[0124] In one possible implementation, when the virtual item is in the aiming state, in response to the player's triggering operation of the breath-holding control, the terminal controls the virtual object to switch from the first breathing state to the second breathing state.

[0125] Considering that the breathing amplitude is small when the virtual object is in a breath-holding state, the hand tremor amplitude is also small. Therefore, in some embodiments, when the virtual prop is in an aiming state and the virtual object changes from the first breathing state to the second breathing state, the terminal displays the virtual prop in the fifth shaking state, wherein the shaking degree of the fifth shaking state is less than the shaking degree of the fourth shaking state.

[0126] Optionally, the respiratory rate in the second breathing state is lower than that in the first breathing state. For example, the respiratory rate in the first breathing state is 16 breaths per minute, and the respiratory rate in the second breathing state is 10 breaths per minute. The first breathing state can be the breathing state of a normal human body in a standing position, and the second breathing state can be the breathing state of a normal human body in a breath-holding state.

[0127] Indicative, such as Figure 14 As shown, when the virtual prop 1401 is in the aiming state and the virtual object is in the first breathing state, taking the target object 1402 that the virtual prop 1401 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1401 is relatively large. When the virtual object changes from the first breathing state to the second breathing state, taking the target object 1402 that the virtual prop 1401 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1401 is smaller.

[0128] Step 1302: Based on the duration of the virtual object being in the second breathing state, reduce the upper limb strength value of the virtual object. The upper limb strength value is negatively correlated with the duration.

[0129] In one possible implementation, when a virtual object is holding a virtual prop, the terminal can determine the upper limb strength consumption of the virtual object per unit time based on the aiming state of the virtual prop. The upper limb strength consumption corresponding to the aiming state is greater than that corresponding to the non-aiming state, that is, the upper limb strength value decreases faster in the aiming state and decreases slower in the non-aiming state.

[0130] Optionally, the terminal displays a stamina progress bar for the virtual object on the interface to indicate the current stamina value of the virtual object to the player. The progress of the stamina progress bar is positively correlated with the stamina value of the virtual object. In one possible implementation, when the virtual item is not in an aiming state, the terminal updates the displayed stamina progress bar based on a first speed; when the virtual item is in an aiming state, the terminal updates the displayed stamina progress bar based on a second speed, where the second speed is greater than the first speed.

[0131] Considering that energy is required to overcome the normal breathing process in a breath-holding state, in order to improve the realism of the virtual object's activities, in some embodiments, the terminal reduces the upper limb force value of the virtual object based on the duration of the virtual object's second breathing state.

[0132] Among them, the upper limb strength value is negatively correlated with the duration of the virtual object in the second breathing state. The longer the duration, the more the upper limb strength is consumed, and the lower the upper limb strength value becomes.

[0133] That is, when the virtual object is holding the virtual prop, the upper body strength consumption is minimal when the virtual object is in the first breathing state and the virtual prop is in the non-aiming state; the upper body strength consumption is maximum when the virtual object is in the second breathing state and the virtual prop is in the aiming state.

[0134] Indicative, such as Figure 14 As shown, when the virtual prop 1401 is controlled to enter the aiming state, the terminal can display the progress bar 1404 corresponding to the upper limb strength value and the progress bar 1403 corresponding to the lower limb strength value on the interface. When the virtual object is in the first breathing state, the upper limb strength value of the virtual object is consumed at a slower rate, while when the virtual object is in the second breathing state, the upper limb strength value of the virtual object is consumed at a faster rate.

[0135] In some embodiments, considering that hand grip strength may vary under different physical conditions, the terminal can also divide the virtual object into multiple different physical strength ranges based on the maximum upper limb strength value of the virtual object, so that the shaking state of the virtual prop will be different when the upper limb strength value is in different physical strength ranges.

[0136] Step 1303: When the upper limb strength of the virtual object is less than the physical strength threshold, control the virtual object to enter the third breathing state and the virtual object's hand to enter the third hand state. The breathing intensity of the third breathing state is greater than the breathing intensity of the first breathing state.

[0137] Considering that in a real environment, after holding one's breath for a period of time, one will experience heavy breathing and may even experience exhaustion, at which point the virtual object will shake significantly. Therefore, in order to simulate the exhaustion and heavy breathing that occur after holding one's breath, in some embodiments, when the upper limb strength of the virtual object is less than the physical strength threshold, the terminal controls the virtual object to enter a third breathing state and controls the virtual object's hand to enter a third hand state.

[0138] The breathing intensity of the third breathing state is greater than that of the first breathing state. The third breathing state can be a deep breathing state at the end of breath-holding. For example, the breathing rate of the third breathing state can be set to 25 times per minute.

[0139] Optionally, the third hand state can be a state of hand weakness, in which the virtual object's hand strength is small and cannot maintain the initial grip height of the virtual prop.

[0140] Indicative Figure 15 This application illustrates an exemplary embodiment of a scaling value setting interface for entering a holding-breath state. When a virtual object changes from a first breathing state to a second breathing state, the terminal can obtain the holding-breath scale from this scaling value setting interface, and adjust the shaking frequency and amplitude of the virtual prop in the horizontal and vertical directions according to this scaling scale. Furthermore, when the upper limb strength value of the virtual object is less than a physical strength threshold, the terminal obtains the exhausted scale from the scaling value setting interface, and adjusts the shaking frequency and amplitude of the virtual prop in the horizontal and vertical directions according to this scaling scale.

[0141] Furthermore, to simulate the process of heavy breathing when the limb strength of the virtual object is insufficient, the scaling value setting interface also includes scaling coefficient curves for hand tremor amplitude, camera tremor amplitude, and frequency of hand and camera tremors during heavy breathing. This allows the terminal to adjust the shaking frequency and amplitude of the virtual prop in the horizontal and vertical directions based on the scaling coefficients at different times in the scaling coefficient curves.

[0142] Step 1304: Display the virtual prop in the sixth shaking state during the second duration. The shaking degree of the sixth shaking state is greater than that of the fourth shaking state.

[0143] In some embodiments, when the virtual object enters the third breathing state and the virtual object's hand enters the third hand state, the terminal displays the virtual prop in the sixth shaking state for a second duration, wherein the shaking degree of the sixth shaking state is greater than the shaking degree of the fourth shaking state.

[0144] Optionally, the second duration is the duration of the virtual object's hand weakness and / or heavy breathing after the breath-holding ends.

[0145] Indicative, such as Figure 16 As shown, when the virtual prop 1601 is in the aiming state and the virtual object enters the second breathing state, the terminal displays the virtual prop 1601 in the fifth shaking state. Taking the target object 1602 that the virtual prop 1601 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1601 is relatively small at this time. Furthermore, when the progress bar 1603 corresponding to the upper limb strength value of the virtual object becomes 0, that is, when the upper limb strength value is 0, the terminal displays the virtual prop 1601 in the sixth shaking state. Taking the target object 1602 that the virtual prop 1601 is aiming at as a reference, it can be seen that the shaking amplitude of the virtual prop 1601 is significantly increased at this time.

[0146] Step 1305: When the second duration is reached, control the virtual object to return from the third breathing state to the first breathing state, and the virtual object's hand to return from the third hand state to the first hand state.

[0147] Considering that after breath-holding ends, one can gradually return to a normal breathing state by panting, in order to simulate the process of gradual recovery, in some embodiments, when the second duration is reached, the terminal controls the virtual object to return from the third breathing state to the first breathing state, and restores the virtual object's hand from the third hand state to the first hand state.

[0148] Step 1306: Display the virtual props in the first shaking state.

[0149] In one possible implementation, when the virtual object returns from the third breathing state to the first breathing state, and the virtual object's hand returns from the third hand state to the first hand state, the terminal can display the virtual prop in the first shaking state on the screen.

[0150] In the above embodiments, when the virtual prop enters the aiming state, the shaking state of the virtual prop is determined according to the breathing state of the virtual object. This realizes the simulation of the virtual object from holding its breath to the decrease in upper limb strength and then to exhaustion and heavy breathing during the process of the virtual object changing from the first breathing state to the second breathing state. This makes the shaking degree of the virtual prop show a trend of first decreasing and then increasing, which improves the realism of the shaking when the virtual object changes from the first breathing state to the second breathing state when the virtual prop is held.

[0151] In some embodiments, considering that the grip strength when the hand is injured is significantly less than the grip strength when the hand is healthy, and that the degree of shaking when the hand is injured is also significantly greater than the degree of shaking when the hand is healthy, in order to simulate this phenomenon, the terminal can adjust the hand state of the virtual object according to the hand health value of the virtual object, thereby changing the shaking state of the virtual prop.

[0152] Optionally, the terminal can set health values ​​for different parts of the virtual object. The higher the health value, the better the health of that part. For example, if the virtual object's hand is hit by a virtual bullet, the health value of the virtual object's hand will decrease.

[0153] Optionally, the hand health value may be related to the number of times the hand is attacked, the intensity of the attack, or the amount of blood loss from the hand, etc., and this embodiment of the application does not limit this. Optionally, the virtual object may also improve the hand health value by using virtual medicines, etc.

[0154] In one possible implementation, when the health value of the virtual object's hand is less than a health threshold, the terminal controls the virtual object's hand to change from a first hand state to a second hand state, and displays the virtual prop in the second shaking state within a third time period based on the virtual object's hand offset.

[0155] Optionally, the third duration is the duration during which the virtual object's hand health value is less than the health threshold. That is, when the virtual object's hand health value is less than the health threshold, the virtual object's hand is in the second hand state, and the virtual prop is in the second shaking state; when the virtual object's hand health value is greater than or equal to the health threshold, the virtual object's hand returns from the second hand state to the first hand state, and the virtual prop returns from the second shaking state to the first shaking state.

[0156] Optionally, the terminal can display health indicators for the virtual objects on the interface to indicate the current health status of different parts of the virtual object to the player. The health indicators for the virtual objects include the corresponding part identifiers and health values ​​for different parts of the virtual object, illustratively, such as... Figure 4As shown, the terminal sets different maximum health values ​​for different body parts based on their ability to withstand damage.

[0157] In one possible implementation, when the virtual object's hand is attacked, the terminal updates the hand health value in the health identifier. For example, the terminal can determine the decrease in the hand health value based on the attack value, and then update the hand health value in the health identifier. It should be noted that when the virtual object's hand is attacked, the terminal only updates the hand health value; that is, there is no necessary correlation between the health values ​​of different body parts.

[0158] Furthermore, when a virtual object is holding a virtual item, in order to promptly remind the player to restore the virtual object's hand health value, the terminal can update the hand icon in the health display when the virtual object's hand health value is lower than the health threshold. The updated hand icon will have a different display effect than the original. For example, the color and animation effects may differ.

[0159] Optionally, the hand offset is the maximum downward displacement of the held object when the hand is in the second hand position. The terminal can determine the hand offset in the second hand position based on the scaling factor and the vertical shaking amplitude of the virtual prop. For example, if the scaling factor is greater than 1, the hand offset is equal to the scaling factor multiplied by the maximum shaking amplitude.

[0160] Indicative, Figure 17 An exemplary embodiment of this application illustrates a hand offset setting interface when the hand health value is less than a health threshold. This interface includes displacement offsets (Amplitude) in the X-axis (Tremble Noise X), Y-axis (Tremble Noise Y), and Z-axis (Tremble Noise Z) directions, as well as the corresponding jitter frequency. When the virtual object's hand health value is less than the health threshold, the terminal can obtain the displacement offsets of the virtual object's hand in the X, Y, and Z axes, along with the corresponding jitter frequency, from this interface. Based on these displacement offsets and jitter frequency, the terminal can control the virtual prop to enter a second jitter state.

[0161] Indicative, Figure 18 This embodiment of the present application illustrates an interface for setting the degree of hand sinking when the hand health value is less than a health threshold, including the time interval for random hand sinking (Fracture Spasm Intervalrange). Figure 18Taking 2.8 to 6 seconds as an example, and the range of random hand descent (fracture spasmintensity range), Figure 18 Taking 1200-2500 mm as an example. Furthermore, Figure 18 The system also includes a "Fracture Spasm Scale" which controls the virtual object to gradually rise after the hand randomly sinks down. This allows the terminal to adjust the up-and-down shaking amplitude of the virtual object based on the scaling factor corresponding to each moment in the gesture curve.

[0162] Indicative, such as Figure 19 As shown, when the virtual object holds the virtual prop 1901, the terminal displays the virtual object's health indicator 1903 on the interface. The maximum health value of the virtual object's hand is 60. When the virtual object's hand is in the first hand state, the terminal controls the virtual prop 1901 to aim at the target object 1902. When the virtual object's hand health value drops to 0, the terminal controls the virtual prop 1901 to sink based on the downward offset of the virtual object's hand. Taking the target object 1902 aimed at by the virtual prop 1901 as a reference, it can be seen that the virtual prop 1901 sinks by a certain amount. Then, the terminal controls the virtual prop 1901 to gradually rise based on the set action rhythm curve. Taking the target object 1902 aimed at by the virtual prop 1901 as a reference, it can be seen that the virtual prop 1901 rises.

[0163] Optionally, in addition to the virtual object's hand health value, the shaking state of the virtual prop is also affected by the virtual object's breathing state and upper limb strength value. If the virtual object's hand health value is less than the health threshold, even if the virtual object enters a second breathing state, it may not be able to reduce the shaking degree of the virtual prop; however, if the virtual object's upper limb strength value is less than the physical strength threshold, the shaking degree of the virtual prop can be increased.

[0164] In one possible implementation, when the virtual object's hand is in a second hand state and the virtual object changes from a first breathing state to a second breathing state, the terminal displays a virtual prop in a second shaking state, wherein the breathing frequency in the second breathing state is lower than the breathing frequency in the first breathing state. That is, when the virtual object's hand health value is less than a health threshold, adjusting the breathing state cannot change the degree of shaking of the virtual prop.

[0165] In one possible implementation, when the virtual object's hand is in a second hand state and the virtual object's upper limb strength is less than a physical strength threshold, the terminal displays a virtual prop in a seventh shaking state, wherein the shaking intensity of the seventh shaking state is greater than that of the second shaking state. That is, when the virtual object's hand health value is less than a health threshold, the depletion of upper limb strength will exacerbate the shaking intensity of the virtual prop.

[0166] Optionally, if the virtual object's hand health value is less than the health threshold and the virtual object's upper limb strength value is less than the physical strength threshold, the virtual object can increase its hand health value through virtual supply medicine to reduce the shaking degree of the virtual prop; or, the virtual object can increase its upper limb strength value through virtual energy medicine to reduce the shaking degree of the virtual prop.

[0167] It should be noted that the virtual prop shakes the most when the virtual object's hand health value is less than the health threshold and the virtual object's upper limb strength value is less than the physical strength threshold. Conversely, the shaking of the virtual prop will decrease if either the hand health value or the upper limb strength value is increased.

[0168] In the above embodiments, the shaking state of the virtual prop is determined based on the hand state of the virtual object. This realizes the simulation of the virtual object's hand randomly sinking and gradually rising during the process of the virtual object's hand changing from the first hand state to the second hand state. This makes the shaking degree of the virtual prop show a trend of first sinking and then rising, improving the realism of the shaking when the virtual object's hand changes from the first hand state to the second hand state when the virtual prop is held.

[0169] Please refer to Figure 20 The diagram illustrates a flowchart of a method for displaying virtual props provided in another exemplary embodiment of this application.

[0170] Step 2001: Display the virtual object holding the virtual prop in the virtual scene screen.

[0171] Step 2002: When the virtual object's hand is in the first hand state, display the virtual prop in the first shaking state.

[0172] The terminal determines the hand status of the virtual object based on the hand health value. When the virtual object's hand status is in the first hand status, the terminal displays the virtual prop in the first shaking state. At this time, the virtual prop shakes with the virtual object's breathing.

[0173] Step 2003: Is the virtual item in aiming mode?

[0174] Furthermore, during the process of the virtual object holding the virtual prop, the terminal judges the aiming state of the virtual prop. If the virtual prop is in the aiming state, proceed to step 2004; if the virtual prop is in the non-aiming state, proceed to step 2010.

[0175] Step 2004: When the virtual item changes from an unaimed state to an aiming state, display the virtual item in the third shaking state.

[0176] When a virtual prop changes from an unaimed state to an aiming state, the terminal simulates the phenomenon of the virtual object's arm contracting and muscles tensing, controls the shaking amplitude and frequency of the virtual prop to decrease, and displays the virtual prop in the third shaking state.

[0177] Step 2005: Is the virtual object in a second breathing state?

[0178] Furthermore, when the virtual prop is in the aiming state, the terminal judges the breathing state of the virtual object. If the virtual object is in the first breathing state, proceed to step 2008; if the virtual object is in the second breathing state (breath-holding state), proceed to step 2006.

[0179] Step 2006: When the virtual object changes from the first breathing state to the second breathing state, display the virtual prop in the fifth shaking state.

[0180] When a virtual object enters a breath-holding state, the terminal simulates the breath-holding process, controls the shaking amplitude and frequency of the virtual prop to decrease, and displays the virtual prop in the fifth shaking state.

[0181] Step 2007: Based on the duration of the virtual object's second breathing state, reduce the upper limb strength value of the virtual object.

[0182] Meanwhile, when the virtual object enters a breath-holding state, the terminal simulates the physical exertion process during breath-holding and gradually reduces the upper limb strength value of the virtual object based on the duration of the virtual object's second breathing state.

[0183] Step 2008: Is the upper limb strength value less than the physical strength threshold?

[0184] Furthermore, the terminal determines whether the upper limb strength value of the virtual object is less than the physical strength threshold. If the upper limb strength value is less than the physical strength threshold, for example, if the upper limb strength value is zero, proceed to step 2009.

[0185] Step 2009: Display the virtual props in the sixth shaking state.

[0186] When the upper limb strength value is less than the physical strength threshold, the terminal simulates the process of heavy breathing and exhaustion after holding one's breath, controls the shaking amplitude and shaking frequency of the virtual prop to increase, and displays the virtual prop in the sixth shaking state.

[0187] Step 2010: Has the hand changed to the second hand state?

[0188] Furthermore, the terminal determines whether the virtual object's hand has changed to a second hand state based on the virtual object's hand health value. If the virtual object's hand has changed to a second hand state, the process proceeds to step 2011; if the virtual object's hand is still in the first hand state, the process returns to step 2002.

[0189] Step 2011: Display the virtual prop in the second shaking state.

[0190] When the virtual object's hand health value is 0, the terminal simulates the process of reduced grip strength when the hand is injured, controls the virtual prop to sink randomly by a certain amplitude, and controls the virtual object to gradually raise the virtual prop, thereby displaying the virtual prop in the second shaking state.

[0191] Please refer to Figure 21 The diagram illustrates a structural block diagram of a display device for virtual props provided in an exemplary embodiment of this application. The device includes:

[0192] The first display module 2101 is used to display a virtual object holding a virtual prop in a virtual scene.

[0193] The second display module 2102 is used to display the virtual prop in a first shaking state when the virtual object's hand is in a first hand state, wherein the virtual object's hand state is related to at least one of the virtual object's upper limb strength value and hand health value;

[0194] The third display module 2103 is used to display the virtual prop in a second shaking state when the virtual object's hand changes from the first hand state to the second hand state, wherein the shaking degree of the second shaking state is greater than the shaking degree of the first shaking state.

[0195] Optionally, the second display module 2102 is used for:

[0196] When the virtual object's hand is in the first hand state and the virtual object is in the first breathing state, the virtual prop in the first shaking state is displayed. The breathing state of the virtual object is related to at least one of the virtual object's action posture and the aiming state of the virtual prop.

[0197] Optionally, the second display module 2102 is further configured to:

[0198] When the virtual object's hand is in the first hand state and the virtual object is in the first breathing state, determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions;

[0199] Based on the jitter amplitude, the jitter frequency, and the first scaling factor, the virtual prop in the first jitter state is displayed, and the first scaling factor is used to adjust the jitter amplitude and jitter frequency of the virtual prop.

[0200] Optionally, the device further includes:

[0201] The fourth display module is used to display the virtual prop in a third shaking state for a first duration when the virtual object's hand is in the first hand state, the virtual object is in the first breathing state, and the virtual prop changes from a non-aiming state to an aiming state. The shaking degree of the third shaking state is less than that of the first shaking state.

[0202] The fifth display module is used to display the virtual prop in the fourth shaking state when the first duration is reached, wherein the shaking degree of the fourth shaking state is greater than the shaking degree of the third shaking state.

[0203] Optionally, the fifth display module is further configured to:

[0204] If the first duration is reached, determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions;

[0205] Based on the jitter amplitude, the jitter frequency, and the second scaling factor, the virtual prop in the fourth jitter state is displayed. The second scaling factor is used to adjust the jitter amplitude and jitter frequency of the virtual prop. The second scaling factor is different from the first scaling factor.

[0206] Optionally, the device further includes:

[0207] The sixth display module is used to display the virtual prop in the fifth shaking state when the virtual prop is in the aiming state and the virtual object changes from the first breathing state to the second breathing state, wherein the breathing frequency of the second breathing state is lower than the breathing frequency of the first breathing state, and the shaking degree of the fifth shaking state is less than the shaking degree of the fourth shaking state.

[0208] The stamina reduction module is used to reduce the upper limb stamina of the virtual object based on the duration of the virtual object being in the second breathing state, wherein the upper limb stamina is negatively correlated with the duration.

[0209] Optionally, the device further includes:

[0210] The first control module is used to control the virtual object to enter a third breathing state and the virtual object's hand to enter a third hand state when the upper limb strength value of the virtual object is less than the physical strength threshold. The breathing intensity of the third breathing state is greater than the breathing intensity of the first breathing state.

[0211] The seventh display module is used to display the virtual prop in the sixth shaking state during the second duration, wherein the shaking degree of the sixth shaking state is greater than that of the fourth shaking state.

[0212] The second control module is used to control the virtual object to return from the third breathing state to the first breathing state and the virtual object's hand to return from the third hand state to the first hand state when the second duration is reached.

[0213] The eighth display module is used to display the virtual prop in the first shaking state.

[0214] Optionally, the third display module 2103 is used for:

[0215] When the health value of the virtual object's hand is less than a health threshold, the virtual object's hand is controlled to change from the first hand state to the second hand state;

[0216] Based on the hand offset of the virtual object, the virtual prop in the second shaking state is displayed within a third time period.

[0217] Optionally, the device further includes:

[0218] The ninth display module is used to display the virtual prop in the second shaking state when the virtual object's hand is in the second hand state and the virtual object changes from the first breathing state to the second breathing state, wherein the breathing frequency of the second breathing state is lower than the breathing frequency of the first breathing state.

[0219] The tenth display module is used to display the virtual prop in a seventh shaking state when the virtual object's hand is in the second hand state and the upper limb strength value of the virtual object is less than the physical strength threshold. The shaking degree of the seventh shaking state is greater than that of the second shaking state.

[0220] Optionally, the device further includes:

[0221] The identification display module is used to display the health identifier corresponding to the virtual object, wherein the health identifier includes the part identifier corresponding to different parts of the virtual object and the health value;

[0222] A health value update module is used to update the hand health value in the health identifier when the hand of the virtual object is attacked.

[0223] The identifier update module is used to update the display of the hand identifier in the health identifier when the hand health value of the virtual object is less than the health threshold. The display effect of the hand identifier after the update is different from the display effect of the hand identifier before the update.

[0224] Optionally, the device further includes:

[0225] The state determination module is used to determine the breathing state of the virtual object based on the action posture of the virtual object. Different action postures correspond to different breathing states, and the degree of shaking of the virtual prop is different in different breathing states.

[0226] Optionally, the device further includes:

[0227] The consumption determination module is used to determine the upper limb strength consumption of the virtual object based on the aiming state of the virtual prop, wherein the upper limb strength consumption corresponding to the aiming state is greater than the upper limb strength consumption corresponding to the non-aiming state.

[0228] Optionally, the device further includes:

[0229] The first progress bar update module is used to update and display the stamina value progress bar corresponding to the virtual object based on a first speed when the virtual prop is in the non-aiming state.

[0230] The second progress bar update module is used to update and display the stamina value progress bar corresponding to the virtual object based on a second speed when the virtual prop is in the aiming state, wherein the second speed is greater than the first speed.

[0231] In summary, in the embodiments of this application, when a virtual object holds a virtual prop, the shaking state of the virtual prop is combined with the hand state of the virtual object. When the virtual object's hand is in a first hand state, the virtual prop in the first shaking state is displayed; when the virtual object's hand changes from the first hand state to the second hand state, the virtual prop in the second shaking state is displayed. This allows the shaking state of the virtual prop to change with the change of the virtual object's hand state, improving the realism of the shaking when the virtual prop is held.

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

[0233] Please refer to Figure 22 This diagram illustrates a structural block diagram of a terminal 2200 provided in an exemplary embodiment of this application. The terminal 2200 can be a portable mobile terminal, such as a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, or Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 2200 may also be referred to as a user device, portable terminal, or other names.

[0234] Typically, terminal 2200 includes a processor 2201 and a memory 2202.

[0235] Processor 2201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2201 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 2201 may also include a main processor and a coprocessor. The main processor, also known as the 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 2201 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 2201 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0236] The memory 2202 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 2202 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 2202 is used to store at least one instruction, which is executed by the processor 2201 to implement the virtual item display method provided in this application embodiment.

[0237] In some embodiments, the terminal 2200 may also optionally include: a peripheral device interface 2203 and at least one peripheral device.

[0238] Peripheral device interface 2203 can be used to connect at least one input / output (I / O) related peripheral device to processor 2201 and memory 2202. In some embodiments, processor 2201, memory 2202 and peripheral device interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 2201, memory 2202 and peripheral device interface 2203 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0239] Those skilled in the art will understand that Figure 22The structure shown does not constitute a limitation on terminal 2200 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0240] This application also provides a computer-readable storage medium storing at least one program, which is loaded and executed by a processor to implement the virtual prop display method described in the above embodiments.

[0241] According to one aspect of this application, a computer program product is provided, comprising computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual item display method provided in various alternative implementations of the above aspect.

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

[0243] 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 virtual props, characterized in that, The method includes: Display a virtual object holding a virtual prop in the virtual scene; When the virtual object's hand is in a first hand state, the virtual prop is displayed in a first shaking state. The hand state of the virtual object is related to at least one of the virtual object's upper limb strength value and hand health value. When the virtual object's hand changes from the first hand state to the second hand state, the virtual prop is displayed in a second shaking state, where the shaking degree of the second shaking state is greater than that of the first shaking state.

2. The method according to claim 1, characterized in that, The step of displaying the virtual prop in a first shaking state when the virtual object's hand is in a first hand state includes: When the virtual object's hand is in the first hand state and the virtual object is in the first breathing state, the virtual prop in the first shaking state is displayed. The breathing state of the virtual object is related to at least one of the virtual object's action posture and the aiming state of the virtual prop.

3. The method according to claim 2, characterized in that, The step of displaying the virtual prop in the first shaking state when the virtual object's hand is in the first hand state and the virtual object is in the first breathing state includes: When the virtual object's hand is in the first hand state and the virtual object is in the first breathing state, determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions; Based on the jitter amplitude, the jitter frequency, and the first scaling factor, the virtual prop in the first jitter state is displayed, and the first scaling factor is used to adjust the jitter amplitude and jitter frequency of the virtual prop.

4. The method according to claim 2, characterized in that, The method further includes: When the virtual object's hand is in the first hand state, the virtual object is in the first breathing state, and the virtual prop changes from a non-aiming state to an aiming state, the virtual prop is displayed in a third shaking state for a first duration, and the shaking degree of the third shaking state is less than the shaking degree of the first shaking state. If the first duration is reached, the virtual item is displayed in a fourth shaking state, where the shaking degree of the fourth shaking state is greater than that of the third shaking state.

5. The method according to claim 4, characterized in that, The step of displaying the virtual prop in the fourth shaking state when the first duration is reached includes: If the first duration is reached, determine the shaking amplitude and shaking frequency of the virtual prop in the horizontal and vertical directions; Based on the jitter amplitude, the jitter frequency, and the second scaling factor, the virtual prop in the fourth jitter state is displayed. The second scaling factor is used to adjust the jitter amplitude and jitter frequency of the virtual prop. The second scaling factor is different from the first scaling factor.

6. The method according to claim 4, characterized in that, The method further includes: When the virtual prop is in the aiming state and the virtual object changes from the first breathing state to the second breathing state, the virtual prop is displayed in the fifth shaking state, where the breathing frequency of the second breathing state is lower than that of the first breathing state, and the shaking degree of the fifth shaking state is less than that of the fourth shaking state. Based on the duration of the virtual object being in the second breathing state, the upper limb strength value of the virtual object is reduced, and the upper limb strength value is negatively correlated with the duration.

7. The method according to claim 6, characterized in that, The method further includes: When the upper limb strength value of the virtual object is less than the physical strength threshold, the virtual object is controlled to enter a third breathing state, and the hands of the virtual object are controlled to enter a third hand state. The breathing intensity of the third breathing state is greater than the breathing intensity of the first breathing state. The virtual prop is displayed in the sixth shaking state during the second duration, and the shaking degree of the sixth shaking state is greater than that of the fourth shaking state. If the second duration is reached, the virtual object is controlled to return from the third breathing state to the first breathing state, and the virtual object's hand is controlled to return from the third hand state to the first hand state; Display the virtual prop in the first shaking state.

8. The method according to claim 1, characterized in that, The step of displaying the virtual prop in a second shaking state when the virtual object's hand changes from a first hand state to a second hand state includes: When the health value of the virtual object's hand is less than a health threshold, the virtual object's hand is controlled to change from the first hand state to the second hand state; Based on the hand offset of the virtual object, the virtual prop in the second shaking state is displayed within a third time period.

9. The method according to claim 8, characterized in that, The method further includes: When the virtual object's hand is in the second hand state and the virtual object changes from the first breathing state to the second breathing state, the virtual prop in the second shaking state is displayed, and the breathing frequency of the second breathing state is lower than the breathing frequency of the first breathing state. When the virtual object's hand is in the second hand state and the upper limb strength value of the virtual object is less than the physical strength threshold, the virtual prop is displayed in the seventh shaking state, where the shaking degree of the seventh shaking state is greater than that of the second shaking state.

10. The method according to claim 8, characterized in that, The method further includes: Display the health identifier corresponding to the virtual object, the health identifier including the part identifier corresponding to different parts of the virtual object and the health value; If the virtual object's hand is attacked, update the hand health value in the health identifier; If the hand health value of the virtual object is less than the health threshold, the hand icon in the health icon is updated and displayed. The display effect of the updated hand icon is different from the display effect of the hand icon before the update.

11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Based on the virtual object's posture, the virtual object's breathing state is determined. Different postures correspond to different breathing states, and the degree of shaking of the virtual prop varies under different breathing states.

12. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Based on the aiming state of the virtual prop, the upper limb strength consumption of the virtual object is determined, wherein the upper limb strength consumption corresponding to the aiming state is greater than the upper limb strength consumption corresponding to the non-aiming state.

13. The method according to claim 12, characterized in that, The method further includes: When the virtual item is in the non-aiming state, the progress bar of the stamina value corresponding to the virtual object is updated and displayed based on the first speed. When the virtual prop is in the aiming state, the stamina progress bar corresponding to the virtual object is updated and displayed based on a second speed, where the second speed is greater than the first speed.

14. A display device for virtual props, characterized in that, The device includes: The first display module is used to display a virtual object holding a virtual prop in the virtual scene. The second display module is used to display the virtual prop in a first shaking state when the virtual object's hand is in a first hand state, wherein the virtual object's hand state is related to at least one of the virtual object's upper limb strength value and hand health value; The third display module is used to display the virtual prop in a second shaking state when the virtual object's hand changes from the first hand state to the second hand state, wherein the shaking degree of the second shaking state is greater than the shaking degree of the first shaking state.

15. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the virtual prop display method as described in any one of claims 1 to 14.

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

17. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual prop display method as described in any one of claims 1 to 14.