Mark processing method and device, computer device, and computer program

The method and device dynamically adjust mark transparency to improve visibility in virtual environments, addressing obstruction issues and enhancing user interaction efficiency.

JP7589426B2Active Publication Date: 2024-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023527686
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-21
Filing Date
2021-12-30
Publication Date
2024-11-26
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

Existing mark displays in virtual environments, such as game applications, obstruct the user's view, making it difficult to recognize the display screen and impacting human-machine interaction efficiency.

Method used

A method and device that dynamically adjust the transparency of position presentation marks based on the relative position between aim and position presentation marks, ensuring clear visibility of the virtual environment by minimizing screen obstruction.

Benefits of technology

Enhances user interaction by improving the clarity and efficiency of information acquisition in virtual environments by adaptively adjusting mark transparency, reducing the time required to obtain information and highlighting important content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007589426000001
    Figure 0007589426000001
  • Figure 0007589426000002
    Figure 0007589426000002
  • Figure 0007589426000003
    Figure 0007589426000003
Patent Text Reader

Abstract

A mark processing method, device, terminal, and storage medium related to the technical field of computers. The method includes the steps of: displaying a display screen of a virtual environment; displaying an aim indicator mark on the display screen of the virtual environment, where the aim indicator mark indicates a target aim position at which a target virtual object in the virtual environment is aiming; displaying a position indicator mark on the display screen of the virtual environment with a first transparency, where the position indicator mark indicates a target environment position in the virtual environment; and adjusting the transparency of the position indicator mark in response to a change in the relative position between the aim indicator mark and the position indicator mark.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority based on a Chinese patent application filed with the China Patent Office on January 21, 2021, bearing application number 202110084112.X and title "Mark display method and device, terminal and storage medium," the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD The embodiments of the present application relate to the field of computer technology, and in particular to a mark processing method and apparatus, a computer device, a storage medium, and a program product. [Background technology]

[0003] 2. Description of the Related Art With the development of computer technology, the content displayed on the display screen of an application program, especially a game application program, is becoming richer and richer.

[0004] In the related art, some game display screens display marks to provide users with information about the game. In the related art, these marks may significantly block the display screen of the virtual environment under the marks, making it difficult for users to view the display screen blocked by the marks, increasing the time required for users to obtain information in the virtual environment, and affecting the human-machine interaction rate. Summary of the Invention [Problem to be solved by the invention]

[0005] In view of the above problems, an object of the present application is to provide a mark processing method and device, a computer device, and a computer program. [Means for solving the problem]

[0006] 1. A method for mark processing implemented by a computing device, comprising: displaying a display screen of the virtual environment; A step of displaying an aim presentation mark on a display screen of the virtual environment, the aim presentation mark being for indicating a target aim position at which a target virtual object in the virtual environment is aimed; displaying a location indication mark on a display screen of the virtual environment at a first transparency, the location indication mark being for indicating a target environment location in the virtual environment; and adjusting the transparency of the position indication mark in response to a change in the relative position between the alignment indication mark and the position indication mark.

[0007] 1. A mark processing device, comprising: a screen display module for displaying a display screen of the virtual environment; a mark display module that displays an aim presentation mark on a display screen of the virtual environment to indicate a target aim position at which a target virtual object in the virtual environment is aimed, and also displays a position presentation mark on the display screen of the virtual environment with a first transparency to indicate a target environment position in the virtual environment; and a transparency adjustment module that adjusts the transparency of the position indication mark in response to a change in the relative position between the aim indication mark and the position indication mark.

[0008] A computing device comprising a memory and one or more processors, the memory storing computer-readable instructions which, when executed by the one or more processors, cause the one or more processors to implement the mark processing method described above.

[0009] One or more non-volatile computer-readable storage media having computer-readable instructions stored thereon that, when executed by one or more processors, cause the one or more processors to implement the mark processing method described above.

[0010] According to one aspect of an embodiment of the present application, there is provided a computer program product or computer program comprising computer instructions stored on a computer readable storage medium, the computer instructions being read by a processor of a computing device from the computer readable storage medium and executed by the processor such that the computing device performs the mark processing method. [Brief description of the drawings]

[0011] In order to more clearly describe the technical solutions of the embodiments of the present application, the following briefly introduces the drawings necessary for describing the embodiments. It is obvious that the drawings described below are only a part of the embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work. [Figure 1] FIG. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. [Diagram 2] 1 is a flowchart of a mark processing method according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of a field of view according to an embodiment of the present application. [Figure 4] 1 is a schematic diagram showing a display of a position indication mark according to an embodiment of the present application; [Diagram 5] FIG. 13 is a schematic diagram showing a display of a position indication mark according to another embodiment of the present application. [Figure 6] FIG. 13 is a schematic diagram showing a display of a position indication mark according to another embodiment of the present application. [Figure 7] 1 is a schematic diagram of a position indication mark according to an embodiment of the present application; [Figure 8] FIG. 13 is a schematic diagram showing a display of a position indication mark according to another embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of parameter settings according to an embodiment of the present application; [Figure 10] 4 is a flowchart of a mark processing method according to another embodiment of the present application. [Figure 11] 4 is a flowchart of a mark processing method according to another embodiment of the present application. [Figure 12] 4 is a flowchart of a mark processing method according to another embodiment of the present application. [Figure 13] 4 is a flowchart of a mark processing method according to another embodiment of the present application. [Figure 14] 1 is a schematic configuration diagram of a mark processing device according to an embodiment of the present application; [Figure 15] FIG. 13 is a schematic configuration diagram of a mark processing device according to another embodiment of the present application. [Figure 16] FIG. 1 is a schematic diagram of a computing device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Exemplary embodiments will now be described in detail, examples of which are illustrated in the drawings. When referring to the drawings below, the same numerals in different drawings represent the same or similar elements unless otherwise noted. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of ways consistent with some aspects of the present application, as detailed in the appended claims.

[0013] 1 shows a schematic diagram of an implementation environment according to an embodiment of the present application, which may be implemented as a mark processing system. The system 10 may comprise a terminal 11.

