Task view angle adjustment method and device, storage medium and electronic equipment
By prompting the task perspective calibration controls in the virtual scene screen, the orientation of the target virtual character and the observation perspective of the virtual shot are automatically adjusted, which solves the problem of low efficiency in multiplayer online competitive games, and achieves more efficient task perspective adjustment and better user experience.
Patent Information
- Application Number
- CN202410146396.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-01
AI Technical Summary
In multiplayer online competitive games, task perspective adjustment operation is inefficient and requires frequent manual adjustments to align the target task location.
The task view calibration control is displayed in the virtual scene screen, and automatically adjusts the orientation of the target virtual character and the view viewing angle of the virtual lens in response to the operation to align the task position.
It simplifies task perspective adjustment operations, improves operation efficiency, and makes the virtual scene pictures more coordinated, improving user experience.
Smart Images

Figure CN120393406A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and in particular, to a method and device for adjusting a task perspective, a storage medium, and an electronic device. Background Art
[0002] Nowadays, in most multiplayer online competitive game tasks, virtual scene tasks to be completed are usually pre-deployed for virtual characters controlled by players in a virtual game scene. Then, the above virtual characters will move in a task map that matches the virtual game scene, and after reaching the marked target task location, execute the established virtual scene tasks.
[0003] During the process of the virtual character moving to the target task location in various ways, the method provided by the related technology is often for the player to manually operate the universal wheel to adjust the task perspective to assist the virtual character to reach as soon as possible. However, the manual operation process often requires frequent adjustments many times to completely align the task perspective with the target task location so that the virtual character can move forward accurately. Obviously, such an adjustment operation process has the problem of low operation efficiency.
[0004] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention
[0005] Embodiments of this application provide a method and device for adjusting a task perspective, a storage medium, and an electronic device to at least solve the technical problem of low operation efficiency in task perspective adjustment operations.
[0006] According to one aspect of the embodiments of this application, a method for adjusting a task perspective is provided, including: displaying a target virtual character that will execute a target task in a virtual scene screen; in the case where the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, prompting a task perspective calibration control in the virtual scene screen; in response to an operation on the task perspective calibration control, adjusting the orientation of the target virtual character to be aligned with the target orientation where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene screen to be aligned with the target orientation.
[0007] According to another aspect of an embodiment of the present application, a task perspective adjustment device is also provided, including: a display unit for displaying a target virtual character that is currently about to perform a target task in a virtual scene picture; a prompt unit for prompting a task perspective calibration control in the virtual scene picture when the current character position of the target virtual character and the task position of the target task are located in the same scene area; an adjustment unit for adjusting the orientation of the target virtual character to align with the target orientation of the task position in response to an operation on the task perspective calibration control, and at the same time adjusting the observation perspective orientation of the virtual lens used to provide the virtual scene picture to align with the target orientation.
[0008] Optionally, in this embodiment, the prompt unit includes: an adjustment module for adjusting the first operation control displayed in the virtual scene screen from the first operation form to the second operation form, and using the first operation control in the second operation form as the task perspective calibration control; a replacement module for replacing the second operation control displayed in the virtual scene screen with the task perspective calibration control; and a new addition module for adding a third operation control in the virtual scene screen as the task perspective calibration control.
[0009] Optionally, in this embodiment, the above-mentioned adjustment module is also used to adjust the central operation area of the universal wheel operation control to a calibration trigger area when the first operation control is a universal wheel operation control, and determine that the first operation control is adjusted to the second operation form; when the first operation control is a direction cluster control, the central operation area of the direction cluster control is adjusted to the calibration trigger area, and determine that the first operation control is adjusted to the second operation form.
[0010] Optionally, in this embodiment, the above-mentioned device also includes: a determination unit, used to determine the triggering operation of the task perspective calibration control in response to performing one of the following operations on the calibration trigger area in the first operation control under the second operation form: the pressing duration of the pressing operation performed in the calibration trigger area is greater than or equal to the target duration threshold, the pressing force of the pressing operation performed in the calibration trigger area is greater than or equal to the target pressure threshold, the number of operations of the pressing operation performed in the calibration trigger area is greater than or equal to the target number threshold, and the operation trajectory of the sliding operation performed in the calibration trigger area matches the reference trajectory used for calibration.
[0011] Optionally, in this embodiment, the above-mentioned device also includes: a control unit, used to control the target virtual character to move toward the task position, and simultaneously perform at least one of the following operations: prompting the remaining distance of the target virtual character to reach the task position in the virtual scene screen; prompting the directional deviation between the target virtual character's orientation and the reference direction in the virtual scene screen.
[0012] Optionally, in this embodiment, the above device further includes: a first display unit, configured to display a task prompt icon in the virtual scene screen, where the task prompt icon is used to prompt the orientation information of the task position relative to the current character position of the target virtual character; a second display unit, configured to highlight the task prompt icon that appears in the adjusted virtual scene screen.
[0013] Optionally, in this embodiment, the above device further includes: a third display unit, configured to display a task panel, where at least one candidate task to be executed is displayed in the task panel; a first determination unit, configured to determine a target task for the target virtual character from at least one candidate task to be executed, where the target task is used to instruct the target virtual character to reach the task position in the first virtual scene area; a second determination unit, configured to determine that the current character position of the target virtual character and the task position are in the same scene area when the current character position of the target virtual character is in the first virtual scene area where the task position is located; a teleportation unit, configured to teleport the target virtual character to the first virtual scene area when the current character position of the target virtual character is in the second virtual scene area.
[0014] Optionally, in this embodiment, the above device further includes: a third determination unit, configured to determine the movement path between the teleportation position where the target virtual character is teleported to the first virtual scene area and the task position; a generation unit, configured to generate movement path navigation information when the movement distance corresponding to the movement path is greater than the target distance threshold; a fourth display unit, configured to display the movement path navigation information and prompt a task perspective calibration control; a first prompt unit, configured to prompt the task perspective calibration control when the movement distance corresponding to the movement path is less than or equal to the target distance threshold.
[0015] Optionally, in this embodiment, the above adjustment unit includes: a determination module, configured to determine a first direction conversion matrix based on the orientation of the target virtual character and the target orientation where the task position is located; a first adjustment module, configured to adjust the orientation of the target virtual character according to the first direction conversion matrix to control the target virtual character to align with the target orientation where the task position is located; a first determination module, configured to determine a second direction conversion matrix based on the viewing angle orientation of the virtual camera and the target orientation where the task position is located; a second adjustment module, configured to adjust the viewing angle orientation of the virtual camera according to the second direction conversion matrix to control the viewing angle orientation of the virtual camera to align with the target orientation where the task position is located.
[0016] According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above task perspective adjustment method when running.
[0017] According to another aspect of the embodiments of the present application, there is provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the task perspective adjustment method as described above.
[0018] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to execute the above-mentioned task perspective adjustment method through the computer program.
[0019] In the embodiments of the present application, a target virtual character that will execute a target task is displayed in a virtual scene screen. Then, when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, a task perspective calibration control is prompted in the virtual scene screen. Next, in response to an operation on the task perspective calibration control, the orientation of the target virtual character is adjusted to align with the target orientation where the task position is located, and at the same time, the viewing perspective orientation of the virtual camera used to provide the virtual scene screen is adjusted to align with the target orientation. In other words, by adopting the embodiments of the present application, when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, through the operation of the task perspective calibration control, the orientation of the target virtual character is automatically adjusted to align with the target orientation where the task position is located, without the need to manually and frequently adjust the perspective of the target virtual character multiple times, which greatly simplifies the operation of adjusting the perspective of the target virtual character, thereby achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation. Further, while automatically adjusting the orientation of the target virtual character to align with the target orientation where the task position is located, by also adjusting the viewing perspective orientation of the virtual camera used to provide the virtual scene screen to align with the target orientation, the viewing perspective of the virtual camera is made to be consistent with the orientation of the target virtual character, making the virtual scene screen more coordinated, thereby enhancing the user experience. Description of the Drawings
[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0021] Figure 1 is a schematic diagram of an application environment of an optional task perspective adjustment method according to the embodiments of the present application;
[0022] Figure 2It is a flowchart of an optional task perspective adjustment method according to an embodiment of the present application;
[0023] Figure 3 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0024] Figure 4 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0027] Figure 7 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0028] Figure 8 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0029] Figure 9 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0030] Figure 10 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0031] Figure 11 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0032] Figure 12 It is a schematic diagram of an optional task perspective adjustment method according to an embodiment of the present application;
[0033] Figure 13 It is a flowchart of an optional task perspective adjustment method according to an embodiment of the present application;
[0034] Figure 14 It is a schematic structural diagram of an optional task perspective adjustment device according to an embodiment of the present application;
[0035] Figure 15 It is a schematic structural diagram of an optional electronic device according to an embodiment of the present application. Detailed implementation manners
[0036] To enable those skilled in the art to better understand the solution of this application, the technical solution in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0038] According to one aspect of the embodiments of this application, a task perspective adjustment method is provided. Optionally, as an alternative implementation, the above task perspective adjustment can be but is not limited to being applied to an environment such as Figure 1 shown. As Figure 1 shown, the terminal device 102 includes a memory 104 for storing various data generated during the operation of the terminal device 102, a processor 106 for processing and computing the above various data, and a display 108 for displaying virtual scene pictures. The terminal device 102 can perform data interaction with the server 112 through the network 110. The server 112 is connected to the database 114, and the database 114 is used to store various data. The terminal device 102 can run a game application where the target virtual character is located.
[0039] Furthermore, the specific application process of the above method in the environment Figure 1 shown is as follows:
[0040] Execute step S102. As shown in (a) of Figure 1 , the terminal device 102 displays the target virtual character that will execute the target task in the virtual scene picture.
[0041] Then execute step S104. When the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, as shown in Figure 1As shown in (b) of [Chinese text], a task perspective calibration control is prompted in the virtual scene screen.
[0042] Then, step S106 is executed. In response to an operation on the task perspective calibration control, a request message for requesting the target orientation where the task location is located is sent to the server 112 via the network 110.
[0043] Furthermore, step S108 is executed. When the server 112 receives the request message, the target orientation is sent to the terminal device 102 via the network 110.
[0044] Thus, step S110 is executed. As Figure 1 shown in (c) of [Chinese text], the terminal device 102 adjusts the orientation of the target virtual character to align with the target orientation where the task location is located, and at the same time adjusts the viewing perspective of the virtual camera used to provide the virtual scene screen to align with the target orientation.
[0045] In the embodiment of the present application, the target virtual character to perform the target task is displayed in the virtual scene screen. Then, when the character location where the target virtual character is currently located and the task location of the target task are in the same scene area, a task perspective calibration control is prompted in the virtual scene screen. Next, in response to an operation on the task perspective calibration control, the orientation of the target virtual character is adjusted to align with the target orientation where the task location is located, and at the same time the viewing perspective of the virtual camera used to provide the virtual scene screen is adjusted to align with the target orientation. In other words, by adopting the embodiment of the present application, when the character location where the target virtual character is currently located and the task location of the target task are in the same scene area, through the operation of the task perspective calibration control, the orientation of the target virtual character is automatically adjusted to align with the target orientation where the task location is located, without the need to manually and frequently adjust the perspective of the target virtual character multiple times, greatly simplifying the operation of adjusting the perspective of the target virtual character, thereby achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation. Further, while automatically adjusting the orientation of the target virtual character to align with the target orientation where the task location is located, by also adjusting the viewing perspective of the virtual camera used to provide the virtual scene screen to align with the target orientation, the viewing perspective of the virtual camera is made to be consistent with the orientation of the target virtual character, making the virtual scene screen more coordinated, thereby enhancing the user experience.
[0046] Optionally, in this embodiment, the above terminal device may be a terminal device configured with a target client, including but not limited to at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop, tablet computer, palmtop computer, MIsD (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client may be a video client, instant messaging client, browser client, education client, etc. The above network may include but not limited to: wired network, wireless network, where the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks for realizing wireless communication. The above server may be a single server, or a server cluster composed of multiple servers, or a cloud server. The above is only an example, and this embodiment does not make any limitation thereto.
[0047] Optionally, as an alternative solution, as Figure 2 shown, the above task perspective adjustment method includes:
[0048] S202, display a target virtual character that will execute a target task in the virtual scene screen;
[0049] S204, when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, prompt a task perspective calibration control in the virtual scene screen;
[0050] S206, in response to an operation on the task perspective calibration control, adjust the orientation of the target virtual character to align with the target direction where the task position is located, and at the same time adjust the observation perspective of the virtual camera used to provide the virtual scene screen to align with the target direction.
[0051] It should be noted that the above task perspective adjustment method may be but not limited to being applied to the scenario of adjusting the task perspective of a game character for a specified game task to be completed in the game field. Specifically, in this scenario, the perspective of the game character needs to be adjusted to the direction corresponding to the location where the game task to be completed is located, so that the game character can quickly move to the above location.
[0052] Optionally, in this embodiment, it is assumed that the above-mentioned task perspective adjustment method can be but is not limited to being applied to the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. The above-mentioned virtual scene screen can be but is not limited to being used to indicate the virtual game scene screen in a game application. Specifically, the virtual game scene screen refers to the image representation of the virtual world seen by players in an electronic game. These screens are designed and created by game developers using technologies such as 3D modeling, texture mapping, and lighting effects to present various scenes in the game, including cities, forests, deserts, oceans, etc., as well as elements such as buildings, roads, vegetation, and animals therein.
[0053] Furthermore, it is still assumed that the above-mentioned task perspective adjustment method can be but is not limited to being applied to the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. The above-mentioned target task can be but is not limited to being used to indicate a game task, and the above-mentioned virtual character can be but is not limited to being used to indicate a virtual game character controlled in a game application. Among them, a game task is a specific goal or challenge that a player needs to control a virtual game character to complete in a game. These tasks are usually part of the game, and during the game process, the player needs to control the virtual game character to complete the tasks to obtain rewards, unlock new content, or advance the game's storyline.
[0054] It should be noted that it is assumed that the above-mentioned task perspective adjustment method can be but is not limited to being applied to the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. The game application can but is not limited to include multiple game maps. Among them, the above-mentioned game map refers to the image or three-dimensional model used to display the game world in an electronic game. Different game maps correspond to different scene areas respectively, and the target virtual character can move to different scene areas by switching different maps.
[0055] Optionally, in this embodiment, the above-mentioned task perspective calibration control can be but is not limited to being displayed in the lower left corner, lower right corner, or other positions of the virtual scene screen, and no limitations are imposed on this in this embodiment. Further, the display shape of the above-mentioned task perspective calibration control can be but is not limited to including: square, circle, triangle, or other shapes, and no limitations are imposed on this in this embodiment. Further, the operations on the above-mentioned task perspective calibration control can be but is not limited to including: click operation, press operation, or other operations, and no limitations are imposed on this in this embodiment either.
[0056] It should be noted that the above task perspective adjustment method can be applied, but is not limited to, the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. The orientation of the above target virtual character can be used, but is not limited to, indicating the direction corresponding to the virtual perspective of the above target virtual character in the game scene. The viewing angle orientation of the virtual camera of the above virtual scene image can be used, but is not limited to, indicating the direction of the virtual game world that the game player sees through the perspective of the camera in the game. The above viewing angle can be a first-person perspective, that is, the player can directly see everything in the game scene.
[0057] Furthermore, the above task perspective adjustment method can be applied, but is not limited to, the scenario of adjusting the moving perspective of a virtual object in the navigation field. Specifically, in this scenario, it is necessary to adjust the perspective of the virtual object to the orientation of the location where the user wants to reach the destination, so that the user can quickly move towards the perspective of the virtual object to the destination to be reached. For example, when the user wants to understand the three-dimensional route from an origin point to a certain end point in advance through three-dimensional navigation, in response to the start operation of the three-dimensional route navigation task triggered by the user, a virtual object is displayed in the three-dimensional navigation screen. Then, when the current position of the virtual object in the map corresponding to the three-dimensional navigation and the end position that the user wants to reach are on the same street, a perspective calibration control is prompted in the three-dimensional route navigation screen. When it is detected that the above perspective standard control is triggered, the perspective of the virtual object in the three-dimensional navigation screen is adjusted to align with the target orientation of the end position, and at the same time, the viewing angle orientation of the virtual camera providing the three-dimensional route navigation screen is adjusted to align with the target orientation.
[0058] Optionally, as an alternative implementation, assume that the above task perspective adjustment method can be applied, but is not limited to, the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. Assume that the target task instructs the virtual game character to defeat the non-player character in the virtual game scene image. As follows Figure 3 The following steps are used to give an example and explanation of the above task perspective adjustment method:
[0059] As Figure 3 shown in (a) below, display the virtual game character 302 that will execute the target task in the virtual game scene image;
[0060] Next, when it is determined that the current character position of the virtual game character 302 and the task position of the target task (i.e., the position where the non-player character 304 is located) are in the same scene game area, as Figure 3 shown in (b) below, prompt the task perspective calibration control 306 in the virtual game scene image;
[0061] In response to operation of the task perspective calibration control 306, such as Figure 3 As shown in (c), the direction of the virtual game character is adjusted to align with the target direction where the non-player character is located, and at the same time, the viewing angle of the virtual lens used to provide the virtual game scene screen is adjusted to align with the target direction.
[0062] In an embodiment of the present application, a target virtual character that is about to perform a target task is displayed in a virtual scene screen. Then, when the character position of the target virtual character is currently located in the same scene area as the task position of the target task, a task perspective calibration control is prompted in the virtual scene screen. Then, in response to the operation of the task perspective calibration control, the orientation of the target virtual character is adjusted to the target orientation where the task position is located, and at the same time, the observation perspective orientation of the virtual lens used to provide the virtual scene screen is adjusted to the target orientation. In other words, using an embodiment of the present application, when the character position of the target virtual character is currently located in the same scene area as the task position of the target task, the orientation of the target virtual character is automatically adjusted to the target orientation where the task position is located through the operation of the task perspective calibration control, without the need to manually adjust the perspective of the target virtual character multiple times and frequently, which greatly simplifies the operation of adjusting the perspective of the target virtual character, thereby achieving the technical effect of improving the operational efficiency of the task perspective adjustment operation. Furthermore, while automatically adjusting the orientation of the target virtual character to align with the target direction where the task position is located, the viewing angle of the virtual lens used to provide the virtual scene image is adjusted to align with the target direction, so that the viewing angle of the virtual lens is consistent with the orientation of the target virtual character, making the virtual scene image more coordinated, thereby improving the user experience.
[0063] Optionally, as an optional solution, prompting the task perspective calibration control in the virtual scene screen includes one of the following:
[0064] Adjusting the first operating control displayed in the virtual scene screen from the first operating form to the second operating form, and using the first operating control in the second operating form as a task perspective calibration control;
[0065] Replace the second operation control displayed in the virtual scene screen with the task perspective calibration control;
[0066] A third operation control is added to the virtual scene screen as a task perspective calibration control.
[0067] It should be noted that, in this embodiment, the above-mentioned first operation control may include but is not limited to: a universal wheel operation control for controlling the movement of the target virtual character, a direction cluster operation control for controlling the movement of the target virtual character, or other operation controls, and this is not limited in this embodiment.
[0068] Furthermore, the first operation form may be, but is limited to, used to indicate the default form of the first operation control in the game application. The second operation form may be, but is not limited to, customized according to the actual needs of the user, and the first operation control in the second operation form may include, but is not limited to, an arrow for indicating the target direction.
[0069] It should be noted that, when the first operating control is a universal wheel operating control, adjusting the first operating control displayed in the virtual scene screen from the first operating form to the second operating form includes: adjusting the central operating area of the universal wheel operating control to the calibration trigger area, and determining that the first operating control is adjusted to the second operating form.
[0070] As an optional embodiment, assuming that the first operation control is used to indicate the universal wheel operation control, as shown in the following example: Figure 4 The following example illustrates adjusting the first operating control displayed in the virtual scene screen from the first operating form to the second operating form, and using the first operating control in the second operating form as a task perspective calibration control:
[0071] like Figure 4 As shown in (a), the center operation area 402 of the currently displayed universal wheel operation control is displayed as a default hollow circle. Next, when the current character position of the target virtual character and the task position of the target task are in the same scene area, the center operation area of the universal wheel operation control is adjusted to the calibration trigger area, and Figure 4 As shown in (b), the content displayed in the central operation area 402 of the universal wheel operation control is switched to a circle with an arrow pointing to the target direction. Figure 4 The universal wheel operation control shown in (b) is determined to be the task perspective calibration control.
[0072] Furthermore, the second operation control may include, but is not limited to, a universal wheel operation control for controlling the movement of the target virtual character, a direction cluster operation control for controlling the movement of the target virtual character, or other operation controls, which are not limited in this embodiment.
[0073] Furthermore, the above-mentioned replacement of the second operation control displayed in the virtual scene screen with the task perspective calibration control may include, but is not limited to: replacing the second operation control displayed in the virtual scene screen with the task perspective calibration control within the target time length, wherein the above-mentioned target time length may be, but is not limited to, the time length used to indicate the above-mentioned target virtual character moving to the task position of the above-mentioned target task, and may also be personalized according to the actual needs of the user, and no limitation is imposed on this in the present embodiment.
[0074] As an alternative implementation, assume that the above first operation control is used to indicate a caster operation control. The following example, as shown in Figure 5 the following, is used to illustrate the replacement of the second operation control already displayed in the virtual scene screen with a task perspective calibration control:
[0075] As Figure 5 shown in (a) of Figure 5 , a caster operation control 502 for controlling the movement of the target virtual character is displayed in the virtual scene screen. Next, in the case where the character position where the target virtual character is currently located and the task position of the target task are in the same scene area. Before the target virtual character moves to the task position of the target task, as
[0076] shown in (b) of
[0077] , the caster operation control 502 is replaced with a task perspective calibration control 504. From this example, it can be seen that before the target virtual character moves to the task position of the target task, replacing the caster operation control displayed in the virtual scene screen with a task perspective calibration control that occupies a smaller area of the screen greatly improves the space utilization rate in the display interface. Figure 6 As an alternative implementation, the following example, as shown in
[0078] As Figure 6 shown in (a) of Figure 6 , the virtual scene screen is displayed. Next, in the case where the character position where the target virtual character is currently located and the task position of the target task are in the same scene area. As
[0079] , a third operation control 602 is added in the virtual scene screen as a task perspective calibration control, as shown in (b) ofIn an embodiment of the present application, a task perspective calibration control is prompted in a virtual scene screen by at least one of the following methods: adjusting a first operation control displayed in the virtual scene screen from a first operation form to a second operation form, and using the first operation control in the second operation form as a task perspective calibration control; replacing a second operation control displayed in the virtual scene screen with a task perspective calibration control; or adding a third operation control to the virtual scene screen as a task perspective calibration control. In other words, in an embodiment of the present application, by adopting a variety of methods to prompt the task perspective calibration control in the virtual scene screen, the user can select an appropriate prompt form according to actual needs, thereby achieving the technical effect of enriching the display content of the virtual scene screen and improving the user experience.
[0080] Optionally, as an optional solution, adjusting the first operation control displayed in the virtual scene screen from the first operation form to the second operation form includes:
[0081] In a case where the first operating control is a universal wheel operating control, adjusting a central operating area of the universal wheel operating control to a calibration trigger area, and determining that the first operating control is adjusted to the second operating form;
[0082] In the case where the first operating control is a directional cluster control, the central operating area of the directional cluster control is adjusted to a calibration trigger area, and the first operating control adjusted to the second operating form is determined to be obtained.
[0083] It should be noted that, in this embodiment, the universal wheel operation control and the direction cluster control can be used, but not limited to, to adjust the viewing angle, moving position and direction of the target virtual character in the virtual scene. The direction cluster control can include, but is not limited to, N direction controls, each of which is used to control the target virtual character to move to a different direction, and N is a positive integer. For example, the direction cluster control can be, but is not limited to, Figure 7 As shown in (a), it includes: a first direction control 702 for controlling the target virtual character to move to the left, a second direction control 704 for controlling the target virtual character to move to the right, a third direction control 706 for controlling the target virtual character to move upward, and a fourth direction control 708 for controlling the target virtual character to move downward.
[0084] As an optional implementation, it can be but not limited to the following Figure 7 The following example illustrates, when the first operation control is a directional cluster control, adjusting the central operation area of the directional cluster control to a calibration trigger area to determine that the first operation control is adjusted to the second operation form:
[0085] like Figure 7As shown in (a), the central operation area 710 of the currently displayed direction cluster control displays a default hollow circle.
[0086] Next, when the current position of the target virtual character and the task position of the target task are in the same scene area, the central operation area of the direction cluster control is adjusted to the calibration trigger area, and Figure 7 As shown in (b), the content displayed in the central operation area 710 of the direction cluster control is switched to a circle with an arrow pointing to the target direction. Figure 7 The direction cluster control shown in (b) is determined as the task perspective calibration control.
[0087] In an embodiment of the present application, when the first operating control is a universal wheel operating control, the central operating area of the universal wheel operating control is adjusted to the calibration trigger area, and it is determined that the first operating control is adjusted to the second operating form. When the first operating control is a directional cluster control, the central operating area of the directional cluster control is adjusted to the calibration trigger area, and it is determined that the first operating control is adjusted to the second operating form. In other words, in this embodiment, by adopting a rich and diverse form to prompt the task perspective calibration control in the virtual scene screen, the user can choose the appropriate prompt form according to actual needs, thereby achieving the technical effect of enriching the display content of the virtual scene screen and improving the user experience.
[0088] Optionally, as an optional solution, before adjusting the orientation of the target virtual character to align with the target orientation where the task position is located and simultaneously adjusting the viewing angle of the virtual lens used to provide the virtual scene image to align with the target orientation, the method further includes:
[0089] In response to performing one of the following operations on the calibration trigger area in the first operation control under the second operation form, the operation of triggering the task perspective calibration control is determined: the pressing duration of the pressing operation performed in the calibration trigger area is greater than or equal to the target duration threshold, the pressing force of the pressing operation performed in the calibration trigger area is greater than or equal to the target pressure threshold, the number of pressing operations performed in the calibration trigger area is greater than or equal to the target number threshold, and the operation trajectory of the sliding operation performed in the calibration trigger area matches the reference trajectory used for calibration.
[0090] As an optional implementation, assuming that the target duration threshold is 0.3s, it can be but not limited to the following example, in response to the pressing duration of the pressing operation in the calibration trigger area being greater than or equal to the target duration threshold, determining to trigger the operation of the task perspective calibration control, and giving an example explanation: in the case where the pressing duration of the pressing operation in the calibration trigger area is greater than or equal to 0.3s, determining to trigger the operation of the task perspective calibration control.
[0091] As an alternative implementation, it may, but is not limited to, be exemplified based on the following examples as shown in Figure 8 to explain by way of example that when the operation trajectory in response to a sliding operation performed on the above calibration trigger area matches the reference trajectory for calibration, it is determined to trigger an operation on the task perspective calibration control:
[0092] As shown in Figure 8 (a) below, the above reference trajectory 802 may, but is not limited to, be displayed outside the calibration trigger area 804 to guide the sliding of the calibration trigger area. As shown in Figure 8 in (b) below, when the operation trajectory of performing a sliding operation on the calibration trigger area matches the reference trajectory for calibration, it is determined to trigger an operation on the task perspective calibration control.
[0093] In the embodiments of the present application, in response to performing the following operations on the calibration trigger area in the first operation control in the second operation form, it is determined to trigger an operation on the task perspective calibration control: the pressing duration of performing a pressing operation on the calibration trigger area is greater than or equal to the target duration threshold, the pressing force of performing a pressing operation on the calibration trigger area is greater than or equal to the target pressure threshold, the number of times of performing a pressing operation on the calibration trigger area is greater than or equal to the target number threshold, and the operation trajectory of performing a sliding operation on the calibration trigger area matches the reference trajectory for calibration. In other words, in this embodiment, through the quick operation performed on the calibration trigger area in the first operation control, the orientation of the target virtual character is automatically adjusted to face the target azimuth where the task position is located, and at the same time, the viewing angle of the virtual camera used to provide the virtual scene picture is adjusted to face the target azimuth. Without manually adjusting the perspective of the target virtual character frequently multiple times, the operation of adjusting the perspective of the target virtual character is greatly simplified, thereby achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation.
[0094] Optionally, as an alternative solution, it is characterized in that after adjusting the orientation of the target virtual character to face the target azimuth where the task position is located and at the same time adjusting the viewing angle of the virtual camera used to provide the virtual scene picture to face the target azimuth, it further includes:
[0095] Controlling the target virtual character to move towards the task position and simultaneously performing at least one of the following operations:
[0096] Prompting the remaining distance of the target virtual character from reaching the task position in the virtual scene picture;
[0097] Prompting the direction deviation between the orientation of the target virtual character and the reference direction in the virtual scene picture.
[0098] It should be noted that the above reference directions can be but are not limited to indicating the due south direction, or the due north direction, or the due east direction, or the due west direction in the virtual scene picture, and can be flexibly set by the user.
[0099] As an alternative implementation, it can be but is not limited to being based on the following examples as Figure 9 shown to illustrate the above method by way of example:
[0100] After adjusting the orientation of the target virtual character to align with the target azimuth where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene picture to align with the target azimuth, as Figure 9 shown, control the target virtual character 902 to move towards the task position 904, and at the same time prompt in the upper right corner of the virtual scene picture that the remaining distance for the target virtual character to reach the task position is 50 meters, and prompt that the direction deviation between the orientation of the target virtual character and the due north direction is 20 degrees.
[0101] In the embodiments of the present application, control the target virtual character to move towards the task position, and at the same time perform at least one of the following operations: prompt the remaining distance for the target virtual character to reach the task position in the virtual scene picture; prompt the direction deviation between the orientation of the target virtual character and the reference direction in the virtual scene picture. In other words, by adopting the embodiments of the present application, through the quick operation performed on the calibration trigger area in the first operation control, the orientation of the target virtual character is automatically adjusted to align with the target azimuth where the task position is located, and at the same time the viewing angle orientation of the virtual camera used to provide the virtual scene picture is adjusted to align with the target azimuth. At the same time, control the target virtual character to move towards the task position, so that the target virtual character can automatically move to the task position, simplify the user operation, and improve the efficiency of the target virtual object performing the target task. And by prompting the remaining distance for the target virtual character to reach the task position in the virtual scene picture and prompting the direction deviation between the orientation of the target virtual character and the reference direction in the virtual scene picture, the moving situation of the target virtual character is prompted in real time, and the user experience is improved.
[0102] Optionally, as an alternative solution, when prompting the task perspective calibration control in the virtual scene picture, it further includes: displaying a task prompt icon in the virtual scene picture, where the task prompt icon is used to prompt the azimuth information of the task position relative to the character position where the target virtual character is currently located;
[0103] After adjusting the orientation of the target virtual character to align with the target azimuth where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene picture to align with the target azimuth, it further includes: highlighting the task prompt icon that appears in the adjusted virtual scene picture.
[0104] It should be noted that, in this embodiment, highlighting the task prompt icon that appears in the adjusted virtual scene screen may include, but is not limited to: highlighting the task prompt icon, displaying a glowing special effect near the task prompt icon, performing an echoing flashing display on the task prompt icon, etc. In this embodiment, no limitation is imposed on this.
[0105] As an alternative implementation, the above method can be exemplified and explained based on the following examples, but is not limited thereto:
[0106] As Figure 10 shown, after adjusting the orientation of the target virtual character to align with the target direction where the task location is located and simultaneously adjusting the viewing angle of the virtual camera used to provide the virtual scene screen to align with the target direction, a task prompt icon 1002 is displayed in the virtual scene screen, and a wave special effect is displayed near the task prompt icon.
[0107] In the embodiment of the present application, by displaying a task prompt icon in the virtual scene screen and highlighting the task prompt icon that appears in the adjusted virtual scene screen, the technical effect of enriching the display content of the virtual scene screen is achieved. At the same time, through the above method, the user can see the relative orientation and distance from the target virtual character to the task location in the virtual scene screen in real time in the virtual scene screen, thereby enhancing the user's gaming experience.
[0108] Optionally, as an alternative solution, after displaying the target virtual character that will execute the target task in the virtual scene screen, it further includes:
[0109] S1, displaying a task panel, where at least one candidate task to be executed is displayed in the task panel;
[0110] S2, determining a target task for the target virtual character from at least one candidate task to be executed, where the target task is used to indicate that the target virtual character reaches the task location in the first virtual scene area;
[0111] S3, when the character position where the target virtual character is currently located is in the first virtual scene area where the task location is located, determining that the character position where the target virtual character is currently located and the task location are in the same scene area;
[0112] S4, when the character position where the target virtual character is currently located is in the second virtual scene area, teleporting the target virtual character to the first virtual scene area.
[0113] It should be noted that in this embodiment, the above display task panel may, but is not limited to, include: displaying the task panel in response to an operation on a task panel trigger control displayed in the virtual scene screen. Among them, the above task panel trigger control may, but is not limited to, be used to trigger the display of the task panel. The above task panel trigger control may be located at, but is not limited to, the upper left corner, upper right corner, lower left corner, lower right corner, or other positions of the virtual scene screen, and no limitation is imposed on this in this embodiment.
[0114] Furthermore, it is assumed that the above task perspective adjustment method may, but is not limited to, be applied to the task perspective adjustment scenario of a game character to complete a specified game task in the game field. The game application may, but is not limited to, include multiple game maps. Among them, the above game map refers to an image or three-dimensional model used to display the game world in an electronic game, and different game maps correspond to different scene areas. Optionally, in this embodiment, the task panel may be displayed in the virtual scene screen in a pop-up window manner, but is not limited to this.
[0115] As an alternative implementation, it may, but is not limited to, be based on the following steps as shown in Figure 11 to give an example and explanation of the above method:
[0116] As shown in Figure 11 (a) therein, a task panel trigger control 1102 is displayed in the virtual scene screen. When it is detected that the task panel trigger control 1102 is clicked, as shown in Figure 11 (b) therein, the task panel 1104 is displayed, where at least one candidate task A, candidate task B, candidate task C, and candidate task D to be executed are displayed in the task panel.
[0117] Then, when it is detected that candidate task A is selected, the basic description information of candidate task A is displayed, and candidate task A is determined as the target task for instructing the target virtual character to reach the task position in the first map.
[0118] Next, it is detected whether the character position where the target virtual character is currently located is in the first game map, and when the character position is not in the first game map, the target virtual character is transmitted to the first game map.
[0119] In the embodiment of the present application, a task panel is displayed, and at least one candidate task to be executed is displayed in the task panel. Then, a target task is determined for the target virtual character from at least one candidate task to be executed, where the target task is used to instruct the target virtual character to reach the task position in the first virtual scene area. Next, when the character position where the target virtual character is currently located is in the first virtual scene area where the task position is located, it is determined that the character position where the target virtual character is currently located and the task position are in the same scene area. Furthermore, when the character position where the target virtual character is currently located is in the second virtual scene area, the target virtual character is transmitted to the first virtual scene area. In other words, by adopting the embodiment of the present application, by displaying multiple candidate tasks in the task panel, the user can select a target task that meets the user's needs from the candidate tasks according to the actual needs, thereby improving the user experience. Further, when the character position where the target virtual character is currently located and the task position are not in the same scene area, the target virtual character is automatically transmitted to the first virtual scene area where the task position is located, without manually adjusting the scene area where the target virtual character is located, which greatly simplifies the user's operation, thus achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation.
[0120] Optionally, as an alternative solution, after transmitting the target virtual character to the first virtual scene area, it further includes:
[0121] Determine the movement path between the transmission position where the target virtual character is transmitted to the first virtual scene area and the task position;
[0122] When the movement distance corresponding to the movement path is greater than the target distance threshold, generate movement path navigation information; display the movement path navigation information and prompt the task perspective calibration control;
[0123] When the movement distance corresponding to the movement path is less than or equal to the target distance threshold, prompt the task perspective calibration control.
[0124] Optionally, in this embodiment, the above movement path navigation information can be displayed, but is not limited to, in the virtual game map displayed in the virtual scene screen, and / or in the virtual game road where the target virtual character is located in the virtual scene screen. For example, as Figure 12 shown, the above movement path navigation information is displayed in the virtual game map 1202 displayed in the virtual scene screen, and the movement path navigation information is displayed in the virtual game road 1204 where the target virtual character is located in the virtual scene screen.
[0125] In an embodiment of the present application, a movement path between the teleportation position where the target virtual character is teleported to the first virtual scene area and the task position is determined. Then, when the movement distance corresponding to the movement path is greater than the target distance threshold, movement path navigation information is generated; the movement path navigation information is displayed, and a task perspective calibration control is prompted. Next, when the movement distance corresponding to the movement path is less than or equal to the target distance threshold, the task perspective calibration control is prompted. In other words, in this embodiment, when the distance between the position where the target virtual character is located in the first virtual scene area and the task position is relatively far, the movement path navigation information is automatically generated and displayed, enabling the user to know the movement process between the teleportation position and the task position, and allowing the user to flexibly control the target virtual character to move towards the task position according to this movement process. Furthermore, the efficiency of the target virtual character in completing the target task is improved.
[0126] Optionally, as an alternative solution, adjusting the orientation of the target virtual character to align with the target direction where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene picture to align with the target direction includes:
[0127] Based on the orientation of the target virtual character and the target direction where the task position is located, a first direction transformation matrix is determined;
[0128] Adjust the orientation of the target virtual character according to the first direction transformation matrix to control the target virtual character to align with the target direction where the task position is located;
[0129] Based on the viewing angle orientation of the virtual camera and the target direction where the task position is located, a second direction transformation matrix is determined;
[0130] Adjust the viewing angle orientation of the virtual camera according to the second direction transformation matrix to control the viewing angle orientation of the virtual camera to align with the target direction where the task position is located.
[0131] In an embodiment of the present application, based on the orientation of the target virtual character and the target direction where the task position is located, a first direction transformation matrix is determined. Then, the orientation of the target virtual character is adjusted according to the first direction transformation matrix to control the target virtual character to align with the target direction where the task position is located. Next, based on the viewing angle orientation of the virtual camera and the target direction where the task position is located, a second direction transformation matrix is determined. Furthermore, the viewing angle orientation of the virtual camera is adjusted according to the second direction transformation matrix to control the viewing angle orientation of the virtual camera to align with the target direction where the task position is located. In other words, in an embodiment of the present application, by using the direction transformation matrix to adjust the orientation of the target virtual character and the viewing angle orientation of the virtual camera to the target direction, the operation of adjusting the perspective of the target virtual character is greatly simplified, thereby achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation.
[0132] Optionally, as an alternative implementation, it is assumed that the above task perspective adjustment method can be, but is not limited to, applied to the scenario of adjusting the task perspective of a game character to complete a specified game task in the game field. It can be, but is not limited to, based on the following steps as shown in Figure 13 The following steps are used to give a complete illustrative explanation of the above task perspective adjustment method:
[0133] Execute step S1302. When the game client 1302 for executing the target task detects that the control for triggering the task panel displayed in the virtual scene screen is clicked, display the task panel, where at least one candidate task to be executed is displayed in the task panel.
[0134] Then execute step S1304. When the game client 1302 detects that the target task to be tracked is determined for the target virtual character from at least the candidate tasks, determine whether the target virtual character and the task location where the target task is located are in the same map.
[0135] Furthermore, when the game client 1302 determines that the target virtual character and the task location where the target task is located are in the same map, execute step S1306-1 to adjust the central operation area of the omnidirectional wheel operation control displayed in the virtual scene screen to the calibration trigger area. When the game client 1302 determines that the target virtual character and the task location where the target task is located are not in the same map, execute step S1306-2 to teleport the target virtual character from the current map to the map where the task location is located, and adjust the central operation area of the omnidirectional wheel operation control displayed in the virtual scene screen to the calibration trigger area.
[0136] Then execute step S1308. When the game client 1302 detects that the duration of pressing the calibration trigger area is greater than 0.3 s, send a request message for requesting to obtain the forward direction of the target virtual character to the server 1304.
[0137] Further execute steps S1310-S1312. After receiving the request message, the server 1304 obtains the route between the current location of the target virtual character and the task location, and then locates the forward direction of the target virtual character based on the route between the current location of the target virtual character and the task location. The server 1304 sends the forward direction to the game client 1302.
[0138] Thereafter, step S1314 is executed. When the game client 1302 receives the forward direction, it adjusts the orientation of the target virtual character to align with the target azimuth where the task position is located according to the above forward direction. At the same time, it adjusts the viewing angle of the virtual camera used to provide the virtual scene image to align with the target azimuth, and controls the target virtual character to move towards the task position.
[0139] By adopting the embodiment of the present application, by pressing the central operation area of the universal wheel operation control, the orientation of the target virtual character is automatically adjusted to align with the direction where the task position is located, and the target virtual character is automatically controlled to move towards the task position. There is no need to manually and frequently adjust the perspective of the target virtual character multiple times, nor to manually control the target virtual object to move towards the task position. Furthermore, the operation of adjusting the perspective of the target virtual character is greatly simplified, thereby achieving the technical effect of improving the operation efficiency of the task perspective adjustment operation. Further, while automatically adjusting the orientation of the target virtual character to align with the direction where the task position is located, by adjusting the viewing angle of the virtual camera used to provide the virtual scene image to align with the direction where the task position is located, the viewing angle of the virtual camera is kept consistent with the orientation of the target virtual character, making the virtual scene image more coordinated, thereby enhancing the user experience.
[0140] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0141] According to another aspect of the embodiment of the present application, there is also provided a task perspective adjustment device for implementing the above task perspective adjustment method. As Figure 14 shown, the device includes:
[0142] A display unit 1402, configured to display a target virtual character that will currently execute a target task in a virtual scene image;
[0143] A prompt unit 1404, configured to prompt a task perspective calibration control in the virtual scene image when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area;
[0144] An adjustment unit 1406, configured to adjust the orientation of the target virtual character to align with the target azimuth where the task position is located in response to an operation on the task perspective calibration control, and simultaneously adjust the viewing perspective orientation of the virtual camera used to provide the virtual scene image to align with the target azimuth.
[0145] Optionally, in this embodiment, the above-mentioned prompt unit includes: an adjustment module, configured to adjust the first operation control already displayed in the virtual scene image from a first operation form to a second operation form, and use the first operation control in the second operation form as the task perspective calibration control; a replacement module, configured to replace the second operation control already displayed in the virtual scene image with the task perspective calibration control; a new addition module, configured to add a third operation control in the virtual scene image as the task perspective calibration control.
[0146] Optionally, in this embodiment, the above-mentioned adjustment module is further configured to, when the first operation control is a universal wheel operation control, adjust the central operation area of the universal wheel operation control to a calibration trigger area, and determine the first operation control adjusted to the second operation form; when the first operation control is a direction cluster control, adjust the central operation area of the direction cluster control to a calibration trigger area, and determine the first operation control adjusted to the second operation form.
[0147] Optionally, in this embodiment, the above-mentioned device further includes: a determination unit, configured to determine that an operation on the task perspective calibration control is triggered in response to performing the following one of the operations on the calibration trigger area in the first operation control in the second operation form: the pressing duration of performing a pressing operation on the calibration trigger area is greater than or equal to a target duration threshold, the pressing force of performing a pressing operation on the calibration trigger area is greater than or equal to a target pressure threshold, the number of times of performing a pressing operation on the calibration trigger area is greater than or equal to a target number threshold, and the operation trajectory of performing a sliding operation on the calibration trigger area matches a reference trajectory for calibration.
[0148] Optionally, in this embodiment, the above-mentioned device further includes: a control unit, configured to control the target virtual character to move towards the task position, and simultaneously perform at least one of the following operations: prompt the remaining distance of the target virtual character from reaching the task position in the virtual scene image; prompt the direction deviation between the orientation of the target virtual character and a reference direction in the virtual scene image.
[0149] Optionally, in this embodiment, the above-mentioned device further includes: a first display unit, configured to display a task prompt icon in the virtual scene image, where the task prompt icon is used to prompt the azimuth information of the task position relative to the character position where the target virtual character is currently located; a second display unit, configured to prominently display the task prompt icon that appears in the adjusted virtual scene image.
[0150] Optionally, in this embodiment, the above device further includes: a third display unit for displaying a task panel, where at least one candidate task to be executed is displayed in the task panel; a first determination unit for determining a target task for the target virtual character from at least one candidate task to be executed, where the target task is used to instruct the target virtual character to reach the task position in the first virtual scene area; a second determination unit for determining that the character position where the target virtual character is currently located is in the same scene area as the task position when the character position where the target virtual character is currently located is in the first virtual scene area where the task position is located; a teleportation unit for teleporting the target virtual character to the first virtual scene area when the character position where the target virtual character is currently located is in the second virtual scene area.
[0151] Optionally, in this embodiment, the above device further includes: a third determination unit for determining a movement path between the teleportation position where the target virtual character is teleported to the first virtual scene area and the task position; a generation unit for generating movement path navigation information when the movement distance corresponding to the movement path is greater than a target distance threshold; a fourth display unit for displaying the movement path navigation information and prompting a task perspective calibration control; a first prompting unit for prompting the task perspective calibration control when the movement distance corresponding to the movement path is less than or equal to the target distance threshold.
[0152] Optionally, in this embodiment, the above adjustment unit includes: a determination module for determining a first direction conversion matrix based on the orientation of the target virtual character and the target azimuth where the task position is located; a first adjustment module for adjusting the orientation of the target virtual character according to the first direction conversion matrix to control the target virtual character to align with the target azimuth where the task position is located; a first determination module for determining a second direction conversion matrix based on the viewing angle orientation of the virtual camera and the target azimuth where the task position is located; a second adjustment module for adjusting the viewing angle orientation of the virtual camera according to the second direction conversion matrix to control the viewing angle orientation of the virtual camera to align with the target azimuth where the task position is located.
[0153] For specific embodiments, reference may be made to the examples shown in the above task perspective adjustment method, and details are not described herein again.
[0154] According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the above task perspective adjustment method. The electronic device may be Figure 1 the terminal device or server shown. This embodiment takes the electronic device as a terminal as an example for illustration. As Figure 15As shown, the electronic device includes a memory 1502 and a processor 1504. A computer program is stored in the memory 1502, and the processor 1504 is configured to execute the steps in any of the above method embodiments through the computer program.
[0155] Optionally, in this embodiment, the above electronic device may be at least one network device among multiple network devices in a computer network.
[0156] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0157] S1, display a target virtual character that will execute a target task in the virtual scene screen;
[0158] S2, when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, prompt a task perspective calibration control in the virtual scene screen;
[0159] S3, in response to an operation on the task perspective calibration control, adjust the orientation of the target virtual character to align with the target orientation where the task position is located, and at the same time adjust the viewing perspective of the virtual camera used to provide the virtual scene screen to align with the target orientation.
[0160] Optionally, those of ordinary skill in the art can understand that Figure 15 the structure shown is only schematic, and the electronic device may also be a terminal device such as a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a Mobile Internet Device (MID), a PAD, etc. Figure 15 It does not limit the structure of the above electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown Figure 15 above, or have a different configuration from that shown Figure 15 above.
[0161] Among them, the memory 1502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the task perspective adjustment method and device in the embodiments of the present application. The processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, that is, implements the above-mentioned task perspective adjustment method. The memory 1502 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 1502 may further include a memory remotely disposed relative to the processor 1504, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof. Among them, the memory 1502 can specifically but not limitedly be used to store information such as the target orientation. As an example, as Figure 15 shown, the above-mentioned memory 1502 may include but are not limited to the display unit 1402, the prompt unit 1404, and the adjustment unit 1406 in the above-mentioned task perspective adjustment device. In addition, it may also include but are not limited to other module units in the above-mentioned task perspective adjustment device, which will not be elaborated in this example.
[0162] Optionally, the above-mentioned transmission device 1506 is used to receive or send data via a network. Specific examples of the above network may include a wired network and a wireless network. In one instance, the transmission device 1506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable, thereby enabling communication with the Internet or a local area network. In one instance, the transmission device 1506 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0163] In addition, the above-mentioned electronic device further includes: a connection bus 1508, which is used to connect each module component in the above-mentioned electronic device.
[0164] In other embodiments, the above-mentioned terminal device or server may be a node in a distributed system. Among them, the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting multiple nodes through network communication. Among them, the nodes can form a point-to-point network, and any form of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the point-to-point network.
[0165] According to one aspect of the present application, there is provided a computer program product, which includes computer programs / instructions containing program codes for performing the above-mentioned method. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are performed.
[0166] According to one aspect of the present application, there is provided a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method.
[0167] Optionally, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0168] S1. Display a target virtual character that will perform a target task in a virtual scene screen;
[0169] S2. When the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, prompt a task perspective calibration control in the virtual scene screen;
[0170] S3. In response to an operation on the task perspective calibration control, adjust the orientation of the target virtual character to align with the target orientation where the task position is located, and at the same time adjust the viewing perspective orientation of the virtual camera for providing the virtual scene screen to align with the target orientation.
[0171] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.
[0172] Optionally, in the present embodiment, those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned various methods can be completed by a program instructing the relevant hardware of a terminal device. The program can be stored in a computer-readable storage medium, and the storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disc, etc.
[0173] If the integrated units in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage media. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing one or more computer devices (which can be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
[0174] In the above embodiments of this application, the descriptions of the various embodiments each have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0175] In the several embodiments provided by this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the units or modules can be in electrical or other forms.
[0176] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0177] In addition, the functional units in the various embodiments of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software function units.
[0178] The above are only the preferred embodiments of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of this application.
Claims
1. A method for adjusting a task perspective, characterized in that, Including: Displaying a target virtual character that will execute a target task in a virtual scene screen; When the character position where the target virtual character is currently located and the task position of the target task are in the same scene area, prompting a task perspective calibration control in the virtual scene screen; In response to an operation on the task perspective calibration control, adjusting the orientation of the target virtual character to align with the target orientation where the task position is located, and at the same time adjusting the viewing perspective orientation of the virtual camera providing the virtual scene screen to align with the target orientation.
2. The method according to claim 1, wherein The prompting the task perspective calibration control in the virtual scene screen includes one of the following: Adjusting a first operation control displayed in the virtual scene screen from a first operation form to a second operation form, and using the first operation control in the second operation form as the task perspective calibration control; Replacing a second operation control displayed in the virtual scene screen with the task perspective calibration control; Adding a third operation control in the virtual scene screen as the task perspective calibration control.
3. The method according to claim 2, characterized in that The adjusting the first operation control displayed in the virtual scene screen from the first operation form to the second operation form includes: When the first operation control is a universal wheel operation control, adjusting the central operation area of the universal wheel operation control to a calibration trigger area to obtain the first operation control adjusted to the second operation form; When the first operation control is a direction cluster control, adjusting the central operation area of the direction cluster control to a calibration trigger area to obtain the first operation control adjusted to the second operation form.
4. The method according to claim 3, characterized in that, Before adjusting the orientation of the target virtual character to align with the target orientation where the task position is located, and at the same time adjusting the viewing perspective orientation of the virtual camera providing the virtual scene screen to align with the target orientation, it further includes: In response to performing one of the following operations on the calibration trigger area in the first operation control in the second operation form, determining that the operation on the task perspective calibration control is triggered: the pressing duration of performing a pressing operation on the calibration trigger area is greater than or equal to a target duration threshold, the pressing force of performing a pressing operation on the calibration trigger area is greater than or equal to a target pressure threshold, the number of times of performing a pressing operation on the calibration trigger area is greater than or equal to a target number threshold, and the operation trajectory of performing a sliding operation on the calibration trigger area matches a reference trajectory for calibration.
5. The method according to any one of claims 1 to 4, characterized in that, After adjusting the orientation of the target virtual character to align with the target orientation where the task position is located, and at the same time adjusting the viewing perspective orientation of the virtual camera providing the virtual scene screen to align with the target orientation, it further includes: Controlling the target virtual character to move towards the task position, and at the same time performing at least one of the following operations: Prompting the remaining distance of the target virtual character from reaching the task position in the virtual scene screen; Prompting the direction deviation between the orientation of the target virtual character and a reference direction in the virtual scene screen.
6. The method according to any one of claims 1 to 4, characterized in that when a task perspective calibration control is prompted in the virtual scene screen, it further includes: displaying a task prompt icon in the virtual scene screen, where the task prompt icon is used to prompt the azimuth information of the task position relative to the character position where the target virtual character is currently located; after adjusting the orientation of the target virtual character to align with the target azimuth where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene screen to align with the target azimuth, it further includes: prominently displaying the task prompt icon that appears in the adjusted virtual scene screen.
7. The method according to any one of claims 1 to 4, characterized in that, After displaying the target virtual character that will perform the target task in the virtual scene screen, it further includes: displaying a task panel, where at least one candidate task to be executed is displayed in the task panel; determining the target task for the target virtual character from the at least one candidate task to be executed, where the target task is used to instruct the target virtual character to reach the task position in the first virtual scene area; when the character position where the target virtual character is currently located is in the first virtual scene area where the task position is located, determining that the character position where the target virtual character is currently located and the task position are in the same scene area; when the character position where the target virtual character is currently located is in the second virtual scene area, teleporting the target virtual character to the first virtual scene area.
8. The method according to claim 7, characterized in that, After teleporting the target virtual character to the first virtual scene area, it further includes: determining the movement path between the teleportation position where the target virtual character is teleported to the first virtual scene area and the task position; when the movement distance corresponding to the movement path is greater than the target distance threshold, generating movement path navigation information; displaying the movement path navigation information and prompting the task perspective calibration control; when the movement distance corresponding to the movement path is less than or equal to the target distance threshold, prompting the task perspective calibration control.
9. The method according to any one of claims 1 to 4, characterized in that Adjusting the orientation of the target virtual character to align with the target azimuth where the task position is located, and at the same time adjusting the viewing angle orientation of the virtual camera used to provide the virtual scene screen to align with the target azimuth includes: determining a first direction conversion matrix based on the orientation of the target virtual character and the target azimuth where the task position is located; adjusting the orientation of the target virtual character according to the first direction conversion matrix to control the target virtual character to align with the target azimuth where the task position is located; determining a second direction conversion matrix based on the viewing angle orientation of the virtual camera and the target azimuth where the task position is located; adjusting the viewing angle orientation of the virtual camera according to the second direction conversion matrix to control the viewing angle orientation of the virtual camera to align with the target azimuth where the task position is located.
10. A task perspective adjustment device, characterized in that, including: A display unit for displaying a target virtual character that is about to perform a target task in a virtual scene screen; A prompt unit for prompting a task perspective calibration control in the virtual scene screen when the character position where the target virtual character is currently located and the task position of the target task are in the same scene area; An adjustment unit for, in response to an operation on the task perspective calibration control, adjusting the orientation of the target virtual character to align with the target direction where the task position is located, and at the same time adjusting the observation perspective of the virtual camera that provides the virtual scene screen to align with the target direction.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when run by a processor, executes the method described in any one of claims 1 to 9.
12. A computer program product comprising a computer program / instructions, characterized in that, The computer program / instructions, when executed by a processor, implement the steps of the method described in any one of claims 1 to 9.
13. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 9 through the computer program.