Method for displaying position-indicating information, electronic device, and storage medium

By dynamically adjusting the display of position indication information based on distance, the method addresses unintuitive and inefficient display issues in virtual environments, offering enhanced user perception and reduced visual obstruction.

JP7761344B2Active Publication Date: 2025-10-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023111566
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-04-27
Filing Date
2023-07-06
Publication Date
2025-10-28
Estimated Expiration
2039-03-20

AI Technical Summary

Technical Problem

Existing methods for displaying position indication information in virtual environments, such as electronic games, suffer from unintuitive display effects and low efficiency, as the fixed display style obscures the field of view and fails to effectively convey distance information.

Method used

A method and device that dynamically adjust the display of position indication information based on the distance between virtual objects, reducing obstruction by altering the display content and style as the distance changes, including the use of pointing icons, object names, and distance indicators, with varying transparency and size to maintain a clear field of view.

Benefits of technology

The method provides an intuitive and efficient display of virtual object positions and distances, enhancing user perception and reducing visual obstruction, thereby improving the overall gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007761344000001
    Figure 0007761344000001
  • Figure 0007761344000002
    Figure 0007761344000002
  • Figure 0007761344000003
    Figure 0007761344000003
Patent Text Reader

Abstract

To provide a display method for position instruction information and an electronic device.SOLUTION: A display method for position instruction information includes: a step for acquiring a distance between a first virtual object and a second virtual object in a virtual scene; a step for acquiring position instruction information on the second virtual object on the basis of the distance in which a degree of the display of the position instruction information interrupting a visual field screen becomes lower as the distance becomes larger; and a step for displaying the position instruction information on the second virtual object on a visual field screen of the first virtual object. There are also provided an electronic device and a computer-readable storage medium. It is possible to assist a user in recognizing a direction and an approximate distance of the second virtual object intuitively and quickly on the basis of which type of information is included in the position instruction information and on the basis of a display style, thereby achieving an intuitive display effect efficiently.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from a Chinese patent application filed on April 27, 2018, bearing application number 2018103907080, and entitled "Method, device, electronic device, and storage medium for displaying position-indicating information," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of computers, and more particularly to a method for displaying position-indicating information, an electronic device, and a storage medium. [Background technology]

[0003] With the development of computer technology and the diversification of terminal functions, the types of games that can be run on terminals are becoming more and more. In electronic games, virtual objects and virtual scenes are usually displayed, and in team game modes, position indication information of virtual objects may also be displayed to identify the virtual objects.

[0004] Currently, in a method for displaying position indication information, when a virtual object is displayed on the field of view screen of the virtual object, position indication information such as the object name of the virtual object and the level of the virtual object is usually displayed above the virtual object in a predetermined display style, so the display style is fixed, the display effect is not intuitive, and the display efficiency is low. Summary of the Invention [Problem to be solved by the invention]

[0005] In the embodiments of the present application, a method for displaying position indication information, an electronic device, and a storage medium are provided that can solve the problems of the related art, such as unintuitive display effect and low display efficiency. [Means for solving the problem]

[0006] According to one aspect, there is provided a method for displaying location-indicating information for application in an electronic device, the method comprising: obtaining a distance between a first virtual object and a second virtual object in a virtual scene;

[0007] acquiring position indication information of the second virtual object based on the distance, wherein the greater the distance, the less the display of the position indication information obstructs the field of view screen; and displaying position indication information of the second virtual object on a field of view screen of the first virtual object.

[0008] According to one aspect, there is provided a display device for displaying position-indicating information, the device comprising: an acquisition module for acquiring a distance between a first virtual object and a second virtual object in the virtual scene; a display module that displays position indication information of the second virtual object on a field of view screen of the first virtual object,

[0009] The acquisition module further acquires position indication information of the second virtual object based on the distance, and the greater the distance, the less the display of the position indication information obstructs the field of view screen.

[0010] According to one aspect, an electronic device is provided, the electronic device comprising a processor and a memory for storing a computer program, the processor executing the computer program stored in the memory to implement the steps of the method relating to the method for displaying position-indicating information.

[0011] According to one aspect, there is provided a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, causes the computer program to implement the steps of the method relating to the method for displaying position-indicating information. [Effects of the Invention]

[0012] In an embodiment of the present application, the distance between a first virtual object and a second virtual object is acquired, and position indication information and a corresponding display style of the second virtual object are acquired. The position indication information is displayed on the field of view screen of the first virtual object in the display style acquired based on the distance. This helps the user intuitively and quickly perceive the direction and approximate distance of the second virtual object based on the type of information included in the position indication information and the display style. Therefore, this method of displaying position indication information has an intuitive display effect and high display efficiency.

[0013] In order to more clearly explain the configuration of the embodiments of the present invention, the following briefly introduces the drawings necessary for the description of the embodiments. Obviously, the drawings in the following description only show some embodiments of the present invention, and those skilled in the art can derive other drawings from these drawings without creative work. [Brief explanation of the drawings]

[0014] [Figure 1] FIG. 2 is a schematic diagram of the screen of the terminal provided in the embodiment of the present application. [Figure 2] 1 is a flowchart of a method for displaying location-indicating information provided in an embodiment of the present application; [Figure 3] FIG. 2 is a schematic diagram of a method for obtaining a distance between a first virtual object and a second virtual object provided in an embodiment of the present application; [Figure 4] FIG. 10 is a schematic diagram of a pointing icon of a second virtual object provided in an embodiment of the present application. [Figure 5] 1 is a schematic diagram of a method for changing the display style of position indication information provided in an embodiment of the present application; [Figure 6] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 7] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 8]FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 9] 1 is a schematic diagram of a method for acquiring the display position of the position indication information provided in an embodiment of the present application; [Figure 10] FIG. 2 is a schematic diagram of a method for displaying position indication information provided in an embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of a method for displaying position indication information provided in an embodiment of the present application. [Figure 12] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 13] FIG. 2 is a schematic diagram of a method for displaying position indication information provided in an embodiment of the present application; [Figure 14] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 15] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 16] FIG. 2 is an actual screen view of the terminal provided in the embodiment of the present application. [Figure 17] 1 is a schematic diagram of the configuration of a display device for position indication information provided in an embodiment of the present application; [Figure 18] 1 is a schematic diagram of the configuration of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION

[0015] In order to clarify the object, configuration, and advantages of the present application, the embodiments of the present application will be described in more detail below with reference to the drawings.

[0016] The embodiments of the present application mainly relate to electronic game scenarios and simulated training scenarios. For example, in an electronic game scenario, a user may perform an operation on a terminal in advance. The terminal may download a game profile for the electronic game upon detecting the user's operation. The game profile may include an application program, screen display data, or virtual scene data for the electronic game. Thus, when the user logs into the electronic game on the terminal, the terminal can call up the game profile and render and display an electronic game screen. The user may perform a touch operation on the terminal. Upon detecting the touch operation, the terminal may obtain game data corresponding to the touch operation and render and display the game data. The game data may include virtual scene data, behavior data of virtual objects in the virtual scene, and the like.