[0014] A target application program, for example, a client of the target application program, is installed and executed on the terminal 11, and a user account is logged in to the client. The terminal is an electronic device capable of computing, processing, and storing data. The terminal may be a smartphone, a tablet computer, a PC (Personal Computer), a wearable device, etc., but is not limited to these in the embodiment of the present application. Optionally, the terminal may be a mobile terminal device equipped with a touch display panel, through which the user can realize human-machine interaction. The target application program may be a game application program, for example, a survival game application program, an LBS (Location Based Service) game application program, a MOBA (Multiplayer Online Battle Arena) game application program, etc., but is not limited to these in the embodiment of the present application. The target application program may be any application program with a mark processing function, such as a social application program, a payment application program, a video application program, a music application program, a shopping application program, a news application program, etc. In the method according to the embodiment of the present application, the execution subject of each step may be the terminal 11, for example, a client executed on the terminal 11.

[0015] The virtual environment is a scene displayed (or provided) when a client of a target application program (e.g., a game application program) is executed on a terminal, and the virtual environment means a scene constructed for a virtual object to perform an activity (e.g., a game competition), such as a virtual room, a virtual island, or a virtual map. The virtual environment may be an environment simulating the real world, a semi-simulated semi-fictional environment, or a purely fictional environment. The virtual environment may be a 2D virtual environment, a 2.5D virtual environment, or a 3D virtual environment, but is not limited thereto in the embodiment of the present application. The virtual object means a virtual character controlled by a user account in a target application program. For example, the target application program is a game application program, and the virtual object means a game character controlled by a user account in a game application program. The virtual object may be in the form of a person, an animal, a cartoon, or other form, but is not limited thereto in the embodiment of the present application. The virtual object may be displayed in 3D or 2D, but is not limited thereto in the embodiment of the present application. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object may be a three-dimensional solid model created based on skeletal animation technology. The virtual object has its own shape and volume in the three-dimensional virtual environment so as to occupy a part of the space in the three-dimensional virtual environment. Optionally, the target application program may have a function of simulating a real physical environment. In the virtual environment, the motion law of each virtual element (e.g., virtual object) matches or is close to the real physical law.

[0016] In some embodiments, the system 10 further includes a server 12 that establishes a communication connection (e.g., a network connection) with the terminal 11, and the server 12 is used to provide background services to the target application program. The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0017] In one embodiment, the terminal displays a display screen of a virtual environment, displays an aim presentation mark on the display screen of the virtual environment to indicate a target aim position at which a target virtual object in the virtual environment is aiming, displays a position presentation mark on the display screen of the virtual environment to indicate a target environment position in the virtual environment at a first transparency, and is capable of adjusting the transparency of the position presentation mark in response to a change in the relative position between the aim presentation mark and the position presentation mark.

[0018] The mark processing method according to the embodiment of the present application can be applied to scenes displayed by a display panel, and can also be applied to display scenes such as AR (Augmented Reality) and VR (Virtual Reality), but is not specifically limited thereto in the embodiment of the present application.

[0019] The technical solution of the present application will be described below through several embodiments.

[0020] 2 shows a flowchart of a mark processing method according to an embodiment of the present application. This method may be executed by the above-mentioned terminal 11, or the method may be executed by the server 12, or the terminal 11 and the server 12 may cooperate with each other to execute the method. In this embodiment, the method is described by taking as an example a case where the method is applied to the above-mentioned terminal 11. This method may include the following steps (201 to 204).

[0021] In step 201, a display screen of the virtual environment is displayed.

[0022] Although some of the explanations regarding the virtual environment may refer to the explanations above, they will not be repeated here.

[0023] In some embodiments, the display screen of the virtual environment displayed by the terminal is a display screen located at the lowest layer of the user interface, and a UI (User Interface) layer for displaying UI elements such as various marks and virtual controls exists above the display screen of the virtual environment. The terminal displays virtual controls and respective marks in the UI layer above the display screen of the displayed virtual environment. The user can control the virtual object through the virtual control, for example, to control the movement of the virtual object, change of posture, operation of a virtual item, use of a skill, etc. The user can obtain presented information through the mark to facilitate the control of the virtual object.

[0024] In step 202, an aim presenting mark is displayed on the display screen of the virtual environment, and the aim presenting mark is for indicating a target aim position at which a target virtual object in the virtual environment is aimed.

[0025] Optionally, the terminal may display an aim presentation mark on the display screen of the virtual environment, and the target virtual object displayed by the terminal in the virtual environment is a virtual object that the user correspondingly controls, that is, the target virtual object may be interpreted as a virtual character representing the current user. In some embodiments, the terminal displays the aim presentation mark superimposed on the target aiming position, and a position corresponding to the center of the aim presentation mark is the target aiming position. In some other embodiments, the aim presentation mark or a position corresponding to the center of the aim presentation mark is located near the target aiming position.

[0026] In some embodiments, the target aim position is a position at which a virtual shooter of the target virtual object is aiming. In one example, the aim presentation mark is a reticle (also called an aim point) of the virtual shooter.

[0027] In step 203, a position indication mark is displayed on the display screen of the virtual environment with a first transparency, the position indication mark being for indicating a target environment position in the virtual environment.

[0028] Optionally, the terminal may display the position indication mark on the display screen of the virtual environment. If the relative position between the aiming indication mark and the position indication mark does not change, the terminal displays the position indication mark with the current transparency (i.e., the first transparency). In some embodiments, the terminal displays the position indication mark superimposed on the target environment position, and a position corresponding to the center of the position indication mark is the target environment position. In some other embodiments, the position indication mark or a position corresponding to the center of the position indication mark is located near the target environment position. Optionally, the position indication mark may be a circle, a triangle, a square, a rectangle, a diamond, etc., but the embodiment of the present application is not specifically limited thereto. The position indication mark may be a mark that combines marks of different shapes.

[0029] In one example, the position presentation mark may be marked by a user corresponding to a target virtual object, and the position presentation mark may be visible only to the user corresponding to the target virtual object. Or, the position presentation mark may be visible only to the user corresponding to the target virtual object and to users corresponding to virtual objects in the same camp as the target virtual object. Or, the position presentation mark may be visible to users corresponding to all virtual objects in the game.

