Method, apparatus and program for generating mark information in a virtual environment

The method and apparatus allow for efficient and accurate marking of virtual objects in virtual environments by integrating viewpoint switching and mark controls, enhancing human-machine interaction and reducing operational disruptions.

JP7596010B2Active Publication Date: 2024-12-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2023039817
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-30
Filing Date
2023-03-14
Publication Date
2024-12-09
Estimated Expiration
2040-05-11

AI Technical Summary

Technical Problem

Existing methods for generating mark information in virtual environments require users to open a map thumbnail, disrupting other operations on virtual objects, such as movement and combat.

Method used

A method and apparatus that display a target viewpoint screen with a sight and mark control, allowing for viewpoint switching and mark operations without interrupting other actions, using joystick or button controls to generate mark information on virtual objects.

Benefits of technology

Enables efficient and accurate marking of virtual objects without interrupting other operations, improving human-machine interaction and allowing for quick and error-free marking of different types of mark information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007596010000007
    Figure 0007596010000007
  • Figure 0007596010000008
    Figure 0007596010000008
  • Figure 0007596010000009
    Figure 0007596010000009
Patent Text Reader

Abstract

To provide a method, a device, electronic equipment, and a storage medium for generation mark information in a virtual environment.SOLUTION: There are provided a method, a device, electronic equipment, and a storage medium for generating mark information in a virtual environment, which is related to a technical field of a computer. The method includes; a step for displaying a target view point screen on a terminal, in which a front sight and a mark control are displayed in the target view point screen; a step for a terminal to receive first viewpoint switching operation; a step for changing an observation direction of the target viewpoint screen and an aiming position of the front sight according to the first viewpoint switching operation; a step for receiving mark operation triggered on the mark control; and a step for generating mark information on a virtual object indicated by the aiming position according to the mark operation.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of computer technology, and more particularly to a method, an apparatus, an electronic device and a storage medium for generating mark information in a virtual environment.

[0002] This application claims priority to a Chinese patent application bearing application number 2019104654835 and entitled "Method, apparatus, device and storage medium for generating mark information in a virtual environment" filed with the China Patent Office on May 30, 2019, the entire contents of which are incorporated herein by reference. [Background technology]

[0003] In the application program based on the virtual environment, the user can control the virtual object to run, walk, jump, fight, etc. in the virtual environment. In some scenes, the user may control the virtual object to mark the virtual object in the virtual environment, for example, to put a small red flag at a certain geographical location to notify teammates that they are going to the geographical location.

[0004] The related art provides a method for generating mark information, in which an application program displays an environment screen of a virtual environment, and a map thumbnail is displayed in the upper right corner of the environment screen. When a user needs to mark a specific geographical location on the map, the user first adopts a click method to open the map thumbnail. The application program enlarges and displays the map thumbnail, and then the user clicks a geographical location on the enlarged map thumbnail, and the application program generates mark information on the geographical location according to the user's click.

[0005] The above process requires the user to open the map thumbnail and then mark it, but the enlarged map thumbnail interrupts the user's other operations on the virtual object, such as movement and combat. Summary of the Invention [Problem to be solved by the invention]

[0006] According to various embodiments of the present application, a method, an apparatus, an electronic device, and a storage medium are provided for generating mark information in a virtual environment. [Means for solving the problem]

[0007] 1. A method for generating mark information in a virtual environment, the method being performed by an electronic device, the method comprising: a step of displaying a target viewpoint screen, the target viewpoint screen being a screen obtained by observing the virtual environment from a target viewpoint of the virtual object, and a sight and a mark control being displayed within the target viewpoint screen; receiving a first viewpoint switching operation; changing an observation direction of a target viewpoint screen and an aiming position of a sight in response to a first viewpoint switching operation; receiving a mark operation triggered on a mark control; and generating mark information on the virtual object pointed to by the aim position in response to the mark operation.

[0008] An apparatus for generating mark information in a virtual environment, the apparatus including: a display module, a receiving module, a switching module, and a generating module; The display module is used for displaying a target viewpoint screen, the target viewpoint screen being a screen obtained by observing the virtual environment from a target viewpoint of a virtual object, and a sight and a mark control are displayed in the target viewpoint screen; The receiving module is configured to receive a first viewpoint switching operation; The switching module is used for changing an observation direction of a target viewpoint screen and an aiming position of a sight according to a first viewpoint switching operation; The receiving module is used for receiving a mark operation triggered on a mark control; The generating module is used for generating mark information on the virtual object pointed to by the aiming position according to the mark operation.

[0009] An electronic device, the electronic device comprising a memory and a processor connected to the memory, wherein the processor is configured to load and execute executable instructions to realize the method for generating mark information in a virtual environment as described in the first aspect above and optional embodiments thereof.

[0010] A computer-readable storage medium, the computer-readable storage medium having at least one instruction stored thereon, at least one program, code set or instruction set stored thereon, the at least one instruction, at least one program, code set or instruction set being loaded and executed by a processor to realize the method for generating mark information in a virtual environment as described in the first aspect and optional embodiments thereof.

[0011] The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of the application will become apparent from the description, drawings, and claims.

[0012] In order to more clearly describe the technical solutions in the embodiments of the present application, the following provides a brief description of the drawings that need to be used in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative efforts. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a structural schematic diagram of a computer system provided by an exemplary embodiment of the present application. [Diagram 2] 1 is a flowchart of a method for generating mark information in a virtual environment provided by an exemplary embodiment of the present application. [Diagram 3]FIG. 2 is a structural schematic diagram of a joystick control provided by one exemplary embodiment of the present application. [Figure 4] 1 is a schematic diagram of an interface for generating mark information in a virtual environment provided by one exemplary embodiment of the present application; [Diagram 5] FIG. 13 is a schematic diagram of an interface for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 6] 1 is a flowchart of a method for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 7] FIG. 13 is a schematic diagram of an interface for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 8] 1 is a flowchart of a method for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 9] FIG. 13 is a schematic diagram of an interface for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 10] 1 is a flowchart of a method for generating mark information in a virtual environment provided by another exemplary embodiment of the present application. [Figure 11] 1 is a flowchart of an apparatus for generating mark information in a virtual environment provided by another exemplary embodiment of the present application; [Figure 12] FIG. 2 is a structural schematic diagram of a terminal provided by an exemplary embodiment of the present application; [Figure 13] FIG. 2 is a structural schematic diagram of a server provided by an exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application are described in more detail below with reference to the drawings. It should be understood that the specific examples described herein are only used to interpret the present application and are not used to limit the present application.