[0017] A virtual scene according to an embodiment of the present application may be used to simulate a three-dimensional virtual space or a two-dimensional virtual space. The three-dimensional or two-dimensional virtual space may be an open space. The virtual scene may be used to simulate a real environment. For example, the virtual scene may include sky, land, ocean, etc. The land may include environmental elements such as deserts and cities. A user can control virtual objects to move within the virtual scene. The virtual object may be a virtual avatar representing the user in the virtual scene, or a virtual avatar representing a creature associated with the user in the virtual scene, such as the user's pet. The virtual avatar may take any form, such as a person or an animal, but the embodiment of the present application is not limited thereto. The virtual scene may include multiple virtual objects. Each virtual object has its own shape and volume within the virtual scene and occupies a portion of the space in the virtual scene.

[0018] Taking a shooting game as an example, a user can control a virtual object to free fall, glide, or parachute through the air in the virtual scene, run, jump, crawl, or crouch on land, or swim, float, or dive through the ocean. Naturally, a user can also control a virtual object to ride a vehicle and move through the virtual scene. While only the above-mentioned scenes are shown here as examples, the present invention is not limited thereto. A user can also control a virtual object to fight other virtual objects with weapons. The weapons may be cold weapons or firearms, but the present invention is not limited thereto.

[0019] When rendering and displaying the virtual scene, the terminal may display the virtual scene in full screen. While displaying the virtual scene on the current display screen, the terminal may independently display a global map in a first target area of ​​the current display screen. In one possible embodiment, the terminal may display the global map only when a tap operation on a target button is detected. Here, the global map is used to display a thumbnail of the virtual scene. The thumbnail is used to depict geographical features, such as the terrain, topography, and geographic location, corresponding to the virtual scene. Of course, the terminal may display thumbnails of virtual scenes within a certain distance around a current virtual object on the current display screen, and when a tap operation on the global map is detected, a thumbnail of the entire virtual scene may be displayed in a second target area of ​​the current display screen of the terminal so that the user can observe the entire virtual scene, not just the virtual scene around it. When a zoom operation on the full thumbnail is detected, the terminal may zoom in and display the full thumbnail. The specific display positions and shapes of the first target area and the second target area may be set according to the user's operating habits.

[0020] For example, the first target area may be a rectangular area in the upper right corner, lower right corner, upper left corner, or lower left corner of the current display screen so as not to obscure too much of the virtual scene. The second target area may be a square area to the right or left of the current display screen. Of course, the first target area and the second target area may be circular or have other shapes, and the embodiments of the present application do not limit the specific display positions or shapes of the target areas. For example, as shown in FIG. 1, a terminal displays a virtual scene on the current display screen. The virtual scene displays a virtual object, such as a building, and a global map is displayed in the upper right corner of the current display screen. The current display screen may also display other display information, such as position information of a second virtual object.

[0021] For illustrative purposes, since the virtual object is a user's virtual avatar, taking a first-person perspective as an example, the virtual scene viewed by the user is usually a virtual scene observed from the perspective of the virtual object, and in reality, when a person is moving, the perspective is usually in front of the person. Here, the perspective of the virtual object is the perspective of the virtual scene. Regarding the perspective of the virtual scene, the terminal can display areas corresponding to different angles in the same virtual scene according to different perspectives.

[0022] In the present embodiment, for example, if the terminal is a user's terminal, a virtual object controlled by the user's terminal may be referred to as a first virtual object, another virtual object may be referred to as a second virtual object, and a virtual object belonging to the same team as the first virtual object may be referred to as a second virtual object, but this is not a limitation of the present embodiment. A virtual scene may be displayed on the user's terminal from any viewpoint. The displayed virtual scene may include a second virtual object in the display area. Here, the virtual scene viewed by the user is the field of view of the first virtual object.

[0023] In one possible embodiment, the server can provide two display modes for a first virtual object controlled by the user's device. The first display mode is a first-person perspective. In this first display mode, the virtual scene displayed on the user's device may only include the first virtual object's hand, arm, or weapon held by the first virtual object. The first display mode is used to simulate a scenario in which the virtual scene is observed from the first virtual object's perspective, with a camera located at the first virtual object's eye. The second display mode is a third-person perspective. In this second display mode, the virtual scene displayed on the user's device may further include the first virtual object, with the camera located behind the first virtual object, and the device may display the first virtual object in the virtual scene so that the user can see the first virtual object's behavior in the virtual scene, the environment in which it is located, and the like. The embodiments of the present application do not specifically limit which display mode is used by the user's device.

[0024] 2 is a flowchart of a method for displaying location-indicating information provided in an embodiment of the present application. The method is applied to an electronic device. The electronic device may be provided as a terminal or a server, but the embodiment of the present application is not limited thereto. Hereinafter, the case where the electronic device is provided as a terminal will be described as an example. Referring to FIG. 2, the method for displaying location-indicating information includes the following steps:

[0025] At 201, the terminal obtains a distance between a first virtual object and a second virtual object in a virtual scene.

[0026] The terminal may display position indication information of the second virtual object on the field of view screen of the first virtual object. In this way, the user of the terminal can know which second virtual object the second virtual object is, the position of the second virtual object, etc. based on the position indication information. Here, the position indication information of the second virtual object may include a pointing icon of the second virtual object, the object name of the second virtual object, or the distance between the first virtual object and the second virtual object. Of course, the position indication information of the second virtual object may include other information, but the embodiment of the present application is not specifically limited thereto.

[0027] In an embodiment of the present application, the terminal can obtain the display content and display style of the position indicating information of the second virtual object based on the distance between the first virtual object and the second virtual object, and thus the terminal may obtain the distance between the first virtual object and the second virtual object in the virtual scene as a basis for obtaining the display content and display style of the position indicating information.

[0028] Specifically, the terminal may obtain a distance between the first virtual object and the second virtual object based on the coordinate positions of the first virtual object and the second virtual object. In this embodiment, the distance between the first virtual object and the second virtual object is a horizontal distance in the coordinate system of the virtual scene and may be understood as the length of a horizontal projection of a line connecting the first virtual object and the second virtual object. Of course, in one possible embodiment, the terminal may obtain the length of the line connecting the first virtual object and the second virtual object and use this length as the distance between the first virtual object and the second virtual object. This realistically simulates the distance between the first virtual object and the second virtual object. In one possible implementation, in a parachute drop scene or a scene of swimming or diving in the ocean, the distance between the first virtual object and the second virtual object may be a vertical distance in the coordinate system of the virtual scene, but this embodiment is not limited to this.

