Virtual object information display method and device, terminal and storage medium
By displaying threat warning controls and threat object models in the virtual scene screen, the virtual object information acquisition process is simplified, the information acquisition efficiency and combat efficiency are improved, and the problem of cumbersome information acquisition in the existing technology is solved.
Patent Information
- Application Number
- CN202410047677.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, the process of obtaining virtual object information is cumbersome and low efficiency. Users need to switch perspectives to find and observe threatening virtual objects to obtain information.
Simplify the information acquisition process by displaying threat warning controls in the virtual scene screen, indicating the location of the threat virtual object, and displaying the threat object model after the operation is triggered to represent its attribute information.
It improves the efficiency of obtaining virtual object information, so users can obtain attribute information without getting close to threatening objects, and can make strategic decisions in advance, effectively avoid risks and improve combat efficiency.
Smart Images

Figure CN120285542A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of human-computer interaction, and in particular, to a method, device, terminal, and storage medium for displaying information of virtual objects. Background Art
[0002] With the development of computer technology and the improvement of device performance, the human-computer interaction interface of electronic games has gradually received attention. In a Massive Multiplayer Online Role-Playing Game (MMORPG), a user can control a virtual object to move in a virtual scene picture.
[0003] In related technologies, in the case of facing a threatening virtual object, the user first needs to switch the perspective to find the virtual object within the visible range, and then, when the virtual object is found, understand the information of the virtual object through observation and attack testing.
[0004] Obviously, the information acquisition process of virtual objects in related technologies is cumbersome and the information acquisition efficiency is low. Summary of the Invention
[0005] Embodiments of the present application provide a method, device, terminal, and storage medium for displaying information of virtual objects, which can simplify the information acquisition process and improve the information acquisition efficiency of virtual objects. The technical solutions are as follows:
[0006] On the one hand, embodiments of the present application provide a method for displaying information of a virtual object, the method including:
[0007] Display a virtual scene picture, where the virtual scene picture is a picture obtained by shooting a virtual scene from the perspective of a first virtual object;
[0008] Display a threat warning control in the virtual scene picture, where the threat warning control is used to indicate the position of a second virtual object within a threat warning range, the second virtual object and the first virtual object belong to different camps, the threat warning range is greater than the visible range of the first virtual object and less than the perception range of the first virtual object;
[0009] In response to a trigger operation on the threat warning control, display a threat object model in the virtual scene picture, where the threat object model is used to represent the attribute information of the second virtual object.
[0010] On the other hand, embodiments of the present application provide a device for displaying information of a virtual object, the device including:
[0011] A screen display module for displaying a virtual scene screen, where the virtual scene screen is a screen obtained by shooting a virtual scene from the perspective of a first virtual object;
[0012] A control display module for displaying a threat warning control in the virtual scene screen, where the threat warning control is used to indicate the position of a second virtual object within the threat warning range. The second virtual object and the first virtual object belong to different camps. The threat warning range is larger than the visible range of the first virtual object and smaller than the perception range of the first virtual object;
[0013] A model display module for, in response to a trigger operation on the threat warning control, displaying a threat object model in the virtual scene screen, where the threat object model is used to represent the attribute information of the second virtual object.
[0014] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the information display method of the virtual object as described in the above aspect.
[0015] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the information display method of the virtual object as described in the above aspect.
[0016] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device implements the information display method of the virtual object provided in the above aspect.
[0017] In an embodiment of the present application, when the second virtual object enters the threat warning range, the terminal, by displaying the threat warning control, indicates the position of the second virtual object within the threat warning range. Further, when the threat warning control is triggered, the terminal displays a threat object model representing the attribute information of the second virtual object. The user does not need to control the first virtual object to approach the second virtual object to obtain the attribute information of the second virtual object within the field of view, which simplifies the process of obtaining virtual object information and improves the information acquisition efficiency. Moreover, the user can make strategic decisions in advance based on the displayed information, thereby effectively avoiding risks and, in the case of preparing to fight, improving the combat efficiency of the first virtual object. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 Shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0020] Figure 2 Shows a flowchart of a method for displaying information of a virtual object provided by an exemplary embodiment of the present application;
[0021] Figure 3 Shows a schematic diagram of a virtual scene screen during the movement process of a first virtual object provided by an exemplary embodiment of the present application;
[0022] Figure 4 Shows a schematic diagram of a virtual scene screen of multiple threat warning controls provided by an exemplary embodiment of the present application;
[0023] Figure 5 Shows an implementation schematic diagram of the display process of a threat object model provided by an exemplary embodiment of the present application;
[0024] Figure 6 Shows a flowchart of a method for displaying information of a virtual object provided by another exemplary embodiment of the present application;
[0025] Figure 7 Shows a schematic diagram of color filling of a threat object model provided by an exemplary embodiment of the present application;
[0026] Figure 8 Shows a schematic diagram of the threat level indicated by a threat object model provided by an exemplary embodiment of the present application;
[0027] Figure 9 Shows a schematic diagram of the target display position of a threat object model when a second virtual object is within the scene range provided by an exemplary embodiment of the present application;
[0028] Figure 10 Shows a schematic diagram of the target display position of a threat object model when a second virtual object is outside the scene range provided by an exemplary embodiment of the present application;
[0029] Figure 11 Shows a schematic diagram of a virtual scene screen including an arrow mark when a second virtual object is outside the scene range provided by an exemplary embodiment of the present application;
[0030] Figure 12 The figure shows a schematic diagram of the edge position of a threat warning control provided by an exemplary embodiment of the present application;
[0031] Figure 13 The figure shows a schematic diagram of a virtual scene screen when a second virtual object re - enters the threat warning range provided by an exemplary embodiment of the present application;
[0032] Figure 14 The figure shows an implementation schematic diagram of a perspective locking process provided by an exemplary embodiment of the present application;
[0033] Figure 15 The figure shows an implementation schematic diagram of the process of making a threat object model transparent provided by an exemplary embodiment of the present application;
[0034] Figure 16 The figure shows a flowchart of the virtual object information display process provided by an exemplary embodiment of the present application;
[0035] Figure 17 The figure shows a structural block diagram of an information display device for a virtual object provided by an exemplary embodiment of the present application;
[0036] Figure 18 The figure shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. Detailed implementation manners
[0037] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0038] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0039] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment may include: a first terminal 110, a server 120, and a second terminal 130.
[0040] An application program 111 that supports a virtual environment runs on the first terminal 110. The application program 111 can be a multiplayer online battle program. When the first terminal runs the application program 111, the user interface of the application program 111 is displayed on the screen of the first terminal 110. The application program 111 can be any one of a Multiplayer Online Battle Arena (MOBA) game, a Simulation Game (SLG), a Massive Multiplayer Online Role-Playing Game (MMORPG), and a First-Person Shooting game (FPS). In this embodiment, the application program 111 is taken as an MMORPG for example. The first terminal 110 is a terminal used by the first user 112. The first user 112 uses the first terminal 110 to control the first virtual object located in the virtual environment to perform activities. The first virtual object can be called the main control virtual object of the first user 112. The activities of the first virtual object include but are not limited to at least one of adjusting the body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. Schematically, the first virtual object is a first virtual character, such as an emulated character or an anime character.
[0041] An application program 131 that supports a virtual environment runs on the second terminal 130. The application program 131 can be a multiplayer online battle program. When the second terminal 130 runs the application program 131, the user interface of the application program 131 is displayed on the screen of the second terminal 130. The client can be any one of a MOBA game, an SLG game, an MMORPG game, and an FPS game. In this embodiment, the application program 131 is taken as an MMORPG for example. The second terminal 130 is a terminal used by the second user 132. The second user 132 uses the second terminal 130 to control the second virtual object located in the virtual environment to perform activities. The second virtual object can be called the main control virtual character of the second user 132. Schematically, the second virtual object is a second virtual character, such as an emulated character or an anime character.
[0042] Optionally, the first virtual object and the second virtual object are in the same virtual world. Optionally, the first virtual object and the second virtual object can belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object can belong to different camps, different teams, different organizations, or have a hostile relationship.
[0043] 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 applications on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another one of multiple terminals. This embodiment only takes the first terminal 110 and the second terminal 130 as examples for illustration. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, and a desktop computer.
[0044] Figure 1 Only two terminals are shown in the figure, but in different embodiments, there are multiple other terminals that can access the server 120. Optionally, there is also one or more terminals that are the terminals corresponding to the developer, and a development and editing platform for applications supporting the virtual environment is installed on these terminals. The developer can edit and update the application on these terminals, and transmit the updated application installation package to the server 120 through a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the application.
[0045] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 through a wireless network or a wired network.
[0046] The server 120 includes at least one of a single server, a server cluster composed of multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for applications supporting the three-dimensional virtual environment. Optionally, the server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, a distributed computing architecture is adopted between the server 120 and the terminal for collaborative computing.
[0047] In a schematic example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-oriented input / output interface (I / O interface) 125. Among them, the processor 122 is used to load the instructions stored in the server 120 and process the data in the user account database 123 and the battle service module 124; the user account database 123 is used to store the data of the user accounts used by the first terminal 110, the second terminal 130, and other terminals, such as the avatar of the user account, the nickname of the user account, the combat power index of the user account, and the service area where the user account is located; the battle service module 124 is used to provide multiple battle rooms for users to conduct battles, such as 1V1 battles, 3V3 battles, 5V5 battles, 1V5 battles, etc.; the user-oriented I / O interface 125 is used to establish communication with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network to exchange data.
[0048] Combined with the above introduction, the information display method of the virtual object provided by this application will be described. In the embodiments of this application, it is described by taking this method as being executed by a terminal as an example.
[0049] Please refer to Figure 2 , which shows a flowchart of the information display method of the virtual object provided by an exemplary embodiment of this application. In this embodiment, it is described by taking this method as being used for Figure 1 the first terminal 110 or the second terminal 130 in the shown implementation environment or other terminals in this implementation environment as an example. The method includes the following steps:
[0050] Step 201, display a virtual scene picture, which is a picture obtained by shooting a virtual scene from the perspective of a first virtual object.
[0051] A virtual object refers to an active object in a virtual environment. The active object can be a virtual chess piece, a virtual character, a virtual animal, an anime character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in the virtual environment. Optionally, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment.
[0052] A virtual scene refers to the virtual environment in which a virtual object is located in the virtual world during the running of an application program. A virtual scene picture refers to the picture shown to the user when a virtual object is active in the virtual scene. The virtual scene picture may include other virtual objects in the same virtual scene as the virtual object.
[0053] Optionally, the perspective of the first virtual object can be the first-person perspective of the first virtual object or the third-person perspective of the first virtual object. In the embodiments of the present application, the third-person perspective is taken as an example, and the virtual scene is photographed through the camera model corresponding to the first virtual object to obtain the virtual scene picture from the third-person perspective of the first virtual object.
[0054] The camera model refers to a three-dimensional model located around the virtual object in the virtual world. When the first-person perspective is adopted, the camera model is located near the head of the virtual object or on the head of the virtual object; when the third-person perspective is adopted, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. Through this camera model, the virtual object located in the virtual world can be observed from different angles. Optionally, when the third-person perspective is the over-the-shoulder perspective of the first person, the camera model is located behind the virtual object (such as the head and shoulders of the virtual object). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as the top-down perspective; when the top-down perspective is adopted, the camera model can be located above the head of the virtual object, and the top-down perspective is the perspective of observing the virtual world from an aerial top-down angle. Optionally, the camera model is not actually displayed in the virtual world, that is, the camera model is not displayed in the virtual world displayed on the user interface.
[0055] Optionally, the camera model automatically follows the virtual character in the virtual world, that is, when the position of the virtual object changes in the virtual world, the camera model follows the position of the virtual object in the virtual world and changes simultaneously, and the camera model is always within the preset distance range of the virtual object in the virtual world. Optionally, during the automatic following process, the relative position between the camera model and the virtual object does not change.
[0056] Exemplarily, as Figure 3 shown, the virtual scene picture is centered on the first virtual object 301, and the lens of the camera model automatically follows the movement of the first virtual object 301.
[0057] Step 202, display a threat warning control in the virtual scene picture. The threat warning control is used to indicate the position of the second virtual object within the threat warning range. The second virtual object and the first virtual object belong to different camps. The threat warning range is greater than the visible range of the first virtual object and less than the perception range of the first virtual object.
[0058] Optionally, there can be multiple second virtual objects within the perception range of the first virtual object, or there can be only one second virtual object.
[0059] Wherein, when there are multiple second virtual objects within the perception range of the first virtual object, the terminal uses multiple threat warning controls to indicate the relative orientations of different second virtual objects, and in response to a trigger operation on a threat warning control, displays a threat object model of the second virtual object indicated by the threat warning control.
[0060] Exemplarily, as Figure 4 shown, there are three second virtual objects within the perception range of the first virtual object. Among them, the threat warning control 411 indicates the relative orientation of the second virtual object 401, the threat warning control 412 indicates the relative orientation of the second virtual object 402, and the threat warning control 413 indicates the relative orientation of the second virtual object 403.
[0061] The visible range of the first virtual object refers to the range of the virtual scene that can be captured by the camera model from the perspective of the first virtual object. The perception range of the first virtual object refers to the range within which the virtual object can perform threat perception, and the perception range is larger than the visible range.
[0062] Optionally, the visible range, the perception range, and the threat warning range are circular regions, representing circular regions centered on the first virtual object in the top-down plane of the virtual scene. Then, the threat warning range is the circular ring region between the visible range and the perception range. Exemplarily, the visible range of the first virtual object is a circular region with a radius of 20m, and the perception range of the first virtual object is a circular region with a radius of 100m. Then, the threat warning range is the circular ring region with a radius between 20m and 100m.
[0063] A camp refers to a camp team composed of multiple virtual objects with teammate relationships. The second virtual object may belong to a neutral camp, such as neutral NPCs (Non-player Characters) or wild monsters in the virtual scene, or may belong to an enemy camp. Therefore, the second virtual object may launch an attack on the first virtual object and poses a threat. In the embodiments of the present application, the threat warning control is used to indicate the orientation of the second virtual object within the threat warning range.
[0064] In some embodiments, the terminal performs real-time detection on whether the second virtual object exists within the threat warning range. When the second virtual object is within the threat warning range, the terminal displays the threat warning control. When the second virtual object is not within the threat warning range, the terminal does not display the threat warning control.
[0065] Optionally, the threat warning control can adopt various forms to indicate the orientation of the second virtual object within the threat warning range.
[0066] In a possible implementation manner, the threat warning control is a control in the shape of an arrow, and the terminal uses the indicating direction of the arrow to indicate the relative orientation of the second virtual object within the threat warning range.
[0067] In another possible implementation manner, the threat warning control is a control in the shape of a line, and the terminal indicates the relative orientation of the second virtual object by displaying the connection line between the first virtual object and the second virtual object.
[0068] Step 203, in response to a triggering operation on the threat warning control, display a threat object model in the virtual scene screen, and the threat object model is used to represent the attribute information of the second virtual object.
[0069] Optionally, the attribute information may include the status value of the second virtual object, such as the skill points, ammunition quantity, blood volume, physical strength value, etc. of the second virtual object, or may also include the ability information of the second virtual object, such as the character level, experience value, etc.
[0070] The threat object model is generated by the terminal according to the attribute information of the second virtual object. Since the second virtual object may have various different attributes, in order to enable the user to intuitively understand the attribute information of the second virtual object, the terminal displays the attribute information of different attributes in different forms. For example, the terminal displays the survival status of the second virtual object through the color of the threat object model, and displays the skill status of the second virtual object through the size of the threat object model.
[0071] In a possible implementation manner, the threat object model is displayed as a virtual image of the second virtual object in the virtual scene screen, and has the contour characteristics of the second virtual object.
[0072] It should be noted that the threat object model may display all the attribute information of the second virtual object, or may display some of the attributes of the second virtual object. The embodiments of the present application do not limit this.
[0073] Optionally, in the case where the terminal cannot represent the attribute information of the second virtual object through the threat object model, the terminal may use other methods to display the attribute information of the second virtual object. For example, display the level of the second virtual object in text form around the threat object model.
[0074] Exemplarily, as Figure 5 shown, when the second virtual object enters the threat perception warning range of the first virtual object 501, the terminal displays a threat warning control 502 in the virtual scene screen. Subsequently, in response to a triggering operation on the threat warning control 502, the terminal displays a threat object model 503 in the virtual scene screen, and the text on the upper part of the threat object model shows that the level of the second virtual object is 15th level.
[0075] In summary, in the embodiments of the present application, when the second virtual object enters the threat warning range, the terminal indicates the position of the second virtual object within the threat warning range by displaying a threat warning control. Further, when the threat warning control is triggered, the terminal displays a threat object model representing the attribute information of the second virtual object. The user does not need to control the first virtual object to approach the second virtual object to obtain the attribute information of the second virtual object within the field of view, which simplifies the process of obtaining virtual object information and improves the information acquisition efficiency. Moreover, the user can make strategic decisions in advance based on the displayed information, thereby effectively avoiding risks, and improving the combat efficiency of the first virtual object when preparing to fight.
[0076] In some embodiments, the terminal first generates a threat object model and determines the target display position of the threat object model, and then displays the threat object model at the target display position.
[0077] Please refer to Figure 6 , which shows a flowchart of a method for displaying information of virtual objects provided by another exemplary embodiment of the present application. The method includes the following steps:
[0078] Step 601, display a virtual scene screen, which is a screen obtained by shooting a virtual scene from the perspective of the first virtual object.
[0079] Step 602, display a threat warning control in the virtual scene screen. The threat warning control is used to indicate the position of the second virtual object within the threat warning range. The second virtual object and the first virtual object belong to different camps. The threat warning range is greater than the visible range of the first virtual object and less than the perception range of the first virtual object.
[0080] The specific implementation manners of steps 601 to 602 can refer to steps 201 to 202, and are not limited herein in this embodiment.
[0081] Step 603, in response to a trigger operation on the threat warning control, generate a threat object model based on the attribute information of the second virtual object.
[0082] In some embodiments, the threat object model is displayed in the form of an outline diagram of the second virtual object.
[0083] Optionally, the background color of the outline diagram of the threat object model can be colorless, and then the attribute information of the second virtual object is displayed according to the filling ratio of the visible color.
[0084] In some embodiments, the terminal first determines the status integrity of the second virtual object based on the attribute information of the second virtual object. The status integrity is used to characterize the integrity of the current status of the second attribute object. Subsequently, based on the status integrity, the terminal determines the color filling ratio of the threat object model. The color filling ratio is positively correlated with the status integrity. Finally, the threat object model is filled with color according to the color filling ratio.
[0085] In a possible implementation manner, the terminal fills the color of the threat object model from bottom to top in the vertical direction according to the color filling ratio.
[0086] Optionally, the current status of the second attribute object may include weapon status, skill status, life status, etc. The embodiments of the present application do not limit the status type of the second attribute object.
[0087] In a possible implementation manner, the terminal determines the color filling ratio of the threat object model according to the integrity of one of the statuses.
[0088] In another possible implementation manner, the terminal determines the color filling ratio of the threat object model according to the integrity of the comprehensive status of the second attribute object. For example, the remaining ammunition of the second attribute object is 80%, the skill charge energy is 60%, and the blood volume is 100%. The integrity of the comprehensive status is calculated by weighted average of these three statuses to be 80%, and thus the color filling ratio is determined to be 80%.
[0089] Exemplarily, the schematic diagram of the color filling of the threat object model is as Figure 7 shown. The terminal fills the color of the threat object model 701 from bottom to top. When the status integrity is 80%, 80% of the outline of the threat object model is filled.
[0090] Furthermore, the threat object model can be used not only to characterize the integrity of the current status of the second attribute object, but also to characterize the threat level of the second virtual object to the first virtual object.
[0091] In some embodiments, the terminal determines the threat level of the second virtual object to the first virtual object according to the attribute information of the first virtual object and the second virtual object. Subsequently, using the hint color corresponding to the threat level, the threat object model is filled with color according to the color filling ratio. For example, in the case of low risk, it is filled with green. In the case of medium risk, the threat object model gradually changes from green to yellow. In the case of high risk, the threat object model gradually changes from yellow to red.
[0092] In a possible implementation, the terminal calculates the threat level of the second virtual object to the first virtual object based on the difference in the attribute information of the first virtual object and the second virtual object. When the attribute information of the second virtual object exceeds that of the first virtual object and the difference in the attribute information between the second virtual object and the first virtual object exceeds the difference threshold, the threat level of the second virtual object belongs to the high level. When the attribute information of the second virtual object does not exceed that of the first virtual object and the difference in the attribute information between the second virtual object and the first virtual object exceeds the difference threshold, the threat level of the second virtual object belongs to the low level. When the difference in the attribute information between the second virtual object and the first virtual object does not exceed the difference threshold, the threat level of the second virtual object belongs to the medium level. Among them, the attribute information of the first virtual object and the second virtual object can be a single data indicator, such as blood volume, or a comprehensive data indicator, such as a comprehensive indicator of blood volume and level.
[0093] Exemplarily, as Figure 8 shown, when the threat object model 801 represents that the level of the first virtual object is 12 and the blood volume is 100%, while the threat object model 802 represents that the level of the second virtual object is 13 and the blood volume is 20%, the terminal sets the blood volume weight to 10, the level weight to 1, and the difference threshold to 5. Subsequently, through weighted calculation, it is determined that the attribute information of the first virtual object exceeds that of the second virtual object, and the difference in the attribute information between the second virtual object and the first virtual object exceeds the difference threshold. Therefore, the threat level of the second virtual object is relatively low, and the terminal fills the threat object model 802 with green. Similarly, when the threat object model 801 represents that the level of the first virtual object is 12 and the blood volume is 100%, while the threat object model 803 represents that the level of the second virtual object is 100 and the blood volume is 50%, the attribute information of the first virtual object does not exceed that of the second virtual object, and the difference in the attribute information between the second virtual object and the first virtual object exceeds the difference threshold. The terminal determines that the threat level of the second virtual object is relatively high, and the terminal fills the threat object model with red.
[0094] Step 604: Determine the target display position of the threat object model based on the orientation of the second virtual object in the virtual scene and the scene range represented by the virtual scene image.
[0095] The scene range represented by the virtual scene image is the scene range that the camera model can capture. Since the scene range that the camera model can capture is limited, the second virtual object may be within the virtual scene image or outside the virtual scene image.
[0096] In some embodiments, in order to optimize the rendering effect of the virtual scene screen, the terminal may render only the virtual objects within the frustum according to the frustum culling algorithm.
[0097] In some embodiments, the terminal determines whether the second virtual object is within the virtual scene screen according to the orientation of the second virtual object in the virtual scene.
[0098] In a possible implementation, the terminal calculates the spatial range determined by the six faces of the frustum in front of the camera model. When the orientation of the second virtual object in the virtual scene is within the frustum, the second virtual object is within the virtual scene screen; when the orientation of the second virtual object in the virtual scene is outside the frustum, the second virtual object is outside the virtual scene screen.
[0099] Optionally, this step may include the following two cases:
[0100] Case 1, when the orientation of the second virtual object in the virtual scene is within the scene range represented by the virtual scene screen, the projection position of the second virtual object in the virtual scene screen is determined as the target display position of the threat object model.
[0101] In a possible implementation, the terminal determines the target display position of the threat object model on the virtual scene screen according to the orientation of the second virtual object in the virtual scene and the mapping relationship between each orientation inside the frustum and each point on the virtual scene screen.
[0102] Exemplarily, as Figure 9 shown, the orientation of the second virtual object 901 in the virtual scene is within the scene range represented by the virtual scene screen 903. By projecting the second virtual object 901, the target display position of the threat object model 902 on the virtual scene screen 903 is determined.
[0103] Case 2, when the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, the target screen edge of the virtual scene screen is determined, and the target screen edge is the closest to the projection of the second virtual object; the target screen edge is determined as the target display position of the threat object model.
[0104] In a possible implementation, the terminal first projects the second virtual object vertically onto the frustum plane (the plane where the virtual scene screen is located), then obtains the projection center point. By calculating the perpendicular distances from the projection center point to the four screen edges of the virtual scene screen, the screen edge with the shortest perpendicular distance to the projection center point is determined as the target screen edge, and then the threat object model is displayed on the target screen edge.
[0105] Exemplarily, as Figure 10 shown, in the virtual scene, the distance between the projection center point 1002 of the second virtual object 1001 and the left edge of the virtual scene screen 1003 is 2m, the distance from the right edge of the virtual scene screen 1003 is 27m, the distance from the upper edge of the virtual scene screen 1003 is 7m, and the distance from the lower edge of the virtual scene screen 1003 is 7m. The terminal determines that the projection center point 1002 of the second virtual object 1001 is closest to the left edge of the virtual scene screen 1003, and displays the threat object model 1004 at the left edge of the virtual scene screen 1003.
[0106] In some embodiments, when the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, the terminal displays an arrow mark between the target screen edge and the threat object model. The arrow mark is used to indicate that the second virtual object is outside the virtual scene screen. When the second virtual object moves into the scene range represented by the virtual scene screen, the display of the arrow mark stops.
[0107] Exemplarily, as Figure 11 shown, when the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, the terminal displays an arrow mark 1102 between the left edge of the virtual scene screen and the threat object model 1101, indicating that the second virtual object is at the left position outside the virtual scene screen; when the second virtual object moves into the scene range represented by the virtual scene screen, the terminal displays the threat object model 1101 inside the virtual scene screen, indicating that the second virtual object is at the display position of the threat object model 1101 inside the virtual scene screen.
[0108] Step 605, display the threat object model at the target display position on the virtual scene screen.
[0109] In a possible implementation manner, when the orientation of the second virtual object in the virtual scene is within the scene range represented by the virtual scene screen, the threat object model is displayed as a virtual image of the second virtual object in the virtual scene, having the contour features of the second virtual object. When the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, the threat object model is displayed as an icon similar to the virtual image of the second virtual object in the virtual scene.
[0110] In the above embodiments, the threat object model visually displays the status integrity of the second virtual object through the color filling ratio. Users can understand the attribute information represented by the threat object model without approaching the second virtual object, improving the acquisition efficiency of the attribute information.
[0111] Furthermore, the threat object model represents the threat level of the second virtual object through a prompt color, eliminating the process for the user to judge the threat level based on attribute information, so that the first virtual object can respond quickly in the face of threats.
[0112] To clearly distinguish the specific orientation of the second virtual object, the terminal adopts different display methods for the threat object model of the second virtual object within the virtual scene screen and the second virtual object outside the virtual scene screen, simply and clearly showing the orientation of the second virtual object in the virtual scene and improving the acquisition efficiency of the relative orientation of the second virtual object.
[0113] In some embodiments, to enable the user to easily understand the orientation of the second virtual object indicated by the threat warning control within the threat warning range, the terminal first determines the relative orientation between the second virtual object and the first virtual object, and then based on the relative orientation, displays the threat warning control at the edge position of the target circular area in the virtual scene screen, where different edge positions on the target circular area correspond to different directions around the first virtual object, and the target circular area is invisible in the virtual scene screen.
[0114] In a possible implementation manner, the terminal determines the relative orientation of the second virtual object according to the coordinate positions of the second virtual object and the first virtual object in the virtual scene, then determines the edge position of the threat warning control on the target circular area according to the relative angle between the relative orientation and the positive viewing direction of the first virtual object, and then displays the threat warning control.
[0115] Exemplarily, as Figure 12 shown, the positive viewing direction of the first virtual object 1201 is vertically upward in the virtual scene screen, and the relative angle between the relative orientation of the second virtual object 1202 and the positive viewing direction of the first virtual object 1201 is x, where x is between -180° and +180°. The edge position of the threat warning control 1203 on the target circular area 1204 can be determined according to the angle x. Among them, the target disk area 1204 shown by the dashed line is invisible in the virtual scene screen.
[0116] In some embodiments, considering that during the movement of the first virtual object or the second virtual object, the second virtual object may leave the perception range of the first virtual object. To avoid interference from the threat warning control to the display of other contents in the virtual scene screen, when the second virtual object leaves the perception range of the first virtual object, the terminal stops displaying the threat object model and the threat warning control.
[0117] In addition, considering that the second virtual object may enter the perception range of the first virtual object again after leaving the perception range of the first virtual object, in order to ensure that the user can quickly understand the attribute information of the second virtual object during the process of manipulating the first virtual object to move, the terminal retains the threat object model when the second virtual object enters the threat warning range again and the duration of leaving the threat warning range does not reach the duration threshold, that is, the terminal displays the threat warning control and the threat object model in the virtual scene screen, and the user does not need to trigger the threat warning control again to display the threat object model; when the second virtual object enters the threat warning range again and the duration of leaving the threat warning range reaches the duration threshold, the terminal displays the threat warning control in the virtual scene screen, and then in response to the trigger operation on the threat warning control, the threat object model is displayed in the virtual scene screen.
[0118] Exemplarily, as Figure 13 shown, the duration threshold is 1 min. When the second virtual object enters the perception range again after leaving the perception range for 80 s, the terminal displays the virtual scene screen 1310. In the virtual scene screen 1310, the terminal displays the threat warning control 1301. In response to the trigger operation on the threat warning control 1301, the terminal changes from displaying the virtual scene screen 1310 to displaying the virtual scene screen 1320, and the threat object model 1302 and the threat warning control 1301 are displayed in the virtual scene screen 1320. When the second virtual object enters the perception range again after leaving the perception range for 30 s, the terminal displays the virtual scene screen 1320, and the threat warning control 1301 and the threat object model 1302 are displayed in the virtual scene screen 1320.
[0119] In the above embodiment, the terminal determines the display position and the indication direction of the threat warning control on the target circumferential area, so as to facilitate the user to quickly understand the relative orientation of the second virtual object. In addition, the terminal limits the display and stop display timing of the threat object model and the threat warning control, and the threat object model and the threat warning control can be automatically displayed or automatically stopped displaying, without the user repeatedly turning on or off the display in a short time, which simplifies the operation steps.
[0120] Considering that the user cannot determine the attack range of the second virtual object, when the second virtual object actively attacks the first virtual object, the first virtual object may miss the opportunity to retreat or attack due to untimely response. Therefore, the terminal can also display an object locking control in the virtual scene screen, and quickly respond to the attack behavior of the second virtual object by locking the second virtual object.
[0121] In some embodiments, the terminal displays an object lock control in the virtual scene screen, and then sets the second virtual object to a locked state in response to a trigger operation on the object lock control. In the locked state, the terminal locks the perspective of the second virtual object in response to the second virtual object launching an attack, wherein after the perspective is locked, the perspective of the first virtual object is automatically adjusted to the position of the second virtual object.
[0122] Optionally, the object lock control may be displayed when the terminal displays a threat warning control, or may be displayed when the terminal displays a threat object model.
[0123] Regarding the implementation of perspective locking, in a possible implementation, the terminal obtains the position of the second virtual object in the virtual scene in real time, and then automatically adjusts the shooting perspective according to the position of the second virtual object relative to the first virtual object.
[0124] Optionally, after the second virtual object is set to the locked state, the first virtual object may automatically prepare for battle. For example, in the locked state, the first virtual object automatically reloads ammunition and switches to a defensive posture, thereby improving the counterattack efficiency of the first virtual object.
[0125] For example, Figure 14 As shown, the terminal displays an object lock control 1401 in the virtual scene screen. After the user triggers the object lock control 1401, the terminal sets the second virtual object 1402 to a locked state. In response to the second virtual object 1402 launching an attack, the terminal automatically changes the viewing angle and displays the second virtual object 1402 as the center of the virtual scene screen.
[0126] Optionally, there may be multiple second virtual objects within the perception range of the first virtual object, or there may be only one second virtual object.
[0127] In the case where there are multiple second virtual objects within the perception range of the first virtual object, in a possible implementation, the terminal displays multiple threat warning controls to indicate the relative positions of different second virtual objects. When the threat warning control is triggered, the terminal displays the threat object model of the second virtual object indicated by the threat warning control, and then responds to the triggering operation of the object lock control to set the second virtual object to a locked state. By repeatedly executing the above steps, multiple second virtual objects can be locked simultaneously. When the first virtual object is attacked, the terminal locks the perspective of the second virtual object that initiates the attack.
[0128] It should be noted that, when there is only one second virtual object within the perception range of the first virtual object and the second virtual object is not locked, in response to the second virtual object launching an attack, the terminal may also lock the viewing angle of the second virtual object.
[0129] In some embodiments, in the locked state, in response to the second virtual object initiating an attack, the terminal highlights the threat warning control corresponding to the second virtual object. For example, the terminal enlarges and displays the threat warning control corresponding to the second virtual object, or changes the display color of the threat warning control corresponding to the second virtual object.
[0130] Optionally, when the second virtual object in the locked state does not attack the first virtual object, the first virtual object may actively attack the second virtual object.
[0131] In some embodiments, the attack skills of the first virtual object include skills with a specified direction and skills with an unspecified release direction. Among them, the skills with a specified release direction are released according to the release direction selected by the user, for example, the user selects the skill release direction by controlling the joystick, and then the skill is released in the direction selected by the user. Skills with an unspecified release direction are automatically released to the second virtual object according to the direction of the second virtual object.
[0132] In an embodiment of the present application, in a locked state, in response to a target skill release operation, the terminal controls the first virtual object to release the skill toward the position where the second virtual object is located, and the target skill release operation refers to a skill release operation without specifying a release position.
[0133] It should be noted that in the locked state, since the second virtual object may not initiate an attack, or the first virtual object may retreat in a defensive posture, in some embodiments, in the locked state, the first virtual object can move freely. In addition, when the second virtual object is defeated, the terminal does not need to continue to lock the second virtual object.
[0134] In some embodiments, when the second virtual object leaves the perception range of the first virtual object, or the second virtual object is defeated, the terminal releases the locked state.
[0135] In some embodiments, considering that the first virtual object may move towards the second virtual object in a locked state during free movement, that is, the second virtual object may enter the visible range from the perception range, the threat object model in the virtual scene screen needs to be switched to the specific image of the second virtual object after entering the visible range.
[0136] In a possible implementation, when the second virtual object enters the visual range of the first virtual object, the threat object model is gradually made transparent.
[0137] Exemplarily, as Figure 15 shown, when the second virtual object 1501 has not entered the visual range, the threat object model 1502 is a red-filled outline drawing. After the second virtual object 1501 enters the visual range, the threat object model 1502 covers the second virtual object 1501 and changes as the second virtual object 1501 moves. Within 3 seconds after the second virtual object 1501 enters the visual range, the threat object model 1502 gradually becomes transparent, revealing the second virtual object 1501 at the position of the threat object model 1502 within the visual range.
[0138] In the above embodiment, the terminal provides a locking function for the second virtual object by displaying an object locking control, so as to quickly respond to the attack behavior on the second virtual object in the locked state, eliminating the need for the user to frequently switch perspectives and simplifying the operation steps of the user on the first virtual object.
[0139] In some embodiments, after determining the threat level of the second virtual object to the first virtual object, the terminal may display a threat warning control with a prompt color corresponding to the threat level in the virtual scene screen, that is, when the second virtual object enters the threat warning range, the terminal displays a threat warning control with a corresponding prompt color according to the threat level of the second virtual object.
[0140] In the above embodiment, the user does not need to trigger the threat warning control to display the threat object model to understand the threat level of the second virtual object, simplifying the operation steps and improving the efficiency of the user to obtain virtual object information.
[0141] Please refer to Figure 16 , which shows a flowchart of a virtual object information display process provided by an exemplary embodiment of the present application. The process includes the following steps:
[0142] Step 1601, determine whether the second virtual object enters the perception range of the first virtual object.
[0143] Step 1602, when the second virtual object enters the perception range of the first virtual object, display a threat warning control.
[0144] Step 1603, determine whether the user triggers the threat warning control.
[0145] Step 1604, when the user triggers the threat warning control, display a threat object model.
[0146] Step 1605: determine whether the user triggers the object lock control.
[0147] Step 1606: When the user triggers the object lock control, the second virtual object is set to a locked state.
[0148] Step 1607, determining whether the second virtual object in the locked state initiates an attack.
[0149] When the second virtual object in the locked state does not attack the first virtual object, step 1609 may be executed, or retreat may be selected.
[0150] When the second virtual object in the locked state attacks the first virtual object, step 1608 is executed.
[0151] Step 1608: When the second virtual object in the locked state attacks the first virtual object, the perspective of the second virtual object is locked.
[0152] Step 1609: The first virtual object attacks the second virtual object.
[0153] Please refer to Figure 17 , which shows a structural block diagram of a virtual object information display device provided by an exemplary embodiment of the present application, the device comprising:
[0154] The picture display module 1701 is used to display a virtual scene picture, where the virtual scene picture is a picture obtained by shooting the virtual scene from the perspective of the first virtual object;
[0155] A control display module 1702 is used to display a threat warning control in the virtual scene screen, wherein the threat warning control is used to indicate the position of a second virtual object within a threat warning range, wherein the second virtual object and the first virtual object belong to different camps, and the threat warning range is larger than the visible range of the first virtual object and smaller than the perception range of the first virtual object;
[0156] The model display module 1703 is used to display a threat object model in the virtual scene screen in response to a trigger operation on the threat warning control, where the threat object model is used to represent the attribute information of the second virtual object.
[0157] Optionally, the model display module 1703 is further used to:
[0158] generating the threat object model based on the attribute information of the second virtual object;
[0159] Determine the target display position of the threat object model based on the orientation of the second virtual object in the virtual scene and the scene range represented by the virtual scene image;
[0160] Display the threat object model at the target display position in the virtual image.
[0161] Optionally, the model display module 1703 is further configured to:
[0162] Determine the state integrity of the second virtual object based on the attribute information of the second virtual object, where the state integrity is used to characterize the integrity of the current state of the second attribute object;
[0163] Determine the color filling ratio of the threat object model based on the state integrity, where the color filling ratio has a positive correlation with the state integrity;
[0164] Fill the threat object model with color according to the color filling ratio.
[0165] Optionally, the model display module 1703 is further configured to:
[0166] Determine the threat level of the second virtual object to the first virtual object based on the attribute information of the first virtual object and the second virtual object;
[0167] The filling the threat object model with color according to the color filling ratio includes:
[0168] Fill the threat object model with color according to the color filling ratio using the hint color corresponding to the threat level.
[0169] Optionally, the model display module 1703 is further configured to:
[0170] Display the threat warning control using the hint color corresponding to the threat level in the virtual scene image.
[0171] Optionally, the model display module 1703 is further configured to:
[0172] In the case where the orientation of the second virtual object in the virtual scene is within the scene range represented by the virtual scene image, determine the projection position of the second virtual object in the virtual scene image as the target display position of the threat object model;
[0173] When the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, determine the target screen edge of the virtual scene screen, where the target screen edge is the closest to the projection of the second virtual object; determine the target display position of the threat object model as the target screen edge.
[0174] Optionally, the model display module 1703 is further configured to:
[0175] When the orientation of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene screen, display an arrow mark between the target screen edge and the threat object model, where the arrow mark is used to indicate that the second virtual object is outside the virtual scene screen;
[0176] When the second virtual object moves into the scene range represented by the virtual scene screen, stop displaying the arrow mark.
[0177] Optionally, the control display module 1702 is further configured to:
[0178] Determine the relative orientation between the second virtual object and the first virtual object;
[0179] Based on the relative orientation, display the threat warning control at the edge position of the target circular area in the virtual scene screen, where different edge positions on the target circular area correspond to different directions around the first virtual object, and the target circular area is invisible in the virtual scene screen.
[0180] Optionally, the device further includes a locking module, configured to:
[0181] Display an object locking control in the virtual scene screen;
[0182] In response to a trigger operation on the object locking control, set the second virtual object to a locked state;
[0183] In the locked state, in response to an attack initiated by the second virtual object, perform a perspective lock on the second virtual object, where after the perspective lock, the perspective of the first virtual object is automatically adjusted to the orientation of the second virtual object.
[0184] Optionally, the locking module is further configured to:
[0185] In the locked state, in response to a target skill release operation, control the first virtual object to release a skill towards the orientation of the second virtual object, where the target skill release operation refers to a skill release operation without specifying a release orientation.
[0186] Optionally, the locking module is further used to:
[0187] When the second virtual object leaves the perception range of the first virtual object, or the second virtual object is defeated, the locked state is released.
[0188] Optionally, the locking module is further used to:
[0189] In the locked state, in response to the second virtual object launching an attack, the threat warning control corresponding to the second virtual object is highlighted.
[0190] Optionally, the control display module 1702 and the model display module 1703 are further used to:
[0191] When the second virtual object leaves the perception range of the first virtual object, stop displaying the threat object model and the threat warning control;
[0192] When the second virtual object enters the threat warning range again and the time duration of leaving the threat warning range reaches a time duration threshold, displaying the threat warning control in the virtual scene screen;
[0193] When the second virtual object enters the threat warning range again and the time duration of leaving the threat warning range does not reach a time duration threshold, the threat warning control and the threat object model are displayed in the virtual scene screen.
[0194] Optionally, the model display module 1703 is further used to:
[0195] When the second virtual object enters the visible range of the first virtual object, the threat object model is gradually made transparent.
[0196] In summary, in the embodiment of the present application, when the second virtual object enters the threat warning range, the terminal indicates the position of the second virtual object within the threat warning range by displaying the threat warning control. Furthermore, when the threat warning control is triggered, the terminal displays the threat object model representing the attribute information of the second virtual object. The user does not need to manipulate the first virtual object to approach the second virtual object to obtain the attribute information of the second virtual object within the field of view, which simplifies the process of obtaining virtual object information and improves the efficiency of information acquisition. In addition, the user can make strategic decisions in advance based on the displayed information, thereby effectively avoiding risks and improving the efficiency of the first virtual object in the face of the enemy when preparing to fight.
[0197] It should be noted that: for the device provided in the above embodiments, only the division of the above functional modules is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept. For the implementation process, please refer to the method embodiments and will not be elaborated here.
[0198] Please refer to Figure 18 , which shows a structural block diagram of a terminal 1800 provided in an exemplary embodiment of the present application. The terminal 1800 may be a portable mobile terminal, such as: a smart phone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1800 may also be referred to by other names such as user equipment, portable terminal, etc.
[0199] Generally, the terminal 1800 includes a processor 1801 and a memory 1802.
[0200] The processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1801 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the Central Processing Unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1801 may be integrated with a Graphics Processing Unit (GPU), and the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen. In some embodiments, the processor 1801 may further include an Artificial Intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.
[0201] The memory 1802 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 is used to store at least one instruction for being executed by the processor 1801 to implement the method for displaying information of virtual objects provided in the embodiments of the present application.
[0202] In some embodiments, the terminal 1800 may further optionally include: a peripheral device interface 1803 and at least one peripheral device.
[0203] The peripheral device interface 1803 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 1801 and the memory 1802. In some embodiments, the processor 1801, the memory 1802, and the peripheral device interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1801, the memory 1802, and the peripheral device interface 1803 can be implemented on a separate chip or circuit board, and the present embodiment does not limit this.
[0204] Those skilled in the art can understand that Figure 18 the structure shown in
[0205] does not constitute a limitation on the terminal 1800, and it may include more or fewer components than shown in the figure, or combine some components, or adopt a different component layout.
[0206] According to one aspect of the present application, there is provided a computer program product, which 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 the processor executes the computer instructions, so that the terminal executes the method for displaying information of virtual objects provided in various optional implementation manners of the above aspect.
[0207] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by 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 codes on a computer-readable storage medium. The computer-readable storage medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0208] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims
1. A method for displaying information of a virtual object, characterized in that The method includes: Displaying a virtual scene image, which is an image obtained by photographing a virtual scene from the perspective of a first virtual object; Displaying a threat warning control in the virtual scene image, where the threat warning control is used to indicate the position of a second virtual object within a threat warning range. The second virtual object and the first virtual object belong to different camps. The threat warning range is larger than the visible range of the first virtual object and smaller than the perception range of the first virtual object; In response to a trigger operation on the threat warning control, displaying a threat object model in the virtual scene image, where the threat object model is used to represent the attribute information of the second virtual object.
2. The method according to claim 1, wherein The step of displaying a threat object model in the virtual scene image includes: Generating the threat object model based on the attribute information of the second virtual object; Determining the target display position of the threat object model based on the position of the second virtual object in the virtual scene and the scene range represented by the virtual scene image; Displaying the threat object model at the target display position in the virtual scene image.
3. The method according to claim 2, characterized in that, The step of generating the threat object model based on the attribute information of the second virtual object includes: Determining the state integrity of the second virtual object based on the attribute information of the second virtual object, where the state integrity is used to represent the degree of integrity of the current state of the second virtual object; Determining the color filling ratio of the threat object model based on the state integrity, where the color filling ratio has a positive correlation with the state integrity; Filling the threat object model with color according to the color filling ratio.
4. The method according to claim 3, wherein The method further includes: Determining the threat level of the second virtual object to the first virtual object based on the attribute information of the first virtual object and the second virtual object; The step of filling the threat object model with color according to the color filling ratio includes: Using the hint color corresponding to the threat level to fill the threat object model with color according to the color filling ratio.
5. The method according to claim 4, wherein The step of displaying a threat warning control in the virtual scene image includes: Displaying the threat warning control with the hint color corresponding to the threat level in the virtual scene image.
6. The method according to claim 2, wherein The step of determining the target display position of the threat object model based on the position of the second virtual object in the virtual scene and the scene range represented by the virtual scene image includes: In the case where the position of the second virtual object in the virtual scene is within the scene range represented by the virtual scene image, determining the projection position of the second virtual object in the virtual scene image as the target display position of the threat object model; When the position of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene picture, determine a target picture edge of the virtual scene picture, and the target picture edge is closest to the projection of the second virtual object; determine the target picture edge as the target display position of the threat object model.
7. The method according to claim 6, wherein The method further comprises: In a case where the position of the second virtual object in the virtual scene is outside the scene range represented by the virtual scene picture, an arrow mark is displayed between the edge of the target picture and the threat object model, and the arrow mark is used to indicate that the second virtual object is outside the virtual scene picture; When the second virtual object moves into the scene range represented by the virtual scene picture, the arrow mark stops being displayed.
8. The method according to any one of claims 1 to 7, characterized in that The displaying of the threat warning control in the virtual scene screen includes: determining a relative position between the second virtual object and the first virtual object; Based on the relative orientation, the threat warning control is displayed at the edge position of the target circular area in the virtual scene picture, different edge positions on the target circular area correspond to different directions around the first virtual object, and the target circular area is not visible in the virtual scene picture.
9. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Displaying an object locking control in the virtual scene screen; In response to a triggering operation on the object lock control, setting the second virtual object to a locked state; In the locked state, in response to the second virtual object launching an attack, the perspective of the second virtual object is locked, wherein after the perspective is locked, the perspective of the first virtual object is automatically adjusted to the position of the second virtual object.
10. The method according to claim 9, wherein The method further comprises: In the locked state, in response to a target skill release operation, the first virtual object is controlled to release a skill toward a position where the second virtual object is located, and the target skill release operation refers to a skill release operation without specifying a release position.
11. The method according to claim 9, characterized in that, The method further comprises: When the second virtual object leaves the perception range of the first virtual object, or the second virtual object is defeated, the locked state is released.
12. The method according to claim 9, characterized in that The method further comprises: In the locked state, in response to the second virtual object launching an attack, the threat warning control corresponding to the second virtual object is highlighted.
13. The method according to any one of claims 1 to 7, characterized in that, After displaying the threat object model in the virtual scene screen, the method further includes: When the second virtual object leaves the perception range of the first virtual object, stop displaying the threat object model and the threat warning control; When the second virtual object enters the threat warning range again and the time duration of leaving the threat warning range reaches a time duration threshold, displaying the threat warning control in the virtual scene screen; When the second virtual object enters the threat warning range again and the time duration of leaving the threat warning range does not reach a time duration threshold, the threat warning control and the threat object model are displayed in the virtual scene screen.
14. The method according to any one of claims 1 to 7, characterized in that After the threat object model is displayed in the virtual scene screen, the method further includes: When the second virtual object enters the visible range of the first virtual object, gradually make the threat object model transparent.
15. An information display device for virtual objects, characterized in that, The device includes: A screen display module, configured to display a virtual scene screen, where the virtual scene screen is a screen obtained by photographing a virtual scene from the perspective of a first virtual object; A control display module, configured to display a threat warning control in the virtual scene screen, where the threat warning control is used to indicate the position of a second virtual object within a threat warning range. The second virtual object and the first virtual object belong to different camps. The threat warning range is greater than the visible range of the first virtual object and less than the perception range of the first virtual object; A model display module, configured to respond to a trigger operation on the threat warning control and display a threat object model in the virtual scene screen, where the threat object model is used to represent the attribute information of the second virtual object.
16. A terminal, characterized in that, The terminal includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the information display method of the virtual object according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, At least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the information display method of the virtual object according to any one of claims 1 to 14.
18. A computer program product, characterized in that, The computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the information display method of the virtual object according to any one of claims 1 to 14.