[0015] First, the multiple nouns in the embodiments of the present application will be interpreted.

[0016] Virtual environment: A virtual environment that is displayed (or provided) when an application program is run on an electronic device (e.g., a terminal). The virtual environment may be a simulation environment of the real world, a semi-simulated / semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a two-and-a-half-dimensional virtual environment, and a three-dimensional virtual environment. In the following embodiment, the virtual environment is described as a three-dimensional virtual environment, but is not limited thereto.

[0017] Virtual object: a movable object in a virtual environment. The movable object may be at least one of a virtual character, a virtual animal, and an animation character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional solid model constructed based on animation skeleton technology. Each virtual object has its shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.

[0018] Virtual Object: An object that is exhibited in a virtual environment. The objects may be movable objects, such as virtual animals and movable targets, or fixed objects, such as virtual buildings and virtual hills. Optionally, the virtual objects may be three-dimensional solid models, where each virtual object has a shape and volume in the three-dimensional virtual environment and occupies a portion of space in the three-dimensional virtual environment.

[0019] Viewpoint: The viewing angle when observing a virtual environment from a first or third person perspective of a virtual object. Optionally, in an embodiment of the present application, the viewpoint is the angle when observing a virtual object in a virtual environment by a video camera model.

[0020] Optionally, the video camera model automatically follows the virtual object in the virtual environment, i.e., when the position of the virtual object in the virtual environment is changed, the position of the virtual object followed by the video camera model in the virtual environment is changed simultaneously, and the position of the video camera model in the virtual environment is always within a predetermined distance range of the virtual object. Optionally, during the automatic following process, the relative positions of the camera model and the virtual object do not change.

[0021] A sight is set on the virtual screen within the range of the viewpoint, and the sight is used as a reference for rotating the viewpoint, and optionally the sight is located on the central axis of the viewpoint.

[0022] Video camera model: a video camera model is a three-dimensional model located around a virtual object in a three-dimensional virtual environment. When a first-person perspective is adopted, the video camera model is located near the head of the virtual object or at the head of the virtual object. When a third-person perspective is adopted, the video camera model may be located behind the virtual object and may be bound to the virtual object and located at any position away from the virtual object by a predetermined distance. The video camera model allows the virtual object located in the three-dimensional virtual environment to be observed from different angles. Optionally, when the third-person perspective is a first-person over-the-shoulder perspective, the video camera model is located behind the virtual object (e.g., the head or shoulders of a virtual character). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective may further include other perspectives, such as a top-down perspective. When a top-down perspective is adopted, the video camera model may be located above the head of the virtual object, and the top-down perspective is a perspective for observing the virtual environment from an aerial top-down angle. Optionally, the video camera model is not actually displayed in the three-dimensional virtual environment, i.e., the video camera model is not displayed in the three-dimensional virtual environment displayed in the user interface.

[0023] The method for generating mark information in a virtual environment provided in the present application can be implemented using the above-mentioned first-person perspective or third-person perspective, and the method can be applied to a computer system as shown in Figure 1. The computer system 100 includes a first terminal 120, a server 140 and a second terminal 160.

[0024] The first terminal 120 is installed and operated with an application program supporting a virtual environment. The application program 14 may be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a third person shooting (TPS) game, a first person shooting (FPS) game, a multiplayer online battle arena (MOBA) game, a multiplayer gunfight survival game, and a battle royale type shooting game. Alternatively, the application program 14 may be a standalone application program, for example, a standalone 3D game program, or a network online application program. The first terminal 120 is a terminal used by a first user, and the first user uses the first terminal 120 to control the activity of a first virtual object located in a virtual environment, and the activity includes at least one of, but is not limited to, adjusting a body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Illustratively, the first virtual object is a first virtual character, for example a simulation character role or an animation character role.

[0025] The first terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0026] The server 140 includes at least one of one server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, the server 140 includes a processor 144 and a memory 142, and the memory 142 further includes a theme storage module 1421, a message and interaction storage module 1422, and a notification delivery module 1423. The server 140 is used to provide background services to application programs supporting a 3D virtual environment. Optionally, the server 140 performs main computing tasks, and the first terminal 120 and the second terminal 160 perform sub-computing tasks, or the server 140 performs sub-computing tasks, and the first terminal 120 and the second terminal 160 perform main computing tasks, or the server 140, the first terminal 120, and the second terminal 160 adopt a distributed computing architecture to perform collaborative computing.

[0027] The second terminal 160 is installed and operated with an application program supporting the virtual environment. The application program may be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, a MOBA game, a multiplayer gunfight type survival game, and a battle royale type shooting game. The second terminal 160 is a terminal used by a second user, and the second user uses the second terminal 160 to control the activity of a second virtual object located in the virtual environment, the activity including at least one of body posture adjustment, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing, but is not limited thereto. Exemplarily, the second virtual object is a second virtual character, for example, a simulation character role or an animation character role.

[0028] Optionally, the first virtual character and the second virtual character are located in the same virtual environment. Optionally, the first virtual character and the second virtual character may be on the same team, belong to the same organization, have a friendship relationship, or have temporary communication permissions.

[0029] Optionally, the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different control system platforms. The first terminal 120 generally refers to one of a plurality of terminals, and the second terminal 160 generally refers to one of a plurality of terminals, and this embodiment will be described by exemplifying only the first terminal 120 and the second terminal 160. The device types of the first terminal 120 and the second terminal 160 are the same or different, and the device types include at least one of a smartphone, a tablet PC, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer. The following embodiment will be described by exemplifying that the terminal includes a smartphone.

[0030] As can be understood by those skilled in the art, the number of the terminals may be more or less. For example, the number of the terminals may be only one, or the number of the terminals may be tens or hundreds, or more. The embodiment of the present application does not limit the number and device type of the terminals.

[0031] Referring to FIG. 2, a flowchart of a method for generating mark information in a virtual environment provided by one exemplary embodiment is shown, where the method can be applied to an electronic device, which may be the terminal or server shown in FIG. 1, and the method is described by taking an example in which the method is applied in the terminal shown in FIG. 1, and the method includes steps 201 to 205.

[0032] Step 201: The terminal displays a target viewpoint screen.