[0029] For example, in an electronic game scenario such as that shown in FIG. 3 , assume that a second virtual object is a virtual object that belongs to the same team as a first virtual object. The first virtual object has three teammates, i.e., there are three second virtual objects in the virtual scene, referred to as second virtual objects 1, 2, and 3. The terminal may acquire the distance between each second virtual object and the first virtual object. Here, second virtual object 1 and second virtual object 2 are at the same horizontal position in the coordinate system of the virtual scene but are separated by a vertical distance. In this case, the terminal may acquire distance 1, which is the horizontal distance between second virtual object 1 and second virtual object 2 and the first virtual object. The terminal may acquire distance 2, which is the horizontal distance between second virtual object 3 and the first virtual object.

[0030] At 202, the terminal obtains position indication information of the second virtual object based on the distance.

[0031] After acquiring the distance between the first virtual object and the second virtual object, the terminal may acquire position indication information of the second virtual object based on the distance. The position indication information is for uniquely identifying the second virtual object. Here, the greater the distance, the less the display of the position indication information obstructs the field of view screen. Specifically, when the distance is different, the display content and display style of the position indication information of the second virtual object may be different. Accordingly, step 202 may include the following two steps.

[0032] In 2021, the terminal obtains display content of position indication information of the second virtual object based on the distance.

[0033] In one possible implementation, the terminal may acquire a pointing icon and an object name of a second virtual object, and acquire the distance between the first virtual object and the second virtual object. Of course, in one possible embodiment, the position indication information of the second virtual object may include other information, such as the health value of the second virtual object. In the embodiment of the present application, only a case will be described in which the position indication information of the second object includes the pointing icon, the object name, and the distance between the first virtual object and the second virtual object, but the embodiment of the present application does not limit what information of the second virtual object is specifically included in the position indication information.

[0034] Specifically, the terminal may set a target threshold, and determine which position indication information to acquire from the position indication information based on the relationship between the distance and the target threshold. In one possible implementation, if the distance is equal to or less than the target threshold, the terminal acquires the pointing icon, object name, and distance of the second virtual object as the display content of the position indication information of the second virtual object. If the distance is greater than the target threshold, the terminal acquires the pointing icon and object name of the second virtual object as the display content of the position indication information of the second virtual object. Here, the target threshold may be preset by a related artisan or adjusted by a user according to their usage habits, and the embodiment of the present application does not limit the value of the target threshold.

[0035] In such an implementation, when the distance between the first virtual object and the second virtual object is small, i.e., the second virtual object is within a certain range from the first virtual object, and the first virtual object needs to know the distance to the second virtual object in order to communicate with the second virtual object to jointly complete a task or fight other virtual objects in the virtual scene, the terminal may display a pointing icon, an object name, and the distance. When the distance between the first virtual object and the second virtual object is large, i.e., the second virtual object is not within a certain range from the first virtual object, and the distance between the first virtual object and the second virtual object is too far to allow the first virtual object to jointly complete a task or fight other virtual objects within a certain range from the first virtual object, and the first virtual object does not need to know the specific distance to the second virtual object, the terminal may display a pointing icon and an object name instead of displaying the distance, in order to reduce obstruction or interference with the view of the first virtual object.

[0036] For example, as shown in Figure 3, if the target threshold is 400 m, the distance 1 between each of the second virtual object 1 and the second virtual object 2 and the first virtual object is 95 meters (m), and the distance 2 between the second virtual object 3 and the first virtual object is 450 m, the terminal may obtain the pointing icon, object name, and distance 1 of the second virtual objects 1 and 2, and may obtain the pointing icon and object name of the second virtual object 3.

[0037] Here, the pointing icon of the second virtual object can also be used to uniquely identify the second virtual object. For example, different second virtual objects may have different numbers. The pointing icons of different second virtual objects may include corresponding numbers. The pointing icons of different second virtual objects may also have different colors. In this way, the user can distinguish between second virtual objects by the colors of the pointing icons of the second virtual objects. Of course, second virtual objects may also be distinguished by the shapes of their pointing icons, but the embodiments of the present application are not specifically limited thereto.

[0038] In one possible implementation, the indicator icon of the second virtual object may indicate the health state and movement state of the second virtual object. The health state of the second virtual object may include a living state, a seriously injured state, and a culled state. The living state refers to a state in which the second virtual object is still alive and not seriously injured. The seriously injured state refers to a state in which the second virtual object is seriously injured and its health value gradually decreases over time. The culled state refers to a state in which the health value of the second virtual object has decreased to zero and the second virtual object has been culled from the virtual scene. The movement state of the second virtual object may include a no-vehicle state, a vehicle-riding state, etc. Specifically, the indicator icon of the second virtual object may change according to a change in at least one of the health state and movement state of the second virtual object. Of course, different types of vehicles may have different indicator icons.

[0039] For example, as shown in FIG. 4, when the second virtual object is alive and without a vehicle, the indicator icon of the second virtual object may include the number of the second virtual object, and the color of the indicator icon may correspond to the second virtual object. When the second virtual object is riding a vehicle, the color of the indicator icon of the second virtual object may correspond to the second virtual object, and the indicator icon may include the type of vehicle. When the second virtual object is seriously injured and needs to be rescued, the color of the indicator icon of the second virtual object may correspond to the second virtual object, and the indicator icon may include information that rescue is required. When the second virtual object is in a culled state, the color of the indicator icon of the second virtual object may correspond to the second virtual object, and the indicator icon may include a tombstone-shaped mark.

[0040] Of course, the above is only one example of obtaining a pointing icon based on at least one of the health state and the motion state of the second virtual object. In one possible embodiment, the second virtual object may include other motion states, such as running, walking, and swimming, and the pointing icon may be preset by a relevant technical expert and correspond to each state, or may be adjusted by the user according to their own habits. Of course, the pointing icon may be fixed rather than changing in response to changes in at least one of the health state and the motion state of the second virtual object. The embodiment of the present application does not limit the specific style of the health state and the motion state of the second virtual object and the pointing icon.

[0041] At 2022, the terminal obtains a display style of the position indication information of the second virtual object based on the distance.

[0042] When the distance between a first virtual object and a second virtual object is different, the display style of the position indication information of the second virtual object may be different. That is, the display style of the position indication information changes according to the change in the distance. The terminal may pre-store a correspondence relationship between distance and display style. When the terminal acquires the distance between the first virtual object and the second virtual object, the terminal may acquire a display style corresponding to the distance according to the correspondence relationship. Here, the display style may include at least a display size and a transparency. Of course, the display style may include a background color, a text color, a text font, a text frame style, etc., but the embodiment of the present application is not specifically limited thereto. In the embodiment of the present application, only a case in which the display style includes a display size and a transparency will be described as an example.