[0030] In another example, the location indication marks are automatically generated by the target application program.

[0031] In some embodiments, the target environment position includes a fixed position and a movable position, where the fixed position means a position that does not change with respect to the virtual environment, and the movable position means a position of a virtual object or a virtual object that is movable with respect to the virtual environment. When the target environment position is a fixed position, for example, a position of a virtual stone, a virtual room, a virtual island, a virtual tree, etc. that cannot be moved in the virtual environment, the target environment position does not change. When the target environment position is a movable position, for example, a position of a movable virtual object, a virtual carrier, a virtual shooter, etc. in the virtual environment, when the position of the movable virtual object, the virtual carrier, the virtual shooter, etc. changes, the target environment position changes accordingly. It is clear that the display position of the position indication mark also changes with the change in the target environment position.

[0032] In some embodiments, this step 203 further includes the following sub-steps:

[0033] 1. Determine whether the target environment location is within a field of view of a target virtual object, the field of view being intended to indicate the area of ​​the virtual environment that the target virtual object is currently observing.

[0034] 2. If the target environment position is within the field of view, a position indication mark is displayed at the target environment position.

[0035] 3. If the target environment position is outside the field of view, a position indication mark is displayed on the edge of the display screen of the virtual environment.

[0036] In this embodiment, if the target environment position displayed by the terminal is within the field of view in which the target virtual object is currently being observed, a position presentation mark is displayed at the target environment position, indicating that the user can observe the target environment position from the viewpoint of the target virtual object on the currently displayed display screen of the virtual environment, so that the user can easily focus on the target environment position. If the target environment position is outside the field of view, a position presentation mark is displayed at the edge of the display screen of the virtual environment, indicating that the user cannot observe the target environment position from the viewpoint of the target virtual object on the currently displayed display screen of the virtual environment, so that the user can easily grasp the range in which the target environment position exists, or the position direction of the target environment position relative to the target virtual object. By displaying the position presentation mark on the display screen of the virtual environment in this manner of dynamic adjustment, problems that are disadvantageous to human-machine interaction due to a single or fixed display method can be avoided, and the human-machine interaction rate can be effectively improved.

[0037] Optionally, if the display screen of the virtual environment and the display screen of the UI layer on which the position indication mark exists are not completely overlapped, if the target environment position is outside the field of view, the terminal may display the position indication mark on the edge of the display screen of the UI layer.

[0038] In some embodiments, the horizontal angle of the field of view is 120°, 150°, 180°, etc. Optionally, the horizontal angle of the field of view may be other angles, and the specific angle of the horizontal angle of the field of view may be set by those skilled in the art according to the actual situation, but the embodiments of the present application do not specifically limit it.

[0039] In some embodiments, the horizontal angle of the field of view depends on the game mode, for example, the target application program is a game application program. In one example, as shown in FIG. 3, in FPS (First-Person Shooting) mode, the horizontal angle of the field of view 31 is 120°. In TPS (Third-Personal Shooting) mode, the horizontal angle of the field of view 32 is 180°.

[0040] In some other embodiments, the horizontal angle of the field of view is set by the user himself / herself. For example, the user can set the horizontal angle of the field of view corresponding to each of the FPS mode and the TPS mode, thereby improving the richness of the game content.

[0041] In some embodiments, as shown in FIG. 4, if the target environment position is outside the field of view 31 and is in the left region 41 of the target virtual object 40, the terminal displays a position indication mark 43 on the left edge of the display screen 42 of the virtual environment.

[0042] In some other embodiments, as shown in FIG. 5, if the target environment position is outside the field of view 31 and is in the right area 51 of the target virtual object 40, the terminal displays a position indication mark 43 on the right edge of the display screen 42 of the virtual environment.

[0043] In some other embodiments, as shown in Fig. 6, if the target environment position is outside the field of view and the target environment position is in a forward non-display area of ​​the target virtual object 40, the terminal displays a position indication mark 43 on the upper edge of the display screen 42 of the virtual environment. Optionally, if the horizontal angle of the field of view is 120°, the target environment position may be located in a forward non-display area 61, and if the horizontal angle of the field of view is 180°, the target environment position may be located in a forward non-display area 62.

[0044] Optionally, as shown in Figures 4, 5 and 6, the location indication mark 43 may include a direction mark 44 pointing to a target environment location. In one example, if the target environment location is outside the field of view, the direction mark 44 points in the direction in which the target environment location is located. If the target environment location is within the field of view, the location pointed to by the direction mark 44 is the target environment location.

[0045] Optionally, as shown in FIG. 7 , the position presentation mark may include an operation presentation mark 71 and an area presentation mark 72, where the operation presentation mark 71 is used to present to the user an operation to be performed by controlling a target virtual object, and the area presentation mark 72 is used to present to the user an area in which the target environment position is located.

[0046] In one example, when a target environment location needs to be blown up, the operation prompting mark 71 is used to prompt the user to control the target virtual object to perform a Defend operation or an Attack operation.

[0047] In another example, the virtual environment is divided into multiple regions, each of which is represented by a letter such as A, B, C, D, etc., and when the target environment location is in region A, the letter "A" is displayed on the region presentation mark 72.

[0048] In step 204, the transparency of the position presentation mark is adjusted in response to a change in the relative position between the aim presentation mark and the position presentation mark.

[0049] In some embodiments, if the distance between the aiming indication mark and the position indication mark changes, the terminal adjusts the transparency of the position indication mark according to the changed distance between the aiming indication mark and the position indication mark. Optionally, as shown in FIG. 8, within a certain distance range (the distance range may be represented by X), the smaller the distance 82 between the aiming indication mark 81 and the position indication mark 43, the more transparent the position indication mark 43 may be.

[0050] Optionally, the transparency of the location indication marks may be customized by the user.