[0033] In one embodiment, the terminal displays a target viewpoint screen of an application program, where the application program may be at least one of a virtual reality application program, a 3D map application program, a military simulation program, a TPS game, an FPS game, and a MOBA game.

[0034] The target viewpoint screen is a screen obtained by observing the virtual environment from a target viewpoint of a virtual object, and optionally, the target viewpoint is a viewpoint for observing the virtual environment from a first-person viewpoint of the virtual object, or the target viewpoint is a viewpoint for observing the virtual environment from a third-person viewpoint of the virtual object.

[0035] A sight and mark control are displayed within the target viewpoint screen.

[0036] The sight is used as a reference for the viewpoint, and optionally the sight is displayed in the center of the target viewpoint screen. In this embodiment, the sight is used for targeting the position.

[0037] The mark control is used to generate mark information by being triggered on the virtual object pointed to by the aiming position. Optionally, the mark control is a button control or a joystick control. For example, a joystick control is shown in FIG. 3, in which the left figure shows the joystick control 11 when not triggered, and the right figure shows the joystick control 12 when the trigger is dragged.

[0038] Selectably, the mark information includes at least one of an alert mark, a materiel mark, a going mark, an attack mark, a retreat mark, a defense mark, a warning mark, and a neutral mark.

[0039] Among them, the alert mark is used to notify the virtual object to be alert or to notify the virtual object to be on alert at the marked position, the resource mark is used to notify the virtual object that there are resources at the marked position, the going mark is used to notify the virtual object to go to the marked position or to set the virtual object to automatically go to the marked position, the attack mark is used to notify the virtual object to start an attack or to notify the virtual object to attack the marked position, The retreat sign is used to notify the virtual object to start retreating or to notify the virtual object to retreat to a marked position, the defense mark is used to notify the virtual object to defend, the warning mark is used to notify the virtual object that the marked position is dangerous or to notify the virtual object that there is an enemy at the marked position, and the neutral mark is a notification mark that can indicate the content agreed upon by the user.

[0040] A viewpoint switching control is further selectively displayed overlapping on the target viewpoint screen, and the viewpoint switching control is used to control switching of the viewpoint of the virtual object and further used to change the aiming position of the sight.

[0041] Step 202: the terminal receives a first viewpoint switching operation.

[0042] A touch screen is included on the terminal, and a first viewpoint switching operation triggered by a user on a screen area corresponding to the viewpoint switching control is received, the first viewpoint switching operation is used to change the observation direction of the target viewpoint screen and the aiming position of the sight.

[0043] Step 203: the terminal changes the observation direction of the target viewpoint screen and the aiming position of the sight according to the first viewpoint switching operation.

[0044] The terminal changes the viewpoint of the virtual object in response to the first viewpoint switching operation, thereby changing the observation direction of the target viewpoint screen and the aiming position of the sight, whereby the change in the aiming position of the sight is used to determine the position of the virtual object.

[0045] Step 204, the terminal receives the mark operation triggered on the mark control.

[0046] The terminal receives a marking operation triggered by the user on a screen area corresponding to the marking control, and the marking operation is used to generate mark information triggered on a virtual object pointed to by the aiming position.

[0047] Optionally, when the mark control is a button control, the mark operation may be any one of a single click operation, a double click operation and a multi-click operation.

[0048] Optionally, when the mark control is a joystick control, the mark operation may be at least one of a click operation and a slide operation.

[0049] Step 205: the terminal generates mark information on the virtual object pointed to by the aiming position in response to the mark operation.

[0050] The terminal determines a virtual object in the direction indicated by the aiming position, and generates mark information on the virtual object.

[0051] Selectably, when the mark control is a button control, the terminal generates mark information on the virtual object pointed to by the aiming position in response to the mark operation.

[0052] Optionally, when the mark control is a joystick control, the mark operation includes a slide operation acting on the joystick control, and generating the mark information includes the following exemplary steps.

[0053] 1) When the terminal receives a slide operation on the joystick control, it displays a roulette option list overlapping on the target viewpoint screen.

[0054] The roulette option list includes at least two possible mark types aligned along the edge of the roulette. Selectably, the at least two possible mark types include at least two of the following types: Alert marks, resource marks, going marks, attack marks, retreat marks, defensive marks, warning marks, and neutral marks.

[0055] 2) The terminal determines a target mark type from at least two candidate mark types according to the end position of the slide operation.

[0056] Selectably, a roulette area is included in the slide area of ​​the joystick control, and the roulette area is divided into M sub-areas, and one candidate mark type is set correspondingly in each of the M sub-areas, and the terminal determines the sub-area where the end position of the slide operation is located as the i-th sub-area, and determines the i-th candidate mark type corresponding to the i-th sub-area as the target mark type, where M is a positive integer greater than 1, and i is a positive integer less than or equal to M.

[0057] For example, the slide area of ​​the joystick control includes sub-area 1, sub-area 2, sub-area 3 and sub-area 4, and the mapping relationship between the sub-areas and the candidate mark types is shown in Table 1, where an attack mark is correspondingly set in area 1, a retreat mark is correspondingly set in sub-area 2, a defense mark is correspondingly set in sub-area 3, and a warning mark is correspondingly set in sub-area 4.

[0058] When the end position of the sliding operation is located in sub-area 1, the target mark type is an attack mark, when the end position of the sliding operation is located in sub-area 2, the target mark type is a retreat mark, when the end position of the sliding operation is located in sub-area 3, the target mark type is a defense mark, and when the end position of the sliding operation is located in sub-area 4, the target mark type is a warning mark.

[0059] [Table 1]

[0060] The M sub-areas correspond to the M list items in the roulette option list, respectively, and the terminal displays the M candidate mark types in the corresponding M list items, respectively. That is, the i-th sub-area corresponds to the i-th list item, and when the terminal triggers a slide operation of the joystick control, the terminal displays the candidate mark type corresponding to the i-th sub-area in the i-th list item. For example, as shown in Table 1, when the terminal triggers a slide operation of the joystick control, the terminal displays an attack mark corresponding to sub-area 1 in list item 1, a retreat mark corresponding to sub-area 2 in list item 2, a defense mark corresponding to sub-area 3 in list item 3, and a warning mark corresponding to sub-area 4 in list item 4.

[0061] For a joystick, the M sub-areas of the joystick control slide area correspond to items in the roulette options list.

[0062] 3) Generate mark information corresponding to the target mark type on the virtual object pointed to by the aiming position.