[0043] In one possible implementation, the terminal may be configured with a plurality of intervals, each interval corresponding to a different display style change method. When the terminal obtains the distance between the first virtual object and the second virtual object, the terminal may obtain the interval to which the distance belongs, and then obtain the display style corresponding to the distance based on the display style change method of the interval.

[0044] When the setting conditions of the plurality of sections are different, the change conditions of the display style of the position indicating information are different. The setting conditions of the plurality of sections may include the following two cases.

[0045] Case 1

[0046] For the plurality of sections, a plurality of target thresholds may be set in the terminal, and the distance between the first virtual object and the second virtual object may be divided into sections by the plurality of target thresholds, thereby obtaining a plurality of consecutive sections, where the end point of one section is the start point of the next section, and the first section and the next section are two adjacent sections among the plurality of consecutive sections.

[0047] Specifically, for example, when the number of target thresholds is two, a first target threshold and a second target threshold may be set on the terminal. In this case, three intervals, namely, a first interval [0, first target threshold], a second interval [first target threshold, second target threshold], and a third interval [second target threshold, +∞], may be obtained by division, and may be set as follows: In the first interval [0, first target threshold], the display size of the position indication information changes with a change in distance, but the transparency does not change. In one possible implementation, there is a negative correlation between the display size and the distance, i.e., the larger the distance, the smaller the display size. In the second interval [first target threshold, second target threshold], there is a negative correlation between the display size and the distance, i.e., the larger the distance, the smaller the display size. In the second interval [first target threshold, second target threshold], there is a negative correlation between the display size and the distance, i.e., the larger the distance, the higher the transparency. In the third interval [second target threshold, +∞], neither the display size nor the transparency of the position indication information changes with a change in distance. The first and second target thresholds may be preset by a person skilled in the art or adjusted by a user according to their usage habits, but the embodiment of the present application is not limited thereto. Here, the second target threshold may be the same as or different from the target threshold in step 2021. If the second target threshold is the same as the target threshold in step 2021, the position indication information in the third interval [second target threshold, +∞] may not include the distance between the first virtual object and the second virtual object.

[0048] Accordingly, step 2022 may include the steps of: when the distance is in a first interval, the terminal acquiring a display size corresponding to the distance and a transparency corresponding to the first interval as a display style of the position indication information of the second virtual object, wherein the greater the distance, the smaller the display size corresponding to the distance; when the distance is in a second interval, the terminal acquiring a transparency corresponding to the distance and a display size corresponding to the second interval as a display style of the position indication information of the second virtual object, wherein the greater the distance, the greater the transparency corresponding to the distance; and when the distance is in a third interval, the terminal acquiring a display size and a transparency corresponding to the third interval as the display style of the position indication information of the second virtual object.

[0049] That is, if the distance is within a first interval [0, first target threshold], the terminal may obtain a display size corresponding to the distance and a target transparency based on a display size change manner within the interval. If the distance is within a second interval [first target threshold, second target threshold], the terminal may obtain a transparency corresponding to the distance and a display size corresponding to the interval based on a transparency change manner within the interval. If the distance is within a third interval [second target threshold, +∞], the terminal may obtain a transparency and a display size corresponding to the interval.

[0050] For example, as shown in FIG. 5, consider a case where the first target threshold is 100 m, the second target threshold is 200 m, the first interval is [0, 100], the second interval is [100, 200], and the third interval is [200, +∞]. In [0, 100], the method for changing the display size of the position indication information will be described using the example of changing the radius of the pointing icon in the position indication information. Other position indication information is zoomed in proportionally according to the change in the radius of the pointing icon. The display size change method is assumed to be r' = [100% - 1% INT(d / 5)]r. Here, r' is the radius of the pointing icon corresponding to the current distance, INT() is a rounding function, d is the distance between teammates (i.e., the distance between the second virtual object and the first virtual object), and r is the target radius, i.e., the radius of the pointing icon when the distance is zero. Both r' and r may be values ​​greater than or equal to 0. In [100, 200], the transparency of the position indication information changes as follows: p = 50% + 1% INT((d - 100) / 10). Here, p is the transparency, INT() is a rounding function, and d is the distance between teammates (i.e., the distance between the first virtual object and the second virtual object). It should be noted that in [100, 200], the display size of the position indication information does not change, and the radius of the pointing icon is the radius when the distance is 100 in the above formula. In [200, +∞], the display size and transparency of the position indication information do not change, the radius of the pointing icon is the radius when the distance is 100, the transparency is the transparency when the distance is 200, and icon is the position indication information of the second virtual object.

[0051] For example, as shown in the actual screen views of Figures 6 to 8, take the case where the first target threshold is 100 m, the second target threshold is 200 m, and the target threshold in step 2021 is 400 m. The display size of the position indication information of the second virtual object in Figure 7 is smaller than the display size of the position indication information in Figure 6, and the display size of the position indication information of the second virtual object in Figure 8 is smaller than the display size of the position indication information in Figures 6 and 7. The transparency of the position indication information in Figure 6 and Figure 7 is the same, and the transparency of the position indication information in Figure 8 is larger than the transparency of the position indication information in Figures 6 and 7.

[0052] The above describes a method for changing the display size of the position indication information by using only the change in the radius of the pointing icon of the position indication information as an example. However, in one possible embodiment, the display size of the position indication information may be realized by zooming the position indication information in an equal proportion, and the embodiments of the present application do not limit the specific method for changing the zoom ratio.

[0053] Case 2

[0054] The multiple intervals may be obtained by setting target thresholds for both ends of each interval in the terminal, where the multiple intervals are not necessarily contiguous, and the intervals may include overlapping portions or may be separated by a certain distance.

[0055] In one possible embodiment, the terminal may set different distance change intervals for transparency and display size. Optionally, the terminal may set the display size change interval to be [third target threshold, fourth target threshold] and the transparency change interval to be [fifth target threshold, sixth target threshold]. The fourth target threshold is greater than the third target threshold, and the sixth target threshold is greater than the fifth target threshold. If the target threshold values ​​are different, the two intervals may overlap, the two intervals may be spaced apart by a certain distance, or the end point of one of the two intervals may overlap the start point of the other interval, but this is not a limitation of the embodiment of the present application. The specific values ​​of the target thresholds may be set by relevant technical personnel or adjusted by users according to their own habits, but this is not a limitation of the embodiment of the present application.

[0056] Of course, in addition to the above two cases, when acquiring a display style, the terminal may acquire only the display size and set the transparency to a fixed value, or acquire only the transparency and set the display size to a fixed value, or acquire other display styles in addition to the display size and transparency. The embodiments of the present application do not specifically limit what types (one or more types) of display styles are specifically included and the specific change methods of various display styles.

[0057] The above steps 2021 and 2022 are processes of obtaining the display content and display style of the position indication information of the second virtual object based on the distance. In one possible embodiment, the terminal may first perform step 2021 and then perform step 2022, or may first perform step 2022 and then perform step 2021. Of course, the terminal may perform step 2021 and step 2022 simultaneously. The embodiment of the present application does not specifically limit the order of performing step 2021 and step 2022.