[0051] 9, the terminal accepts a transparency setting operation 91 for the location indication mark 43 and updates the maximum rated transparency value and / or the minimum rated transparency value of the location indication mark 43. In this implementation, a user can customize and set the maximum rated transparency value and / or the minimum rated transparency value through the setting interface, so that the transparency of the location indication mark can better meet the individual needs of the user.

[0052] In one example, the transparency value is in the range of 0 to 100, and the smaller the transparency value, the higher the degree of transparency, and conversely, the larger the transparency value, the lower the degree of transparency. For example, 0 indicates that the position presentation mark 43 is completely transparent, and 100 indicates that the position presentation mark 43 is completely opaque. In one example, the maximum rated transparency value is 100, and the minimum rated transparency value is 50. Of course, the maximum rated transparency value and the minimum rated transparency value may be set to other values, but this is not specifically limited in the embodiment of the present application. For example, a UI layer exists on the display screen of a virtual environment, and the smaller the transparency value and the higher the degree of transparency of a mark displayed on the UI layer, the more clearly the display screen belonging to the virtual environment below the mark is displayed through the mark. Conversely, the larger the transparency value and the lower the degree of transparency, the less the display screen belonging to the virtual environment below the mark is displayed through the mark.

[0053] In some embodiments, the method further comprises the steps of:

[0054] 1. Accepts a setting operation for the maximum rated transparency value and updates the maximum rated transparency value.

[0055] 2. Automatically update the minimum rated transparency value and maintain the difference between the maximum rated transparency value and the minimum rated transparency value to a preset difference.

[0056] In one example, the preset difference is 50, and if a user sets the maximum nominal transparency value to 70, the minimum nominal transparency value is automatically updated to 20.

[0057] Optionally, the maximum rated transparency value may be 100 by default. Optionally, the preset difference may be 40, 50, 60, 70, etc., and the specific value of the preset difference may be set by those skilled in the art according to the actual situation, but the embodiment of the present application does not specifically limit it.

[0058] In this implementation, when determining the maximum rated transparency value and the minimum rated transparency value, the user sets the maximum rated transparency value, and the terminal subtracts a predetermined difference from the updated maximum rated transparency value to obtain the minimum rated transparency value, eliminating the need for the user to perform setting operations for the minimum rated transparency value again, thereby reducing the number of operating steps for the user and improving the convenience of setting operations.

[0059] In some embodiments, as shown in Fig. 9, a size setting operation 92 for the location indication mark is accepted to update the size of the location indication mark. This allows the display size of the location indication mark to meet the individual needs of different users. Optionally, the size value of the location indication mark may be 100 by default.

[0060] To sum up, in the technical solution according to the embodiment of the present application, when the relative position between the aiming mark and the position mark changes, the transparency of the position mark is adjusted so that the adjustment direction is consistent with the change direction of the distance between the aiming mark and the position mark, so that when the user views the display screen of the virtual environment overlapping with the position mark, the user can relatively easily view the blocked display screen through the position mark with a low transparency value (high transparency), improving the clarity and display effect of the interface display, reducing the time required for the user to obtain information in the virtual environment, and improving the efficiency of the user's information acquisition. Meanwhile, by displaying the position mark far from the aiming mark in a manner of increasing the transparency value, the user can be helped to grasp the direction of the target environment position in the virtual environment, and can be effectively presented to the user.

[0061] In addition, the technical solutions according to the embodiments of the present application dynamically adjust the transparency of the position display mark according to the actual situation (e.g., the relative positions of the aiming mark and the position display mark), thereby highlighting it when necessary, and not highlighting it when there is more important information (e.g., the aiming mark), thereby realizing a display effect of adaptively changing the content of the interface, highlighting the important content, and ensuring that the user can timely view the screen information that is blocked by the position display mark or displayed near the position display mark.

[0062] In some possible implementations, as shown in FIG. 10, step 204 in the embodiment of FIG. 2 may be replaced with the following steps (205 to 208).

[0063] In step 205, a first vector is determined based on the position of the target virtual object in the virtual environment and the target environment position, the first vector pointing from the position of the target virtual object to the target environment position.

[0064] In some embodiments, a first coordinate system is established in the virtual environment, and if the virtual environment is a three-dimensional virtual environment, the first coordinate system is a control coordinate system, and coordinates corresponding to each of the target virtual object and the target environment position in the first coordinate system are obtained, and a first vector is determined based on the coordinates corresponding to each of the target virtual object and the target environment position in the first coordinate system.

[0065] In some other embodiments, a second coordinate system is established with the target virtual object as the origin, and the coordinates of the target environment position in the second coordinate system are obtained, which are the first vector.

[0066] In step 206, a second vector is determined based on the position of the target virtual object in the virtual environment and the target aim position, the second vector pointing from the position of the target virtual object to the target aim position.

[0067] In some embodiments, coordinates of a target aim position in a first coordinate system are obtained, and a second vector is determined based on the respective coordinates of the target virtual object and the target aim position in the first coordinate system.

[0068] In some other embodiments, coordinates of the target aim position in a second coordinate system are obtained, which coordinates are a second vector.

[0069] In step 207, an adjusted second transparency is determined based on the first vector and the second vector.

[0070] Optionally, based on the first vector and the second vector determined in the same coordinate system, an included angle between the first vector and the second vector is determined, and a second transparency is determined from the included angle or a trigonometric function value of the included angle.

[0071] In some embodiments, this step 207 includes several of the following sub-steps.

[0072] 1. Determine the cosine value of the included angle between the first vector and the second vector.

[0073] 2. If the cosine value is less than or equal to the first threshold, determine the second transparency to be the maximum rated transparency.

[0074] 3. If the cosine value is greater than the first threshold and less than or equal to the second threshold, determine a second transparency based on the cosine value, where the second transparency is less than the maximum rated transparency and is negatively correlated with the cosine value.

[0075] In the embodiment of the present application, the value of the included angle between the first vector and the second vector is in the range of 0 to 180°, and within that value range, the magnitude of the included angle and its cosine value have a unique correspondence.

[0076] Optionally, when the field of view is 180°, if the cosine value is less than 0, it indicates that the target environment position is outside the field of view, and the terminal may display a position indication mark on the edge of the display screen of the virtual environment.