[0063] Optionally, the terminal generates a ray forward along the aiming position, determines an intersection position between the ray and a map scene or a virtual object in the virtual environment, and generates mark information corresponding to a target mark type at the intersection position, where the ray is an invisible ray, or the ray is a fully or partially visible ray.

[0064] As an example, taking the mark control as a joystick control, as shown in FIG. 4, a sight 22 and a joystick control 23 are displayed in the target viewpoint screen 21, the terminal receives a slide operation on the joystick control 23, and displays a roulette option list 25 overlapping on the target viewpoint screen 24, the roulette option list 25 includes four candidate mark types lined up along the edge of the roulette, which are a warning mark 1, a going mark 2, a resource mark 3, and a neutral mark 4, and when the end position of the slide operation is position 26 shown on the target viewpoint screen 24, which corresponds to the neutral mark 4 (the diagonal lined portion in the figure) in the roulette option list 25, the terminal creates a ray of fire forward along the aiming position and determines the intersection position 31 with the map scene in the virtual environment, and the neutral mark 4 is displayed at the intersection position 31 as shown in FIG. 5.

[0065] Optionally, when the mark control is a joystick control, the mark operation includes a click operation acting on the joystick control, and when the terminal receives the click operation on the joystick control, it generates mark information on the virtual object pointed to by the aiming position.

[0066] It should be noted that the mark information of the corresponding different mark types in the roulette option list may be set by the user or may be the default of the application program. The mark information generated by triggering the click operation may be set by the user or may be the default of the application program. For example, assuming that the setting in Table 1 is the default of the application program, the user can set the mark information corresponding to sub-area 1 as a material mark, in which case, list item 1 correspondingly displays the material mark; assuming that a single click operation is triggered on the joystick control, the terminal generates a neutral mark by default; the user can change the setting and set the mark information corresponding to the single click operation as a going mark, in which case, when a single click operation is triggered on the joystick control, the terminal generates a going mark.

[0067] As described above, the method for generating mark information in a virtual environment provided by this embodiment includes displaying a target viewpoint screen of an application program on a terminal, displaying a sight and a mark control within the target viewpoint screen, receiving a first viewpoint switching operation from the terminal, changing the observation direction of the target viewpoint screen and the aiming position of the sight in response to the first viewpoint switching operation, receiving a mark operation triggered on the mark control, and generating mark information on a virtual object pointed to by the aiming position in response to the mark operation.

[0068] The method can allow the terminal to generate mark information on the virtual object without interrupting other operations on the virtual object, improving the efficiency of human-machine interaction. Secondly, the method determines the position of the virtual object by a ray emitted from the front sight, making the mark on the virtual object more accurate, and accurate marking can be performed even on virtual objects at a long distance. Furthermore, the method can set the mark triggers of at least two mark types of mark information correspondingly by one joystick control, without the need to set multiple mark controls, which will not adversely affect the control operation on the screen and increase the false trigger rate, and without the need to open an option list to select the mark type of the mark information, realizing quick marking of mark information of different mark types, and improving the efficiency of human-machine interaction.

[0069] Based on FIG. 2, a situation may occur in which a user triggers a mark operation and then cancels the mark operation. As shown in FIG. 6, for example, the mark control is a joystick control and the mark operation includes a sliding operation acting on the joystick control, the method for generating mark information in the virtual environment may further include the following steps 301 to 302.

[0070] Step 301: When a slide operation is received on the joystick control, a roulette option list is overlapped and displayed on the target viewpoint screen.

[0071] Among them, the roulette option list includes at least two candidate mark types aligned along the edges of the roulette and a central region.

[0072] Step 302: if the end position of the slide operation is located in the central region, the generation of mark information is canceled.

[0073] Optionally, the operation area corresponding to the joystick control is divided into a roulette area and a central area, for example, into two concentric circles including an inner circle and an outer circle, the area included in the inner circle is the central area, and the area outside the inner circle and within the outer circle is the roulette area. If the end position of the slide operation is located in the central area, the terminal cancels the generation of mark information.

[0074] 7, in the target viewpoint screen 24, the position 26 where the joystick is located is located in the roulette area, the corresponding mark type in the roulette option list is neutral mark 4, and when the sliding operation ends at position 26, the correspondingly generated mark information is neutral mark 4. Before the sliding operation ends, the joystick slides to position 41, and as shown in the target viewpoint screen 42 in the figure, position 41 is located in the central area, in this case, when the sliding operation ends at position 41, the generation of the mark information is cancelled. A cancel mark 43 is further displayed in the central position of the roulette option list.

[0075] As described above, the method for generating mark information in a virtual environment provided in this embodiment further enables the generation of mark information to be canceled after an operation that triggers the generation of mark information, so that the user can cancel the generation of mark information in a timely manner after triggering an erroneous operation, thereby improving the user's operation experience.

[0076] In addition, the method solves the problem that the marking information can only mark the geographical location in the map, but cannot mark other dimensions, so that the terminal can mark the virtual objects, such as virtual tools, in the virtual environment.

[0077] The cancellation of the mark information may be after the operation that triggers the generation of the mark information, or may be after the mark information generation is successful. Based on FIG. 2, after step 205, steps 206 to 210 are added, and as shown in FIG. 8, the exemplary steps are as follows:

[0078] Step 206: receiving a second viewpoint switching operation.

[0079] The second viewpoint switching operation may further be used to aim the sight at existing mark information.

[0080] Step 207: The sight is aimed at the existing mark information in response to the second viewpoint switching operation.

[0081] Optionally, exemplary steps for a terminal to aim a sight at existing mark information may be as follows.

[0082] 1) The terminal adjusts the aiming position of the sight in response to the second viewpoint switching operation, 2) the terminal calculates a first distance between the target position and a mark position of the existing mark information; 3) The terminal determines whether the first distance is less than the first distance threshold, and if the first distance is less than the first distance threshold, executes step 208; if not, executes step 1).

[0083] Step 208: If the sight is aimed at existing mark information, a cancel control is displayed in an overlapping manner on the target viewpoint screen.

[0084] The cancel control is used to cancel the marking of the mark information, and is selectable as a button control.

[0085] Optionally, if a first distance between the aiming position of the sight and the mark position of the existing mark information is less than a first distance threshold, the terminal displays a cancel control on the target viewpoint screen.

[0086] Selectively, when a virtual object has a teammate, the existing mark information may be mark information marked by the virtual object, or may be mark information marked by a teammate.

[0087] Step 209 receives a cancel operation triggered on the cancel control.

[0088] Optionally, when the cancel control is a button control, the cancel operation may be a click operation on the cancel control, and the terminal receives a click operation on a screen area corresponding to the button control.

[0089] Step 210: cancel the display of the existing mark information in response to a cancel operation.

[0090] For example, as shown in FIG. 9, when the front sight is aimed at the mark position 52 of the mark information, a cancel button 53 is displayed on the target viewpoint interface 51, as shown in the above figure, and the terminal receives a click operation on the cancel button 53, and the mark information is no longer displayed at the mark position 52 in the target viewpoint interface 51, as shown in the following figure.

[0091] If the existing mark information is marked by a teammate of the virtual object, a cancel control may be displayed on the target viewpoint screen, and a response control may be displayed at the same time, and the response control may be used to respond to the teammate's mark information. For example, if the mark information marked by the teammate of the virtual object is an attack mark, the virtual object may respond to the mark information by a response control, so as to let the teammate know that the user controlling the virtual object has already received an attack message.

[0092] As described above, the method of generating mark information in a virtual environment provided in this embodiment allows the mark information to be cancelled after it is generated, so that the user can cancel the mark of the mark information at any time, thereby improving the user's operation experience.

[0093] Based on FIG. 2, a method for determining the mark type of the mark information is described by taking the example that the mark control is a joystick control and the mark operation is a sliding operation on the joystick control, among which, the roulette option list includes four candidate mark types, as shown in FIG. 10, the exemplary steps are as follows:

[0094] Step 401 receives a slide operation triggered on a joystick control.

[0095] The terminal receives a sliding operation triggered on the joystick control.

[0096] Step 402: Read the position coordinates of the joystick during joystick control.

[0097] Optionally, take the sliding area of ​​the joystick control as an example, where the sliding area is circular, construct a Cartesian coordinate system with the center point of the sliding area as the origin, and read the position coordinate (X, Y) after the joystick is slid, i.e., the horizontal coordinate is X and the vertical coordinate is Y.

[0098] Step 403, calculate a second distance between the position coordinate and the origin.

[0099] The terminal calculates a second distance L from the position coordinates (X, Y) to the origin, and the calculation formula is [Formula 1].

[0100]

number

[0101] Step 404: Determine whether the second distance is greater than a second distance threshold.

[0102] The terminal determines whether the second distance L is greater than a second distance threshold R. For illustrative purposes, a concentric circle is set within a circular area corresponding to the slide area, and the R is the radius of the concentric circle.

[0103] If L is greater than R, execute step 405; if L≦R, execute step 418.

[0104] In step 405, it is determined whether the slide operation is completed.

[0105] The terminal judges whether the sliding operation is completed or not, and if the sliding operation is not completed, executes step 406, and if the sliding operation is completed, executes step 415.

[0106] Step 406: It is determined whether the horizontal axis coordinate is positive or negative.

[0107] The terminal determines whether the abscissa X in the position coordinates is positive or negative, and if the abscissa X is positive, executes step 407, and if the abscissa X is negative, executes step 408.

[0108] In step 407, it is determined whether the vertical axis coordinate is positive or negative.

[0109] The terminal determines whether the ordinate Y in the position coordinates is positive or negative, and if the ordinate Y is positive, executes step 409, and if the ordinate Y is negative, executes step 410.

[0110] Step 408: Determine whether the vertical axis coordinate is positive or negative.

[0111] The terminal determines whether the ordinate Y in the position coordinates is positive or negative, and executes step 411 if the ordinate Y is positive, and executes step 412 if the ordinate Y is negative.

[0112] Step 409: if X is positive and Y is positive, the terminal calculates the angle β according to [Equation 2].

[0113]

number

[0114] Wherein, angle β is the included angle between the coordinate (X, Y) and the positive direction of the horizontal axis. After the terminal calculates and obtains angle β, it executes step 413.

[0115] Step 410, if X is positive and Y is negative, the terminal calculates the angle β according to [Equation 3].

[0116]

number

[0117] After the terminal calculates and obtains the angle β, it executes step 413 .

[0118] Step 411: if X is negative and Y is positive, the terminal calculates the angle β according to [Equation 4].

[0119]

number

[0120] After the terminal calculates and obtains the angle β, it executes step 413 .

[0121] Step 412: if X is negative and Y is negative, the terminal calculates the angle β according to [Equation 5].

[0122]

number

[0123] After the terminal calculates and obtains the angle β, it executes step 413 .

[0124] Step 413 determines the angle interval in which the angle β lies.

[0125] The terminal divides the area larger than R in the circular area corresponding to the slide area into four angle intervals according to the Cartesian coordinate system, which are [0,90), [90,180), [180,270) and [270,360), respectively. Among them, [Z1,Z2) represents Z1 or more and less than Z2, where Z1 and Z2 are both integers and Z1 is less than Z2.

[0126] Optionally, the Cartesian coordinate system may be divided into N angular intervals, [0, 360 / N), [360 / N, 360x2 / N), ..., [360(N-1) / N, 360), where N is a positive integer.

[0127] Step 414 determines the mark type corresponding to the angle interval.

[0128] The above four angle intervals correspond to the four candidate mark types in the roulette option list, where the angle interval [0,90) corresponds to the first candidate mark type, the angle interval [90,180) corresponds to the second candidate mark type, the angle interval [180,270) corresponds to the third candidate mark type, and the angle interval [270,360) corresponds to the fourth candidate mark type.

[0129] If the angle β is in the angle interval [0,90), the first candidate mark type is determined as the target mark type; if the angle β is in the angle interval [90,180), the second candidate mark type is determined as the target mark type; if the angle β is in the angle interval [180,270), the third candidate mark type is determined as the target mark type; and if the angle β is in the angle interval [270,360), the fourth candidate mark type is determined as the target mark type.

[0130] Selectably, the N angle intervals each correspond to N possible mark types in the roulette options list.

[0131] After the terminal determines the mark type corresponding to the angle interval, it executes step 305 .

[0132] Step 415 creates a line of fire forward along the aiming position of the front sight and closes the joystick control.

[0133] Step 416 determines the intersection location of the ray with the map scene or a virtual object in the virtual environment.

[0134] Step 417: Generate mark information corresponding to the target mark type on the intersection position.

[0135] Step 418: It is determined whether the slide operation is completed.

[0136] The terminal judges whether the slide operation is completed or not, and if the slide operation is not completed, executes step 419, and if the slide operation is completed, executes step 420.

[0137] Step 419 displays the cancellation status.

[0138] This step can be seen in FIG. 6 and will not be described in detail here.

[0139] Step 420, close the joystick control.

[0140] As described above, the method of generating mark information in a virtual environment provided by this embodiment can realize shortcut operations for mark information of multiple mark types by setting the slide area of ​​the joystick control for each area, thereby improving the user operation experience.

[0141] The above embodiment is based on a game application scene, and an example of a military simulation embodiment will be briefly described below.

[0142] Simulation technology is a model technology that uses software and hardware to simulate experiments in a real environment and reflect the behavior or process of a system.

[0143] Military simulation programs are programs specially constructed for military purposes using simulation technology. They quantitatively analyze operational elements of sea, land, air, etc., the performance of weapons and equipment, and operational actions, and can accurately simulate the battlefield environment, present battlefield situations, and support the evaluation and decision-making of operational systems.

[0144] In one example, a user builds a virtual battlefield on a terminal where a military simulation program is located, and competes in the form of a team. The user controls a virtual object in the virtual battlefield environment to perform at least one of the following actions in the virtual battlefield environment: walking, running, climbing, driving, shooting, throwing, reconnaissance, and close combat. The virtual battlefield environment includes at least one of the following forms: plains, mountains and rivers, plateaus, basins, deserts, rivers, lakes, oceans, vegetation, and buildings. The virtual objects include virtual characters, virtual animals, and animated characters, and each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.

[0145] Based on the above situation, if the user needs to selectively send a notification to the teammates, the user can determine the target position on the target viewpoint screen of the military simulation program and mark the corresponding mark information, for example, mark a material mark on the position where the material is located to notify the teammates that the material can be picked up here, or for example, mark an enemy army mark on the enemy's body to notify the teammates that the virtual object belongs to the enemy army camp, or for example, mark a warning mark on the dangerous area ahead to notify the teammates of the danger ahead. Among them, the method of generating mark information in the military scene is referred to the mark information generation scene based on the above game application scene, and will not be described in detail here.

[0146] It should be understood that although the steps in the flowcharts of Figures 2, 6, 8, and 10 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in the order indicated by the arrows. Unless otherwise expressly stated herein, the execution of the steps is not limited to a strict order, and the steps may be performed in other orders. In addition, at least some of the steps in Figures 2, 6, 8, and 10 may include multiple sub-steps or multiple stages, and the sub-steps or stages may not necessarily be performed at the same time, but may be performed at different times, and the sub-steps or stages may not necessarily be performed in sequence, but may be alternated or alternating with other steps or at least some of the sub-steps or stages of other steps.

[0147] Referring to FIG. 11, one exemplary embodiment of the present application provides an apparatus for generating mark information in a virtual environment, the apparatus can be implemented as a part or all of a terminal by software, hardware or a combination thereof, the apparatus includes: a display module 501, a receiving module 502, a switching module 503, and a generating module 504; The display module 501 is used for displaying a target viewpoint screen of an application program, the target viewpoint screen being a screen obtained by observing a virtual environment from a target viewpoint of a virtual object, and a sight and a mark control are displayed in the target viewpoint screen; The receiving module 502 is used for receiving a first viewpoint switching operation; The switching module 503 is used to change the observation direction of the target viewpoint screen and the aiming position of the sight according to the first viewpoint switching operation; The receiving module 502 is used for receiving a mark operation triggered on a mark control; The generating module 504 is used for generating mark information on the virtual object pointed to by the aiming position according to the mark operation.

[0148] In some embodiments, the mark control is a joystick control and the mark operation comprises a sliding operation acting on the joystick control; the display module 501 is used for overlapping and displaying a roulette option list on the target viewpoint screen when a slide operation is received on the joystick control, the roulette option list including at least two candidate mark types aligned along an edge of the roulette; The determination module 505 is used for determining a target mark type from at least two candidate mark types according to an end position of the sliding operation; The generation module 504 is used for generating mark information corresponding to the target mark type on the virtual object pointed to by the aiming position.

[0149] In some embodiments, the at least two candidate mark types include at least two of the following types: Alert marks, resource marks, going marks, attack marks, retreat marks, defensive marks, warning marks, and neutral marks.

[0150] In some embodiments, the mark control is a joystick control and the mark operation comprises a sliding operation acting on the joystick control; The device further includes a display module 501 and a cancellation module 506; The display module 501 is used for overlapping and displaying a roulette option list on the target viewpoint screen when receiving a slide operation on the joystick control, the roulette option list including at least two candidate mark types aligned along the edge of the roulette and a central area; The cancel module 506 is used to cancel the generation of mark information when the end position of the slide operation is located in the central region.

[0151] In some embodiments, the generation module 504 is used to generate a ray forward along the aim position, determine an intersection position between the ray and a map scene or a virtual object in the virtual environment, and generate mark information corresponding to the target mark type at the intersection position.

[0152] In some embodiments, the ray is an invisible ray, or the ray is entirely or partially visible.

[0153] In some embodiments, the device further includes a receiving module 502, a switching module 503, and a display module 501; The receiving module 502 is used for receiving a second viewpoint switching operation; The switching module 503 is used for aiming the sight at the existing mark information according to the second viewpoint switching operation; The display module 501 displays a cancel control on the target viewpoint screen in an overlap manner when the sight is aimed at existing mark information, The receiving module 502 is used for receiving a cancel operation triggered on a cancel control; The display module 501 cancels the display of the existing mark information in response to a cancel operation.

[0154] As described above, the device for generating mark information in a virtual environment provided by the present embodiment displays a target viewpoint screen of an application program by the device, displays a sight and a mark control in the target viewpoint screen, receives a first viewpoint switching operation, changes the observation direction of the target viewpoint screen and the aiming position of the sight according to the first viewpoint switching operation, receives a mark operation triggered on the mark control, and generates mark information on a virtual object pointed to by the aiming position according to the mark operation. The device can generate mark information on a virtual object without interrupting other operations on the virtual object, improving the efficiency of human-machine interaction. Next, the device determines the position of the virtual object by the ray emitted from the sight, making the mark on the virtual object more accurate, and can also perform accurate marking on virtual objects at a long distance. Furthermore, the device can correspondingly set mark triggers of at least two mark types of mark information by one joystick control, without the need to set multiple mark controls, which will not adversely affect the control operation on the screen and increase the false trigger rate, and without the need to open an option list to select the mark type of the mark information, realizing quick marking of mark information of different mark types, improving the efficiency of human-machine interaction.

[0155] In addition, the device further solves the problem that the mark information can only mark a geographical location in a map, but cannot mark other dimensions, so that virtual objects, such as virtual tools, in a virtual environment can be marked by the mark information.

[0156] In one embodiment, an electronic device is provided, which may be a terminal 600, and an internal structure diagram of the terminal 600 is shown in FIG. 12. The terminal 600 may be a smartphone, a tablet PC, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a notebook computer, or a desktop computer. The terminal 600 may also be called a user device, a mobile terminal, a laptop terminal, a desktop terminal, or other names.

[0157] Generally, the terminal 600 includes a processor 601 and a memory 602 .

[0158] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented using at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 601 may further include a main processor and a coprocessor, where the main processor is a processor used to process data in a wake state and is also called a central processing unit (CPU), and the coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 601 may integrate a graphics processing unit (GPU), where the GPU is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 601 may further include an artificial intelligence (AI) processor, where the AI ​​processor is used to process computational operations related to machine learning.

[0159] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, which is executed by the processor 601 to realize the method of generating mark information in a virtual environment provided by the method embodiment of the present application.

[0160] In some embodiments, the terminal 600 may further include a peripheral interface 603 and at least one peripheral device. The processor 601, the memory 602, and the peripheral interface 603 may be connected to each other via a bus or signal lines. Each peripheral device may be connected to the peripheral interface 603 via a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a high-frequency circuit 604, a touch display screen 605, a camera 606, an audio circuit 607, a positioning unit 608, and a power source 609.

[0161] The peripheral interface 603 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 601 and memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board, and in some other embodiments, any one or two of the processor 601, memory 602, and peripheral interface 603 may be implemented on a single chip or circuit board, and this embodiment is not limited thereto.

[0162] The radio frequency circuit 604 is used to receive and transmit radio frequency (RF) signals, also called electromagnetic signals.

[0163] The display screen 605 is used to display a User Interface (UI), which may include graphics, text, icons, video, and any combination thereof.

[0164] The camera unit 606 is used to collect images or videos. Optionally, the camera unit 606 includes a front camera and a rear camera.

[0165] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that can be input to the processor 601 for processing, or input to the high frequency circuit 604 for voice communication.

[0166] The positioning unit 608 is used to determine the current geographical location of the terminal 600, and to realize navigation or Location Based Services (LBS).

[0167] The power supply 609 is used to power each unit in the terminal 600. The power supply 609 may be AC ​​power, DC power, a disposable battery, or a rechargeable battery.

[0168] In some embodiments, terminal 600 further includes one or more sensors 610, including, but not limited to, an acceleration sensor 611, a gyroscope sensor 612, a pressure sensor 613, a fingerprint sensor 614, an optical sensor 615, and a proximity sensor 616.

[0169] The acceleration sensor 611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system constructed by the terminal 600 .

[0170] The gyroscope sensor 612 can detect the orientation and rotation angle of the body of the terminal 600, and the gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect the 3D movement of the user relative to the terminal 600.

[0171] The pressure sensor 613 can be installed on a side frame of the terminal 600 and / or under the touch display screen 605. When the pressure sensor 613 is installed on the side frame of the terminal 600, it detects a user's gripping signal on the terminal 600, and the processor 601 can recognize left and right hands or perform shortcut operations according to the gripping signal collected by the pressure sensor 613. When the pressure sensor 613 is installed under the touch display screen 605, the processor 601 realizes control over operable controls on the UI interface according to the user's pressure operation on the touch display screen 605. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0172] The fingerprint sensor 614 is used to collect a user's fingerprint, and the processor 601 recognizes the user's identity according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 recognizes the user's identity according to the collected fingerprint. If the processor 601 recognizes the user's identity as a reliable identity, it authorizes the user to perform sensitive operations related to the user, including screen unlocking, encryption information verification, software download, payment, and setting change. The fingerprint sensor 614 may be installed on the front, back, or side of the terminal 600. If a physical key or manufacturer's logo is installed on the terminal 600, the fingerprint sensor 614 can be integrated with the physical key or manufacturer's logo.

[0173] The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the touch display screen 605 according to the ambient light intensity collected by the optical sensor 615. Specifically, when the ambient light intensity is relatively high, the display brightness of the touch display screen 605 is adjusted to be high, and when the ambient light intensity is relatively low, the display brightness of the touch display screen 605 is adjusted to be low. In another embodiment, the processor 601 can further dynamically adjust the shooting parameters of the camera unit 606 according to the ambient light intensity collected by the optical sensor 615.

[0174] The proximity sensor 616, also called a distance sensor, is typically installed on the front panel of the terminal 600. The proximity sensor 616 is used to collect the distance between a user and the front of the terminal 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually decreasing, the processor 601 controls the touch display screen 605 to switch from a lighted state to an unlit state, and when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually increasing, the processor 601 controls the touch display screen 605 to switch from an unlit state to a lighted state.

[0175] As will be appreciated by those skilled in the art, the structure shown in FIG. 12 is not intended to limit the terminal 600, which may include more or fewer units than shown, or may combine some units, or employ different units in its configuration.

[0176] In one embodiment, another electronic device is provided, which may be a server 700, and the internal structure of the server 700 is shown in FIG. 13. The server 700 is used to implement the method for generating mark information in a virtual environment provided in the above embodiment. Specifically, The server 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read only memory (ROM) 703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The server 700 further includes a basic input / output system (I / O system) 706 that helps transfer information between devices within the computer, and a mass storage device 707 that is used to store an operating system 713, application programs 714 and other program modules 715.

[0177] The basic input / output system 706 includes a display 708 used to display information, and input devices 709, such as a mouse and a keyboard, used by a user to input information. Both the display 708 and the input devices 709 are connected to the central processing unit 701 through an input / output controller 710 connected to the system bus 705. The basic input / output system 706 may further include an input / output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 710 may provide output to a display screen, a printer, or other type of output device.

[0178] The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) that is connected to the system bus 705. The mass storage device 707 and its associated computer readable media provide non-volatile storage for the server 700. That is, the mass storage device 707 may include a computer readable medium (not shown), such as a hard disk or a CD-ROM drive, for example.