[0058] At 203, the terminal obtains a display position of the position indication information based on the position of the second virtual object.

[0059] Since the position indication information is used to identify a second virtual object, the terminal may obtain a display position of the position indication information based on the position of the second virtual object to express the association between the second virtual object and the position indication information. The representation form of the virtual object in the virtual scene is actually a role model. This role model may be a three-dimensional model or a two-dimensional model. Accordingly, the position of the second virtual object in step 203 may be the position of the role model of the second virtual object.

[0060] It should be noted that in step 203, the terminal may determine whether the second virtual object is in the field of view of the first virtual object based on the position of the second virtual object and the field of view of the first virtual object. According to the determination result, the process in step 203 in which the terminal obtains the display position of the position indicating information may include the following two cases:

[0061] Case 1

[0062] When the second virtual object is in the field of view screen of the first virtual object, the terminal acquires an area above or below the second virtual object as the display position of the position indication information based on the position of the second virtual object.

[0063] In the embodiment of the present application, the terminal only acquires the area above the second virtual object as the display position of the position indication information. In one possible embodiment, the display position may be another area around the second virtual object, for example, the area to the left or right of the second virtual object, but the embodiment of the present application is not specifically limited thereto.

[0064] Case 2

[0065] If the second virtual object is not in the field of view of the first virtual object, the terminal acquires the position of the second virtual object relative to the first virtual object, and sets an edge area in the field of view corresponding to the position as the display position of the position indication information.

[0066] In the second case, the second virtual object is not in the field of view of the first virtual object, but the first virtual object still needs to know the position indication information of the second virtual object. Therefore, the terminal may display the position indication information of the second virtual object in an edge region of the field of view screen so as not to obstruct too much of the field of view of the first virtual object. The terminal may obtain a display position of the position indication information based on the position of the second virtual object relative to the first virtual object. This indicates the approximate direction in which the second virtual object is located relative to the first virtual object.

[0067] Specifically, based on a line connecting the upper region of the second virtual object and the first virtual object, the terminal may determine the overlapping portion of the connecting line between the projection of the first virtual object onto the field of view screen and the edge region of the connecting line as the display position of the position indicating information. For example, as shown in Fig. 9, the line of sight of the first virtual object is n, n is perpendicular to the field of view screen, the intersection point is O, the second virtual object is not in the field of view screen of the first virtual object, the upper region of the second virtual object is at position a, and the line connecting this position a and the first virtual object is l. The terminal determines the overlapping portion of the projection l' of this connecting line l onto the field of view screen and the edge region of the field of view screen, i.e., position b, as the display position of the position indicating information.

[0068] In 204, the terminal displays position indication information of the second virtual object at the display position on the viewing screen of the first virtual object.

[0069] After acquiring the display content, display style, and display position of the position indicating information of the second virtual object, the terminal may execute step 204 to display the position indicating information of the second virtual object. The user can intuitively know the distance between the first virtual object and the second virtual object based on the display style of the position indicating information and the type of information included in the position indicating information. Therefore, the above-mentioned method of displaying position indicating information has an intuitive display effect and high display efficiency.

[0070] In one possible implementation, in case 2 of step 203, that is, when the second virtual object is not in the field of view of the first virtual object, part of the position indication information of the second virtual object is displayed at the display position in the field of view of the first virtual object, thereby reducing obstruction of the field of view of the first virtual object. In one possible implementation, the part of information includes one of the following two pieces of information:

[0071] First information: an indication icon of the second virtual object.

[0072] Second information: a pointing icon of the second virtual object and the distance between the first virtual object and the second virtual object.

[0073] That is, when the second virtual object is not in the field of view of the first virtual object and the distance is equal to or less than the target threshold, the terminal may display the pointing icon of the second virtual object and the distance between the first virtual object and the second virtual object. Of course, when the second virtual object is not in the field of view of the first virtual object and the distance is greater than the target threshold, the terminal may display only the pointing icon of the second virtual object.

[0074] In one possible implementation, if the position indication information of the second virtual object further includes other content, in step 204, the terminal may display the other content or only display the above-mentioned indication icon or distance, but the embodiments of the present application are not specifically limited thereto.

[0075] Furthermore, in order to more accurately indicate the position of the second virtual object relative to the first virtual object, when the second virtual object is not in the field of view of the first virtual object, the terminal may display the position of the second virtual object relative to the first virtual object at the display position of the field of view of the first virtual object. This allows the position of the second virtual object relative to the first virtual object to be intuitively displayed, and does not obstruct too much of the field of view of the first virtual object, resulting in high display efficiency.

[0076] Specifically, the position of the second virtual object relative to the first virtual object may be displayed in the form of an arrow pointing icon. The arrow of the arrow pointing icon may point from the intersection of the viewing direction of the first virtual object and the viewing screen to the projection of the target area of ​​the second virtual object onto the viewing screen. Here, the intersection of the viewing direction of the first virtual object and the viewing screen is the center point of the viewing screen, that is, the arrow points from the center point of the viewing screen to the area above the second virtual object.

[0077] For example, in the electronic game scenario shown in FIG. 10 , the device may determine the position of a teammate in the field of view. If the second virtual object is within the field of view, the position-indicating information icon of the second virtual object is located above the teammate's head, i.e., in the area directly above the second virtual object. If the second virtual object is outside the field of view, the icon is displayed at the edge of the screen, i.e., in the edge area of ​​the field of view, a directional triangle symbol is displayed, and the teammate's object name is hidden. That is, as described above, the object name of the second virtual object is not displayed, and an arrow-indicating icon is used to indicate the position of the second virtual object relative to the first virtual object. As shown in FIG. 11 , the number of the second virtual object is 2, the second virtual object is in an alive state and a vehicle-free state, the line of sight of the first virtual object is n, n is perpendicular to the field of view, the intersection point is O, the second virtual object is not within the field of view of the first virtual object, the target area of ​​the second virtual object is at position a, the line connecting position a and the first virtual object is l, and the projection of this connecting line l onto the field of view is l'. The terminal may display position indication information of the second virtual object in an edge region of the field of view screen, and indicate the position of the second virtual object relative to the first virtual object with an arrow pointing from point O to point a. The actual screen view may be as shown in FIG. 12. The second virtual objects numbered 2, 3, and 4 are all outside the field of view screen of the first virtual object. The position indication information of these three second virtual objects may have transparency so as not to obscure too much of the virtual scene.

[0078] Steps 203 and 204 are steps for displaying position indication information of the second virtual object on the field of view screen of the first virtual object. The display content and display style of the position indication information of the second virtual object are both obtained based on the distance between the first virtual object and the second virtual object. Therefore, the user can intuitively and quickly perceive the distance between the first virtual object and the second virtual object based on the type of position indication information included in the position indication information or the display style of the position indication information. The above method for displaying position indication information has an intuitive display effect and high display efficiency.

[0079] It should be noted that in the above steps 201 to 204, the terminal may acquire the distance between the first virtual object and the second virtual object in real time, and update and display the position indication information of the second virtual object according to changes in the distance. Specifically, the terminal may render and display the field of view screen of the next frame by calculating the position of the second virtual object in the field of view screen of the next frame, and the display content, display style, and display position of the position indication information of the second virtual object, based on the data of each frame.

[0080] In one possible embodiment, the viewing screen of the second virtual object may include a plurality of display modes. Here, the plurality of display modes includes a second display mode, which is a mode in which the virtual scene is enlarged and displayed at a target magnification. When the display mode of the viewing screen is switched from the first display mode to the second display mode, the terminal may display the position indication information of the second virtual object on the viewing screen at a target transparency. This target transparency is greater than the transparency of the position indication information in the first display mode. The first display mode is any display mode other than the second display mode. In this way, after the viewing screen is enlarged and displayed, the transparency of the position indication information can be increased to reduce the display effect of the position indication information. This prevents the position indication information from occluding a large portion of the viewing screen, thereby reducing the occlusion of the viewing screen of the first virtual object.

[0081] For example, in an electronic game scenario, a first virtual object acquires a sight for a firearm in a virtual scene. The sight may be a red dot sight, a 2x sight, a 4x sight, an 8x sight, or a sight with other magnifications. When the terminal detects an operation to turn on the sight, it switches the display mode of the current field of view screen of the terminal to a second display mode. This second display mode is a mode in which the field of view screen is enlarged and displayed by the sight at a magnification corresponding to the sight. When the sight is turned on, the terminal may set the transparency of the position indicating information of the second virtual object to a target transparency. In the enlarged field of view screen, the user will not see that a large portion of the field of view is blocked by the position indicating information. This significantly improves the user experience.

[0082] In one possible implementation, at least one of the display content and display style of the position indication information of the second virtual object may change in response to a change in at least one of the health state and the motion state of the second virtual object. As described in step 2021, the indication icon of the second virtual object may change in response to a change in the state of the second virtual object. Based on this, when the second virtual object is in a selection state and the second virtual object is selected, the first virtual object may obtain the position of another virtual object based on its position or pick up a virtual item of the second virtual object based on its position within a certain period after the second virtual object is selected. However, thereafter, the first virtual object does not need to know the position of the second virtual object. Furthermore, if the position indication information of the second virtual object is always displayed on the field of view screen, part of the field of view of the first virtual object will be blocked. For this reason, the terminal may have the following display settings for the position indication information: That is, when the terminal detects that the state of the second virtual object is a selection state and that the period during which the second virtual object is in the selection state has reached a target period, the terminal cancels the display of the position indication information of the second virtual object on the field of view screen of the first virtual object.

[0083] Here, the target period may be preset by a related artisan or may be adjusted by a user according to their own usage habits. For example, the target period may be 30 seconds. The embodiment of the present application does not limit the specific value of the target period.

[0084] For example, as shown in FIG. 13, the terminal may determine the status of teammate A. This teammate A is a second virtual object. If teammate A is seriously injured, the actual screen image is as shown in FIG. 14. The position indication information of teammate A indicates that rescue is required. The terminal may determine whether there is a teammate who can rescue teammate A. If the rescue is successful, teammate A is alive, that is, the second virtual object is in an alive state, and the terminal displays an icon indicating the position of teammate A. The specific display style follows the logic shown in steps 201 to 204 above. If there is no teammate who can rescue teammate A or the rescue fails, teammate A enters an elimination state, and the terminal may display the icon of teammate A on the field of view screen until the target time of 30 seconds has elapsed since teammate A was eliminated. Within these 30 seconds, the display style of teammate A follows the logic shown in steps 201 to 204, and the actual screen image is as shown in FIG. 15. When the display period reaches 30 seconds, the device hides the icon of the second virtual object, and the actual screen image is as shown in FIG. 16. In FIGS. 14, 15, and 16, the icon of the second virtual object may have transparency so as not to obscure the virtual scene too much. Of course, in one possible embodiment, the device may cancel the display of the position indicating information of the second virtual object on the field of view screen but continue to display the position indicating information of the second virtual object on the global map. In this way, even though the user cannot see the position indicating information on the field of view screen, the user can still know the position of the second virtual object at the time of elimination from the position indicating information on the global map.

[0085] In an embodiment of the present application, the distance between a first virtual object and a second virtual object is acquired, and position indication information and a corresponding display style of the second virtual object are acquired. The position indication information is displayed on the field of view screen of the first virtual object in the display style acquired based on the distance. This helps the user intuitively and quickly perceive the direction and approximate distance of the second virtual object based on the type of information included in the position indication information and the display style. Therefore, this method of displaying position indication information has an intuitive display effect and high display efficiency.

[0086] Furthermore, in an embodiment of the present application, when the second virtual object is not in the field of view of the first virtual object, the position of the second virtual object relative to the first virtual object is displayed, thereby not obscuring too much of the field of view of the first virtual object, and presenting the position of the second virtual object more intuitively, thereby improving display efficiency.

[0087] Furthermore, in an embodiment of the present application, when the display mode of the field of view screen is switched to the second display mode, the position indication information of the second virtual object is displayed with greater transparency, thereby reducing the obstruction of the field of view screen by the first virtual object.

[0088] All the optional features mentioned above can be combined in any way to form optional embodiments of the present application, and will not be described here one by one.

[0089] Figure 17 is a schematic diagram of the configuration of the display device for position indication information provided in the embodiment of the present application. As shown in Figure 17, the device includes: an obtaining module 1701 for obtaining a distance between a first virtual object and a second virtual object in a virtual scene; a display module 1702 that displays position indication information of the second virtual object on a field of view screen of the first virtual object; The obtaining module 1701 further obtains position indicating information of the second virtual object based on the distance, and the greater the distance, the less the display of the position indicating information obstructs the viewing screen.

[0090] In one possible implementation, the acquisition module 1701 includes: If the distance is equal to or less than the target threshold, acquire the pointing icon and object name of the second virtual object and the distance as display content of position pointing information of the second virtual object; If the distance is greater than the target threshold, the pointing icon and object name of the second virtual object are acquired as display content of the position pointing information of the second virtual object.

[0091] In one possible implementation, the display style of the position indication changes as the distance changes.

[0092] In one possible implementation, the acquisition module 1701 includes: if the distance is within a first interval, a display size corresponding to the distance and a transparency corresponding to the first interval are acquired as a display style of the position indication information of the second virtual object, and the larger the distance, the smaller the display size corresponding to the distance; if the distance is within a second interval, a transparency corresponding to the distance and a display size corresponding to the second interval are acquired as a display style of the position indication information of the second virtual object, and the greater the distance, the greater the transparency corresponding to the distance; If the distance is within a third interval, the display size and transparency corresponding to the third interval are acquired as the display style of the position indication information of the second virtual object.

[0093] In one possible implementation, the display module 1702 includes: acquiring a display position of the position indication information based on the position of the second virtual object; Position indication information of the second virtual object is displayed at the display position of the field of view screen of the first virtual object.

[0094] In one possible implementation form, the display module 1702 acquires an area above or below the second virtual object as the display position of the position indication information based on the position of the second virtual object.

[0095] In one possible implementation, the display module 1702 includes: If the second virtual object is not in the field of view of the first virtual object, obtain a position of the second virtual object relative to the first virtual object; The edge area of ​​the field of view screen corresponding to the position is set as the display position of the position indication information.

[0096] In one possible implementation, when the second virtual object is not in the field of view of the first virtual object, the display module 1702 displays some of the position indication information of the second virtual object at the display position of the field of view of the first virtual object.

[0097] In one possible implementation, some of the position indication information of the second virtual object includes a pointing icon of the second virtual object, or a pointing icon of the second virtual object and a distance between the first virtual object and the second virtual object.

[0098] In one possible implementation, the display module 1702 further displays the position of the second virtual object relative to the first virtual object at the display position of the viewing screen of the first virtual object when the second virtual object is not in the viewing screen of the first virtual object.

[0099] In one possible implementation, the display module 1702 further displays position indication information of a second virtual object on the field of view screen at a target transparency when the display mode of the field of view screen is switched from a first display mode to a second display mode, the target transparency being greater than the transparency of the position indication information in the first display mode, and the second display mode being a mode in which the virtual scene is enlarged and displayed at a target magnification.

[0100] In one possible implementation, at least one of the display content and display style of the position indication information of the second virtual object changes in response to a change in at least one of the health state and the motion state of the second virtual object.

[0101] In one possible implementation, the display module 1702 further cancels the display of the position indication information of the second virtual object on the field of view screen of the first virtual object when it detects that the state of the second virtual object is a selection state and that the period during which the state of the second virtual object is in the selection state has reached a target period.

[0102] The device provided in the embodiment of the present application acquires the distance between a first virtual object and a second virtual object, acquires position indication information of the second virtual object, and a corresponding display style, and displays the position indication information on the field of view of the first virtual object in the display style acquired based on the distance. This helps the user intuitively and quickly perceive the direction and approximate distance of the second virtual object based on the type of information included in the position indication information and the display style. Therefore, this method of displaying position indication information has an intuitive display effect and high display efficiency.

[0103] It should be noted that the display device for position indication information provided in the above embodiments is described as an example of dividing the above functional modules when displaying position indication information, but in one possible implementation, the above functions may be assigned to different functional modules as needed, i.e., the internal structure of the device may be divided into different functional modules to achieve all or part of the above-described functions. Furthermore, the display device for position indication information provided in the above embodiments belongs to the same concept as the embodiment of the method for displaying position indication information, and for details of the specific implementation process, please refer to the embodiment of the method, and the description will be omitted here.

[0104] 18 is a schematic diagram of the configuration of an electronic device provided in an embodiment of the present application. The electronic device 1800 may vary widely in specifications or performance and may include one or more processors (central processing units (CPUs)) 1801 and one or more memories 1802. The memory 1802 stores at least one instruction, which is loaded and executed by the processor 1801 to perform the following: obtaining a distance between a first virtual object and a second virtual object in a virtual scene; acquiring position indication information of the second virtual object based on the distance, wherein the greater the distance, the less the display of the position indication information obstructs the field of view screen; and a step of displaying the position indication information of the second virtual object on the field of view screen of the first virtual object.

[0105] In one possible implementation, the processor 1801: If the distance is equal to or less than the target threshold, acquire the pointing icon and object name of the second virtual object and the distance as display content of position pointing information of the second virtual object; If the distance is greater than the target threshold, the pointing icon and object name of the second virtual object are acquired as display content of the position pointing information of the second virtual object.

[0106] In one possible implementation, the display style of the position indication changes as the distance changes.

[0107] In one possible implementation, the processor 1801: if the distance is within a first interval, a display size corresponding to the distance and a transparency corresponding to the first interval are acquired as a display style of the position indication information of the second virtual object, and the larger the distance, the smaller the display size corresponding to the distance; if the distance is within a second interval, a transparency corresponding to the distance and a display size corresponding to the second interval are acquired as a display style of the position indication information of the second virtual object, and the greater the distance, the greater the transparency corresponding to the distance; If the distance is within a third interval, the display size and transparency corresponding to the third interval are acquired as the display style of the position indication information of the second virtual object.

[0108] In one possible implementation, the processor 1801: acquiring a display position of the position indication information based on the position of the second virtual object; Position indication information of the second virtual object is displayed at the display position of the field of view screen of the first virtual object.

[0109] In one possible implementation, the processor 1801: Based on the position of the second virtual object, an area above or below the second virtual object is acquired as the display position of the position indication information.

[0110] In one possible implementation, the processor 1801 further If the second virtual object is not in the field of view of the first virtual object, obtain a position of the second virtual object relative to the first virtual object; The edge area of ​​the field of view screen corresponding to the position is set as the display position of the position indication information.

[0111] In one possible implementation, the processor 1801: When the second virtual object is not in the field of view screen of the first virtual object, part of the position indication information of the second virtual object is displayed at the display position of the field of view screen of the first virtual object.

[0112] In one possible implementation form, some information of the position indication information of the second virtual object is: A pointing icon of the second virtual object; a pointing icon of the second virtual object and a distance between the first virtual object and the second virtual object; Contains one of the following:

[0113] In one possible implementation, the processor 1801 further displays the position of the second virtual object relative to the first virtual object at the display position of the field of view screen of the first virtual object when the second virtual object is not in the field of view screen of the first virtual object.

[0114] In one possible implementation, the processor 1801 further displays position indication information of a second virtual object on the field of view screen at a target transparency when the display mode of the field of view screen is switched from a first display mode to a second display mode, the target transparency being greater than the transparency of the position indication information in the first display mode, and the second display mode being a mode in which the virtual scene is enlarged and displayed at a target magnification.

[0115] In one possible implementation, the processor 1801 further cancels the display of position indication information of the second virtual object on the field of view screen of the first virtual object when it detects that the state of the second virtual object is a selection state and that the period during which the state of the second virtual object is in the selection state has reached a target period.

[0116] Of course, the electronic device 1800 may include components for input and output, such as a wired or wireless network interface, a keyboard, an input and output interface, etc. The electronic device 1800 may also include other components for realizing the functions of the device, but the description thereof will be omitted here.