[0077] In some embodiments, the first vector and the second vector are unit vectors, and a dot product value obtained by dot-production of the first vector and the second vector is a cosine value. When the cosine value is smaller than a first threshold, the included angle is large, the display distance between the aiming indication mark and the position indication mark is far, and the terminal can display the position indication mark with the maximum rated transparency. When the cosine value is larger than the first threshold and smaller than a second threshold, the included angle is small, the display distance between the aiming indication mark and the position indication mark is small, and the terminal displays the position indication mark with a transparency smaller than the maximum rated transparency value.

[0078] When the cosine value is greater than the first threshold and less than the second threshold, the second transparency and the cosine value are negatively correlated, i.e., the larger the cosine value, the smaller the second transparency, and the smaller the cosine value, the greater the second transparency. Optionally, when the cosine value is greater than the first threshold and less than the second threshold, the second transparency and the cosine value may be negatively linearly correlated.

[0079] Optionally, the first threshold is 0.2, 0.3, 0.4, 0.5, etc., and the specific value of the first threshold may be set by those skilled in the art according to the actual situation, but the embodiment of the present application does not specifically limit it. Optionally, the second threshold is 0.6, 0.7, 0.8, 1, etc., and the specific value of the second threshold may be set by those skilled in the art according to the actual situation, but the embodiment of the present application does not specifically limit it. Here, the first threshold is smaller than the second threshold.

[0080] Optionally, when the cosine value is greater than a second threshold, the second transparency may be determined to be the minimum rated transparency. When the cosine value is greater than the second threshold, it indicates that the display distance between the aiming indication mark and the position indication mark is small, and within this range, the terminal can display the position indication mark with the minimum rated transparency.

[0081] In the embodiment of the present application, the magnitude of the included angle and the cosine value have a unique correspondence relationship. It is apparent that the second transparency may be determined directly based on the included angle.

[0082] In some other embodiments, this step 207 includes several of the following sub-steps.

[0083] 1. Determine the included angle between the first and second vectors.

[0084] 2. If the included angle is greater than the third threshold, determine the second transparency to be the maximum rated transparency value.

[0085] 3. If the included angle is less than the third threshold and greater than the fourth threshold, the second transparency is determined to be less than the maximum rated transparency value, and the second transparency and the included angle are positively correlated.

[0086] In some embodiments, the included angle between the first vector and the second vector is determined based on the cosine value calculated in the previous sentence. If the included angle is greater than a third threshold, the display distance between the aiming indication mark and the position indication mark is far, and the terminal can display the position indication mark with a maximum rated transparency. If the included angle is less than the third threshold and greater than a fourth threshold, the display distance between the aiming indication mark and the position indication mark is small, and the terminal can display the position indication mark with a transparency less than the maximum rated transparency value.

[0087] When the included angle is less than the third threshold and greater than the fourth threshold, the second transparency and the included angle are positively correlated, i.e., the smaller the included angle, the less the second transparency, and the larger the included angle, the greater the second transparency. Optionally, when the included angle is less than the third threshold and greater than the fourth threshold, the second transparency and the included angle may be positively linearly correlated.

[0088] Optionally, the third threshold is 30°, 45°, 60°, 90°, etc., and the specific value of the third threshold may be set by those skilled in the art according to the actual situation, but the embodiment of the present application does not specifically limit it. Optionally, the fourth threshold is 70°, 80°, 90°, etc., and the specific value of the fourth threshold may be set by those skilled in the art according to the actual situation, but the embodiment of the present application does not specifically limit it. Here, the third threshold is greater than the fourth threshold.

[0089] In step 208, the location indication mark is displayed with a second transparency.

[0090] To summarize the above, in this implementation, the terminal can determine the second transparency based on the position of the target virtual object in the virtual environment, the target aiming position, and the target environment position, and display the position indication mark with the second transparency, the calculation process is simple, saving the processing overhead required to display the position indication mark, and avoiding resource waste of the terminal.

[0091] In some other possible implementations, as shown in FIG. 11, step 204 in the embodiment of FIG. 2 may be replaced with the following steps (209 to 211).

[0092] In step 209, the display distance between the aim presenting mark and the position presenting mark in the user interface is acquired.

[0093] In some embodiments, the terminal can obtain the display distance through a related data interface of the target application program. In other embodiments, the terminal can obtain the display distance by taking a screenshot of the current user interface through a screenshot function.

[0094] In some embodiments, the aim presentation mark and the position presentation mark are marks that occupy a certain area. In one example, the display distance is the shortest straight-line distance between the aim presentation mark and the position presentation mark, and in this example, when the aim presentation mark and the position presentation mark are in contact or have an overlapping display area, the display distance is 0. In another example, the display distance is the distance between the center of the aim presentation mark and the center of the position presentation mark, and in this example, the display distance is 0 only when the center of the aim presentation mark and the center of the position presentation mark are displayed overlapping each other.

[0095] Optionally, the terminal may represent the display distance using the number of pixels between the aiming indication mark and the position indication mark.

[0096] In some implementations, the display distance is the linear distance between the aiming and position indication marks, while in other implementations, the display distance is the ratio of the linear distance between the aiming and position indication marks to the length / width / diagonal length of the user interface.

[0097] In step 210, a second transparency adjusted according to the viewing distance is determined.

[0098] Optionally, the terminal may determine the second transparency according to a preset relationship between the viewing distance and the second transparency.

[0099] In some embodiments, this step 210 includes several of the following sub-steps.

[0100] 1. If the viewing distance is greater than the first distance threshold, determine the second transparency to be the maximum rated transparency.

[0101] 2. If the viewing distance is less than or equal to the first distance threshold and greater than a second distance threshold, determine a second transparency based on the viewing distance, where the second transparency is less than the maximum rated transparency and is positively correlated with the viewing distance.

[0102] In some embodiments, when the display distance is greater than the first distance threshold, the aiming indication mark is far away from the position indication mark, and the terminal can display the position indication mark with a maximum rated transparency. When the display distance is equal to or less than the first distance threshold and greater than the second distance threshold, the aiming indication mark is close to the position indication mark, and the terminal can display the position indication mark with a transparency less than the maximum rated transparency value.

