CN111973984A - Coordinate control method and device for virtual scene, electronic equipment and storage medium - Google Patents

Coordinate control method and device for virtual scene, electronic equipment and storage medium Download PDF

Info

Publication number
CN111973984A
CN111973984A CN202010946208.8A CN202010946208A CN111973984A CN 111973984 A CN111973984 A CN 111973984A CN 202010946208 A CN202010946208 A CN 202010946208A CN 111973984 A CN111973984 A CN 111973984A
Authority
CN
China
Prior art keywords
virtual scene
coordinate
display screen
user interface
graphical user
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.)
Pending
Application number
CN202010946208.8A
Other languages
Chinese (zh)
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 CN202010946208.8A priority Critical patent/CN111973984A/en
Publication of CN111973984A publication Critical patent/CN111973984A/en
Pending legal-status Critical Current

Links

Images

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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/426Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • 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/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface
    • 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/807Role playing or strategy games

Abstract

The disclosure provides a coordinate control method of a virtual scene, a coordinate control device of the virtual scene, electronic equipment and a computer readable storage medium, and belongs to the technical field of computers. Presenting a graphical user interface through a terminal device, wherein a virtual scene is included in the graphical user interface, and the method comprises the following steps: providing a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene; responding to a first preset position of the coordinate control in the graphical user interface, and displaying absolute coordinates of a target position in the virtual scene; and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene. The method and the device can perform flexible conversion between absolute coordinates and relative coordinates according to the interactive operation of the player.

Description

Coordinate control method and device for virtual scene, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a coordinate control method for a virtual scene, a coordinate control device for a virtual scene, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of Game technology, games applied to intelligent terminals are more and more diversified, and in games such as MOBA (Multiplayer Online Battle Arena) and MMORPG (Massive Multiplayer Online Role Playing Game), virtual roles controlled by players generally move in a larger Game space. In an actual game process, in order to make an accurate game decision, a distance or a position of a certain position or a virtual object in a game scene often needs to be determined. Therefore, in most games, the specific positions of the points in the game map are represented in the form of coordinates.
In the prior art, when a specific position of each point in a game scene is represented, the specific position is generally identified by absolute coordinates. However, in practical applications, although the absolute coordinates can accurately display the coordinates of a specific location on a map, the absolute coordinates cannot clearly and quickly communicate the target position to teammates under different game environments.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a coordinate control method of a virtual scene, a coordinate control apparatus of a virtual scene, an electronic device, and a computer-readable storage medium, thereby overcoming, at least to some extent, a problem in the prior art that there is no effective conversion between absolute coordinates and relative coordinates.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a coordinate control method for a virtual scene, in which a graphical user interface including the virtual scene therein is presented through a terminal device, the method including: providing a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene; responding to a first preset position of the coordinate control in the graphical user interface, and displaying absolute coordinates of a target position in the virtual scene; and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene.
In an exemplary embodiment of the present disclosure, the displaying the relative coordinates of the target location in the virtual scene in response to the coordinate control moving from the first preset location to a second preset location within the graphical user interface includes: acquiring a scene position corresponding to the second preset position in the virtual scene; determining a relative coordinate system taking the scene position as a reference; and displaying the coordinates of the target position in the virtual scene in the relative coordinate system.
In an exemplary embodiment of the present disclosure, the second preset position is a quasi-star position of a virtual object controlled by the terminal device, or a scene position in a virtual scene corresponding to the second preset position is a position of the virtual object controlled by the terminal device in the virtual scene.
In an exemplary embodiment of the present disclosure, the displaying the relative coordinates of the target position in the virtual scene includes: and displaying the coordinates of the target position in the virtual scene in a relative coordinate system taking the virtual object as a reference.
In an exemplary embodiment of the present disclosure, in displaying the relative coordinates of the target position in the virtual scene, the method further includes: and displaying the distance between the target position in the virtual scene and the origin of the relative coordinate system.
In an exemplary embodiment of the present disclosure, the virtual scene is a 3D or 2.5D scene, the absolute coordinates are absolute spatial coordinates, and the relative coordinates are relative spatial coordinates.
In an exemplary embodiment of the present disclosure, the terminal device is a folding screen device, and the folding screen device includes a first display screen and a second display screen; the method further comprises the following steps: and when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene.
In an exemplary embodiment of the present disclosure, the displaying absolute coordinates of a target position in the virtual scene in response to the coordinate control being located at a first preset position in the graphical user interface includes: and when the included angle enters a second numerical value range, displaying the coordinate control at the first preset position, and displaying the absolute coordinate of the target position in the virtual scene.
In an exemplary embodiment of the present disclosure, the first preset position is located on a connection line between the first display screen and the second display screen, and a sliding axis of the coordinate control coincides with the connection line.
In an exemplary embodiment of the present disclosure, when the target position is displayed in planar coordinates in the virtual scene, the method further includes: displaying the virtual scene in the form of a map within the graphical user interface.
In an exemplary embodiment of the present disclosure, the target position comprises any selected position in the virtual scene.
According to a second aspect of the present disclosure, there is provided a coordinate control method of a virtual scene, in which a graphical user interface including the virtual scene therein is presented by a terminal device including a first display screen and a second display screen, the method including: when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene; when the response is made that the included angle between the first display screen and the second display screen is within a second numerical range, displaying the absolute coordinates of the target position in the virtual scene; and responding to a coordinate control to move from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinate of the target position in the virtual scene, wherein the coordinate control is displayed on the graphical user interface and is configured to switch the coordinate system mode of the virtual scene.
According to a third aspect of the present disclosure, there is provided a coordinate control apparatus of a virtual scene, which presents a graphical user interface including the virtual scene therein by a terminal device, the apparatus including: the control providing module is used for providing a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene; the first display module is used for responding to a first preset position of the coordinate control in the graphical user interface and displaying the absolute coordinates of the target position in the virtual scene; and the second display module is used for responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface and displaying the relative coordinate of the target position in the virtual scene.
In an exemplary embodiment of the present disclosure, the second display module includes: a position obtaining unit, configured to obtain a scene position in the virtual scene corresponding to the second preset position; a coordinate system determination unit for determining a relative coordinate system with the scene position as a reference; and the coordinate display unit is used for displaying the coordinates of the target position in the virtual scene in the relative coordinate system.
In an exemplary embodiment of the present disclosure, the second preset position is a quasi-star position of a virtual object controlled by the terminal device, or a scene position in a virtual scene corresponding to the second preset position is a position of the virtual object controlled by the terminal device in the virtual scene.
In an exemplary embodiment of the present disclosure, the second display module includes: and the second display unit is used for displaying the coordinates of the target position in the virtual scene in a relative coordinate system taking the virtual object as a reference.
In an exemplary embodiment of the present disclosure, the coordinate control apparatus of a virtual scene further includes: and the distance display module is used for displaying the distance between the target position in the virtual scene and the origin of the relative coordinate system when the relative coordinate of the target position in the virtual scene is displayed.
In an exemplary embodiment of the present disclosure, the virtual scene is a 3D or 2.5D scene, the absolute coordinates are absolute spatial coordinates, and the relative coordinates are relative spatial coordinates.
In an exemplary embodiment of the present disclosure, the terminal device is a folding screen device, and the folding screen device includes a first display screen and a second display screen; the coordinate control device of the virtual scene further includes: and the third display module is used for displaying the plane coordinate of the target position in the virtual scene when the included angle between the first display screen and the second display screen is within a first numerical range.
In an exemplary embodiment of the present disclosure, a first display module includes: and the numerical value judging unit is used for displaying the coordinate control at the first preset position and displaying the absolute coordinate of the target position in the virtual scene when the included angle enters a second numerical value range.
In an exemplary embodiment of the present disclosure, the first preset position is located on a connection line between the first display screen and the second display screen, and a sliding axis of the coordinate control coincides with the connection line.
In an exemplary embodiment of the present disclosure, the coordinate control apparatus of a virtual scene further includes: and the map display module is used for displaying the virtual scene in the form of a map in the graphical user interface when the target position is displayed in the virtual scene in a plane coordinate.
In an exemplary embodiment of the present disclosure, the target position comprises any selected position in the virtual scene.
According to a fourth aspect of the present disclosure, there is provided a coordinate control apparatus for a virtual scene, wherein a terminal device presents a graphical user interface including a virtual scene therein, the terminal device includes a first display screen and a second display screen, the apparatus includes: the plane coordinate display module is used for responding to the situation that the included angle between the first display screen and the second display screen is within a first numerical range, and displaying the plane coordinate of the target position in the virtual scene; the absolute coordinate display module is used for responding to the fact that the included angle between the first display screen and the second display screen is within a second numerical value range, and displaying the absolute coordinates of the target position in the virtual scene; and the relative coordinate display module is used for responding to a coordinate control to move from the first preset position to a second preset position in the graphical user interface and displaying the relative coordinate of the target position in the virtual scene, wherein the coordinate control is displayed on the graphical user interface, and the coordinate control is configured to switch the coordinate system mode of the virtual scene.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any one of the above via execution of the executable instructions.
According to a sixth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
providing a coordinate control through a graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene; responding to a first preset position of the coordinate control in the graphical user interface, and displaying absolute coordinates of a target position in the virtual scene; and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene. On one hand, the exemplary embodiment can realize switching of different coordinate display states according to different game scene requirements in the game process through interactive operation of the player and the terminal device, and is beneficial to the player to acquire richer game information and make effective game decisions; on the other hand, the conversion process between the absolute coordinates and the relative coordinates is simple, the learning cost is low, the operation flow of the player is simplified, and good game experience is provided for the player; on the other hand, through the switching between the absolute coordinates and the relative coordinates, the player can not only accurately acquire the specific directions of all the positions in the game according to the absolute coordinates, but also perform other control operations through the relative coordinates, and the game machine has stronger functionality and wider application range.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically shows a flowchart of a coordinate control method of a virtual scene in the present exemplary embodiment;
FIG. 2 schematically illustrates a diagram of one relative coordinate representation method in the present exemplary embodiment;
fig. 3 schematically illustrates a sub-flowchart of a coordinate control method of a virtual scene in the present exemplary embodiment;
fig. 4 is a schematic diagram schematically illustrating a virtual scene coordinate control method in a folding screen device in the present exemplary embodiment;
fig. 5 is a schematic view schematically showing another virtual scene coordinate control method in the folding screen device in the present exemplary embodiment;
fig. 6 is a schematic view schematically illustrating a virtual scene coordinate control method in a folding screen device according to still another exemplary embodiment;
fig. 7 schematically shows a flowchart of a coordinate control method of another virtual scene in the present exemplary embodiment;
fig. 8 is a block diagram schematically showing the configuration of a coordinate control apparatus of a virtual scene in the present exemplary embodiment;
fig. 9 is a block diagram schematically showing the configuration of a coordinate control apparatus of another virtual scene in the present exemplary embodiment;
fig. 10 schematically illustrates an electronic device for implementing the above method in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The coordinate control method of the virtual scene in one embodiment of the present disclosure may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the coordinate control method of the virtual scene runs on the server, the coordinate control method of the virtual scene can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and the operation of the coordinate control method of the virtual scene are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, 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; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a 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, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
An exemplary embodiment of the present disclosure first provides a coordinate control method of a virtual scene, in which a graphical user interface is presented through a terminal device, and the graphical user interface includes the virtual scene therein. The terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in the cloud interaction system. The graphical user interface refers to a game interface displayed in a display screen of a terminal device, and the terminal device includes but is not limited to an electronic device such as a smart phone, a tablet computer, and a game console.
The application scenarios of the present exemplary embodiment may be: in the class games such as FPS (First-Person Shooting Game), MOBA, and MMORPG, positions where virtual articles (such as ammunition, equipment, props, etc.), virtual objects (such as Game characters operated by a player, etc.), or other elements (such as buildings, plants, etc.) in a Game scene are located, or positions of specific points in a map are expressed by absolute coordinates and relative coordinates, so that the player can make Game decisions and the like according to coordinate information. It should be understood that the above game types are for illustrative purposes only and the present disclosure is not limited thereto.
The exemplary embodiment is further described with reference to fig. 1, and as shown in fig. 1, the coordinate control method of the virtual scene may include the following steps S110 to S130:
step S110, providing a coordinate control through a graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene.
The virtual scene refers to a game scene in a game interface presented in a display screen. The exemplary embodiment may be applied to various types of terminal devices, such as a curved-screen terminal device, a folding-screen terminal device, or a flat-screen terminal device, and the virtual scene may present various dimensions according to different terminal devices, for example, the virtual scene may be presented in a 2D (2-Dimensional ), 3D (2-Dimensional, 3-Dimensional), or 2.5D (2-Dimensional, 2.5-Dimensional) form. The coordinate control is a virtual control for performing coordinate conversion between absolute coordinates, relative coordinates, or plane coordinates, and may be displayed in various forms, for example, by a custom icon or coordinate axis identifier. The coordinate control can be displayed at any position in the graphical user interface, when the coordinate control is at different display positions, the absolute coordinates, the relative coordinates or the plane coordinates of any position or any object in the virtual scene can be displayed, and a player can realize the switching of the coordinate system mode of the virtual scene by controlling the coordinate control.
And step S120, responding to a first preset position of the coordinate control in the graphical user interface, and displaying the absolute coordinates of the target position in the virtual scene.
When the coordinate control is located at a first preset position in the graphical user interface, the state of displaying absolute coordinates can be entered, and at this time, the coordinates of any position or any object in the virtual scene can be displayed in the form of absolute coordinates. Absolute coordinates, i.e. coordinates in the world coordinate system in the game. In a world coordinate system, all virtual objects in a virtual scene conform to a uniform coordinate system, each coordinate in the coordinate system marks a unique position and direction of each point in a game, and in a two-dimensional space, the coordinate of each point can be represented by (x, y), wherein x can represent the coordinate in the east direction in the virtual scene, y can represent the coordinate in the north direction in the virtual scene, and the like; in the three-dimensional space, the coordinates of each point may be represented by (x, y, z), where x may represent an eastward coordinate in the virtual scene, y may represent a northward coordinate in the virtual scene, and so on, and z may represent an altitude in the virtual scene (with the lowest bottom of the lower bound in the virtual scene as a zero point), for example, (12, 56, 163) may uniquely represent a specific location in the three-dimensional virtual scene, which is located at 12 coordinate units with the origin eastward, 56 coordinate units with the northward direction, and 163 coordinate units with the altitude. It should be noted that the above coordinate representation is only an exemplary illustration, and x may also be used to represent a coordinate in a west direction in a virtual scene, or z may also be used to represent a coordinate in a north direction, and the disclosure is not limited thereto.
The first preset position is a position used for triggering display of absolute coordinates of a target position in the virtual scene, and may be a fixed position, such as a midpoint position of any side edge of the display screen, or a center position of the display screen; or an area range, for example, an area with a preset size is set on the left side of the display screen, and when the coordinate control is located in the area, all the areas are regarded as being at the first preset position, and so on. The first preset position can be set by a user according to the requirements of a player, can also be set in advance by a developer, and the like.
In the present exemplary embodiment, when the coordinate control is located at the first preset position, the absolute coordinates of the target position in the virtual scene may be displayed. The target position may be any position in the virtual scene, for example, absolute coordinates of all virtual objects in the game interface may be displayed; or may also display the absolute coordinates of the virtual objects included in a specific range within the virtual scene, for example, display the absolute coordinates of other virtual characters within a preset range around the virtual character controlled by the player; in an exemplary embodiment, the target position includes any selected position in the virtual scene, for example, when a player performs a single click, a double click, a long press, or the like on an object in the virtual scene as required, the position where the object is located is determined as the target position, and the absolute coordinates of the position are displayed; the position of the player can also be directly used as a target position, and corresponding absolute coordinates and the like are displayed, which is not specifically limited by the disclosure.
Step S130, responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene.
The second preset position is a position for triggering display of a relative coordinate of the target position in the virtual scene, and may be a fixed position, such as a central position in the graphical user interface; or a region range, for example, a region with a preset size is set at the center of the graphical user interface, and when the coordinate control is located in the region, the coordinate control is regarded as being at a second preset position, and so on. It should be noted that the second preset position has a different function from the first preset position, and therefore the two positions do not coincide.
When the coordinate control moves from the first preset position to the second preset position in the graphical user interface, any position in the virtual scene or any object position may be displayed in the form of relative coordinates. Relative coordinates, i.e. the local coordinate system, may represent the relative position and orientation of a certain virtual object or position with respect to another virtual object or position in the virtual scene. In the relative coordinate system, when a virtual object has a parent object, the position of the virtual object relative to the parent object is not changed as a child object regardless of the change of the position rotation and the scaling of the parent object; when a virtual object has no parent object, the 'world' can be taken as its parent object, and all position changes of the virtual object in the world can be regarded as relative position changes with the world. Due to different reference standards of respective coordinate systems of the virtual objects, the same virtual object can display different position information in different local coordinate systems. As shown in fig. 2, the virtual scene includes a virtual character a, a virtual character B, and a virtual character C, and a relative coordinate system may be established with the virtual character a as a reference to display the relative coordinates of the virtual character B and the virtual character C with respect to the virtual character a, or a relative coordinate system may be established with the virtual character B as a reference to display the relative coordinates of the virtual character a and the virtual character C; or establishing a relative coordinate system by taking the virtual character C as a reference, displaying the relative coordinates of the virtual character A and the virtual character B, and the like. In the case of representing the relative coordinates, usually, a "-" is added in front of the coordinates, for example, in a 3D virtual scene, when the position of the virtual object a is taken as a reference, the relative coordinates "-1 to 2" may represent that the virtual object b is located at a position of one unit coordinate east and one unit coordinate north relative to the virtual object a, and 2 unit coordinates above the space altitude. The relative coordinates may be used for information that a player sends commands or other instructions to other players to facilitate movement of other players based on the relative coordinates. Absolute coordinates and relative coordinates, different coordinate information may be provided to the player in different game scenarios.
In this exemplary embodiment, moving the coordinate control from the first preset position to the second preset position may include a plurality of operation manners, for example, moving the coordinate control is achieved by a player performing an interactive operation such as sliding, long-pressing, or dragging on the coordinate control within the graphical user interface.
The exemplary embodiment may be applied to a 2D virtual scene, and correspondingly, when the coordinate control is located at a first preset position, the absolute plane coordinate of the target position in the virtual scene is displayed, and when the coordinate control is located at a second preset position, the relative plane coordinate of the target position in the virtual scene is displayed. In addition, the exemplary embodiment may also be applied to a 3D or 2.5D game, where the virtual scene is a 3D or 2.5D scene, and correspondingly, the absolute coordinates are absolute spatial coordinates, and the relative coordinates are relative spatial coordinates.
In an exemplary embodiment, as shown in fig. 3, the step S130 may include the following steps:
step S310, acquiring a scene position corresponding to a second preset position in the virtual scene;
step S320, determining a relative coordinate system taking the scene position as a reference;
and step S330, displaying the coordinates of the target position in the virtual scene in the relative coordinate system.
In this exemplary embodiment, the scene position corresponding to the second preset position may be any position in the virtual scene, when the coordinate control is moved to the second preset position, the scene position corresponding to the moved position may be used as a reference, the relative coordinate of the target position with respect to the scene position in the relative coordinate system with the scene position as a reference is determined, and the target position is displayed in the graphical user interface, for example, the second preset position is set as a central position of the graphical user interface, when the player moves the coordinate control to the central position, the scene position on the graphical user interface where the central position corresponds to the virtual scene position is acquired, and the relative coordinate of the target position with respect to the scene position is displayed, and the like.
In an exemplary embodiment, the second preset position may be a front sight position of a virtual object controlled by the terminal device, or a scene position in a virtual scene corresponding to the second preset position is a position of the virtual object controlled by the terminal device in the virtual scene.
The second preset position may be configured to be different types of positions according to different usage habits and requirements of players in different types of games. In many games, the operation interface provides a quasi-star control for a player to control the game, for example, in an FPS game, the quasi-star control is included in a visual angle of the player to provide control actions such as aiming, shooting, or reconnaissance for the player, and the second preset position may be a quasi-star position for controlling a virtual object (e.g., a virtual character used by the player), and when the player operates the virtual object, the quasi-star is moved to any position in the graphical user interface, and the position may serve as the second preset position, and further, by controlling the virtual control to the position, display of relative coordinates of a target position may be achieved. In addition, the second preset position may also be a position of a virtual object (such as a virtual character used by a player) in a virtual scene, for example, in an MOBA-type game, the player may control the virtual object to move in the virtual scene, and when the second preset position is set as the position of the virtual object controlled by the terminal device in the virtual scene, the coordinate control may be moved to the position of the virtual object controlled by the terminal device, so as to display the relative coordinates of the target position. The two second preset positions are set based on normal control operation of the player in the game interface, so that the display of the relative coordinates of the target position can be simply and conveniently realized in the game process of the player, the operation complexity of the player cannot be increased, and the normal progress of the game is not influenced.
In another exemplary embodiment, the displaying the relative coordinates of the target position in the virtual scene in step S140 may include:
and displaying the coordinates of the target position in the virtual scene in a relative coordinate system taking the virtual object as a reference.
The virtual object may be a virtual object such as a virtual character or a virtual article currently operated by the player, or may be another virtual character having a relationship with the virtual character currently operated by the player, for example, a virtual character operated by a teammate or a pet or a seat bound to the current virtual character. In the present exemplary embodiment, the relative coordinates of the target position with respect to the virtual object may be displayed with the virtual object as a reference.
Based on the above description, in the present exemplary embodiment, a coordinate control is provided through a graphical user interface, where the coordinate control is configured to switch a coordinate system mode of a virtual scene; responding to a first preset position of the coordinate control in the graphical user interface, and displaying absolute coordinates of a target position in the virtual scene; and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene. On one hand, the exemplary embodiment can realize switching of different coordinate display states according to different game scene requirements in the game process through interactive operation of the player and the terminal device, and is beneficial to the player to acquire richer game information and make effective game decisions; on the other hand, the conversion process between the absolute coordinates and the relative coordinates is simple, the learning cost is low, the operation flow of the player is simplified, and good game experience is provided for the player; on the other hand, through the switching between the absolute coordinates and the relative coordinates, the player can not only accurately acquire the specific directions of all the positions in the game according to the absolute coordinates, but also perform other control operations through the relative coordinates, and the game machine has stronger functionality and wider application range.
In an exemplary embodiment, when the relative coordinates of the target position in the virtual scene are displayed, the coordinate control method of the virtual scene may further include:
the distance between the target location in the virtual scene and the origin of the relative coordinate system is displayed.
In order to enable the player to obtain more effective and rich information in the game, in addition to displaying the relative coordinates of the target position in the relative coordinate system, the exemplary embodiment may also display the distance between the target position in the virtual scene and the origin of the relative coordinate system, so that the player can make effective distance determination for each virtual object in the virtual scene.
In an exemplary embodiment, the terminal device is a folding screen device, and the folding screen device comprises a first display screen and a second display screen;
the coordinate control method of the virtual scene may further include the steps of:
and when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene.
The folding screen device may generally include a first display screen and a second display screen, and a hinge or other connection device is disposed between the first display screen and the second display screen, so that the folding screen device may be folded or unfolded, for example, when the folding screen device is in a folded state, an included angle between the first display screen and the second display screen may be 90 °; when the folding screen device is in the unfolded state, an included angle between the first display screen and the second display screen can be 180 degrees and the like.
When the included angle between the first display screen and the second display screen is within the first numerical range, the absolute coordinate or the relative coordinate of the target position can be represented in the form of a planar coordinate, for example, the coordinate of each point in the virtual scene can be represented by a coordinate (x, y). The first numerical range refers to a threshold criterion for determining whether the display plane coordinates are met, in the present exemplary embodiment, since the plane coordinates of the target position are displayed, the folding included angle of the folding screen device needs to be approximately maintained on the same plane as the first display screen and the second display screen, for example, the first numerical range may be set to [175 °, 180 ° ], [175 °, 185 ° ] or [170 °, 180 ° ], and the specific numerical range may be customized as required, which is not specifically limited by the present disclosure.
In an exemplary embodiment, when the target position is displayed in a plane coordinate in a virtual scene, the coordinate control method of the virtual scene may further include:
the virtual scene is displayed in the form of a map within the graphical user interface.
That is, a map of a virtual scene may be displayed in the game interface, and a player may determine a target position and the like by performing an interactive operation on a certain position, such as a click, a double click, and the like, or may analyze the overall view of the current virtual scene according to the map.
In an exemplary embodiment, the step S120 may include:
and when the included angle enters a second numerical value range, displaying a coordinate control at a first preset position, and displaying the absolute coordinate of the target position in the virtual scene.
The second numerical range refers to a threshold criterion for determining whether to display the absolute coordinates of the target position in the virtual scene. When the folding screen device is in a folding state, the folding included angle enters a second numerical value range, and the coordinate control is in a first preset position, the absolute coordinate of the target position in the current virtual scene is triggered and displayed. The second numerical range may refer to a range in which the folding degree of the first display screen and the second display screen is obvious when the folding screen is folded, for example, the second numerical range may be set to [80 °, 90 ° ], [70 °, 90 ° ] or [80 °, 100 ° ], and the like, and the specific numerical range may be set by user as needed, which is not specifically limited in the present disclosure.
In the exemplary embodiment, it may be set that when the included angle is within the second numerical range, the coordinate control is set to be placed at the first preset position by default, for example, when the included angle of the folding screen is 180 °, the absolute plane coordinate of the target position is displayed, and when the included angle of the folding screen is 90 °, the coordinate control is triggered to appear at the first preset position, and the absolute space coordinate of the target position is displayed.
In an exemplary embodiment, the first preset position is located on a connection line of the first display screen and the second display screen, and the sliding axis of the coordinate control coincides with the connection line.
For example, as shown in FIG. 4, FIG. 4 is a schematic diagram of a folded screen device in an unfolded state where the angle between the first display screen 410 and the second display screen 420 is within a first range of values, such as 180, in which the plane coordinates of the target location are displayed. As shown in fig. 5, when the folding screen device enters a folded state, a viewing angle changes correspondingly, and is converted from a 2D virtual scene to a 3D virtual scene, an included angle between the first display screen 410 and the second display screen 420 enters a second numerical range, for example, 90 °, the coordinate control N is located at the first preset position S, and in this state, an absolute coordinate of the target position in the 3D virtual scene is displayed; as shown in fig. 6, when the player moves the coordinate control N from the first preset position S to the second preset position P, the relative coordinates of the target position in the 3D virtual scene may be displayed. The first preset position and the second preset position may be both located on a connection line between the first display screen and the second display screen, for example, as shown in fig. 5 and 6, the first preset position is located at a left terminal position of the connection line, the second preset position is located at a midpoint position of the connection line, and the like. When the coordinate control N moves, the moving track of the coordinate control N is on the connecting line of the first display screen and the second display screen, namely the sliding axis of the coordinate control is overlapped with the connecting line. In the present exemplary embodiment, when in the state of fig. 6, if the player slides the coordinate control to the left again to the first preset position, as shown in fig. 5, the absolute coordinates of the target position may be displayed again, and the folding screen device is directly unfolded, as shown in fig. 4, the plane coordinates of the target position may be displayed again. It should be noted that the identifier of the coordinate control N may be changed according to different virtual scenes, for example, in fig. 4, fig. 5, and fig. 6, the coordinate control N has a certain difference in different virtual scenes or in different modes.
The exemplary embodiment of the present disclosure further provides another coordinate control method for a virtual scene, where a graphical user interface may be presented through a terminal device, where the graphical user interface includes a virtual scene, and the virtual scene refers to a game scene terminal device in a game interface presented in a display screen, where the game scene terminal device includes a first display screen and a second display screen, for example, the first display screen and the second display screen that can be opened or closed in a folding screen terminal. As shown in fig. 7, the following steps S710 to S730 may be included:
step S710, when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene.
In the terminal equipment which comprises a first display screen and a second display screen and can be bent or folded, the first display screen and the second display screen can be connected through a hinge or other movable linking devices to be folded or unfolded, an included angle can be included between the two display screens when the first display screen and the second display screen are folded or unfolded correspondingly, and the first numerical range refers to a preset included angle range for displaying a target position plane coordinate. When the included angle between the first display screen and the second display screen is within a first numerical range, the plane coordinates of the target position in the virtual scene can be displayed. Wherein, the target position may be any position in the virtual scene, for example, the positions of all virtual objects; or the position of a virtual object included within a particular range within the virtual scene, etc. Coordinates (x, y) may characterize the position of any point in the virtual scene, where x represents a horizontal coordinate and y represents a vertical coordinate.
Since the plane coordinates of the target position are displayed when the included angle is within the first numerical range, the folding included angle of the folding screen device needs to keep the first display screen and the second display screen approximately on the same plane, for example, the first numerical range may be set to [175 °, 180 ° ], [175 °, 185 ° ] or [170 °, 180 ° ], and the specific numerical range may be set by a user as needed, which is not specifically limited by the present disclosure.
And S720, displaying the absolute coordinates of the target position in the virtual scene when the response is that the included angle between the first display screen and the second display screen is within the second numerical range.
The second numerical range is a preset included angle range used for judging whether absolute coordinates of the target position in the virtual scene are displayed or not, and when the folding included angle between the first display screen and the second display screen enters the second numerical range, the absolute coordinates of the target position in the virtual scene can be displayed. In this exemplary embodiment, the second numerical range refers to a range in which the folding degree of the first display screen and the second display screen is obvious when the folding screen is folded, for example, the second numerical range may be set to [80 °, 90 ° ], [70 °, 90 ° ] or [80 °, 100 ° ], and the specific numerical range may be set by user as needed, which is not specifically limited in this disclosure.
Step S730, responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, displaying the relative coordinates of the target position in the virtual scene,
and the coordinate control is displayed on the graphical user interface and is configured to switch the coordinate system mode of the virtual scene.
The coordinate control is a virtual control for performing coordinate conversion between absolute coordinates, relative coordinates, or plane coordinates, and may be displayed in various forms, for example, by a custom icon or coordinate axis identifier. The coordinate control can be displayed at any position in the graphical user interface, when the coordinate control is at different display positions, the absolute coordinates, the relative coordinates or the plane coordinates of any position or any object in the virtual scene can be displayed, and a player can realize the switching of the coordinate system mode of the virtual scene by controlling the coordinate control.
In the present exemplary embodiment, the first preset position may be a fixed position, such as a midpoint position of any one side edge of the display screen, or a center position of the display screen; or an area range, for example, an area with a preset size is arranged on the left side of the display screen. The second preset position is a position used for triggering display of a relative coordinate of the target position in the virtual scene, and when the coordinate control moves from the first preset position to the second preset position in the graphical user interface, any position or position of any object in the virtual scene can be displayed in a form of the relative coordinate. The second predetermined position may be a fixed position, such as a center position within the graphical user interface; or a region range, for example, a region with a preset size is set at the center of the graphical user interface, and when the coordinate control is located in the region, the coordinate control is regarded as being at a second preset position, and so on. It should be noted that the second preset position has a different function from the first preset position, and therefore the two positions do not coincide. When the coordinate control is at the first preset position, the absolute coordinates of the target position in the virtual scene may be displayed at this time.
The exemplary embodiment can realize the interconversion of the target position coordinate system mode in the virtual scene through the folding operation of the first display screen and the second display screen and the interactive operation of the player and the terminal equipment in the terminal equipment with the first display screen and the second display screen.
Taking a folded screen device including a first display screen and a second display screen as an example, as shown in fig. 4, fig. 4 is a schematic diagram illustrating an unfolded state of the folded screen device, in which when a folding angle between the first display screen 410 and the second display screen 420 enters a first numerical range, for example, 180 °, a plane coordinate of a target position in a virtual scene may be displayed.
As shown in fig. 5, when the folding screen device enters the folding state and the folding angle between the first display screen 410 and the second display screen 420 enters a second numerical range, for example, 90 °, the absolute coordinates of the target position in the virtual scene may be displayed.
Further, if the first preset position is set as the position S in fig. 5, and the second preset position is set as the position P in fig. 6, as shown in fig. 5 and fig. 6, when the player moves the coordinate control N from the first preset position S to the second preset position P, at this time, the relative coordinates of the target position in the virtual scene may be displayed. In this example embodiment, the first preset position and the second preset position may be both located on a connection line between the first display screen and the second display screen, for example, as shown in fig. 5 and 6, the first preset position is located at a left terminal position of the connection line, the second preset position is located at a midpoint position of the connection line, and the like, and in addition, the first preset position and the second preset position may also be located at other positions of the connection line, which is not specifically limited by the present disclosure. When the coordinate control N moves, the moving track of the coordinate control N is on the connecting line of the first display screen and the second display screen, namely the sliding axis of the coordinate control is overlapped with the connecting line.
It should be noted that, when the coordinate control N is at the position P in fig. 6, that is, when the coordinate control N is currently in a state of displaying the relative coordinates of the target position, if the player slides the coordinate control N to the first preset position S again to the left, as shown in fig. 5, the absolute coordinates of the target position may be displayed again, and if the folding screen device is directly unfolded, as shown in fig. 4, the plane coordinates of the target position may be displayed again. In addition, the identifier of the coordinate control N may be changed according to different virtual scenes, for example, in fig. 4, 5, and 6, the coordinate control N has a certain difference in different virtual scenes or in different modes.
Based on the above description, in the present exemplary embodiment, in response to the angle between the first display screen and the second display screen being within the first numerical range, the plane coordinates of the target position in the virtual scene are displayed; when the response is that the included angle between the first display screen and the second display screen is within a second numerical range, displaying the absolute coordinates of the target position in the virtual scene; and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene, wherein the coordinate control is displayed on the graphical user interface and is configured to switch the coordinate system mode of the virtual scene. On one hand, the exemplary embodiment can realize switching of different coordinate display states according to different game scene requirements in the game process through interactive operation of the player and the terminal device, and is beneficial to the player to acquire richer game information and make effective game decisions; on the other hand, in the exemplary embodiment, the characteristic that the first display screen and the second display screen have the included angle when being folded is combined, conversion among absolute coordinates, relative coordinates and plane coordinates is performed by controlling the size of the included angle, the switching process is simple, the learning cost is low, the operation flow of the player is simplified, the game operation of the player in the game is not influenced, and good game experience is provided for the player; on the other hand, through the switching between the absolute coordinates and the relative coordinates, the player can not only accurately acquire the specific directions of all the positions in the game according to the absolute coordinates, but also perform other control operations through the relative coordinates, and the game machine has stronger functionality and wider application range.
Exemplary embodiments of the present disclosure also provide a coordinate control apparatus of a virtual scene. Presenting a graphical user interface through a terminal device, wherein the graphical user interface includes a virtual scene, and referring to fig. 8, the apparatus 800 may include a control providing module 810 configured to provide a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene; a first display module 820, configured to display an absolute coordinate of a target position in a virtual scene in response to a first preset position of the coordinate control in the graphical user interface; and the second display module 830, configured to display the relative coordinates of the target position in the virtual scene in response to the coordinate control moving from the first preset position to a second preset position in the graphical user interface.
In an exemplary embodiment, the second display module includes: the position acquisition unit is used for acquiring a scene position corresponding to a second preset position in the virtual scene; a coordinate system determination unit for determining a relative coordinate system with the scene position as a reference; and the coordinate display unit is used for displaying the coordinates of the target position in the virtual scene in the relative coordinate system.
In an exemplary embodiment, the second preset position is a front sight position of a virtual object controlled by the terminal device, or a scene position in the virtual scene corresponding to the second preset position is a position of the virtual object controlled by the terminal device in the virtual scene.
In an exemplary embodiment, the second display module includes: and the second display unit is used for displaying the coordinates of the target position in the virtual scene in a relative coordinate system taking the virtual object as a reference.
In an exemplary embodiment, the coordinate control apparatus of a virtual scene further includes: and the distance display module is used for displaying the distance between the target position in the virtual scene and the origin of the relative coordinate system when the relative coordinates of the target position in the virtual scene are displayed.
In an exemplary embodiment, the virtual scene is a 3D or 2.5D scene, the absolute coordinates are absolute spatial coordinates, and the relative coordinates are relative spatial coordinates.
In an exemplary embodiment, the terminal device is a folding screen device, and the folding screen device comprises a first display screen and a second display screen; the coordinate control device of the virtual scene further includes: and the third display module is used for displaying the plane coordinate of the target position in the virtual scene when the included angle between the first display screen and the second display screen is within the first numerical range.
In an exemplary embodiment, the first display module includes: and the numerical value judging unit is used for displaying a coordinate control at the first preset position and displaying the absolute coordinate of the target position in the virtual scene when the included angle enters a second numerical value range.
In an exemplary embodiment, the first preset position is located on a connection line of the first display screen and the second display screen, and the sliding axis of the coordinate control coincides with the connection line.
In an exemplary embodiment, the coordinate control apparatus of a virtual scene further includes: and the map display module is used for displaying the virtual scene in the form of a map in the graphical user interface when the target position is displayed in the virtual scene in a plane coordinate.
In an exemplary embodiment, the target location comprises any selected location in the virtual scene.
Exemplary embodiments of the present disclosure also provide a coordinate control apparatus of a virtual scene. Referring to fig. 9, the apparatus 900 may include a plane coordinate display module 910, configured to display a plane coordinate of a target position in a virtual scene in response to an included angle between a first display screen and a second display screen being within a first numerical range; an absolute coordinate display module 920, configured to display an absolute coordinate of a target position in the virtual scene in response to an included angle between the first display screen and the second display screen being within a second numerical range; and a relative coordinate display module 930, configured to display a relative coordinate of the target position in the virtual scene in response to the coordinate control moving from the first preset position to a second preset position in the graphical user interface, where the coordinate control is displayed in the graphical user interface and the coordinate control is configured to switch a coordinate system mode of the virtual scene.
The specific details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiment of the method section, and the details that are not disclosed may refer to the contents of the embodiment of the method section, and therefore are not described herein again.
Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above method.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, a bus 1030 connecting different system components (including the memory unit 1020 and the processing unit 1010), and a display unit 1040.
Where the storage unit stores program code that may be executed by the processing unit 1010 to cause the processing unit 1010 to perform the steps according to various exemplary embodiments of the present disclosure as described in the "exemplary methods" section above in this specification. For example, the processing unit 1010 may perform steps S110 to S130 shown in fig. 1, and the like.
The memory unit 1020 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)1021 and/or a cache memory unit 1022, and may further include a read-only memory unit (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may be any one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, and a local bus using any of a variety of bus architectures.
The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1060. As shown, the network adapter 1060 communicates with the other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
Exemplary embodiments of the present disclosure also provide a program product for implementing the above method, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit according to an exemplary embodiment of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (16)

1. A coordinate control method of a virtual scene is characterized in that a graphical user interface is presented through a terminal device, the graphical user interface comprises the virtual scene, and the method comprises the following steps:
providing a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene;
responding to a first preset position of the coordinate control in the graphical user interface, and displaying absolute coordinates of a target position in the virtual scene;
and responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinates of the target position in the virtual scene.
2. The method of claim 1, wherein displaying the relative coordinates of the target location in the virtual scene in response to the coordinate control moving from the first preset location to a second preset location within the graphical user interface comprises:
acquiring a scene position corresponding to the second preset position in the virtual scene;
determining a relative coordinate system taking the scene position as a reference;
and displaying the coordinates of the target position in the virtual scene in the relative coordinate system.
3. The method according to claim 1, wherein the second preset position is a quasi-star position of a virtual object controlled by the terminal device, or a scene position in a virtual scene corresponding to the second preset position is a position of the virtual object controlled by the terminal device in the virtual scene.
4. The method of claim 3, wherein displaying the relative coordinates of the location of the target in the virtual scene comprises:
and displaying the coordinates of the target position in the virtual scene in a relative coordinate system taking the virtual object as a reference.
5. The method of claim 2 or 4, wherein in displaying the relative coordinates of the target location in the virtual scene, the method further comprises:
and displaying the distance between the target position in the virtual scene and the origin of the relative coordinate system.
6. The method of claim 1, wherein the virtual scene is a 3D or 2.5D scene, the absolute coordinates are absolute spatial coordinates, and the relative coordinates are relative spatial coordinates.
7. The method according to claim 6, wherein the terminal device is a folding screen device, the folding screen device comprising a first display screen and a second display screen;
the method further comprises the following steps:
and when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene.
8. The method of claim 7, wherein displaying absolute coordinates of a target location in the virtual scene in response to the coordinate control being located at a first predetermined location within the graphical user interface comprises:
and when the included angle enters a second numerical value range, displaying the coordinate control at the first preset position, and displaying the absolute coordinate of the target position in the virtual scene.
9. The method of claim 8, wherein the first predetermined position is located on a connection line of the first display screen and the second display screen, and a sliding axis of the coordinate control coincides with the connection line.
10. The method of claim 7, wherein when the target location is displayed in planar coordinates in the virtual scene, the method further comprises:
displaying the virtual scene in the form of a map within the graphical user interface.
11. The method of any one of claims 1 to 10, wherein the target location comprises any selected location in the virtual scene.
12. A coordinate control method of a virtual scene is characterized in that a graphical user interface is presented through a terminal device, the graphical user interface comprises the virtual scene, the terminal device comprises a first display screen and a second display screen, and the method comprises the following steps:
when the included angle between the first display screen and the second display screen is within a first numerical range, displaying the plane coordinates of the target position in the virtual scene;
when the response is made that the included angle between the first display screen and the second display screen is within a second numerical range, displaying the absolute coordinates of the target position in the virtual scene;
and responding to a coordinate control to move from the first preset position to a second preset position in the graphical user interface, and displaying the relative coordinate of the target position in the virtual scene, wherein the coordinate control is displayed on the graphical user interface and is configured to switch the coordinate system mode of the virtual scene.
13. A coordinate control apparatus of a virtual scene, wherein a graphical user interface including the virtual scene therein is presented by a terminal device, the apparatus comprising:
the control providing module is used for providing a coordinate control through the graphical user interface, wherein the coordinate control is configured to switch a coordinate system mode of the virtual scene;
the first display module is used for responding to a first preset position of the coordinate control in the graphical user interface and displaying the absolute coordinates of the target position in the virtual scene;
and the second display module is used for responding to the movement of the coordinate control from the first preset position to a second preset position in the graphical user interface and displaying the relative coordinate of the target position in the virtual scene.
14. A coordinate control apparatus of a virtual scene, wherein a graphical user interface is presented through a terminal device, the graphical user interface including the virtual scene therein, the terminal device including a first display screen and a second display screen, the apparatus comprising:
the plane coordinate display module is used for responding to the situation that the included angle between the first display screen and the second display screen is within a first numerical range, and displaying the plane coordinate of the target position in the virtual scene;
the absolute coordinate display module is used for responding to the fact that the included angle between the first display screen and the second display screen is within a second numerical value range, and displaying the absolute coordinates of the target position in the virtual scene;
and the relative coordinate display module is used for responding to a coordinate control to move from the first preset position to a second preset position in the graphical user interface and displaying the relative coordinate of the target position in the virtual scene, wherein the coordinate control is displayed on the graphical user interface, and the coordinate control is configured to switch the coordinate system mode of the virtual scene.
15. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-11 or 12 via execution of the executable instructions.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1-11 or 12.
CN202010946208.8A 2020-09-10 2020-09-10 Coordinate control method and device for virtual scene, electronic equipment and storage medium Pending CN111973984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010946208.8A CN111973984A (en) 2020-09-10 2020-09-10 Coordinate control method and device for virtual scene, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010946208.8A CN111973984A (en) 2020-09-10 2020-09-10 Coordinate control method and device for virtual scene, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111973984A true CN111973984A (en) 2020-11-24

Family

ID=73450611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010946208.8A Pending CN111973984A (en) 2020-09-10 2020-09-10 Coordinate control method and device for virtual scene, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111973984A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113769403A (en) * 2021-09-09 2021-12-10 网易(杭州)网络有限公司 Virtual object moving method and device, readable storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000207579A (en) * 1998-11-11 2000-07-28 Namco Ltd Device and method for 3d simulation
JP2007325043A (en) * 2006-06-02 2007-12-13 Victor Co Of Japan Ltd Image display apparatus and image display program
JP2012210477A (en) * 2012-07-24 2012-11-01 Nintendo Co Ltd Game device and game program
KR20130116663A (en) * 2012-04-16 2013-10-24 정철수 Apparatus of controll for pc game
CN106362397A (en) * 2016-10-14 2017-02-01 网易(杭州)网络有限公司 Carrier processing method and device
CN107137927A (en) * 2017-05-26 2017-09-08 网易(杭州)网络有限公司 The acquisition methods and device of the position coordinates of virtual game object
CN108474859A (en) * 2017-08-15 2018-08-31 深圳市大疆创新科技有限公司 positioning system and its building method
CN109701265A (en) * 2018-12-04 2019-05-03 上海达龙信息科技有限公司 Remote desktop cursor mode switching method, system, client and remote server
CN110917616A (en) * 2019-11-28 2020-03-27 腾讯科技(深圳)有限公司 Orientation prompting method, device, equipment and storage medium in virtual scene
CN111353930A (en) * 2018-12-21 2020-06-30 北京市商汤科技开发有限公司 Data processing method and device, electronic equipment and storage medium
CN111414080A (en) * 2020-03-19 2020-07-14 腾讯科技(深圳)有限公司 Method, device and equipment for displaying position of virtual object and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000207579A (en) * 1998-11-11 2000-07-28 Namco Ltd Device and method for 3d simulation
JP2007325043A (en) * 2006-06-02 2007-12-13 Victor Co Of Japan Ltd Image display apparatus and image display program
KR20130116663A (en) * 2012-04-16 2013-10-24 정철수 Apparatus of controll for pc game
JP2012210477A (en) * 2012-07-24 2012-11-01 Nintendo Co Ltd Game device and game program
CN106362397A (en) * 2016-10-14 2017-02-01 网易(杭州)网络有限公司 Carrier processing method and device
CN107137927A (en) * 2017-05-26 2017-09-08 网易(杭州)网络有限公司 The acquisition methods and device of the position coordinates of virtual game object
CN108474859A (en) * 2017-08-15 2018-08-31 深圳市大疆创新科技有限公司 positioning system and its building method
CN109701265A (en) * 2018-12-04 2019-05-03 上海达龙信息科技有限公司 Remote desktop cursor mode switching method, system, client and remote server
CN111353930A (en) * 2018-12-21 2020-06-30 北京市商汤科技开发有限公司 Data processing method and device, electronic equipment and storage medium
CN110917616A (en) * 2019-11-28 2020-03-27 腾讯科技(深圳)有限公司 Orientation prompting method, device, equipment and storage medium in virtual scene
CN111414080A (en) * 2020-03-19 2020-07-14 腾讯科技(深圳)有限公司 Method, device and equipment for displaying position of virtual object and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113769403A (en) * 2021-09-09 2021-12-10 网易(杭州)网络有限公司 Virtual object moving method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108905212B (en) Game screen display control method and device, storage medium and electronic equipment
CN107213643B (en) Display control method and device, storage medium, the electronic equipment of game picture
CN109685909B (en) Image display method, image display device, storage medium and electronic device
WO2021258994A1 (en) Method and apparatus for displaying virtual scene, and device and storage medium
CN110141855A (en) Method of controlling viewing angle, device, storage medium and electronic equipment
CN109189302B (en) Control method and device of AR virtual model
CN112933606B (en) Game scene conversion method and device, storage medium and computer equipment
CN108776544B (en) Interaction method and device in augmented reality, storage medium and electronic equipment
US20180005440A1 (en) Universal application programming interface for augmented reality
CN107832001B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111773709A (en) Scene map generation method and device, computer storage medium and electronic equipment
CN112862935A (en) Game character motion processing method and device, storage medium and computer equipment
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
CN112891936A (en) Virtual object rendering method and device, mobile terminal and storage medium
CN111773677A (en) Game control method and device, computer storage medium and electronic equipment
CN112987924A (en) Method, apparatus, device and storage medium for device interaction
CN113680054A (en) Game interaction method and device based on computer vision library
CN111973984A (en) Coordinate control method and device for virtual scene, electronic equipment and storage medium
CN112965773A (en) Method, apparatus, device and storage medium for information display
US20230310989A1 (en) Object control method and apparatus in virtual scene, terminal device, computer-readable storage medium, and computer program product
CN113476823A (en) Virtual object control method and device, storage medium and electronic equipment
CN112245908A (en) Method and device for controlling game virtual character, storage medium and electronic equipment
WO2023130809A1 (en) Picture display method and apparatus, terminal, storage medium, and program product
CN109643182B (en) Information processing method and device, cloud processing equipment and computer program product
CN115624740A (en) Virtual reality equipment, control method, device and system thereof, and interaction system

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