[0179] Without loss of generality, the computer readable media may include computer storage media and communication media. Computer storage media includes, for example, volatile and non-volatile, removable and non-removable media implemented in any method or technology used to store information, such as computer readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state storage technology, CD-ROM, DVD or other optical storage, cassettes, tapes, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above several types. The system memory 704 and mass storage device 707 may be collectively referred to as memory.

[0180] According to various embodiments of the present application, the server 700 may further be connected to a remote computer in a network, for example, via a network such as the Internet, and may be operated in such a manner that the server 700 is connected to a network 712 via a network interface unit 711 connected to the system bus 705, or may be connected to another type of network or remote computer system (not shown) using the network interface unit 711.

[0181] As can be understood by those skilled in the art, all or some of the steps of the various methods in the above embodiments can be completed by issuing instructions to related hardware by a program, and the program can be stored in a computer-readable storage medium, which may be a computer-readable storage medium included in the memory in the above embodiments, or may be a computer-readable storage medium that exists independently and is not assembled in a terminal. At least one instruction, at least one program, code set, or instruction set is stored in the computer-readable storage medium, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to realize the method for generating mark information in a virtual environment as described in any one of Figures 2 to 10.

[0182] Optionally, the computer readable storage medium may include a read only memory (ROM), a programmable read only memory (PROM), an electrically programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM) or an external high speed cache memory. By way of non-limiting illustration, the RAM may be in a number of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM), etc. The numbers of the above embodiments of the present application are merely for illustrative purposes and do not indicate superiority or inferiority of the embodiments.

[0183] As can be understood by those skilled in the art, the realization of all or part of the steps in the above embodiments may be completed by hardware, or may be completed by issuing instructions to related hardware by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0184] The technical features of the above examples can be combined in any way, and for the sake of brevity, all possible combinations of the technical features of the above examples are not described, but as long as the combinations of these technical features are not contradictory, they should be considered as the scope described in this specification. The above examples merely describe some embodiments of the present application, and the descriptions are relatively specific and detailed, but they should not be understood as limiting the scope of the patent application. However, those skilled in the art can make several modifications and improvements without departing from the idea of ​​the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application should be governed by the appended claims. [Explanation of symbols]

[0185] 100 Computer Systems 120 Terminal 1 140 Servers 142 Memory 144 processors 160 Terminal 2 501 Display module 502 Receiver Module 503 Module 504 Generation Module 505 Decision Module 506 Cancellation Module 600 terminals 601 Processor 602 Memory 603 Peripheral Device Interface 604 High Frequency Circuit 605 Display Screen 606 Camera 607 Audio Circuit 608 Positioning Unit 609 Power supply 610 Sensors 611 Acceleration Sensor 612 Gyroscope Sensor 613 Pressure Sensor 614 Fingerprint Sensor 615 Optical Sensor 616 Proximity Sensor 700 Servers 701 Central Processing Unit 702 Random Access Memory (RAM) 703 Dedicated memory (ROM) 704 System Memory 705 System Bus 706 Output System 707 Mass Storage 708 Display 709 Input Device 710 Input Output Controller 711 Network Interface Unit 712 Network 713 Operating Systems 714 Application Program 715 Program Module 1421 Thematic Memory Module 1422 Interaction Memory Module 1423 Notification Delivery Module

Claims

1. 1. An electronic device-implemented method for generating mark information in a virtual environment, the method comprising: displaying a target viewpoint screen showing the virtual environment from a virtual character's viewpoint, the target viewpoint screen displaying a sight and a mark control pointing to an aiming position within the virtual environment; receiving a mark operation triggered on the mark control, In response to receiving the mark operation, displaying a roulette option list on the target viewpoint screen to display a plurality of candidate mark types, the roulette option list including at least two candidate mark types aligned along an edge of the roulette; receiving a mark type selected from the plurality of candidate mark types in response to an end position of the marking operation; and generating mark information of a virtual object pointed to by the aim position in response to receiving the mark operation; Including, the generated mark information is visible to one or more teammates of the virtual character at a location of the virtual object in the virtual environment. method.

2. The method of claim 1 , wherein the mark control is a joystick control, and the mark operation comprises a sliding operation acting on the joystick control.

3. The plurality of candidate mark types include:

3. The method of claim 2, including at least two of an alert mark, a materiel mark, a going mark, an attack mark, a retreat mark, a defense mark, a warning mark, and a neutral mark.

4. The method of claim 1 , further comprising, after the step of generating the mark information on the virtual object, removing the mark information from the virtual object in response to a user input.

5. The step of generating the mark information includes: creating a line of sight forward from the aiming position; determining an intersection location of said ray with a virtual object in said virtual environment; and generating the mark information on the intersection location.

6. The method of claim 5 , wherein the target viewpoint view includes the virtual character and shows the virtual environment from the perspective of the virtual character.

7. After the generating step, the method further comprises: receiving a viewpoint switching operation; A step of aiming the sight at existing mark information in response to the viewpoint switching operation; displaying a cancel control on the target viewpoint screen in response to the sight being aimed at the existing mark information; receiving a cancel operation triggered on the cancel control; The method according to claim 1 , further comprising: canceling the display of the existing mark information in response to the cancel operation.

8. The method further comprises: adjusting a sight position aimed by the sight in response to the viewpoint switching operation; calculating a first distance between the adjusted aim position and a mark position corresponding to the existing mark information; The step of displaying the cancel control further comprises: The method of claim 7 , comprising displaying the cancel control on the target viewpoint screen in response to determining that the first distance is less than a first distance threshold.

9. The method of claim 7 , wherein the existing mark information includes mark information marked by the virtual character and mark information marked by a teammate of the virtual character.

10. The method of claim 1 , further comprising controlling the virtual character to launch an attack toward the aiming position of the sight in response to receiving an attack operation different from the mark operation.

11. At least one processor; and at least one memory having stored therein a program which, when executed by said processor, causes said processor to carry out the method of any one of claims 1 to 10.

12. A program, which when executed by a processor, causes the processor to carry out the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Tag element display method in virtual scene, computer equipment and storage medium

    CN108671543A

  • Game device, game programs

    JP2010207404A

  • Input device, information processing device and input value acquisition method

    JP2012168931A

  • Operation system, operation control method, operation control program

    JP2015022583A

  • Information processing device, information processing method and program

    JP2016059554A