[0103] When the viewing distance is equal to or less than the first distance threshold and greater than the second distance threshold, the second transparency and the viewing distance are positively correlated, i.e., the smaller the viewing distance, the smaller the second transparency, and the larger the viewing distance, the greater the second transparency. Optionally, when the viewing distance is equal to or less than the first distance threshold and greater than the second distance threshold, the second transparency and the viewing distance may be positively linearly correlated.

[0104] Optionally, the specific values ​​of the first distance threshold and the second distance threshold may be set by those skilled in the art according to actual circumstances, but the embodiments of the present application do not specifically limit the same, where the first distance threshold is greater than the second distance threshold.

[0105] Optionally, when the display distance is equal to or less than a second distance threshold, the second transparency is determined to be a minimum rated transparency. When the display distance is equal to or less than the second distance threshold, it indicates that the aiming indication mark is close to the position indication mark, and within that range, the terminal can display the position indication mark at the minimum rated transparency.

[0106] In step 211, the position indicating mark is displayed with a second transparency.

[0107] To summarize the above, in this implementation, the terminal can directly determine the second transparency based on the display distance between the aiming presentation mark and the position presentation mark, and there is no need to obtain the position of the target virtual object, further simplifying the calculation process, thereby further saving the processing overhead required to display the position presentation mark and avoiding resource waste of the terminal.

[0108] In some embodiments, the terminal can map a target environment position to the display screen using a WorldToScreenPoint (conversion from world coordinates to screen coordinates) function of a scene camera, which is a virtual camera that determines the display screen of the virtual environment, and determine a display position corresponding to the target environment position on the display screen, and then determine the display position of the position indication mark on the UI layer based on a ScreenPointToLocalPointInRectangle (conversion from screen coordinates to UI coordinates) function of a UI camera for determining UI elements to be displayed on the UI layer.

[0109] The mark processing method will be briefly described by taking the horizontal angle of the viewing range as 180° as an example, as shown in Figure 12. The method includes the following several steps (1201 to 1207).

[0110] In step 1201, a position indication mark is created.

[0111] In step 1202, a first vector is obtained that points from the position of the destination virtual object to the destination environment position.

[0112] In step 1203, a second vector is obtained that points from the position of the target virtual object to the target aim position.

[0113] In step 1204, it is determined whether the dot product value of the first vector and the second vector is greater than 0. If it is greater than 0, step 1205 is executed; if it is not greater than 0, step 1207 is executed.

[0114] In step 1205, a display position on the display screen that corresponds to the target environment position is determined.

[0115] In step 1206, the display position of the position indication mark on the UI layer is determined, and then step 1202 described above is executed.

[0116] In step 1207, a position indication mark is displayed on the edge of the UI layer, and then step 1202 described above is executed.

[0117] In some embodiments, as shown in FIG. 13, the mark processing method includes the following steps (1301 to 1306).

[0118] In step 1301, a first vector pointing from the position of the target virtual object to the target environment position is obtained.

[0119] In step 1302, a second vector is obtained that points from the position of the target virtual object to the target aim position.

[0120] In step 1303, the dot product value of the first vector and the second vector is calculated.

[0121] In step 1304, the maximum rated transparency value is obtained.

[0122] In step 1305, the minimum nominal transparency value is obtained.

[0123] In step 1306, the display transparency of the position indication mark is calculated.

[0124] The following are apparatus embodiments of the present application that can be used to carry out the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.

[0125] 14 shows a block diagram of a mark processing device according to an embodiment of the present application. The device has a function of implementing the above-mentioned example of the mark processing method, and the above-mentioned function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The device may be the above-mentioned terminal 11, or may be disposed in the terminal. The device 1400 may include a screen display module 1410, a mark display module 1420, and a transparency adjustment module 1430.

[0126] The screen display module 1410 displays a display screen of the virtual environment.

[0127] The mark display module 1420 displays an aim presentation mark on the display screen of the virtual environment, and the aim presentation mark is for indicating a target aim position at which a target virtual object in the virtual environment is aimed.

[0128] The mark display module 1420 further displays a position indication mark with a first transparency on the display screen of the virtual environment, where the position indication mark is for indicating a target environment position in the virtual environment.

[0129] The transparency adjustment module 1430 adjusts the transparency of the position presentation mark in response to a change in the relative position between the aim presentation mark and the position presentation mark.

[0130] To summarize, in the technical solution of the embodiment of the present application, when the relative position between the aiming mark and the position mark changes, the transparency of the position mark is adjusted, so that when a user views the display screen of the virtual environment overlapping with the position mark, the user can relatively easily view the obstructed display screen through the less transparent position mark, thereby improving the clarity and display effect of the interface display, reducing the time required for the user to acquire information in the virtual environment, and improving the efficiency of the user's information acquisition.

[0131] In some embodiments, as shown in FIG. 15, the transparency adjustment module 1430 includes a vector determination sub-module 1431, a transparency determination sub-module 1432, and a mark display sub-module 1433.

[0132] The vector determination sub-module 1431 determines, based on the position of the target virtual object in the virtual environment and the target environment position, a first vector pointing from the position of the target virtual object to the target environment position.

[0133] The vector determination sub-module 1431 further determines, based on the position of the target virtual object in the virtual environment and the target aim position, a second vector pointing from the position of the target virtual object to the target aim position.

[0134] The transparency determination sub-module 1432 determines an adjusted second transparency based on the first vector and the second vector.

[0135] The mark display sub-module 1433 displays the position indication mark with a second transparency.

[0136] In some embodiments, as shown in FIG. 15, the transparency determination submodule 1432: determining the cosine of the included angle between the first vector and the second vector; If the cosine value is less than the first threshold, determining the second transparency to be a maximum rated transparency; If the cosine value is greater than the first threshold and less than the second threshold, determine a second transparency based on the cosine value, where the second transparency is less than the maximum rated transparency and is negatively correlated with the cosine value.

[0137] In some embodiments, as shown in FIG. 15, the transparency determination submodule 1432: If the cosine value is greater than the second threshold, the second transparency is determined to be the minimum rated transparency.

[0138] In some embodiments, as shown in FIG. 15, the transparency adjustment module 1430 includes a distance acquisition sub-module 1434 .

[0139] The distance acquisition sub-module 1434 acquires the display distance between the aim presentation mark and the position presentation mark in the user interface.

[0140] The transparency determination sub-module 1432 further determines an adjusted second transparency according to the viewing distance.

[0141] The mark display sub-module 1433 further displays the position indication mark with a second transparency.

[0142] In some embodiments, as shown in FIG. 15, the transparency determination submodule 1432: If the viewing distance is greater than the first distance threshold, determining the second transparency to be a maximum rated transparency; If the viewing distance is less than the first distance threshold and greater than the second distance threshold, a second transparency is determined based on the viewing distance, the second transparency being less than the maximum rated transparency and positively correlated with the viewing distance.

[0143] In some embodiments, as shown in FIG. 15, the transparency determination submodule 1432: If the viewing distance is less than the second distance threshold, the second transparency is determined to be the minimum nominal transparency.

[0144] In some embodiments, as shown in FIG. 15, the device 1400 further comprises a position determining module 1440 .

[0145] The position determination module 1440 determines whether the target environment location is within a field of view of the target virtual object, where the field of view is intended to indicate the area of ​​the virtual environment that the target virtual object is currently observing.

[0146] The mark display module 1420 further displays a position indication mark at the target environment position if the target environment position is within the visual field range.

[0147] The mark display module 1420 further displays a position indication mark on the edge of the display screen of the virtual environment if the target environment position is outside the field of view.

[0148] In some embodiments, as shown in FIG. 15, the mark display module 1420: If the target environment position is outside the visual field and is in the left region of the target virtual object, a position indication mark is displayed on the left edge of the display screen of the virtual environment; If the target environment position is outside the visual field range and is in the right area of ​​the target virtual object, a position presentation mark is displayed on the right edge of the display screen of the virtual environment.

[0149] In some embodiments, the position indication mark includes a directional mark that points to the target environment location.

[0150] In some embodiments, as shown in FIG. 15, the apparatus 1400 further comprises a rating update module 1450 and a size update module 1460.

[0151] The rated value update module 1450 receives a transparency setting operation for the position indication mark, and updates the maximum rated transparency value of the position indication mark and / or the minimum rated transparency value of the position indication mark.

[0152] The size update module 1460 accepts a size setting operation for the position presentation mark, and updates the size of the position presentation mark.

[0153] In some embodiments, as shown in FIG. 15, the rating update module 1450: Accepts setting operations for the maximum rated transparency value, updates the maximum rated transparency value, The minimum rated transparency value is automatically updated to maintain a preset difference between the maximum rated transparency value and the minimum rated transparency value.

[0154] In addition, the above-mentioned embodiment of the device has been described by taking only the division of each of the above-mentioned functional modules as an example when realizing its functions, but in actual application, the above-mentioned functions can be assigned to different functional modules as necessary, that is, the internal configuration of the device can be divided into different functional modules to realize all or part of the above-mentioned functions. In addition, the above-mentioned embodiment of the device has the same concept as the embodiment of the method, and the specific realization process is described in detail in the embodiment of the method, and the description thereof is omitted here.

[0155] FIG. 16 shows a schematic configuration diagram of a computer device according to an embodiment of the present application, and the computer device may be the terminal 11 or the server 12 described in FIG. 1. Referring to FIG. 16, taking the computer device as a terminal as an example, the terminal 1600 may be, for example, an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, or a PC. The terminal is used to implement the mark processing method according to the embodiment described above. The terminal may be the terminal 11 in the implementation environment shown in FIG. 1. Specifically, it is as follows.

[0156] Generally, the terminal 1600 includes a processor 1601 and a memory 1602 .

[0157] The processor 1601 may include one or more processing cores, such as, for example, a 4-core processor, an 8-core processor, etc. The processor 1601 may be realized in the form of at least one of hardware among DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1601 may further include a host processor and a coprocessor, where the host processor is a processor for processing data in a wake-up state and is also called a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content that needs to be displayed on a display panel. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computation operations related to machine learning.

[0158] The memory 1602 may include one or more computer readable storage media, which may be non-transitory. The memory 1602 may further include high speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, etc. In some embodiments, the non-transitory computer readable storage media of the memory 1602 stores at least one instruction, at least one program, code set, or instruction set, configured to be executed by one or more processors to implement the mark processing method described above.

[0159] In some embodiments, the terminal 1600 may optionally further include a peripheral interface 1603 and at least one peripheral. The processor 1601, the memory 1602, and the peripheral interface 1603 may be connected via a bus or signal lines. Each peripheral may be connected to the peripheral interface 1603 via a bus, signal lines, or a circuit board. Specifically, the peripheral includes at least one of a radio frequency circuit 1604, a display panel 1605, a camera component 1606, an audio circuit 1607, a positioning component 1608, and a power source 1609.

[0160] Those skilled in the art will appreciate that the configuration shown in FIG. 16 is not intended to limit the terminal 1600, which may include more or fewer components than those shown, combine some components, or employ a different configuration of components.

[0161] In an exemplary embodiment, there is further provided a computer readable storage medium having stored thereon at least one instruction, at least one program, set of code or set of instructions which, when executed by a processor, implements the mark processing method described above.

[0162] Optionally, the computer-readable storage medium may include a Read-Only Memory (ROM), a Random-Access Memory (RAM), a Solid State Drive (SSD), or an optical disk, etc. The Random-Access Memory may include a Resistance Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM).

[0163] In an exemplary embodiment, there is further provided a computer program product or computer program comprising computer instructions stored on a computer readable storage medium, the computer instructions being read by a processor of a computing device from the computer readable storage medium and the processor executing the computer instructions such that the computing device performs the mark processing method.

