CN113750529B - Direction indication method and device in game, electronic equipment and readable storage medium - Google Patents

Direction indication method and device in game, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113750529B
CN113750529B CN202111067871.1A CN202111067871A CN113750529B CN 113750529 B CN113750529 B CN 113750529B CN 202111067871 A CN202111067871 A CN 202111067871A CN 113750529 B CN113750529 B CN 113750529B
Authority
CN
China
Prior art keywords
virtual object
game
relative
direction indication
indication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111067871.1A
Other languages
Chinese (zh)
Other versions
CN113750529A (en
Inventor
麦冠强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111067871.1A priority Critical patent/CN113750529B/en
Publication of CN113750529A publication Critical patent/CN113750529A/en
Application granted granted Critical
Publication of CN113750529B publication Critical patent/CN113750529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8017Driving on land or water; Flying

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a direction indication method, a device, electronic equipment and a readable storage medium in a game, wherein the method comprises the following steps: acquiring a first reference direction of a reference surface in a three-dimensional game scene; displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface; receiving a control instruction aiming at the virtual object, controlling the three-dimensional virtual scene to rotate relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation; and adjusting the indication direction of the direction indication mark according to the second reference direction so that the direction indication mark points to the second reference direction. The method enables the player to accurately judge the angle change of the virtual object relative to the reference surface by utilizing the direction indication mark in the game scene with poor vision.

Description

Direction indication method and device in game, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of game technologies, and in particular, to a direction indication method and apparatus in a game, an electronic device, and a readable storage medium.
Background
Air combat games are a common form of game in which a player needs to know the direction of flight of an aircraft being maneuvered to determine the direction of flight of the next step. In the air combat game, there is generally no explicit horizon reference, so that the player cannot know whether the current flight direction is consistent with the expected direction.
In the prior art, a method for assisting a player to know the flying direction through direct displacement of a sight is proposed. In the flight process, the direction of the sight is adapted to be adjusted along with the change of the flight direction. In this way, the direction of the sight is relative to the aircraft itself. For example, if the abdomen of the aircraft is facing upwards, the sight is displaced upwards.
However, under the condition of poor visual field of the game environment, the method in the prior art cannot effectively indicate the flight direction and may cause the crash of the aircraft.
Disclosure of Invention
The application aims to overcome the defects in the prior art and provide a direction indication method, a device, an electronic device and a readable storage medium in a game, so as to solve the problem that the effect of the method in the prior art is poor when the game is applied to a terminal device with a small screen.
In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a direction indication method in a game, a graphical user interface is provided by a terminal device, and content displayed by the graphical user interface includes a three-dimensional virtual scene and a virtual object located in the three-dimensional virtual scene, where the method includes:
Acquiring a first reference direction of a reference surface in a three-dimensional game scene;
Displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the direction indication mark is used for prompting a relative angle between a plane where the virtual object is located and the reference plane;
receiving a control instruction aiming at the virtual object, controlling the three-dimensional virtual scene to rotate relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation;
And adjusting the indication direction of the direction indication mark according to the second reference direction, so that the direction indication mark points to the second reference direction to prompt the relative angle change between the plane where the virtual object is located and the reference plane.
In one possible implementation, the first reference direction and the second reference direction are normal directions of the reference plane; or the first reference direction and the second reference direction are tangential directions of the reference plane.
In one possible implementation, the graphical user interface includes a sight thereon, the sight being used to prompt the aiming direction of the virtual object;
The direction indication mark is a direction indication line, and the direction indication line comprises a starting point and an auxiliary line segment;
displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the step comprises the following steps:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line, wherein the first reference direction is the auxiliary line segment direction of the direction indication line.
In one possible implementation manner, the step of adjusting the indication direction of the direction indication identifier according to the second reference direction so that the direction indication identifier points to the second reference direction includes:
and drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the second reference direction as the indication direction of the auxiliary line segment.
In one possible implementation, the length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference surface.
In one possible implementation, the method further includes:
Determining a circular area by taking the vertex, far away from the sight, in the auxiliary line segment as a circle center, and drawing an arc mark along the circumference of the circular area;
and the chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
In one possible implementation manner, the step of receiving a control instruction for the virtual object and controlling the rotation of the three-dimensional virtual scene relative to the virtual object includes:
and receiving a control instruction aiming at the virtual object, keeping the display angle of the virtual object on the graphical user interface unchanged, and controlling the three-dimensional virtual scene displayed on the graphical user interface to rotate relative to the virtual object.
In one possible implementation manner, the receiving a control instruction for the virtual object, controlling the rotation of the three-dimensional virtual scene relative to the virtual object, and determining the second reference direction of the reference surface after the relative rotation includes:
Based on the control instruction, acquiring the rotation direction and rotation angle of the three-dimensional virtual scene relative to the virtual object;
and controlling the three-dimensional virtual scene to rotate by the rotation angle along the rotation direction, so as to obtain the reference surface after the relative rotation and a second reference direction of the reference surface after the rotation.
In one possible implementation, before the step of obtaining the first reference direction of the reference surface in the three-dimensional game scene, the method further includes:
displaying game content determined by a virtual camera of the game on the graphical user interface in real time, wherein the game content comprises the virtual object and the three-dimensional virtual scene;
And when the three-dimensional virtual scene does not comprise the reference surface, executing the step of acquiring a first reference direction of the reference surface.
In one possible implementation, the method further includes:
and hiding the direction indication mark when the three-dimensional virtual scene comprises the reference surface.
In one possible implementation, the reference surface includes a horizontal plane, a ground surface, and a sea surface.
In a second aspect, an embodiment of the present application provides a direction indicating device in a game, providing, by a terminal device, a graphical user interface, where content displayed by the graphical user interface includes a three-dimensional virtual scene and a virtual object located in the three-dimensional virtual scene, including:
the acquisition module is used for acquiring a first reference direction of a reference surface in the three-dimensional game scene;
The first display module is used for displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, and the direction indication mark is used for prompting a relative angle between a plane where the virtual object is located and the reference plane;
The rotating module is used for receiving a control instruction aiming at the virtual object, controlling the three-dimensional virtual scene to rotate relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation;
and the second display module is used for adjusting the indication direction of the direction indication mark according to the second reference direction so that the direction indication mark points to the second reference direction to prompt the relative angle change between the plane where the virtual object is located and the reference plane.
In one possible implementation, the first reference direction and the second reference direction are normal directions of the reference plane; or the first reference direction and the second reference direction are tangential directions of the reference plane.
In one possible implementation, the graphical user interface includes a sight thereon for prompting the aiming direction of the virtual object.
The direction indication mark is a direction indication line, and the direction indication line comprises a starting point and an auxiliary line segment.
The first display module is specifically configured to:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line, wherein the first reference direction is the auxiliary line segment direction of the direction indication line.
In one possible implementation, the second display module is specifically configured to:
and drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the second reference direction as the indication direction of the auxiliary line segment.
In one possible implementation, the length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference surface.
In one possible implementation, the first display module is further configured to:
And determining a circular area by taking the vertex, far away from the sight, in the auxiliary line segment as a circle center, and drawing an arc mark along the circumference of the circular area.
And the chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
In one possible implementation, the rotation module is specifically configured to:
and receiving a control instruction aiming at the virtual object, keeping the display angle of the virtual object on the graphical user interface unchanged, and controlling the three-dimensional virtual scene displayed on the graphical user interface to rotate relative to the virtual object.
In one possible implementation, the rotation module is specifically configured to:
Based on the control instruction, acquiring the rotation direction and rotation angle of the three-dimensional virtual scene relative to the virtual object;
and controlling the three-dimensional virtual scene to rotate by the rotation angle along the rotation direction, so as to obtain the reference surface after the relative rotation and a second reference direction of the reference surface after the rotation.
In one possible implementation, the apparatus further includes:
And the display module is used for displaying the game content determined by the virtual camera of the game on the graphical user interface in real time, wherein the game content comprises the virtual object and the three-dimensional virtual scene, and when the three-dimensional virtual scene does not comprise the reference surface, the step of acquiring the first reference direction of the reference surface is executed.
In one possible implementation, the presentation module is further configured to:
and hiding the direction indication mark when the three-dimensional virtual scene comprises the reference surface.
In one possible implementation, the reference surface includes a horizontal plane, a ground surface, and a sea surface.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the direction indication method in a game as described in the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the direction indication method in a game as described in the first aspect above.
According to the direction indication method, the device, the electronic equipment and the readable storage medium in the game, after the first reference direction of the reference surface in the three-dimensional game scene is obtained, a direction indication mark pointing to the first reference direction is displayed at a preset position of the graphical user interface, and the direction indication mark can represent the relative angle between the plane where the virtual object is located and the reference surface. After the player sends out the control instruction, the player can respond to the control instruction to control the rotation of the three-dimensional virtual scene relative to the virtual object, the rotation of the three-dimensional virtual scene causes the rotation of the reference surface, and when the reference surface rotates, the reference direction with a fixed position relation with the reference surface changes, so that a changed second reference direction can be obtained, and the indication direction of the direction indication mark is adjusted according to the second reference direction, so that the relative angle change between the plane where the virtual object is located and the reference surface is prompted. Through the process, the relative angle change of the virtual object and the reference surface such as the ground, the sea surface and the like can be displayed to the player in real time, so that the player can accurately judge the angle change of the virtual object relative to the reference surface by utilizing the direction indication mark in a game scene with poor visual field, and the problems of crash and the like are avoided.
In addition, because the normal line and the tangent line both represent the direction line with a fixed position relation with the reference plane, and the normal line is perpendicular to the reference plane, the tangent line passes through the reference plane, and the position relation with the reference plane is simple, when the direction mark pointing to the reference line is drawn based on the reference plane, the drawing is performed based on the normal line or the tangent line, so that the calculation complexity can be reduced, and the performance of the system is improved.
In addition, since the sight is used for prompting the aiming direction of the virtual object, the sight is fixed at the relative position of the sight and the virtual pair and is positioned right in front of the virtual object, namely, the sight is positioned at the position which is most easily seen in the visual field of the player, the sight is used as the starting point of the direction indication line, and the direction indication line is drawn along the first reference direction, so that the player can quickly look up the direction indication line.
In addition, when the three-dimensional virtual scene is judged not to include the reference surface, the first reference direction and the subsequent steps for acquiring the reference are executed, so that the player can continuously know the relative angle change of the virtual object relative to the reference surface. When the three-dimensional virtual scene comprises the reference surface, a user can judge the relative angle change of the virtual object relative to the reference surface by naked eyes, and at the moment, the direction indication mark can be hidden in time, so that the interference to a player can be avoided, and the game experience of the player is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a direction indication method in a game according to an embodiment of the present application;
FIG. 2 is an interface schematic diagram of a direction indication marker;
FIG. 3 is a schematic drawing of an arc mark on an auxiliary line segment;
FIG. 4 is another flow chart of a direction indication method in a game according to an embodiment of the present application;
FIG. 5 is a schematic view of the rotated reference plane and the second reference direction;
FIG. 6 is a schematic flow chart of a direction indication method in a game according to an embodiment of the present application;
FIG. 7 is a block diagram of a direction indicating device in a game according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device 80 according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
In order to enable a person skilled in the art to use the present disclosure, the following embodiments are presented in connection with a specific application scenario "game scenario of a virtual aircraft". It will be apparent to those having ordinary skill in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the application is described primarily around a game scenario for a virtual aircraft, it should be understood that this is only one exemplary embodiment. For ease of description, the following embodiments of the present application will simply refer to virtual aircraft as aircraft.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
In the prior art, the method of assisting the player to know the flying direction by means of the direct displacement of the sight, although the player can know the flying direction to a certain extent, in this way, the direction of the sight is relative to the aircraft itself. For example, if the abdomen of the aircraft is facing upwards, the sight is displaced upwards. This approach does not indicate a change in direction of the aircraft relative to the ground or sky. For example, when the aircraft belly is facing up, the sight is displaced upward, however, when the aircraft is flying toward the ground, the direction of flight of the aircraft cannot be effectively indicated with the direction of displacement of the sight. When the field of view in the game environment is good, the player can judge the direction of the aircraft relative to the ground or sky through naked eyes. However, when the field of view of the game environment is poor, for example, the cloud layer around the aircraft is thick, the field of view is blocked, the player cannot judge the direction of the aircraft relative to the ground or the sky through naked eyes, and meanwhile, no indication mark capable of indicating the direction of the aircraft relative to the ground or the sky exists, so that the aircraft may crash.
Based on the above problems, the embodiment of the application provides a direction indication method in a game, which can draw and display a direction indication mark in real time by utilizing the reference direction change of a reference surface when a three-dimensional virtual scene rotates relative to a virtual object, so as to prompt the relative angle change between a plane where the virtual object is positioned and the reference surface, thereby enabling a player to accurately judge the direction of the virtual object relative to the reference surface by utilizing the direction indication line in a game scene with poor visual field, and avoiding the problems of crash and the like.
Before describing the technical scheme of the application, the concepts related to the application are explained first.
In a game scene, two coordinate systems are involved, namely a local coordinate system and a world coordinate system. The local coordinate system may also be referred to as a relative coordinate system, and may represent a relative position and direction of a certain virtual object or position relative to another virtual object or position in the virtual scene. In particular, in the application, the relative coordinate system of the aircraft itself can be established with reference to the aircraft. In this relative coordinate system, each coordinate represents a relative coordinate with respect to the aircraft, respectively. For example, a relative coordinate system of the aircraft is constructed with a certain point in the aircraft as an origin, a plane in which the aircraft is located as a plane in which the x-axis and the y-axis are located, and a line passing through the origin and perpendicular to the plane in which the x-axis and the y-axis are located as a z-axis. Using the relative coordinate system of the aircraft, the coordinates of the various vertices and other locations in the aircraft relative to the aircraft may be determined. For example, upon completion of the aircraft rendering, the relative coordinate system of the aircraft may be utilized to determine the coordinates of the vertices of the aircraft and render the aircraft on those coordinates.
In the above-described local coordinate system, when a virtual object has a parent object, the position of the parent object relative to its own parent object is not changed all the time as a child object regardless of the change in the positional rotation scaling of the parent object. When a virtual object does not have a parent object, the world can be regarded as its parent object, and all position changes in the world can be regarded as relative position changes with the world, in which case the local coordinates of the virtual object are identical to the world coordinates because the world coordinate system and the local coordinate system of the world are coincident. In particular, according to the application, a parent object does not exist in the three-dimensional virtual scene, and a world coordinate system is established by taking the whole three-dimensional virtual scene as a reference. When the aircraft flies in the three-dimensional virtual scene, the position change of the aircraft relative to the three-dimensional virtual scene can be determined under the world coordinate system. In particular, the change in position of an aircraft during flight may be represented by three attitude parameters, including: pitch angle (pitch), yaw angle (yaw), and roll angle (roll), wherein pitch angle represents the angle of rotation of the aircraft about the x-axis of the world coordinate system, yaw angle represents the angle of rotation of the aircraft about the y-axis of the world coordinate system, and roll angle represents the angle of rotation of the aircraft about the z-axis of the world coordinate system.
The relative coordinate system and the world coordinate system are three-dimensional coordinate systems, and the graphical user interface displayed on the game screen is a two-dimensional interface. There is a virtual camera in the game, which is used to shoot three-dimensional virtual scenes and aircrafts in the world coordinate system from a specific viewing angle, and to project the shot images into a two-dimensional graphical user interface.
In the first mode, the lens angle of the virtual camera is fixed and stays at a fixed position coordinate in the world coordinate system. In the continuous images shot by the virtual camera from the view angle, the position of the three-dimensional virtual scene is unchanged, and the position of the aircraft is changed. In the second way, the lens angle of the virtual camera is locked with the aircraft, i.e. the lens angle of the virtual camera changes with the flight of the aircraft and remains unchanged with respect to the aircraft at all times. For example, the lens angle of the virtual camera is always directed in the nose direction of the aircraft. In the continuous images shot by the virtual camera in this way, the position of the aircraft remains unchanged, and the position of the three-dimensional virtual scene changes.
As an alternative embodiment, the present application is based on the above second mode to realize display of game screen. It will be appreciated that in this second approach, the position of the aircraft remains unchanged and the position of the three-dimensional virtual scene changes, both with respect to the world coordinate system. In particular, when the lens angle of the virtual camera changes as the aircraft flies, the position of the aircraft in the world coordinate system remains unchanged, while the position of the three-dimensional virtual scene in the world coordinate system changes. Wherein the change in the position of the three-dimensional virtual scene is determined based on the player's control instructions for the aircraft. The following embodiments of the application are based on the second way described above, detailing how the direction indication of the aircraft is implemented in a graphical user interface. In addition, for the aircraft itself, the coordinates of the vertices of the aircraft may be determined using its relative coordinate system, and the rendering of the aircraft in the graphical user interface may be performed by projection. The present application is not separately described with respect to a process for completing an aircraft rendering using a relative coordinate system.
The direction indication method in the game in one embodiment of the application can be run on a local terminal device or a server. When the direction indication method in the game runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, a running main body of the game program and a game picture presentation main body are separated, the storage and running of the direction indication method in the game are completed on a cloud game server, and the function of a client device is used for receiving and sending data and presenting game pictures, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the application provides a direction indication method in a game, and a graphical user interface is provided through terminal equipment, wherein the terminal equipment can be the aforementioned local terminal equipment or the aforementioned client equipment in the cloud interaction system.
The direction indication method in the game of the present application will be described in detail by means of a plurality of examples.
Fig. 1 is a flow chart of a direction indication method in a game according to an embodiment of the present application, and it should be noted that the game display method provided by the present application is not limited to the specific order shown in fig. 1 and described below. It should be understood that, in other embodiments, the sequence of some steps in the game display method provided by the present application may be interchanged according to actual needs, or some steps may be omitted or deleted. As shown in fig. 1, the method includes:
s101, acquiring a first reference direction of a reference surface in a three-dimensional game scene.
Optionally, the three-dimensional game scene to which the present application is applicable may include, for example: air combat game scenes, water game scenes, and the like. In an air combat game scenario, the aforementioned virtual object, the aircraft, is involved. In a water play scenario, virtual objects such as submarines that move in the water may be involved. Accordingly, the reference surface described in the present application may include: level, ground or sea surface. It is understood that the level, ground and sea surface refer to the level, ground and sea surface in a three-dimensional virtual scene. Wherein, the horizontal plane may refer to a plane parallel to the ground or a plane parallel to the ground. For example, in the air combat game scene and the water game scene, the reference surface may be any one of a horizontal plane, a ground plane, and a sea surface.
For convenience of description, the following embodiments of the present application are explained with reference to a virtual object as an aircraft.
Alternatively, the reference direction of the reference plane may refer to a direction having a fixed positional relationship with the reference plane. In the world coordinate system, after the coordinate information of the reference plane is determined, the coordinate information of the reference direction can be determined accordingly. Taking an air combat game scene as an example, a player controls the aircraft to fly, because the lens view angle of the virtual camera locks the aircraft, the position of the aircraft is kept unchanged in the flying process of the aircraft, and the position of the three-dimensional virtual scene is correspondingly changed along with the control instruction of the player, and the position of the reference surface is correspondingly changed. The terminal device or the server can monitor whether the player sends out the control instruction in real time, and execute the method steps of the application under the triggering of the player sending out the control instruction. The first reference direction may be a reference direction of the reference plane at a start time of the player issuing the manipulation instruction, that is, an initial reference direction of the reference plane.
S102, displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the direction indication mark is used for prompting a relative angle between a plane where the virtual object is located and the reference plane.
Alternatively, the preset position may be a position having a fixed relative positional relationship with the virtual object. And displaying a direction indication mark pointing to the first reference direction on the preset position, wherein the first reference direction is a direction with a fixed position relation with the reference surface, so that the direction indication mark pointing to the first reference direction can show the position information of the reference surface, and the position of the virtual object is unchanged, so that the direction indication mark can prompt the relative angle between the plane where the virtual object is positioned and the reference surface.
And S103, receiving a control instruction aiming at the virtual object, controlling the rotation of the three-dimensional virtual scene relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation.
As mentioned above, the position change of the aircraft during flight can be represented by three attitude parameters, namely pitch angle, yaw angle and roll angle, respectively, that is to say the position change of the aircraft can be reflected in the changes of pitch angle, yaw angle and roll angle. After the player sends out the control command, the terminal equipment or the server can know the change information of the pitch angle, the yaw angle and the roll angle based on the control command, and then the terminal equipment can convert the change information of the pitch angle, the yaw angle and the roll angle of the aircraft into the change information of the pitch angle, the yaw angle and the roll angle of the three-dimensional virtual scene so as to control the rotation of the three-dimensional virtual scene relative to the virtual object.
Along with the rotation of the three-dimensional virtual scene, the reference surface positioned in the three-dimensional virtual scene correspondingly rotates, and the terminal equipment can determine a second reference direction after relative rotation by utilizing the position to which the reference surface rotates and the fixed position relation between the reference surface and the reference direction.
It should be understood that the positional relationship between the second reference direction and the reference surface after rotation is still the positional relationship between the first reference direction and the reference surface before rotation.
And S104, adjusting the indication direction of the direction indication mark according to the second reference direction so that the direction indication mark points to the second reference direction to prompt the relative angle change between the plane where the virtual object is located and the reference plane.
When the reference surface rotates to a new position along with the rotation of the three-dimensional virtual scene, the second reference direction also changes relative to the first reference direction, so that the indication direction of the direction indication mark can be adjusted according to the second reference direction. Specifically, before the adjustment, the direction indication mark points to the first reference direction, and after the adjustment, the direction indication mark points to the second reference direction, and the change from the first reference direction to the second reference direction can clearly prompt the relative angle change between the plane where the virtual object is located and the reference plane.
Fig. 2 is a schematic diagram of an interface of a direction indication mark, as shown in fig. 2, a point a represents a preset position in a graphical user interface, at a starting moment when a player sends a control command, the direction indication mark pointing to a first reference direction is a line segment AB formed by a point a and a point B, when the control command of the player is responded, the three-dimensional virtual scene rotates, and accordingly, the direction indication mark pointing to a second reference direction is a line segment AC formed by a point a and a point C, and a change from AB to AC can indicate a relative angle change between a plane where a virtual object is located and a reference plane.
In this embodiment, after a first reference direction of a reference plane in a three-dimensional game scene is obtained, a direction indication identifier pointing to the first reference direction is displayed at a preset position of a graphical user interface, where the direction indication identifier can represent a relative angle between a plane where a virtual object is located and the reference plane. After the player sends out the control instruction, the player can respond to the control instruction to control the rotation of the three-dimensional virtual scene relative to the virtual object, the rotation of the three-dimensional virtual scene causes the rotation of the reference surface, and when the reference surface rotates, the reference direction with a fixed position relation with the reference surface changes, so that a changed second reference direction can be obtained, and the indication direction of the direction indication mark is adjusted according to the second reference direction, so that the relative angle change between the plane where the virtual object is located and the reference surface is prompted. Through the process, the relative angle change of the virtual object and the reference surface such as the ground, the sea surface and the like can be displayed to the player in real time, so that the player can accurately judge the angle change of the virtual object relative to the reference surface by utilizing the direction indication mark in a game scene with poor visual field, and the problems of crash and the like are avoided.
As an alternative embodiment, the first reference direction and the second reference direction are normal directions of the reference plane; or the first reference direction and the second reference direction are tangential directions of the reference plane.
In one embodiment, the normal line is a straight line always perpendicular to a certain plane. In the present application, the reference direction of the reference surface may always be the normal direction of the reference surface. Specifically, the reference plane and the reference direction have a fixed positional relationship, and the reference direction points to the normal direction of the reference plane regardless of how the reference plane rotates.
In another way, geometrically, a tangent line refers to a straight line that just touches a point on a curve. Specifically, when a tangent line passes a point on a curve (i.e., a tangent point), the direction of the tangent line is the same as the direction of the point on the curve. In planar geometry, a straight line having only one common intersection with a circle is referred to as a tangent to the circle. In the present application, the reference direction of the reference plane may always be the tangential direction of the reference plane. Specifically, the reference plane and the reference direction have a fixed positional relationship, and the reference direction is directed in a tangential direction of the reference plane regardless of how the reference plane rotates.
In this embodiment, since the normal line and the tangent line both represent the direction line having a fixed positional relationship with the reference plane, and the normal line is perpendicular to the reference plane, the tangent line passes through the reference plane, and the positional relationship with the reference plane is simple, when the direction mark pointing to the reference line is drawn based on the reference plane, the drawing is performed based on the normal line or the tangent line, so that the complexity of calculation can be reduced, and the performance of the system can be improved.
Hereinafter, a process of displaying the direction indication mark at the preset position of the aforementioned gui will be described.
As an alternative embodiment, a sight may be included on the graphical user interface for prompting the aiming direction of the virtual object. Alternatively, while the position of the virtual object in the graphical user interface remains unchanged, the position of the sight in the graphical user interface also remains unchanged, and there may be a fixed relative position between the sight and the virtual object. Illustratively, the position of the sight has a predetermined fixed correspondence with the position of the projectile firing port of the aircraft. For example, assuming that the position of the projectile firing port projected onto the graphical user interface is (x, y), the position of the sight may be (x+a, y), where a may be a preset fixed value.
Based on the sight, the display of the direction indication mark can be completed.
Alternatively, the direction indication mark may be a direction indication line, where the direction indication line includes a start point and an auxiliary line segment.
An alternative to the above step S102 includes:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the first reference direction as the auxiliary line segment direction of the direction indication line.
The preset position may be a position where the pointer is located. And drawing the auxiliary line segment along the first reference direction by taking the sight glass as a starting point of the direction indication line at the preset position, so that the direction indication line is displayed on a graphical user interface.
Referring to fig. 2, a point a is a sight position of the aircraft, and a direction indication line drawn along the first reference direction is as shown in AB in fig. 2, with the sight position as a starting point.
In this embodiment, since the sight is used to prompt the aiming direction of the virtual object, and is fixed in the relative position of the sight and the virtual pair, and is located right in front of the virtual object, that is, the sight is located at the position most visible in the field of view of the player, the sight is used as the starting point of the direction indication line, and the direction indication line is drawn along the first reference direction, so that the player can quickly look up the direction indication line.
On the basis of the direction indication line drawn to point to the first reference direction based on the sight, the direction indication line drawn to point to the second reference direction based on the sight can be correspondingly drawn.
Specifically, an alternative manner of the step S104 includes:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the second reference direction as the indication direction of the auxiliary line segment.
The specific implementation process is identical to the process of drawing the direction indication mark pointing to the first reference direction, and the difference is that the second reference direction is taken as the indication direction of the auxiliary line segment in this embodiment, which can be seen in the above embodiment, and details are not repeated here.
Optionally, in the above embodiment, the length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference plane.
The length of the auxiliary line segment may be obtained by calculating a product of a relative distance between the virtual object and the reference surface and a preset coefficient.
The length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference surface, when the relative distance between the virtual object and the reference surface is larger, the length of the auxiliary line segment is longer, otherwise, when the relative distance between the virtual object and the reference surface is smaller, the length of the auxiliary line segment is shorter, so that the direction pointing line can be matched with the actual distance, and the problem that the direction pointing line is too long to exceed the reference surface when the distance is smaller or the direction pointing line is too short to effectively point the relative angle of the reference surface when the distance is larger is avoided.
As an alternative implementation manner, when the direction indication line is drawn, a specific mark can be added on the basis of the direction indication line, so that a player can easily and clearly see the direction indication line. It should be noted that the following specific marking method may be applied to the process of drawing the direction indication line pointing to the first reference direction or the process of drawing the direction indication line pointing to the second reference direction.
Specifically, the method further comprises the following steps:
And determining a circular area by taking the vertex, far away from the sight, of the auxiliary line segment as a circle center, and drawing an arc mark along the circumference of the circular area.
And the chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
Alternatively, the radius of the circular area may be positively correlated with the length of the auxiliary line segment. For example, the longer the auxiliary line segment, the larger the radius of the circular region, and the shorter the auxiliary line segment, the smaller the radius of the circular region.
Fig. 3 is a schematic diagram of drawing an arc mark on an auxiliary line segment, as shown in fig. 3, a point a is a sight position of an aircraft, the auxiliary line segment is AB, then a vertex far away from the sight in the auxiliary line segment is taken as a point B, a circular area can be determined by taking the point B as a center of a circle, the arc mark as shown in fig. 3 is drawn along the circumference of the circular area, and a chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
As described above, in the present application, the lens angle of the virtual camera locks the aircraft, changing continuously as the aircraft flies. Based on this, as an optional embodiment, when the rotation of the three-dimensional virtual scene relative to the virtual object is controlled in the step S103, the following procedure may be specifically performed:
And receiving a control instruction aiming at the virtual object, keeping the display angle of the virtual object on the graphical user interface unchanged, and controlling the three-dimensional virtual scene displayed on the graphical user interface to rotate relative to the virtual object.
Illustratively, the virtual object is always centered on the graphical user interface and always remains top up.
Hereinafter, a specific control procedure for controlling the rotation of the three-dimensional virtual scene with respect to the virtual object in step S103 of the foregoing embodiment will be described.
Fig. 4 is another flow chart of a direction indication method in a game according to an embodiment of the present application, as shown in fig. 4, an alternative manner of the step S103 includes:
S401, based on the control instruction, the rotation direction and the rotation angle of the three-dimensional virtual scene relative to the virtual object are obtained.
Optionally, after the player sends out the control instruction, the terminal device or the server first knows the rotation direction and the rotation angle of the virtual object. For example, the player issues a control command to turn the aircraft 90 degrees to the right, indicating that the direction and angle of rotation of the aircraft are to the right and 90 degrees, respectively. On the basis, the rotation direction and the rotation angle of the virtual object can be converted, and the rotation direction and the rotation angle of the three-dimensional virtual scene relative to the virtual object can be obtained. For example, if the rotation direction and rotation angle of the aircraft are respectively right and 90 degrees, the three-dimensional virtual scene is left with respect to the rotation direction of the virtual object, and the rotation angle is 90 degrees.
It should be noted that, because the attitude of the aircraft during flight involves the pitch angle, the roll angle and the yaw angle, the rotation direction and the rotation angle of the virtual object obtained based on the control instruction described above include the rotation direction and the rotation angle corresponding to the pitch angle, the rotation direction and the rotation angle corresponding to the roll angle and the rotation direction and the rotation angle corresponding to the yaw angle, respectively, and accordingly, the rotation direction and the rotation angle of the three-dimensional virtual scene relative to the virtual object also include the rotation direction and the rotation angle corresponding to the pitch angle, and the rotation direction and the rotation angle corresponding to the roll angle and the rotation direction and the rotation angle corresponding to the yaw angle.
S402, controlling the three-dimensional virtual scene to rotate by the rotation angle along the rotation direction, and obtaining a reference surface after relative rotation and a second reference direction of the reference surface after rotation.
Optionally, controlling the rotation angle of the three-dimensional virtual scene along the rotation direction may include controlling the three-dimensional virtual scene to rotate along the rotation direction thereof at a pitch angle, a roll angle and a yaw angle, and simultaneously tracking the reference surface in the three-dimensional virtual scene, and acquiring the rotated reference surface after the rotation is completed. Further, the second reference direction may be determined by using a fixed positional relationship between the reference surface and the reference direction.
Fig. 5 is a schematic diagram of a rotated reference plane and a second reference direction, and as shown in fig. 5, assuming that the rotated reference plane is a plane a and the position of the sight glass is a point M, the determined second reference direction is a direction indicated by a reference line N, and the direction is perpendicular to the plane a and is a normal direction of the plane a.
As described in the foregoing embodiments, when the field of view of the game environment is poor, the player cannot judge the direction of the aircraft with respect to the ground or sky by naked eyes, and thus, there may be a problem in that the aircraft crashes or the like. This may not be the case when the game environment is well-viewed. Thus, as an alternative embodiment, the following procedure may be performed before the above step S101.
Fig. 6 is a schematic flow chart of another method for indicating directions in a game according to an embodiment of the present application, as shown in fig. 6, before the step S101, the method may further include:
s601, displaying game content determined by a virtual camera of a game on a graphical user interface in real time, wherein the game content comprises the virtual object and the three-dimensional virtual scene.
S602, when the three-dimensional virtual scene does not comprise the reference surface, executing a step of acquiring a first reference direction of the reference surface.
It should be noted that, the three-dimensional virtual scene does not include the reference surface, which means that the reference surface is not displayed in the gui. For example, due to the coverage of the cloud layer, only the cloud layer is displayed in the graphical user interface, and the reference surface is not displayed any more.
When the three-dimensional virtual scene does not include the reference plane, the step S101 and the subsequent steps are performed to draw and display the direction indication mark in the gui.
Alternatively, after the step S601, if it is determined that the three-dimensional virtual scene includes the reference plane, the direction indication mark may be hidden.
In this embodiment, when it is determined that the three-dimensional virtual scene does not include the reference plane, the steps of acquiring the first reference direction and the subsequent steps are performed, so that the player can continuously learn the relative angle change of the virtual object with respect to the reference plane. When the three-dimensional virtual scene comprises the reference surface, a user can judge the relative angle change of the virtual object relative to the reference surface by naked eyes, and at the moment, the direction indication mark can be hidden in time, so that the interference to a player can be avoided, and the game experience of the player is improved.
Based on the same inventive concept, the embodiment of the present application further provides a direction indicating device in a game corresponding to the direction indicating method in a game, and since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the direction indicating method in the game in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
Fig. 7 is a block diagram of a direction indicating device in a game according to an embodiment of the present application, where a graphical user interface is provided by a terminal device, and content displayed on the graphical user interface includes a three-dimensional virtual scene and a virtual object located in the three-dimensional virtual scene, as shown in fig. 7, where the device includes:
An obtaining module 701 is configured to obtain a first reference direction of a reference plane in a three-dimensional game scene.
The first display module 702 is configured to display a direction indication identifier pointing to the first reference direction at a preset position of the gui, where the direction indication identifier is configured to prompt a relative angle between the plane where the virtual object is located and the reference plane.
And the rotation module 703 is configured to receive a control instruction for the virtual object, control the rotation of the three-dimensional virtual scene relative to the virtual object, and determine a second reference direction of the reference plane after the relative rotation.
And a second display module 704, configured to adjust an indication direction of the direction indication identifier according to the second reference direction, so that the direction indication identifier points to the second reference direction, so as to prompt a relative angle change between the plane where the virtual object is located and the reference plane.
As an alternative embodiment, the first reference direction and the second reference direction are normal directions of the reference plane; or the first reference direction and the second reference direction are tangential directions of the reference plane.
As an alternative embodiment, the graphical user interface includes a sight thereon, and the sight is used to prompt the aiming direction of the virtual object.
The direction indication mark is a direction indication line, and the direction indication line comprises a starting point and an auxiliary line segment.
The first display module 702 is specifically configured to:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line, wherein the first reference direction is the auxiliary line segment direction of the direction indication line.
As an alternative embodiment, the second display module 704 is specifically configured to:
and drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the second reference direction as the indication direction of the auxiliary line segment.
As an alternative embodiment, the length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference surface.
As an alternative embodiment, the first display module 702 is further configured to:
And determining a circular area by taking the vertex, far away from the sight, in the auxiliary line segment as a circle center, and drawing an arc mark along the circumference of the circular area.
And the chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
As an alternative embodiment, the rotation module 703 is specifically configured to:
and receiving a control instruction aiming at the virtual object, keeping the display angle of the virtual object on the graphical user interface unchanged, and controlling the three-dimensional virtual scene displayed on the graphical user interface to rotate relative to the virtual object.
As an alternative embodiment, the rotation module 703 is specifically configured to:
Based on the control instruction, acquiring the rotation direction and rotation angle of the three-dimensional virtual scene relative to the virtual object;
and controlling the three-dimensional virtual scene to rotate by the rotation angle along the rotation direction, so as to obtain the reference surface after the relative rotation and a second reference direction of the reference surface after the rotation.
As an alternative embodiment, with continued reference to fig. 7, the apparatus further comprises:
A display module 705, configured to display, on the graphical user interface, in real time, game content determined by a virtual camera of the game, where the game content includes the virtual object and the three-dimensional virtual scene, and perform a step of acquiring a first reference direction of the reference plane when the three-dimensional virtual scene does not include the reference plane.
As an alternative embodiment, the display module 705 is further configured to:
and hiding the direction indication mark when the three-dimensional virtual scene comprises the reference surface.
As an alternative embodiment, the reference surface comprises a horizontal plane, a ground surface, and a sea surface.
The embodiment of the present application further provides an electronic device 80, where the electronic device may include a terminal device or a server in the foregoing embodiment, as shown in fig. 8, and a schematic structural diagram of the electronic device 80 provided in the embodiment of the present application includes: a processor 81, a memory 82, and a bus 83. The memory 82 stores machine-readable instructions executable by the processor 81 (e.g., execution instructions corresponding to the acquisition module, the first determination module, the second determination module, and the display module in the apparatus of fig. 7), and when the electronic device 80 is running, the processor 81 communicates with the memory 82 through the bus 83, and the machine-readable instructions are executed by the processor 81 to perform the method steps in the method embodiments described above.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to execute the steps of the direction indication method in the game.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, and are not repeated in the present disclosure. In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application.

Claims (14)

1. A direction indication method in a game, characterized in that a graphical user interface is provided by a terminal device, and the content displayed by the graphical user interface comprises a three-dimensional virtual scene and a virtual object located in the three-dimensional virtual scene, the method comprising:
Acquiring a first reference direction of a reference surface in a three-dimensional game scene;
Displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the direction indication mark is used for prompting a relative angle between a plane where the virtual object is located and the reference plane, and the first reference direction is a direction with a fixed position relation with the reference plane;
receiving a control instruction aiming at the virtual object, controlling the three-dimensional virtual scene to rotate relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation, wherein the second reference direction is a direction with a fixed position relation with the reference surface;
And adjusting the indication direction of the direction indication mark according to the second reference direction, so that the direction indication mark points to the second reference direction to prompt the relative angle change between the plane where the virtual object is located and the reference plane.
2. The method of claim 1, wherein the first reference direction and the second reference direction are normal directions of the reference plane; or the first reference direction and the second reference direction are tangential directions of the reference plane.
3. The method of claim 1, wherein the graphical user interface includes a sight thereon, the sight being configured to suggest a direction of aiming of the virtual object;
The direction indication mark is a direction indication line, and the direction indication line comprises a starting point and an auxiliary line segment;
displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the step comprises the following steps:
And drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line, wherein the first reference direction is the auxiliary line segment direction of the direction indication line.
4. A method according to claim 3, wherein the step of adjusting the direction of indication of the direction indication indicator in dependence on the second reference direction such that the direction indication indicator points in the second reference direction comprises:
and drawing the direction indication line at the preset position by taking the sight as the starting point of the direction indication line and the second reference direction as the indication direction of the auxiliary line segment.
5. A method according to claim 3, wherein the length of the auxiliary line segment is positively correlated with the relative distance between the virtual object and the reference surface.
6. A method according to claim 3, characterized in that the method further comprises:
Determining a circular area by taking the vertex, far away from the sight, in the auxiliary line segment as a circle center, and drawing an arc mark along the circumference of the circular area;
and the chord corresponding to the arc mark is perpendicular to the auxiliary line segment.
7. The method of claim 1, wherein the step of receiving control instructions for the virtual object, controlling rotation of the three-dimensional virtual scene relative to the virtual object, comprises:
and receiving a control instruction aiming at the virtual object, keeping the display angle of the virtual object on the graphical user interface unchanged, and controlling the three-dimensional virtual scene displayed on the graphical user interface to rotate relative to the virtual object.
8. The method of claim 1, wherein receiving the control instruction for the virtual object, controlling the rotation of the three-dimensional virtual scene relative to the virtual object, determining a second reference direction of the reference surface after the relative rotation, comprises:
Based on the control instruction, acquiring the rotation direction and rotation angle of the three-dimensional virtual scene relative to the virtual object;
and controlling the three-dimensional virtual scene to rotate by the rotation angle along the rotation direction, so as to obtain the reference surface after the relative rotation and a second reference direction of the reference surface after the rotation.
9. The method of claim 1, wherein prior to the step of obtaining a first reference direction for a reference surface in the three-dimensional game scene, the method further comprises:
displaying game content determined by a virtual camera of the game on the graphical user interface in real time, wherein the game content comprises the virtual object and the three-dimensional virtual scene;
And when the three-dimensional virtual scene does not comprise the reference surface, executing the step of acquiring a first reference direction of the reference surface.
10. The method according to claim 9, wherein the method further comprises:
and hiding the direction indication mark when the three-dimensional virtual scene comprises the reference surface.
11. The method according to any one of claims 1-10, wherein the reference surface comprises a horizontal surface, a ground surface, a sea surface.
12. A direction indicating device in a game, characterized in that a graphical user interface is provided by a terminal device, and the content displayed by the graphical user interface comprises a three-dimensional virtual scene and a virtual object positioned in the three-dimensional virtual scene, comprising:
the acquisition module is used for acquiring a first reference direction of a reference surface in the three-dimensional game scene;
the first display module is used for displaying a direction indication mark pointing to the first reference direction at a preset position of the graphical user interface, wherein the direction indication mark is used for prompting a relative angle between a plane where the virtual object is located and the reference plane, and the first reference direction is a direction with a fixed position relation with the reference plane;
The rotating module is used for receiving a control instruction aiming at the virtual object, controlling the three-dimensional virtual scene to rotate relative to the virtual object, and determining a second reference direction of the reference surface after the relative rotation, wherein the second reference direction is a direction with a fixed position relation with the reference surface;
and the second display module is used for adjusting the indication direction of the direction indication mark according to the second reference direction so that the direction indication mark points to the second reference direction to prompt the relative angle change between the plane where the virtual object is located and the reference plane.
13. A terminal device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the terminal device is running, the processor executing the machine-readable instructions to implement the method of any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the method according to any of claims 1 to 11.
CN202111067871.1A 2021-09-13 2021-09-13 Direction indication method and device in game, electronic equipment and readable storage medium Active CN113750529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111067871.1A CN113750529B (en) 2021-09-13 2021-09-13 Direction indication method and device in game, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111067871.1A CN113750529B (en) 2021-09-13 2021-09-13 Direction indication method and device in game, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113750529A CN113750529A (en) 2021-12-07
CN113750529B true CN113750529B (en) 2024-05-28

Family

ID=78795114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111067871.1A Active CN113750529B (en) 2021-09-13 2021-09-13 Direction indication method and device in game, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113750529B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231753A (en) * 1996-08-14 1999-10-13 挪拉赫梅特·挪利斯拉莫维奇·拉都色夫 Method for following and imaging a subject's three-dimensional position and orientation, method for presenting a virtual space to a subject,and systems for implementing said methods
CN108499104A (en) * 2018-04-17 2018-09-07 腾讯科技(深圳)有限公司 Direction display method, device, electronic device in virtual scene and medium
CN108536374A (en) * 2018-04-13 2018-09-14 网易(杭州)网络有限公司 Virtual objects direction-controlling method and device, electronic equipment, storage medium
CN108702430A (en) * 2015-12-22 2018-10-23 汤姆逊许可公司 Method and apparatus for the difference sighted direction for controlling camera
CN109821238A (en) * 2019-03-29 2019-05-31 网易(杭州)网络有限公司 Method of sight and device in game, storage medium, electronic device
CN110465073A (en) * 2019-08-08 2019-11-19 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the readable storage medium storing program for executing that visual angle adjusts in virtual environment
CN111467803A (en) * 2020-04-02 2020-07-31 网易(杭州)网络有限公司 In-game display control method and device, storage medium, and electronic device
CN111773705A (en) * 2020-08-06 2020-10-16 网易(杭州)网络有限公司 Interaction method and device in game scene
CN112402976A (en) * 2020-11-24 2021-02-26 网易(杭州)网络有限公司 Game role control method, terminal, readable storage medium and electronic device
CN113144602A (en) * 2021-05-25 2021-07-23 网易(杭州)网络有限公司 Position indication method, position indication device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2048640A2 (en) * 2007-10-12 2009-04-15 Gruentjens, Norbert A method and an apparatus for controlling a simulated moving object
WO2019211950A1 (en) * 2018-05-02 2019-11-07 任天堂株式会社 Information processing program, information processing device, information processing system, and information processing method
CN110548288B (en) * 2019-09-05 2020-11-10 腾讯科技(深圳)有限公司 Virtual object hit prompting method and device, terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231753A (en) * 1996-08-14 1999-10-13 挪拉赫梅特·挪利斯拉莫维奇·拉都色夫 Method for following and imaging a subject's three-dimensional position and orientation, method for presenting a virtual space to a subject,and systems for implementing said methods
CN108702430A (en) * 2015-12-22 2018-10-23 汤姆逊许可公司 Method and apparatus for the difference sighted direction for controlling camera
CN108536374A (en) * 2018-04-13 2018-09-14 网易(杭州)网络有限公司 Virtual objects direction-controlling method and device, electronic equipment, storage medium
CN108499104A (en) * 2018-04-17 2018-09-07 腾讯科技(深圳)有限公司 Direction display method, device, electronic device in virtual scene and medium
CN109821238A (en) * 2019-03-29 2019-05-31 网易(杭州)网络有限公司 Method of sight and device in game, storage medium, electronic device
CN110465073A (en) * 2019-08-08 2019-11-19 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the readable storage medium storing program for executing that visual angle adjusts in virtual environment
CN111467803A (en) * 2020-04-02 2020-07-31 网易(杭州)网络有限公司 In-game display control method and device, storage medium, and electronic device
CN111773705A (en) * 2020-08-06 2020-10-16 网易(杭州)网络有限公司 Interaction method and device in game scene
CN112402976A (en) * 2020-11-24 2021-02-26 网易(杭州)网络有限公司 Game role control method, terminal, readable storage medium and electronic device
CN113144602A (en) * 2021-05-25 2021-07-23 网易(杭州)网络有限公司 Position indication method, position indication device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113750529A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN106502427B (en) Virtual reality system and scene presenting method thereof
KR102700830B1 (en) Method and electronic device for controlling unmanned aerial vehicle
US10429925B2 (en) Head-mounted display, information processing device, display control method, and program
US11074755B2 (en) Method, device, terminal device and storage medium for realizing augmented reality image
US11880956B2 (en) Image processing method and apparatus, and computer storage medium
US20170364146A1 (en) Method of providing a virtual space image subjected to blurring processing based on detected displacement, and system therefor
US20170076497A1 (en) Computer program for directing line of sight
CN108536374B (en) Virtual object direction control method and device, electronic equipment and storage medium
US20120007882A1 (en) Computer-readable storage medium having information processing program stored therein, information processing apparatus, information processing system, and information processing method
CN110833694B (en) Display control method and device in game
WO2015090421A1 (en) Method and system for providing information associated with a view of a real environment superimposed with a virtual object
JP2023520765A (en) Systems and methods for virtual and augmented reality
EP2281228B1 (en) Controlling virtual reality
CN107015654A (en) Air navigation aid and device based on augmented reality
WO2014108799A2 (en) Apparatus and methods of real time presenting 3d visual effects with stereopsis more realistically and substract reality with external display(s)
CN115298732A (en) System and method for multi-user virtual and augmented reality
CN110613933A (en) Skill release control method and device in game, storage medium and processor
CN108553895A (en) User interface element and the associated method and apparatus of three-dimensional space model
JP2012216073A (en) Image processor, image processor control method, and program
CN111569414A (en) Flight display method and device of virtual aircraft, electronic equipment and storage medium
JP4134191B2 (en) GAME DEVICE, CHARACTER DISPLAY METHOD, PROGRAM, AND RECORDING MEDIUM
CN110286906A (en) Method for displaying user interface, device, storage medium and mobile terminal
CN113750529B (en) Direction indication method and device in game, electronic equipment and readable storage medium
CN116501209A (en) Editing view angle adjusting method and device, electronic equipment and readable storage medium
CN109949396A (en) A kind of rendering method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant