Coordinate axis display method, device, terminal and medium applied to virtual environment
By distinguishing the coordinate axes and marking points of different virtual environments in the virtual environment screen, the problem of overlapping marking points is solved, improving the user's judgment accuracy and task completion efficiency.
Patent Information
- Application Number
- CN202111652782.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-26
- Filing Date
- 2021-12-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-12-30
AI Technical Summary
In a virtual environment, due to too many marking points, marking points on the coordinate axis are prone to overlap, which makes it impossible for the user to accurately determine whether there are marking points in the direction of the position of the virtual object, and it is impossible to determine the specific position of the marking points.
By distinguishing the coordinate axes and marking points corresponding to different virtual environments, different coordinate axes and marking points are displayed at the first and second positions in the virtual environment screen respectively, to avoid overlapping marking points and facilitate users to determine the specific position of marking points.
It effectively avoids overlapping marking points, improves the accuracy of users' judgment of marking points, and facilitates users to determine the specific location of marking points, so as to adopt reasonable strategies to control the virtual object to move to marking points to complete the task.
Smart Images

Figure CN114344899B_ABST
Abstract
Description
[0001] The present application embodiments claim priority to a Chinese patent application filed on October 26, 2021, with application number 202111248536.1 and invention name “Coordinate axis display method, device, terminal and medium for virtual environment”, all contents of which are incorporated by reference in the present application embodiments. Technical Field
[0002] Embodiments of the present application relate to the field of human-computer interaction, and in particular to a coordinate axis display method, device, terminal, and medium applied to a virtual environment. Background Art
[0003] Adventure games are games where users control virtual objects to explore different virtual environments. There are different marked points in different virtual environments in the game. Users can control virtual objects to move between different virtual environments and go to the marked points. Users can obtain corresponding rewards by completing tasks corresponding to the marked points, such as upgrading the level of virtual objects and obtaining virtual props.
[0004] In order to indicate the position of the mark point, the virtual environment screen will display a coordinate axis, and mark the relative direction of the mark point and the current position of the virtual object on the coordinate axis. The mark point on the coordinate axis will be displayed in the virtual environment screen. When the user moves the cursor to the mark point, the distance of the virtual object from the mark point will be displayed. Therefore, the user can control the virtual object to move to the mark point according to the mark point displayed on the coordinate axis to complete the corresponding task.
[0005] In the related art, the marking points in different virtual environments are all displayed on the coordinate axis. On the one hand, due to too many marking points, the marking points on the coordinate axis will overlap, resulting in some marking points being blocked, and the user cannot determine whether there is a marking point in the direction of the current virtual object. On the other hand, when the user moves the cursor to the marking point, although the distance between the virtual object and the marking point will be displayed, it is impossible to determine whether the marking point is in the virtual environment where the virtual object is located, and the specific location of the marking point cannot be determined. Summary of the invention
[0006] The embodiments of the present application provide a method, device, terminal and medium for displaying coordinate axes in a virtual environment, which distinguishes coordinate axes and marking points corresponding to different virtual environments, thereby avoiding the influence of overlapping marking points on the selection of marking points due to too many marking points on the coordinate axes, and facilitating the user to determine the specific location of the marking points. The technical solution is as follows:
[0007] On the one hand, an embodiment of the present application provides a coordinate axis display method applied to a virtual environment, the method comprising:
[0008] Display the virtual environment screen;
[0009] Displaying a first coordinate axis at a first position in the virtual environment screen, and displaying a second coordinate axis at a second position in the virtual environment screen, wherein the first position is used to display a coordinate axis corresponding to a first virtual environment where a virtual object is located, and the second position is used to display a coordinate axis corresponding to a second virtual environment, the second virtual environment being a virtual environment other than the first virtual environment, and the coordinate axis is used to display a mark point in the virtual environment;
[0010] During the process of the virtual object moving from the first virtual environment to the second virtual environment, the first coordinate axis and the second coordinate axis are updated.
[0011] On the other hand, an embodiment of the present application provides a coordinate axis display device applied to a virtual environment, the device comprising:
[0012] A first display module, used for displaying a virtual environment screen;
[0013] A second display module is used to display a first coordinate axis at a first position in the virtual environment screen, and to display a second coordinate axis at a second position in the virtual environment screen, wherein the first position is used to display a coordinate axis corresponding to a first virtual environment where a virtual object is located, and the second position is used to display a coordinate axis corresponding to a second virtual environment, wherein the second virtual environment is a virtual environment other than the first virtual environment, and the coordinate axis is used to display a mark point in the virtual environment;
[0014] An updating module is used to update the first coordinate axis and the second coordinate axis when the virtual object moves from the first virtual environment to the second virtual environment.
[0015] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the coordinate axis display method applied to a virtual environment as described in the above aspects.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the coordinate axis display method applied to a virtual environment as described in the above aspects.
[0017] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the coordinate axis display method applied to a virtual environment provided in various optional implementations of the above aspects.
[0018] The beneficial effects of the technical solution provided by the embodiments of the present application include at least:
[0019] In an embodiment of the present application, the coordinate axis (first coordinate axis) corresponding to the first virtual environment where the virtual object is located and the marked points on the coordinate axis are displayed at the first position in the virtual environment screen, and the coordinate axis (second coordinate axis) corresponding to the second virtual environment and the marked points on the coordinate axis are displayed at the second position, wherein the second virtual environment is a virtual environment other than the first virtual environment. During the movement of the virtual object from the first virtual environment to the second virtual environment, the coordinate axes of the first position and the second position are updated accordingly. The coordinate axes and marked points of different virtual environments are displayed at the first position and the second position respectively to avoid the marked points in all virtual environments being displayed on one coordinate axis and overlapping, which interferes with the user's judgment of the marked points. In addition, the user can also determine the specific position of the marked point through the marked points on the coordinate axis of the first position and the marked points on the coordinate axis of the second position, so as to adopt a reasonable strategy to control the virtual object to move to the marked point to complete the task.
[0020] Distinguishing the coordinate axes corresponding to different virtual environments and the marked points in different virtual environments makes it easier for users to determine the specific locations of the marked points during the game, and then adopt reasonable strategies to control virtual objects to go to the marked points to complete tasks, enriching the user experience and improving the efficiency of users in completing tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a virtual environment shown in an exemplary embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;
[0023] Figure 3 A flowchart of a coordinate axis display method applied to a virtual environment provided by an exemplary embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram of an interface of a virtual environment screen provided by an exemplary embodiment of the present application is shown;
[0025] Figure 5A schematic diagram of a first coordinate axis and a second coordinate axis shown in an exemplary embodiment of the present application is shown;
[0026] Figure 6 A flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application is shown;
[0027] Figure 7 A schematic diagram of an interface of a coordinate axis display method applied to a virtual environment provided by an exemplary embodiment of the present application is shown;
[0028] Figure 8 A flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application is shown;
[0029] Fig. 9 A schematic diagram of an interface of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application is shown;
[0030] Fig.10 A flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application is shown;
[0031] Fig.11 A flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application is shown;
[0032] Fig.12 A structural block diagram of a coordinate axis display device applied to a virtual environment provided by an exemplary embodiment of the present application is shown;
[0033] Fig.13 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0035] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0036] First, the nouns involved in the embodiments of the present application are introduced:
[0037] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and this application does not limit this. The following embodiments are described by taking a three-dimensional virtual environment as an example.
[0038] In addition, there are multiple virtual environments in the embodiments of the present application. Optionally, the virtual environment can be divided into a physical virtual environment and a space virtual environment. A physical virtual environment refers to a virtual environment that exists in a physical form, such as a planet, a space station, a building, etc., which is not limited in the embodiments of the present application. A space virtual environment refers to a virtual environment that exists in a non-physical form, usually located between physical virtual environments, such as space, etc.
[0039] In one possible implementation, the user can control the movement of the virtual object in the same virtual environment. When the virtual object moves in the same virtual environment, it does not need to use a virtual vehicle, and can move directly, such as by walking, running, jumping, etc. In another possible implementation, the user can control the movement of the virtual object in different virtual environments. When the virtual object moves in different virtual environments, it is necessary to use a virtual vehicle. Optionally, the virtual object can move from a physical virtual environment to a spatial virtual environment, or from a spatial virtual environment to a physical virtual environment.
[0040] In a possible implementation, when a virtual object moves from a current physical virtual environment to another physical virtual environment, it needs to pass through a spatial virtual environment. Figure 1As shown, a schematic diagram of the virtual environment shown in the embodiment of the present application is shown. The virtual environment includes a planet 120 and a space station 130 (physical virtual environment) and a space 110 (space virtual environment). Among them, there is only one space 110, but there can be multiple planets 120 and space stations 130. Optionally, the planet 120 can be Mars, Saturn, Jupiter or other virtual planets, etc., which are not limited in the embodiment of the present application. In the game, optionally, the user can control the virtual object to move between the physical virtual environment, and the virtual object needs to pass through the space virtual environment in the process of moving from the current physical virtual environment to other physical virtual environments. Exemplarily, the virtual object is currently located in the planet 120, and the user needs to pass through the space 110 in the process of controlling the virtual object to move from the planet 120 to the space station 130. Optionally, the user can also control the virtual object to move between the physical virtual environment and the space virtual environment. For example, the virtual object is currently located in space 110, and the user can control the virtual object to move from space 110 to planet 120 or space station 130, or, the virtual object is currently located in planet 120 or space station 130, and the user can control the virtual object to move from planet 120 or space station 130 to space 110.
[0041] In addition, both physical and spatial virtual environments contain markers, which are used to indicate that a task exists at a certain location in the virtual environment. Users can control virtual objects to go to the markers to complete the task. Optionally, the task can be an item collection task, a combat task, a construction task (building a stronghold), etc. The markers can be automatically generated during the game process, or the user can mark them on the virtual map before entering the game.
[0042] Virtual object: refers to an active object in a virtual environment. The active object can be a virtual person, a virtual animal, an animated character, etc., such as a person or an animal displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.
[0043] Adventure games: In the game, users can control virtual objects to explore different virtual environments and obtain rewards by completing corresponding tasks, such as upgrading the level of virtual objects, obtaining virtual props, upgrading the level of virtual props, etc. Optionally, depending on the location of the task, users can control virtual objects to move from the current virtual environment to other virtual environments through virtual props to complete the corresponding task.
[0044] Virtual props: refers to props that virtual objects can use in virtual environments. Optionally, virtual props can be virtual vehicles that can help virtual objects move between different virtual environments, such as spaceships, airplanes, speedboats, etc.; Optionally, virtual props can also be used to help virtual objects complete tasks and resist attacks, such as attack virtual props, delivery virtual props, defense virtual props, etc.
[0045] The method provided in the present application can be applied to virtual reality applications, three-dimensional map programs, first / third-person shooter games, multiplayer online tactical competitive games (Multiplayer Online Battle Arena Games, MOBA), massively multiplayer online games (Massive Multiplayer Online Game, MMOG), massively multiplayer online role-playing games (Massive Multiplayer Online Role-Playing Game, MMORPG), etc. The following embodiments are illustrated by using applications in games.
[0046] Games based on virtual environments are often composed of one or more maps of the game world. The virtual environment in the game simulates scenes in the real world. Users can manipulate virtual objects in the game to perform various activities in the virtual environment, such as purchasing props and other items, interacting with other virtual characters, etc. Other virtual characters are virtual characters controlled by other users. In the game of the embodiment of the present application, there are multiple virtual environments, and users can control virtual objects to move to different virtual environments for exploration, mainly to find marked points, and complete corresponding tasks.
[0047] During the game, a coordinate axis will be displayed on the virtual environment screen. The coordinate axis is used to display the mark points, which represent the tasks in the virtual environment. Since there are multiple virtual environments, the mark points in all virtual environments will be displayed on the coordinate axis, so the mark points on the coordinate axis will overlap, interfering with the user's selection of the mark points. In addition, the corresponding mark points will also be displayed on the virtual environment screen, which correspond to the mark points on the coordinate axis one by one. The closer the virtual object is to the mark point, the larger the icon of the mark point in the virtual environment, and the farther the virtual object is from the mark point, the smaller the icon of the mark point in the virtual environment. The user can determine the distance between the virtual object and the mark point by the size of the icon of the mark point in the virtual environment. In addition, when the user moves the cursor to the mark point, the virtual environment screen will display the distance between the virtual object and the mark point, but it is not certain whether the mark point is located in the virtual environment where the virtual object is currently located or in other virtual environments, which makes it impossible for the user to choose a reasonable strategy to control the virtual object to move to the mark point. For example, the user moves the cursor to a certain mark point and sees that the distance between the virtual object and the mark point is 1030 km (kilometer), but it is impossible to determine whether the mark point is in the virtual environment where the virtual object is currently located. Therefore, the user first controls the virtual object to run to the mark point, but after a period of time, the virtual object still does not reach the mark point. The user controls the virtual object to turn back and look for the spaceship, and then uses the spaceship to go to the mark point, which increases the time it takes for the user to find the mark point.
[0048] In order to avoid the overlapping of marked points due to all marked points in the virtual environment being displayed on one coordinate axis, interfering with the user's judgment of the marked points and accurately judging the specific position of the marked points, and improving the player's participation in the game, the coordinate axes of different virtual environments and the marked points in different virtual environments are distinguished in the embodiment of the present application. The coordinate axis (first coordinate axis) corresponding to the first virtual environment where the virtual object is located and the marked points on the coordinate axis are displayed at the first position in the virtual environment screen, and the coordinate axis (second coordinate axis) corresponding to the virtual environment other than the first virtual environment and the marked points on the coordinate axis are displayed at the second position. In addition, as the virtual object moves between the first virtual environment and the second virtual environment, the coordinate axes of the first position and the second position will also change. Compared with the related art, it avoids the overlapping of marked points due to the display of all marked points on one coordinate axis, which interferes with the user's judgment of the marked points. In addition, the user can also determine the location of the specific marked point, so as to adopt a reasonable strategy to control the virtual object to go to the marked point and complete the corresponding task.
[0049] Please refer to Figure 2 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a first terminal 210, a server 220 and a second terminal 230.
[0050] The first terminal 210 is installed and runs an application 211 that supports a virtual environment. The application 211 can be a multiplayer online program. When the first terminal runs the application 211, the user interface of the application 211 is displayed on the screen of the first terminal 210. The application 211 can be any one of a MOBA game, a battle royale shooting game, a simulation game (SLG), and an adventure game. In this embodiment, the application 211 is an adventure game for example. The first terminal 210 is a terminal used by a first user 212. The first user 212 uses the first terminal 210 to control the first virtual object in the virtual environment to carry out activities. The first virtual object can be called the main control virtual object of the first user 212. The activities of the first virtual object include but are not limited to: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. Schematically, the first virtual object is a first virtual character, such as a simulated character or an anime character.
[0051] The second terminal 230 is installed and runs an application 231 that supports a virtual environment. The application 231 may be a multiplayer online program. When the second terminal 230 runs the application 231, the user interface of the application 231 is displayed on the screen of the second terminal 230. The client may be any one of a MOBA game, a battle royale shooting game, an SLG game, and an adventure game. In this embodiment, the application 231 is an adventure game as an example. The second terminal 230 is a terminal used by a second user 232. The second user 232 uses the second terminal 230 to control a second virtual object in a virtual environment to perform activities. The second virtual object may be referred to as a master virtual character of the second user 232. Schematically, the second virtual object is a second virtual character, such as a simulated character or an anime character.
[0052] Optionally, the first virtual object and the second virtual object are in the same virtual world or in different virtual worlds. Optionally, the first virtual object and the second virtual object can each explore and complete a corresponding task in the virtual environment. Optionally, the first virtual object and the second virtual object can form a team to jointly explore and complete a corresponding task in the virtual environment.
[0053] Optionally, the applications installed on the first terminal 210 and the second terminal 230 are the same, or the applications installed on the two terminals are the same type of applications on different operating system platforms (Windows or IOS). The first terminal 210 may refer to one of a plurality of terminals, and the second terminal 230 may refer to another of a plurality of terminals. This embodiment is only illustrated by taking the first terminal 210 and the second terminal 230 as examples. The first terminal 210 and the second terminal 230 may be of the same or different device types, and the device types include at least one of: a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop portable computer, and a desktop computer.
[0054] Figure 2 Only two terminals are shown, but in different embodiments, there are multiple other terminals that can access the server 220. Optionally, there are one or more terminals corresponding to the developer, on which a development and editing platform for an application supporting a virtual environment is installed. The developer can edit and update the application on the terminal, and transmit the updated application installation package to the server 220 via a wired or wireless network. The first terminal 210 and the second terminal 230 can download the application installation package from the server 220 to update the application.
[0055] The first terminal 210, the second terminal 230 and other terminals are connected to the server 220 via a wireless network or a wired network.
[0056] The server 220 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. The server 220 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 220 undertakes the main computing work and the terminal undertakes the secondary computing work; or, the server 220 undertakes the secondary computing work and the terminal undertakes the main computing work; or, the server 220 and the terminal adopt a distributed computing architecture for collaborative computing.
[0057] In an illustrative example, the server 220 includes a memory 221, a processor 222, a user account database 223, a task service module 224, and a user-oriented input / output interface (I / O interface) 225. Among them, the processor 222 is used to load the instructions stored in the server 220, and process the data in the user account database 223 and the task service module 224; the user account database 223 is used to store the data of the user account used by the first terminal 210, the second terminal 230 and other terminals, such as the avatar of the user account, the nickname of the user account, the level of the user account, and the service area where the user account is located; the task service module 224 is used to provide multiple tasks for users to explore; the user-oriented I / O interface 225 is used to establish communication and exchange data with the first terminal 210 and / or the second terminal 230 through a wireless network or a wired network. It should also be noted that in the following embodiments, the control of the virtual object can be completed independently by the terminal, independently by the server, or by the terminal and the server, and the embodiment of the present application does not limit this. For the convenience of description, the following embodiments are all described by taking the terminal controlling the virtual object as an example. It should also be noted that in the following embodiments, controlling a virtual object can be completed independently by a terminal, independently by a server, or by a terminal and a server in cooperation, and the present application embodiment does not limit this. For the convenience of description, the following embodiments are all described by taking a terminal controlling a virtual object as an example.
[0058] Please refer to Figure 3 , which shows a flowchart of a coordinate axis display method applied to a virtual environment provided by an exemplary embodiment of the present application. Figure 2 Taking the first terminal 210 or the second terminal 230 in the implementation environment or other terminals in the implementation environment as an example, the method includes the following steps:
[0059] Step 310: display the virtual environment screen.
[0060] An application supporting a virtual environment is running on the terminal used by the user. When the user runs the application, a corresponding picture when the application is used is displayed on the display screen of the terminal, and the picture is a virtual environment picture. Optionally, the virtual environment picture is a picture of observing the virtual environment from the perspective of a virtual object. The viewing angle refers to the observation angle when observing the virtual environment from the first-person perspective or the third-person perspective of the virtual object. Optionally, in an embodiment of the present application, the viewing angle is the angle when observing the virtual object through a camera model in the virtual environment.
[0061] Optionally, the camera model automatically follows the virtual object in the virtual environment, that is, when the position of the virtual object in the virtual environment changes, the camera model follows the position of the virtual object in the virtual environment and changes simultaneously, and the camera model is always within a preset distance range of the virtual object in the virtual environment. Optionally, during the automatic following process, the relative position of the camera model and the virtual object does not change.
[0062] The camera model refers to a three-dimensional model located around the virtual object in the virtual environment. When the first-person perspective is adopted, the camera model is located near the head of the virtual object or at the head of the virtual object; when the third-person perspective is adopted, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. The virtual object in the virtual environment can be observed from different angles through the camera model. Optionally, when the third-person perspective is a first-person over-the-shoulder perspective, the camera model is located behind the virtual object (for example, the head and shoulders of the virtual character). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view; when the bird's-eye view is adopted, the camera model can be located above the head of the virtual object, and the bird's-eye view is a perspective for observing the virtual environment from an aerial perspective. Optionally, the camera model will not be actually displayed in the virtual environment, that is, the camera model is not displayed in the virtual environment displayed in the user interface.
[0063] In the embodiment of the present application, different virtual environments correspond to different virtual environment pictures. For example, the virtual environment pictures of a planet and the virtual environment of a space station are different.
[0064] The virtual environment screen includes virtual objects and non-player characters (NPC). NPC is used to help the virtual objects controlled by the user to complete tasks. Optionally, the NPC can be at least one of a human image, an animal image, a plant image, a monster image, etc.; optionally, the NPC can also be a landscape image such as a mountain or a lake. Optionally, the user can control the virtual object to fight with the NPC or attack the NPC to complete the corresponding task. Optionally, the virtual character controlled by the user can also communicate with the NPC, and the NPC issues tasks to the virtual character controlled by the user, provides prompt information, sells items, etc.
[0065] Step 320, displaying a first coordinate axis at a first position in the virtual environment screen, and displaying a second coordinate axis at a second position in the virtual environment screen, the first position is used to display the coordinate axis corresponding to the first virtual environment where the virtual object is located, and the second position is used to display the coordinate axis corresponding to the second virtual environment, the second virtual environment is a virtual environment other than the first virtual environment, and the coordinate axis is used to display the mark points in the virtual environment.
[0066] In the embodiment of the present application, the virtual environment screen also includes a coordinate axis and a mark point on the coordinate axis. The coordinate axis can be displayed in the upper layer of the virtual environment screen. The mark point is used to represent the task in the virtual environment. The user can control the virtual object to go to the mark point to complete the corresponding task. Since there are multiple virtual environments in the embodiment of the present application, if the mark points in multiple virtual environments are displayed on one coordinate axis, the mark points on the coordinate axis will overlap, causing some mark points to be blocked, affecting the user's selection of the mark point.
[0067] In order to avoid the above situation, a first position and a second position are set in the virtual environment screen, the first position is used to display the coordinate axis corresponding to the first virtual environment where the virtual object is located, and the marked points corresponding to the marked points in the first virtual environment are displayed on the coordinate axis, wherein the first virtual environment is the virtual environment where the virtual object is currently located; the second position is used to display the coordinate axis corresponding to the second virtual environment, and the marked points corresponding to the marked points in the second virtual environment are displayed on the coordinate axis. In addition, the marked points corresponding to the marked points in the first virtual environment and the second virtual environment are also displayed in the virtual environment screen, which correspond one-to-one with the marked points on the coordinate axis.
[0068] Optionally, the marking point can be a mark made by the user on the virtual map before the user enters the game, or a hidden marking point triggered after the user completes a task during the game. It should be noted that the marking point is used to remind the user that there is a task at a certain location in the virtual environment. The task can be an item collection task, such as collecting a certain element, such as carbon, potassium, etc., or a combat task, such as attacking a certain NPC, such as attacking a certain monster, etc., and the embodiment of the present application does not limit this.
[0069] Optionally, the tasks and the marking points on the coordinate axis correspond one to one, that is, as the tasks increase, the marking points on the coordinate axis also increase, and as the tasks decrease, the marking points also decrease. Different tasks are represented by different marking points, and the same tasks are represented by the same marking points. Whether the tasks are the same depends on the content of the tasks.
[0070] Optionally, a marker point is displayed in the virtual environment screen, and the size of the marker point is positively correlated with the distance between the virtual object and the marker point. Exemplarily, the larger the distance between the virtual object and the marker point, the larger the marker point displayed in the virtual environment screen, and the smaller the distance between the virtual object and the marker point, the smaller the marker point displayed in the virtual environment screen.
[0071] Optionally, the marking point may be represented by at least one of color, shape, or a combination of color and shape.
[0072] Regarding the first position and the second position, in a possible implementation, the first position and the second position display coordinate axes corresponding to a specific virtual environment, the first position is used to display the coordinate axes corresponding to the virtual environment where the virtual object is currently located, and the second position is used to display the coordinate axes corresponding to other virtual environments other than the virtual environment where the virtual object is currently located.
[0073] In a possible implementation manner, the first position and the second position may be fixed or dynamic in the virtual environment screen, and the relative position of the first position and the second position may also change.
[0074] Optionally, the first position and the second position are fixedly displayed at any position above, below, on the left or on the right in the virtual environment screen. The user can set the fixed display positions of the first position and the second position before entering the game.
[0075] Optionally, the first position and the second position may be dynamically displayed at any position above, below, on the left or on the right in the virtual environment screen.
[0076] Optionally, the first position and the second position may be changed relative to each other, for example, the first position is displayed above the virtual environment screen, and the second position is displayed below the virtual environment screen.
[0077] Regarding the first virtual environment and the second virtual environment, the first virtual environment and the second virtual environment are relative, which is related to the location of the virtual object. The virtual environment currently located by the virtual object is the first virtual environment, and the virtual environment other than the virtual environment currently located by the virtual object is the second virtual environment. Figure 1 As shown, optionally, the virtual environment in which the virtual object is currently located is planet 120, in which case planet 120 is the first virtual environment, and space 110, any other planet, and any space station 130 are the second virtual environment; optionally, the virtual environment in which the virtual object is currently located is space station 130, in which case space station 130 is the first virtual environment, and space 110, any other space station, and any planet 120 are the second virtual environment; optionally, the first virtual environment is space 110, and any planet 120 and any space station 130 are the second virtual environment.
[0078] For example, Figure 4 As shown, the first position in the virtual environment screen displays a first coordinate axis 410, which is used to indicate the first virtual environment 415 where the virtual object 414 is currently located, and a first marking point 412 is displayed on the first coordinate axis 410, which is used to indicate the marking point existing in the first virtual environment 415. The second position in the virtual environment screen displays a second coordinate axis 411, which is used to indicate a second virtual environment (not shown) other than the first virtual environment, and a second marking point 413 is displayed on the second coordinate axis 411, which is used to indicate the marking point existing in the second virtual environment. The marking points in the first virtual environment and the second virtual environment are also displayed in the virtual environment screen, and correspond one to one with the marking points displayed on the coordinate axis. In addition, the size of the marking point is used to indicate the distance of the virtual object from the marking point, and the first marking point 412 and the second marking point 413 are used as examples. It can be seen from the first coordinate axis of the first position that the first mark point 412 is located in the first virtual environment 415 where the virtual object 414 is currently located, and it can be seen from the second coordinate axis of the second position that the second mark point 413 is located in the second virtual environment outside the first virtual environment where the virtual object 414 is currently located. The distance between the virtual object and the first mark point 412 is smaller than the distance between the virtual object and the second mark point 413, so the icon of the first mark point 412 is larger than the second mark point 413. The user can adopt a reasonable strategy to control the virtual object 414 to go to the first mark point 412 and the second mark point 413 to complete the task. For example, the user can control the virtual object 414 to run to the first mark point 412 to complete the task, and the user can control the virtual object 414 to drive the spaceship to the second mark point 413 to complete the task.
[0079] Step 330 : updating the first coordinate axis and the second coordinate axis during the process of the virtual object moving from the first virtual environment to the second virtual environment.
[0080] In the embodiment of the present application, the user controls the virtual object to move between the first virtual environment and the second virtual environment and reach the corresponding marked point to complete the corresponding task according to the coordinate axes displayed at the first position and the second position and the marked points on the coordinate axes. At this time, since the virtual environment in which the virtual object is located changes, the first coordinate axis displayed at the first position and the second coordinate axis displayed at the second position will also change accordingly, so the first coordinate axis and the second coordinate axis are updated. In addition, the marked points on the coordinate axes will also be updated as the virtual environment in which the virtual object is located changes.
[0081] In a possible implementation, the display status of the first coordinate axis and the second coordinate axis is updated.
[0082] Optionally, the display state may be at least one of the transparency, size, etc. of the coordinate axis.
[0083] In another possible implementation, the display positions of the first coordinate axis and the second coordinate axis are updated.
[0084] Optionally, the first coordinate axis displayed at the first position is switched to the second position, and the second coordinate axis displayed at the second position is switched to the first position.
[0085] In summary, in an embodiment of the present application, a coordinate axis (first coordinate axis) corresponding to the first virtual environment where the virtual object is located and a mark point on the coordinate axis are displayed at a first position in the virtual environment screen, and a coordinate axis (second coordinate axis) corresponding to the second virtual environment and a mark point on the coordinate axis are displayed at a second position, wherein the second virtual environment is a virtual environment other than the first virtual environment. During the movement of the virtual object from the first virtual environment to the second virtual environment, the coordinate axes of the first position and the second position are updated accordingly. The coordinate axes and mark points of different virtual environments are displayed at the first position and the second position respectively to avoid overlapping of the mark points when all the mark points in all virtual environments are displayed on one coordinate axis, thereby interfering with the user's judgment of the mark points. In addition, the user can also determine the specific position of the mark point through the mark point on the coordinate axis of the first position and the mark point on the coordinate axis of the second position, so as to adopt a reasonable strategy to control the virtual object to move to the mark point to complete the task.
[0086] In an embodiment of the present application, the number of marked points on the coordinate axis is related to the number of marked points in the virtual environment. In one possible implementation, when there are no marked points in the second virtual environment, there are no marked points on the second coordinate axis located at the second position, so in order to reduce the processing workload of the terminal, the second coordinate axis is hidden. In another possible implementation, when the number of marked points in the second virtual environment is large, causing the marked points on the second coordinate axis located at the second position to overlap, in order to avoid interfering with the user's judgment of the marked points on the first coordinate axis located at the first position, the second coordinate axis is hidden. Optionally, in response to the number of marked points in the second virtual environment being greater than a first quantity threshold and less than a second quantity threshold, the terminal displays the second coordinate axis at the second position in the virtual environment screen.
[0087] In an embodiment of the present application, the terminal displays a first coordinate axis at a first position in the virtual environment screen, and the coordinate axis indicates the virtual environment in which the virtual object is currently located, that is, the first virtual environment. Whether the second coordinate axis located at the second position is displayed depends on other virtual environments other than the virtual environment in which the virtual object is currently located, that is, the number of marking points in the second virtual environment. In a possible implementation, the number of marking points in the second virtual environment is greater than the first quantity threshold and less than the second quantity threshold, and the second coordinate axis and the marking points on the coordinate axis are displayed at the second position in the virtual environment screen, that is, the user can see the second coordinate axis located at the second position and the marking points on the coordinate axis in the virtual environment screen.
[0088] Optionally, the first quantity threshold may be 0, 1, etc., which is not limited in the embodiment of the present application.
[0089] Optionally, the second quantity threshold may be 10, 11, 12, etc., which is not limited in the embodiment of the present application.
[0090] In addition, to ensure that when the perspective of the virtual object moves, the relative positions of the marking points in the first virtual environment and the second virtual environment can be accurately determined without deviation, the center points of the first coordinate axis and the second coordinate axis are aligned.
[0091] Regarding the shapes of the first coordinate axis and the second coordinate axis, in a possible implementation, the shapes of the first coordinate axis and the second coordinate axis should be the same. Optionally, the first coordinate axis and the second coordinate axis can both be linear coordinate axes, or the first coordinate axis and the second coordinate axis can both be curvilinear coordinate axes.
[0092] Regarding the lengths of the first coordinate axis and the second coordinate axis, in a possible implementation, the length of the first coordinate axis is a first size, the length of the second coordinate axis is a second size, and the first size of the first coordinate axis and the second size of the second coordinate axis may be the same or different. When the first size of the first coordinate axis and the second size of the second coordinate axis are different, the first size of the first coordinate axis is greater than the second size of the second coordinate axis.
[0093] Optionally, the first coordinate axis and the second coordinate axis are bilaterally symmetrical.
[0094] For example, Figure 5 As shown, the first coordinate axis 501 and the second coordinate axis 502 are taken as an example as a linear coordinate axis or a curvilinear coordinate axis. The center points of the first coordinate axis 501 and the second coordinate axis 502 are aligned. The scales on the first coordinate axis 501 and the second coordinate axis 502 represent the orientation. When the first coordinate axis 501 and the second coordinate axis 502 are linear coordinate axes, the first size of the first coordinate axis 501 and the second size of the second coordinate axis 502 are the same. When the first coordinate axis 501 and the second coordinate axis 502 are curvilinear coordinate axes, the first size of the first coordinate axis 501 is greater than the second size of the second coordinate axis 502.
[0095] Optionally, in response to the number of marked points in the second virtual environment being less than a first quantity threshold, or greater than a second quantity threshold, the second coordinate axis is hidden.
[0096] In a possible implementation, when the number of marking points in the second virtual environment is less than the first number threshold, the second coordinate axis is hidden. In other words, when there are no marking points in the second virtual environment, that is, when there are no marking points on the second coordinate axis, the second coordinate axis is hidden.
[0097] In another possible implementation, when the number of marked points in the second virtual environment is greater than the second quantity threshold, the second coordinate axis is hidden. That is, the number of marked points in the second virtual environment is too large, and the marked points on the second coordinate axis may overlap. In order to avoid interfering with the user's judgment of the marked points on the first coordinate axis, the second coordinate axis is hidden. Hiding the coordinate axis means that the user cannot see the second coordinate axis in the virtual environment screen.
[0098] In this step, the first quantity threshold and the second quantity threshold are the same as the aforementioned first quantity threshold and the second quantity threshold.
[0099] Regarding the method of hiding the second coordinate axis, in a possible implementation, the terminal adjusts the transparency of the second coordinate axis to zero. In another possible implementation, the terminal covers a layer on the second coordinate axis to cover the second coordinate axis.
[0100] In addition, it should be noted that, for the first coordinate axis of the first position, no matter whether there is a mark point in the first virtual environment, the first coordinate axis of the first position will not be hidden. This is because during the game process, the user may mark a mark point in the first virtual environment where the virtual object is currently located at any time, and the first coordinate axis of the first position also indicates the current location of the virtual object.
[0101] To sum up, the display or hiding of the second coordinate axis and the marked points on the coordinate axis at the second position is determined by the number of marked points in the second virtual environment. On the one hand, this avoids excessive overlap of marked points on the second coordinate axis, thereby interfering with the user's judgment of the marked points on the first coordinate axis. On the other hand, it reduces the processing workload of the terminal.
[0102] In an embodiment of the present application, the virtual environment can be a physical virtual environment or a spatial virtual environment. When a virtual object moves from a physical virtual environment to a spatial virtual environment or from a spatial virtual environment to a physical virtual environment, the method for updating the first coordinate axis and the second coordinate axis is different. In one possible implementation, when a virtual object moves from the current physical virtual environment (first virtual environment) to the spatial virtual environment (second virtual environment), the display state of the first coordinate axis is updated first, and when the virtual object enters the second virtual environment, the display position of the first coordinate axis and the second coordinate axis is updated. The above-mentioned coordinate axis display method is introduced below, please refer to Figure 6 , which shows a flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application.
[0103] Step 610, display the virtual environment screen.
[0104] Step 610 is the same as step 310, and will not be described in detail in this embodiment of the present application.
[0105] Step 620 , displaying a first coordinate axis at a first position in the virtual environment screen, and displaying a second coordinate axis at a second position in the virtual environment screen.
[0106] Step 620 is the same as step 320, and will not be described in detail in this embodiment of the present application.
[0107] Step 630: Acquire a first distance between the virtual object and the first virtual environment when the virtual object leaves the first virtual environment.
[0108] In an embodiment of the present application, the first virtual environment is the virtual environment where the virtual object is currently located, and the virtual environment is a physical virtual environment, such as a planet, a space station, etc. The user can control the virtual object to drive a virtual vehicle to leave the first virtual environment. Optionally, the virtual vehicle can be a spaceship, an airplane, etc., which is not limited in the embodiment of the present application. Since there is a landing point for the virtual object in a physical virtual environment, such as a planet, a space station, etc., when the virtual object leaves the first virtual environment, the terminal obtains the distance between the virtual object and its landing point in the first virtual environment, that is, the first distance.
[0109] In a possible implementation, when the user controls the virtual object to drive the virtual vehicle to leave the first virtual environment, the terminal obtains the distance between the virtual object and the first virtual environment in real time.
[0110] In another possible implementation, when the user controls the virtual object to drive the virtual vehicle to leave the first virtual environment, the terminal periodically obtains the distance between the virtual object and the first virtual environment.
[0111] Optionally, the cycle duration may be 10s, 20s, 30s, etc., which is not limited in the embodiments of the present application.
[0112] Step 640: Update the transparency of the first coordinate axis based on the first distance, and the transparency is negatively correlated with the first distance.
[0113] In an embodiment of the present application, when a virtual object moves from a first virtual environment to a second virtual environment, the virtual environment in which the virtual object is currently located gradually changes, and therefore the display state of the first coordinate axis at the first position in the virtual environment screen also changes accordingly. The transparency of the first coordinate axis is negatively correlated with the first distance, that is, the farther the first distance is, the smaller the transparency of the first coordinate axis is, and the closer the virtual object is to the first virtual environment, the greater the transparency of the first coordinate axis is. When the transparency is 0, the first coordinate axis is in a hidden state, that is, the user cannot see the first coordinate axis in the virtual environment screen, and when the transparency is 1, the first coordinate axis is in a displayed state, that is, the user can see the first coordinate axis in the virtual environment screen.
[0114] Step 650: When there is a marking point on the first coordinate axis, the transparency of the marking point is updated based on the first distance, and the transparency is negatively correlated with the first distance.
[0115] The coordinate axis is used to display the marking points in the virtual environment. Therefore, when the virtual environment in which the virtual object is located changes, the display state of the marking points on the first coordinate axis changes synchronously with the display state of the first coordinate axis, that is, the transparency of the marking points is negatively correlated with the first distance. In other words, the farther the virtual object is from the first virtual environment, the smaller the transparency of the marking points on the first coordinate axis, and the closer the virtual object is to the first virtual environment, the greater the transparency of the marking points on the first coordinate axis. When the transparency is 0, the marking points on the first coordinate axis are hidden, that is, the user cannot see the marking points on the first coordinate axis in the virtual environment screen. When the transparency is 1, the marking points on the first coordinate axis are displayed, that is, the user can see the marking points on the first coordinate axis in the virtual environment screen.
[0116] Step 660: In response to the first distance reaching a first distance threshold, determine that the virtual object enters the second virtual environment from the first virtual environment.
[0117] In the process of the virtual object moving from the first virtual environment to the second virtual environment, the terminal obtains the distance between the virtual object and the first virtual environment, that is, the first distance, and determines whether the distance reaches the first distance threshold. In one possible implementation, the first distance reaches the first distance threshold, and it is determined that the virtual object enters the second virtual environment from the first virtual environment. In another possible implementation, the first distance does not reach the first distance threshold, and it is determined that the virtual object is still in the first virtual environment.
[0118] When the virtual object enters the second virtual environment, it is farthest from the first virtual environment, so the transparency of the first coordinate axis of the first position and the marked point on the coordinate axis is the smallest, that is, 0, that is, the first coordinate axis of the first position and the marked point on the coordinate axis are in a hidden state.
[0119] Optionally, the first distance threshold may be 1300 km, 1400 km, or 1600 km, which is not limited in the embodiments of the present application.
[0120] Step 670, displaying the second coordinate axis at the first position, and displaying the first coordinate axis at the second position.
[0121] In the embodiment of the present application, the first position is used to display the coordinate axis of the virtual environment in which the virtual object is currently located. Since the virtual environment in which the virtual object is currently located changes from the first virtual environment to the second virtual environment, the second coordinate axis and the marking point on the coordinate axis (the marking point in the second virtual environment) are displayed in the first position. The second position is used to display other virtual environments other than the virtual environment in which the virtual object is currently located. Since the virtual environment in which the virtual object is currently located changes from the second virtual environment to the first virtual environment, the first coordinate axis and the marking point on the coordinate axis (the marking point in the first virtual environment) are displayed in the second position.
[0122] For example, Figure 7 As shown, the coordinate axis display method applied to the virtual environment is described by taking the first virtual environment as a planet and the second virtual environment as space as an example. The virtual object 706 is currently in the planet 701, and the virtual object 706 drives the spaceship 708 to move from the planet 701 to the space 707. The first coordinate 702 and the first mark point 704 on the coordinate axis (the mark point in the planet 701) are displayed at the first position in the virtual environment screen, and the second coordinate axis 703 and the second mark point 705 on the coordinate axis (the mark point in the space 707) are displayed at the second position. When the virtual object 706 drives the spaceship 708 to leave the planet 701, the transparency of the first coordinate axis 702 and the first mark point 704 on the coordinate axis decreases as the distance between the virtual object 706 and the planet 701 increases. When the virtual object 706 enters the space 707, the display positions of the first coordinate axis 702 and the second coordinate axis 703 change, the second coordinate axis 703 and the second marking point 705 on the coordinate axis are displayed at the first position, and the first coordinate axis 702 and the first marking point 704 on the coordinate axis are displayed at the second position.
[0123] In summary, when a virtual object moves from a first virtual environment (physical virtual environment) to a second virtual environment (spatial virtual environment), the transparency of the first coordinate axis decreases as the distance between the virtual object and the first virtual environment increases. When the virtual object enters the second virtual environment, the display positions of the first coordinate axis and the second coordinate axis change. When the virtual environment in which the virtual object is located changes, the coordinate axes and the marking points on the coordinate axes at the first and second positions also change accordingly, thereby not affecting the user's judgment of the marking points.
[0124] In another possible implementation, when the virtual object moves from the current space-type virtual environment (first virtual environment) to the entity-type virtual environment (second virtual environment), the display status of the first coordinate axis and the second coordinate axis is maintained when the virtual object does not enter the second virtual environment. When the virtual environment enters the second virtual environment, the display positions of the first coordinate axis and the second coordinate axis are updated, and the display status of the second coordinate axis is updated. The above-mentioned coordinate axis display method is introduced below. Please refer to Figure 8 , which shows a flowchart of a coordinate axis display method applied to a virtual environment provided by another exemplary embodiment of the present application.
[0125] Step 810, display the virtual environment screen.
[0126] Step 810 is the same as step 310, and will not be described in detail in this embodiment of the present application.
[0127] Step 820: Display a first coordinate axis at a first position in the virtual environment screen, and display a second coordinate axis at a second position in the virtual environment screen.
[0128] Step 820 is the same as step 320, and will not be described in detail in this embodiment of the present application.
[0129] Step 830: When the virtual object leaves the first virtual environment, obtain a second distance between the virtual object and the second virtual environment.
[0130] In the embodiment of the present application, the first virtual environment is a space-type virtual environment, and the second virtual environment is a physical virtual environment. Since the virtual object has no landing point in the space-type virtual environment, the terminal cannot obtain the distance between the virtual object and the first virtual environment. However, in a physical virtual environment, such as a planet or a space station, there is a landing point for the virtual object. Therefore, when the virtual object leaves the first virtual environment, the terminal obtains the distance between the virtual object and its landing point in the second virtual environment, that is, the second distance.
[0131] In a possible implementation, when the user controls the virtual object to drive the virtual vehicle to leave the first virtual environment, the terminal obtains the distance between the virtual object and the second virtual environment in real time.
[0132] In another possible implementation, when the user controls the virtual object to drive the virtual vehicle to leave the first virtual environment, the terminal periodically obtains the distance between the virtual object and the second virtual environment.
[0133] Optionally, the cycle duration may be 10s, 20s, 30s, etc., which is not limited in the embodiments of the present application.
[0134] Step 840: In response to the second distance being greater than the second distance threshold, maintaining the display status of the first coordinate axis and the second coordinate axis.
[0135] In an embodiment of the present application, the second distance being greater than the second distance threshold indicates that the virtual object has not yet left the first virtual environment. Therefore, in one possible implementation, the positions of the first coordinate axis and the second coordinate axis are kept unchanged, that is, the first coordinate axis is located at a first position in the virtual environment screen, and is used to represent the first virtual environment in which the virtual object is currently located, and the second coordinate axis is located at a second position in the virtual environment screen, and is used to represent the second virtual environment.
[0136] In another possible implementation, the transparency of the first coordinate axis and the second coordinate axis is kept unchanged.
[0137] In addition, it should be noted that the display status of the marking points on the first coordinate axis and the second coordinate axis also remains unchanged, that is, the transparency remains unchanged.
[0138] Step 850: In response to the second distance reaching a second distance threshold, determine that the virtual object enters the second virtual environment from the first virtual environment.
[0139] In the process of the virtual object moving from the first virtual environment to the second virtual environment, the terminal obtains the distance between the virtual object and the second virtual environment, that is, the second distance, and determines whether the distance reaches the second distance threshold. In one possible implementation, if the second distance reaches the second distance threshold, it is determined that the virtual object enters the second virtual environment from the first virtual environment. In another possible implementation, if the second distance does not reach the second distance threshold, it is determined that the virtual object is still in the first virtual environment.
[0140] Optionally, the second distance threshold may be 1300 km, 1400 km, or 1600 km, which is not limited in the embodiments of the present application.
[0141] Step 860: displaying the second coordinate axis at the first position, and displaying the first coordinate axis at the second position, wherein the transparency of the second coordinate axis is less than 1.
[0142] In the embodiment of the present application, the first position is used to display the coordinate axis of the virtual environment in which the virtual object is currently located. Since the virtual environment in which the virtual object is currently located changes from the first virtual environment to the second virtual environment, the second coordinate axis and the marking point on the coordinate axis (the marking point in the second virtual environment) are displayed in the first position. The second position is used to display other virtual environments other than the virtual environment in which the virtual object is currently located. Since the virtual environment in which the virtual object is currently located changes from the second virtual environment to the first virtual environment, the first coordinate axis and the marking point on the coordinate axis (the marking point in the first virtual environment) are displayed in the second position.
[0143] In addition, in the embodiment of the present application, when the virtual object enters the second virtual environment from the first virtual environment, the transparency of the second coordinate axis changes as the second distance changes. Since the second virtual environment is a physical virtual environment, when the virtual object has not reached its landing point in the second virtual environment, the transparency of the second coordinate axis is less than 1, that is, the second coordinate axis seen by the user in the virtual environment screen will not be fully displayed and will remain in a semi-transparent state.
[0144] Step 870: When the virtual object enters the second virtual environment, the transparency of the second coordinate axis is updated based on the second distance, and the transparency is negatively correlated with the second distance.
[0145] In an embodiment of the present application, during the process from when the virtual object enters the second virtual environment to when the virtual object reaches its landing point in the second virtual environment, the distance between the virtual object and the second virtual environment, that is, the second distance, gradually decreases, and the display state of the second coordinate axis also changes with the change of the second distance. The transparency of the second coordinate axis is negatively correlated with the second distance, that is, the farther the virtual object is from the second virtual environment, the smaller the transparency of the second coordinate axis, and the closer the virtual object is from the second virtual environment, the greater the transparency of the second coordinate axis. When the transparency is 0, the second coordinate axis is in a hidden state, that is, the user cannot see the second coordinate axis in the virtual environment screen, and when the transparency is 1, the second coordinate axis is in a displayed state, that is, the user can see the second coordinate axis in the virtual environment screen.
[0146] When the distance between the virtual object and the second virtual environment is 0, that is, the second distance is 0, that is, when the virtual object is located at the landing point of the second virtual environment, the transparency of the second coordinate axis is 1, and the second coordinate axis is in a display state.
[0147] Step 880: In response to the presence of a marking point on the second coordinate axis, the transparency of the marking point is updated based on the second distance, and the transparency is negatively correlated with the second distance.
[0148] The coordinate axis is used to display the marked points in the virtual environment, and the display state of the marked points on the second coordinate axis changes synchronously with the display state of the second coordinate axis, that is, the transparency of the marked points is negatively correlated with the second distance. In other words, the farther the virtual object is from the second virtual environment, the smaller the transparency of the marked points on the second coordinate axis, and the closer the virtual object is from the second virtual environment, the greater the transparency of the marked points on the second coordinate axis. When the transparency is 0, the marked points on the second coordinate axis are hidden, that is, the user cannot see the marked points on the second coordinate axis in the virtual environment screen, and when the transparency is 1, the marked points on the second coordinate axis are displayed, that is, the user can see the marked points on the second coordinate axis in the virtual environment screen.
[0149] When the distance between the virtual object and the second virtual environment is 0, that is, the second distance is 0, that is, when the virtual object is located at the landing point of the second virtual environment, the transparency of the mark point on the second coordinate axis is 1, and the mark point on the second coordinate axis is in a display state.
[0150] For example, Fig. 9 As shown, the coordinate axis display method applied to the virtual environment is described by taking the first virtual environment as space and the second virtual environment as a planet as an example. A virtual object 907 is currently in space 901, and the virtual object 907 drives a spaceship 908 to move from space 901 to planet 902. The first coordinate axis 903 and the first marking point 905 on the coordinate axis (the marking point in space 901) are displayed at the first position in the virtual environment screen, and the second coordinate axis 904 and the second marking point 906 on the coordinate axis (the marking point in planet 902) are displayed at the second position. When the virtual object 907 does not leave space 901, the display states of the first coordinate axis 903 and the first marking point 905 on the coordinate axis, and the second coordinate axis 904 and the second marking point 906 on the coordinate axis remain unchanged. When the virtual object 907 leaves the space 901 and enters the planet 902, the display positions of the first coordinate axis 903 and the second coordinate axis 904 change, and the second coordinate axis 904 and the second marking point 906 on the coordinate axis are displayed at the first position, and the first coordinate axis 903 and the first marking point 905 on the coordinate axis are displayed at the second position. The transparency of the second coordinate axis 904 and the second marking point 906 on the coordinate axis increases as the distance between the virtual object 907 and the planet 902 decreases. When the virtual object 907 reaches the landing point in the planet 902, the transparency of the second coordinate axis 904 and the second marking point 906 on the coordinate axis is 1.
[0151] In summary, in the embodiment of the present application, when the virtual object moves from the first virtual environment (spatial virtual environment) to the second virtual environment (physical virtual environment), the virtual object does not leave the first virtual environment, and the display state of the first coordinate axis and the second coordinate axis is maintained. When the virtual object enters the second virtual environment, the display positions of the first coordinate axis and the second coordinate axis are changed, and the transparency of the second coordinate axis increases as the distance between the virtual object and the second coordinate axis decreases. When the virtual environment in which the virtual object is located changes, the coordinate axes and the marking points on the coordinate axes at the first position and the second position also change accordingly, thereby not affecting the user's judgment of the marking points.
[0152] In combination with the above embodiments, in an illustrative example, the first virtual environment is a planet and the second virtual environment is space for illustration. The flowchart of the coordinate axis display method applied to the virtual environment is as follows: Fig.10 As shown:
[0153] Step 1001, the user controls the virtual object to leave the first virtual environment;
[0154] Step 1002, whether the distance between the virtual object and the first virtual environment is equal to the first distance threshold, if not, execute step 1003, if yes, execute step 1004;
[0155] Step 1003, the transparency of the first coordinate axis is reduced;
[0156] Step 1004 , updating the display positions of the first coordinate axis and the second coordinate axis, and the transparency of the first coordinate axis is 0.
[0157] In combination with the above embodiment, in another exemplary example, the first virtual environment is space and the second virtual environment is a planet for illustration. The flowchart of the coordinate axis display method applied to the virtual environment is as follows: Fig.11 As shown:
[0158] Step 1101, the user controls the virtual object to leave the first virtual environment;
[0159] Step 1102, whether the distance between the virtual object and the second virtual environment is equal to the second distance threshold, if not, execute step 1103, if yes, execute step 1104;
[0160] Step 1103, maintaining the first coordinate axis and the second coordinate axis;
[0161] Step 1104, updating the display positions of the first coordinate axis and the second coordinate axis;
[0162] Step 1105, whether the distance between the virtual object and the second virtual environment is 0, if not, execute step 1106, if yes, execute step 1107;
[0163] Step 1106, updating the transparency of the second coordinate axis;
[0164] Step 1107, updating the transparency of the second coordinate axis to 1.
[0165] Fig.12 : is a structural block diagram of a device for using a virtual prop provided by an exemplary embodiment of the present application, the device comprising:
[0166] The first display module 1201 is used to display the virtual environment screen;
[0167] A second display module 1202 is used to display a first coordinate axis at a first position in the virtual environment screen, and to display a second coordinate axis at a second position in the virtual environment screen, wherein the first position is used to display a coordinate axis corresponding to a first virtual environment where a virtual object is located, and the second position is used to display a coordinate axis corresponding to a second virtual environment, the second virtual environment being a virtual environment other than the first virtual environment, and the coordinate axis is used to display a mark point in the virtual environment;
[0168] The updating module 1203 is configured to update the first coordinate axis and the second coordinate axis when the virtual object moves from the first virtual environment to the second virtual environment.
[0169] Optionally, the first virtual environment is a physical virtual environment, and the second virtual environment is a spatial virtual environment; the updating module 1203 includes:
[0170] A first updating unit, configured to update a display state of the first coordinate axis when the virtual object leaves the first virtual environment;
[0171] The second updating unit is used to update the display positions of the first coordinate axis and the second coordinate axis when the virtual object enters the second virtual environment from the first virtual environment.
[0172] Optionally, the first updating unit is used to:
[0173] When the virtual object leaves the first virtual environment, acquiring a first distance between the virtual object and the first virtual environment;
[0174] The transparency of the first coordinate axis is updated based on the first distance, and the transparency is negatively correlated with the first distance.
[0175] Optionally, the updating module 1203 further includes:
[0176] The third updating unit is used for:
[0177] When there is a marking point on the first coordinate axis, the transparency of the marking point is updated based on the first distance, and the transparency is negatively correlated with the first distance.
[0178] Optionally, the second updating unit is used to:
[0179] In response to the first distance reaching a first distance threshold, determining that the virtual object enters the second virtual environment from the first virtual environment;
[0180] The second coordinate axis is displayed at the first position, and the first coordinate axis is displayed at the second position.
[0181] Optionally, the first virtual environment is a space-type virtual environment, and the second virtual environment is a physical-type virtual environment; the updating module 1203 includes:
[0182] Holding unit for:
[0183] When the virtual object leaves the first virtual environment, maintaining the display status of the first coordinate axis and the second coordinate axis;
[0184] a fourth updating unit, configured to update display positions of the first coordinate axis and the second coordinate axis when the virtual object enters the second virtual environment from the first virtual environment;
[0185] A fifth updating unit is used to update the display state of the second coordinate axis when the virtual object enters the second virtual environment.
[0186] Optionally, the holding unit is used to:
[0187] When the virtual object leaves the first virtual environment, acquiring a second distance between the virtual object and the second virtual environment;
[0188] In response to the second distance being greater than a second distance threshold, maintaining the display status of the first coordinate axis and the second coordinate axis.
[0189] Optionally, the fourth updating unit is used to:
[0190] In response to the second distance reaching the second distance threshold, determining that the virtual object enters the second virtual environment from the first virtual environment;
[0191] The second coordinate axis is displayed at the first position, and the first coordinate axis is displayed at the second position, wherein a transparency of the second coordinate axis is less than 1.
[0192] Optionally, the fifth updating unit is used to:
[0193] When the virtual object enters the second virtual environment, the transparency of the second coordinate axis is updated based on the second distance, and the transparency is negatively correlated with the second distance.
[0194] Optionally, the fifth updating unit is used to:
[0195] In response to the presence of a marked point on the second coordinate axis, the transparency of the marked point is updated based on the second distance, and the transparency is negatively correlated with the second distance.
[0196] Optionally, the first display module 1202 is used to:
[0197] In response to the number of the marking points in the second virtual environment being greater than a first number threshold and less than a second number threshold, displaying the second coordinate axis at the second position in the virtual environment screen;
[0198] Optionally, the device further includes a hiding module, configured to:
[0199] In response to the number of marked points in the second virtual environment being less than the number threshold, or being greater than the second number threshold, hiding the second coordinate axis.
[0200] Optionally, the coordinate axis displayed at the first position is of a first size, the coordinate axis displayed at the second position is of a second size, and the center points of the coordinate axes displayed at the first position and the second position are aligned;
[0201] Wherein, when the coordinate axes displayed at the first position and the second position are linear coordinate axes, the first size is equal to the second size;
[0202] When the coordinate axes displayed at the first position and the second position are curvilinear coordinate axes, the first size is greater than the second size.
[0203] In summary, in an embodiment of the present application, a coordinate axis (first coordinate axis) corresponding to the first virtual environment where the virtual object is located and a mark point on the coordinate axis are displayed at a first position in the virtual environment screen, and a coordinate axis (second coordinate axis) corresponding to the second virtual environment and a mark point on the coordinate axis are displayed at a second position, wherein the second virtual environment is a virtual environment other than the first virtual environment. During the movement of the virtual object from the first virtual environment to the second virtual environment, the coordinate axes of the first position and the second position are updated accordingly. The coordinate axes and mark points of different virtual environments are displayed at the first position and the second position respectively to avoid overlapping of the mark points when all the mark points in all virtual environments are displayed on one coordinate axis, thereby interfering with the user's judgment of the mark points. In addition, the user can also determine the specific position of the mark point through the mark point on the coordinate axis of the first position and the mark point on the coordinate axis of the second position, so as to adopt a reasonable strategy to control the virtual object to move to the mark point to complete the task.
[0204] Please refer to Fig.13, which shows a block diagram of a terminal 1300 provided by an exemplary embodiment of the present application. The terminal 1300 may be a portable mobile terminal, such as a smart phone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, or a Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1300 may also be referred to as a user device, a portable terminal, or other names.
[0205] Typically, the terminal 1300 includes a processor 1301 and a memory 1302 .
[0206] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0207] The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one instruction, which is used to be executed by the processor 1301 to implement the method provided in the embodiment of the present application.
[0208] In some embodiments, the terminal 1300 may further include: a peripheral device interface 1303 and at least one peripheral device. For example, the peripheral device includes: a radio frequency circuit, a touch display screen, and a power supply.
[0209] The peripheral device interface 1303 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0210] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0211] The embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for using the virtual props as described in the above embodiments.
[0212] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the method for using virtual props provided in various optional implementations of the above aspects.
[0213] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0214] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A coordinate axis display method applied to a virtual environment, characterized in that: The method comprises: Display the virtual environment screen; Displaying a first coordinate axis at a first position in the virtual environment screen, and displaying a second coordinate axis at a second position in the virtual environment screen, wherein the first position is used to display a coordinate axis corresponding to a first virtual environment where a virtual object is located, and the second position is used to display a coordinate axis corresponding to a second virtual environment, the second virtual environment being a virtual environment other than the first virtual environment, and the coordinate axis is used to display a mark point in the virtual environment; When the virtual object moves from the first virtual environment to the second virtual environment, the first coordinate axis and the second coordinate axis are updated.
2. The method according to claim 1, characterized in that The first virtual environment is a physical virtual environment, and the second virtual environment is a spatial virtual environment; The updating of the first coordinate axis and the second coordinate axis during the process of the virtual object moving from the first virtual environment to the second virtual environment includes: When the virtual object leaves the first virtual environment, updating the display state of the first coordinate axis; When the virtual object enters the second virtual environment from the first virtual environment, the display positions of the first coordinate axis and the second coordinate axis are updated.
3. The method according to claim 2, characterized in that The updating of the display state of the first coordinate axis during the process of the virtual object leaving the first virtual environment includes: When the virtual object leaves the first virtual environment, acquiring a first distance between the virtual object and the first virtual environment; The transparency of the first coordinate axis is updated based on the first distance, and the transparency is negatively correlated with the first distance. When the transparency is 0, the first coordinate axis is in a hidden state.
4. The method according to claim 3, characterized in that After acquiring the first distance between the virtual object and the first virtual environment, the method further includes: When there is a marked point on the first coordinate axis, the transparency of the marked point is updated based on the first distance, and the transparency is negatively correlated with the first distance. When the transparency is 0, the marked point on the first coordinate axis is in a hidden state.
5. The method according to claim 3, characterized in that: When the virtual object enters the second virtual environment from the first virtual environment, updating the display positions of the first coordinate axis and the second coordinate axis includes: In response to the first distance reaching a first distance threshold, determining that the virtual object enters the second virtual environment from the first virtual environment; The second coordinate axis is displayed at the first position, and the first coordinate axis is displayed at the second position.
6. The method according to claim 1, characterized in that The first virtual environment is a spatial virtual environment, and the second virtual environment is a physical virtual environment; The updating of the first coordinate axis and the second coordinate axis during the process of the virtual object moving from the first virtual environment to the second virtual environment includes: When the virtual object leaves the first virtual environment, maintaining the display status of the first coordinate axis and the second coordinate axis; When the virtual object enters the second virtual environment from the first virtual environment, updating the display positions of the first coordinate axis and the second coordinate axis; When the virtual object enters the second virtual environment, the display state of the second coordinate axis is updated.
7. The method according to claim 6, characterized in that The step of maintaining the display status of the first coordinate axis and the second coordinate axis during the process of the virtual object leaving the first virtual environment includes: When the virtual object leaves the first virtual environment, acquiring a second distance between the virtual object and the second virtual environment; In response to the second distance being greater than a second distance threshold, maintaining the display status of the first coordinate axis and the second coordinate axis.
8. The method according to claim 7, characterized in that When the virtual object enters the second virtual environment from the first virtual environment, updating the display positions of the first coordinate axis and the second coordinate axis includes: In response to the second distance reaching the second distance threshold, determining that the virtual object enters the second virtual environment from the first virtual environment; The second coordinate axis is displayed at the first position, and the first coordinate axis is displayed at the second position, wherein a transparency of the second coordinate axis is less than 1.
9. The method according to claim 7, characterized in that: The updating of the display state of the second coordinate axis during the process of the virtual object entering the second virtual environment includes: When the virtual object enters the second virtual environment, the transparency of the second coordinate axis is updated based on the second distance, and the transparency is negatively correlated with the second distance. When the transparency is 0, the second coordinate axis is in a hidden state.
10. The method according to claim 9, characterized in that The updating of the display state of the second coordinate axis during the process of the virtual object entering the second virtual environment further includes: In response to the presence of a marked point on the second coordinate axis, the transparency of the marked point is updated based on the second distance, and the transparency is negatively correlated with the second distance. When the transparency is 0, the marked point on the second coordinate axis is in a hidden state.
11. The method according to any one of claims 1 to 10, characterized in that: The displaying of the second coordinate axis at the second position in the virtual environment screen includes: In response to the number of the marking points in the second virtual environment being greater than a first number threshold and less than a second number threshold, displaying the second coordinate axis at the second position in the virtual environment screen; The method further comprises: In response to the number of marked points in the second virtual environment being less than the first number threshold or greater than the second number threshold, hiding the second coordinate axis.
12. The method according to any one of claims 1 to 10, characterized in that: The coordinate axis displayed at the first position is of a first size, the coordinate axis displayed at the second position is of a second size, and the center points of the coordinate axes displayed at the first position and the second position are aligned; Wherein, when the coordinate axes displayed at the first position and the second position are linear coordinate axes, the first size is equal to the second size; When the coordinate axes displayed at the first position and the second position are curvilinear coordinate axes, the first size is greater than the second size.
13. A coordinate axis display device applied to a virtual environment, characterized in that: The device comprises: A first display module, used for displaying a virtual environment screen; A second display module is used to display a first coordinate axis at a first position in the virtual environment screen, and to display a second coordinate axis at a second position in the virtual environment screen, wherein the first position is used to display a coordinate axis corresponding to a first virtual environment where a virtual object is located, and the second position is used to display a coordinate axis corresponding to a second virtual environment, wherein the second virtual environment is a virtual environment other than the first virtual environment, and the coordinate axis is used to display a mark point in the virtual environment; An updating module is used to update the first coordinate axis and the second coordinate axis when the virtual object moves from the first virtual environment to the second virtual environment.
14. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the coordinate axis display method applied to a virtual environment as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the coordinate axis display method applied to a virtual environment as described in any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product comprises computer instructions, and the computer instructions are executed by a processor to implement the coordinate axis display method applied to a virtual environment as claimed in any one of claims 1 to 12.
Citation Information
Patent Citations
Orientation display method and device in virtual three-dimensional scene, terminal and storage medium
CN111760288A
Virtual object control method and device, equipment and computer readable storage medium
CN113274724A