[0164] It should be understood that "plurality" as referred to herein means two or more than two. "And / or" describes an association relationship between related objects and indicates that three relationships are possible, for example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists simultaneously. The character " / " generally indicates that the objects being associated are in an "or" relationship.

[0165] The above is only a preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. within the spirit and principle of the present application should be included within the protection scope of the present application.

Claims

1. 1. A method for mark processing implemented by a computing device, comprising: displaying a display screen of the virtual environment; A step of displaying an aim presentation mark on a display screen of the virtual environment, the aim presentation mark being for indicating a target aim position at which a target virtual object in the virtual environment is aimed; displaying a position indication mark on a display screen of the virtual environment at a first transparency, the position indication mark being for indicating a target environment position in the virtual environment; adjusting transparency of the position indication mark in response to a change in a relative position between the alignment indication mark and the position indication mark; A mark processing method, in which the smaller the display distance between the aim presentation mark and the position presentation mark, the higher the transparency of the position presentation mark.

2. The step of adjusting the transparency of the position indication mark in response to a change in the relative position between the alignment indication mark and the position indication mark includes: determining a first vector based on a position of the target virtual object in the virtual environment and the target environment position, the first vector pointing from the position of the target virtual object to the target environment position; determining a second vector based on a position of the target virtual object in the virtual environment and the target aim position, the second vector pointing from the position of the target virtual object to the target aim position; determining an adjusted second transparency based on the first vector and the second vector; and displaying the position indication mark at the second transparency.

3. determining an adjusted second transparency based on the first vector and the second vector, determining the cosine value of the included angle between the first vector and the second vector; if the cosine value is less than or equal to a first threshold, determining the second transparency to be a maximum nominal transparency; 3. The method of claim 2, further comprising: if the cosine value is greater than a first threshold and less than or equal to a second threshold, determining the second transparency based on the cosine value, the second transparency being less than the maximum rated transparency and negatively correlated with the cosine value.

4. After the step of determining the cosine value of the included angle between the first vector and the second vector, 4. The method of claim 3, further comprising the step of determining the second transparency to be a minimum nominal transparency if the cosine value is greater than the second threshold.

5. The step of adjusting the transparency of the position indication mark in response to a change in the relative position between the alignment indication mark and the position indication mark includes: acquiring a display distance between the aim presenting mark and the position presenting mark in a user interface; determining an adjusted second transparency based on a preset relationship between the viewing distance and the second transparency; and displaying the position indication mark at the second transparency.

6. determining an adjusted second transparency based on a preset relationship between the viewing distance and the second transparency, if the viewing distance is greater than a first distance threshold, determining the second transparency to be a maximum nominal transparency; and if the viewing distance is less than or equal to the first distance threshold and greater than a second distance threshold, determining the second transparency based on the viewing distance, the second transparency being less than the maximum rated transparency and positively correlated with the viewing distance.

7. After the step of acquiring a display distance between the aim presentation mark and the position presentation mark in a user interface, The method of claim 5 further comprising the step of determining the second transparency to be a minimum nominal transparency if the viewing distance is less than or equal to the second distance threshold.

8. The mark processing method includes: determining whether the target environment location is within a field of view of the target virtual object, the field of view being intended to indicate an area of ​​the virtual environment that the target virtual object is currently observing; If the target environment position is within the visual field range, displaying the position indication mark at the target environment position; 2. The mark processing method according to claim 1, further comprising the step of: if the target environment position is outside the field of view, displaying the position indication mark on an edge of a display screen of the virtual environment.

9. If the target environment position is outside the field of view, displaying the position indication mark on an edge of the display screen of the virtual environment includes: If the target environment position is outside the field of view and is in a left area of ​​the target virtual object, displaying the position presentation mark on a left edge of a display screen of the virtual environment; and if the target environment position is outside the field of view and in the right area of ​​the target virtual object, displaying the position presentation mark on the right edge of the display screen of the virtual environment.

10. The method of claim 1 , wherein the position indication mark includes a direction mark, the direction mark pointing to the target environment position.

11. The mark processing method includes:

10. The mark processing method according to claim 1, further comprising a step of accepting a transparency setting operation for the position presentation mark, and updating at least one of a maximum rated transparency value of the position presentation mark and a minimum rated transparency value of the position presentation mark.

12. The mark processing method includes:

10. The mark processing method according to claim 1, further comprising the step of accepting a size setting operation for the position presentation mark, and updating a size of the position presentation mark.

13. The step of accepting a transparency setting operation for the position presentation mark and updating at least one of a maximum rated transparency value of the position presentation mark and a minimum rated transparency value of the position presentation mark includes: receiving a setting operation for the maximum rated transparency value and updating the maximum rated transparency value; and automatically updating the minimum rated transparency value based on the updated maximum rated transparency value such that a difference between the maximum rated transparency value and the minimum rated transparency value is a preset difference.

14. 1. A mark processing device, comprising: a screen display module for displaying a display screen of the virtual environment; a mark display module that displays an aim presentation mark on a display screen of the virtual environment to indicate a target aim position at which a target virtual object in the virtual environment is aimed, and also displays a position presentation mark on the display screen of the virtual environment with a first transparency to indicate a target environment position in the virtual environment; a transparency adjustment module that adjusts the transparency of the position indication mark in response to a change in a relative position between the alignment indication mark and the position indication mark, The mark processing device, wherein the smaller the display distance between the aim presentation mark and the position presentation mark, the higher the transparency of the position presentation mark.

15. A computing device comprising a memory and one or more processors, The memory stores computer readable instructions, A computing apparatus, wherein the computer readable instructions, when executed by the one or more processors, cause the one or more processors to implement a mark processing method according to any one of claims 1 to 13.

16. A computer program arranged to cause a computer to carry out the mark processing method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Virtual object display method and device, computer equipment and storage medium

    CN111659117A

  • Game apparatus having simultaneous playing function

    JP1995008632A

  • Game system and computer readable recording medium

    JP2001286678A

  • Program, information memory medium and game apparatus

    JP2008272123A

  • Information processing program, information processing apparatus, information processing system, and information processing method

    JP2011255119A