[0117] In an exemplary embodiment, a computer-readable storage medium, e.g., a memory, is further provided that includes instructions that, when executed by the processor, cause the obtaining a distance between a first virtual object and a second virtual object in a virtual scene; acquiring position indication information of the second virtual object based on the distance, wherein the greater the distance, the less the display of the position indication information obstructs the field of view screen; and a step of displaying the position indication information of the second virtual object on the field of view screen of the first virtual object.

[0118] In one possible implementation, the instructions are loaded and executed by the processor to: If the distance is equal to or less than a target threshold, acquiring a pointing icon and object name of the second virtual object and the distance as display content of position pointing information of the second virtual object; If the distance is greater than the target threshold, acquiring a pointing icon and an object name of the second virtual object as display content of the position pointing information of the second virtual object.

[0119] In one possible implementation, the display style of the position indication changes as the distance changes.

[0120] In one possible implementation, the instructions are loaded and executed by the processor to: a step of acquiring, when the distance is within a first interval, a display size corresponding to the distance and a transparency corresponding to the first interval as a display style of the position indication information of the second virtual object, wherein the display size corresponding to the distance becomes smaller as the distance becomes larger; a step of acquiring, when the distance is within a second interval, a transparency corresponding to the distance and a display size corresponding to the second interval as a display style of the position indication information of the second virtual object, wherein the greater the distance, the greater the transparency corresponding to the distance; If the distance is within a third interval, acquiring a display size and transparency corresponding to the third interval as a display style of the position indication information of the second virtual object.

[0121] In one possible implementation, the instructions are loaded and executed by the processor to: acquiring a display position of the position indication information based on a position of the second virtual object; and displaying position indication information of the second virtual object at the display position on the field of view screen of the first virtual object.

[0122] In one possible implementation, the instructions are loaded and executed by the processor to: The step of acquiring, based on the position of the second virtual object, an area above or below the second virtual object as a display position of the position indication information is realized.

[0123] In one possible implementation, the instructions are loaded and executed by the processor to: If the second virtual object is not in the field of view of the first virtual object, obtaining a position of the second virtual object relative to the first virtual object; and a step of setting an edge area of ​​the field of view screen corresponding to the position as a display position of the position indication information.

[0124] In one possible implementation, the instructions are loaded and executed by the processor to: When the second virtual object is not in the field of view screen of the first virtual object, a step of displaying part of the position indication information of the second virtual object at the display position of the field of view screen of the first virtual object is realized.

[0125] In one possible implementation form, some information of the position indication information of the second virtual object is: A pointing icon of the second virtual object; a pointing icon of the second virtual object and a distance between the first virtual object and the second virtual object; Contains one of the following:

[0126] In one possible implementation, the instructions are loaded and executed by the processor to: When the second virtual object is not in the viewing screen of the first virtual object, a step of displaying the position of the second virtual object relative to the first virtual object at the display position of the viewing screen of the first virtual object is implemented.

[0127] In one possible implementation, the instructions are loaded and executed by the processor to: When the display mode of the field of view screen is switched from a first display mode to a second display mode, the step of displaying position indication information of a second virtual object on the field of view screen at a target transparency is realized, wherein the target transparency is greater than the transparency of the position indication information in the first display mode, and the second display mode is a mode in which the virtual scene is enlarged and displayed at a target magnification.

[0128] In one possible implementation, the instructions are loaded and executed by the processor to: When it is detected that the state of the second virtual object is a selection state and that the period during which the state of the second virtual object is in the selection state has reached a target period, the display of the position indication information of the second virtual object on the field of view screen of the first virtual object is canceled.

[0129] For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, or the like.

[0130] As can be understood by those skilled in the art, all or part of the steps for realizing the above embodiments may be executed by hardware, or may be executed by instructing related hardware by a program. The program may be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0131] The above is only a preferred embodiment of the present application, and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application. [Explanation of symbols]

[0132] 1701 Acquisition Module 1702 Display Module 1800 electronic equipment 1801 processor 1802 memory

Claims

1. 1. A method for displaying location-indicating information, implemented by an electronic device, comprising: obtaining a distance between a first virtual object in a virtual scene and a second virtual object that is a virtual object belonging to the same team as the first virtual object; a step of displaying position indication information of the second virtual object on a field of view screen of the first virtual object with a transparency corresponding to the distance, the transparency increasing as the distance increases; Including, the position indication information includes a distance between the first virtual object and the second virtual object and a number that uniquely identifies the second virtual object; a step of displaying position indication information of a second virtual object on the field of view screen with a predetermined transparency when the display mode of the field of view screen is switched from a first display mode to a second display mode, the predetermined transparency being greater than the transparency of the position indication information in the first display mode, and the second display mode being a mode in which a virtual scene is enlarged and displayed at a target magnification; The method further comprising:

2. The method of claim 1 , wherein the display style of the location-indicating information changes as the distance changes.

3. The method of claim 1 , further comprising obtaining position indication information for the second virtual object.

4. The step of displaying position indication information of the second virtual object on a field of view screen of the first virtual object includes: acquiring a display position of the position indication information based on a position of the second virtual object; displaying position indication information of the second virtual object at the display position of the field of view screen of the first virtual object; 2. The method of claim 1, comprising:

5. The step of acquiring a display position of the position indication information based on the position of the second virtual object includes: acquiring, based on the position of the second virtual object, an area above or below the second virtual object as a display position of the position indication information; 5. The method of claim 4, comprising:

6. The step of acquiring a display position of the position indication information based on the position of the second virtual object includes: acquiring a position of the second virtual object relative to the first virtual object when the second virtual object is not in a field of view screen of the first virtual object; a step of setting an edge area of ​​the field of view screen corresponding to the position as a display position of the position indication information; 5. The method of claim 4, comprising:

7. At least one of the display content and the display style of the position indication information of the second virtual object changes in response to a change in at least one of a health state and an exercise state of the second virtual object.

7. The method according to any one of claims 1 to 6.

8. canceling display of position indication information of the second virtual object on a field-of-view screen of the first virtual object when it is detected that the state of the second virtual object is a selection state and that a period during which the state of the second virtual object is in the selection state has reached a target period; The method of claim 1 further comprising:

9. 1. An electronic device comprising a processor and a memory, wherein the memory stores at least one instruction, the instruction being loaded and executed by the processor to: An electronic device, characterized in that it implements the processing of the method according to any one of claims 1 to 8.

10. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 8.

11. 9. A computer-readable storage medium having stored thereon at least one instruction that, when loaded and executed by a processor, causes the processing performed by the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • Game device and information storage medium

    JP2000140417A

  • Image displaying method, computer game processing method and recording medium

    JP2002163684A

  • Method of displaying game message and game program

    JP2004242728A

  • Game program and game system

    JP2017047088A