Viewpoint rotation method, device, terminal and computer program
Patent Information
- Application Number
- JP2023110919
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-07-26
- Filing Date
- 2023-07-05
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2040-07-08
AI Technical Summary
【0012】 本出願の実施形態にかかる技術案による有益な効果は、少なくとも以下の通りである。
Smart Images

Figure 0007635304000001 
Figure 0007635304000002 
Figure 0007635304000003
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application, application number 201910683976.6, entitled "Method, apparatus, device and storage medium for viewpoint rotation," filed with the China Patent Office on July 26, 2019, the entire contents of which are incorporated herein by reference. [Technical field]
[0002] TECHNICAL FIELD The embodiments of the present application relate to the field of man-machine interaction, and in particular to viewpoint rotation technology. [Background technology]
[0003] There are applications based on virtual environments, such as first-person shooting games (FPS), third-person shooting games (TPS), and multiplayer online battle arenas (MOBA), on mobile devices such as smartphones and tablets.
[0004] In the application, the user controls the viewpoint rotation of a virtual character to aim at a shooting target or observe the environment. Typically, a viewpoint rotation controller is provided in the user interface of the application, and the user controls the viewpoint rotation of the virtual character by performing movement operations such as up, down, left, and right triggered by the viewpoint rotation controller. While controlling the viewpoint rotation in this way, the screen can only respond to viewpoint rotation operations at one contact point at a time.
[0005] If the screen can only respond to the viewpoint rotation operation of one contact point at a time, when the only contact point disappears and the viewing angle is switched again, a new contact point needs to be triggered, which reduces the interaction efficiency during the operation. Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, device and storage medium for viewpoint rotation, which improve interaction efficiency in viewpoint rotation operation. The technical solutions are as follows:
[0007] A method for viewpoint rotation according to one aspect of the present application includes: It is executed by the terminal, a step of displaying a first viewpoint screen of the application, the first viewpoint screen being a screen when the virtual environment is observed using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; receiving a first viewpoint rotation operation triggered by a first function controller; a step of switching the first viewpoint screen to a second viewpoint screen by turning on a first function and a viewpoint rotation function of a first function controller in response to a first viewpoint rotation operation, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of a virtual character in the virtual environment; receiving a second viewpoint rotation operation triggered by a second function controller when the first function controller is in an on state; The method includes a step of switching off a viewpoint rotation function by the first function controller and turning on a second function and the viewpoint rotation function by the second function controller in response to a second viewpoint rotation operation to switch the second viewpoint screen to a third viewpoint screen, the third viewpoint screen being a screen when the virtual environment is observed using a third viewpoint direction of a virtual character in the virtual environment.
[0008] According to another aspect of the present application, there is provided a viewpoint rotation device, a display module for displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing a virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; a receiving module for receiving a first viewpoint rotation operation triggered by the first function controller; a processing module that switches on the first function and the viewpoint rotation function of the first function controller in response to the first viewpoint rotation operation, and switches the first viewpoint screen to a second viewpoint screen, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of the virtual character in the virtual environment; the receiving module receives a second viewpoint rotation operation triggered by the second function controller when the first function controller is in an on state; In response to the second viewpoint rotation operation, the processing module turns off the viewpoint rotation function of the first function controller and turns on the second function and the viewpoint rotation function of the second function controller, thereby switching the second viewpoint screen to a third viewpoint screen, and the third viewpoint screen is a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment.
[0009] A terminal according to another aspect of the present application includes: Memory, a processor coupled to the memory; The processor is configured to load and execute executable instructions to implement the method of viewpoint rotation according to any of the aspects and optional embodiments.
[0010] According to another aspect of the present application, there is provided a computer-readable storage medium comprising: At least one instruction, at least one program, set of code or set of instructions is stored; The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the viewpoint rotation method according to any of the aspects and alternative embodiments.
[0011] A computer program according to another aspect of the present application comprises: Includes instructions, The instructions, when executed on a computer, cause the computer to perform a method for viewpoint rotation as set forth in any of the above aspects and alternative embodiments.
[0012] The beneficial effects of the technical solutions according to the embodiments of the present application are at least as follows:
[0013] A first viewpoint screen of an application is displayed on a terminal, and a first function controller and a second function controller are superimposed on the first viewpoint screen, the first function controller is for supporting a first function and a viewpoint rotation function, and the second function controller is for supporting a second function and a viewpoint rotation function. The terminal receives a first viewpoint rotation operation triggered by the first function controller. In response to the first viewpoint rotation operation, the terminal turns on the first function and the viewpoint rotation function by the first function controller to switch the first viewpoint screen to a second viewpoint screen. When the first function controller is in an on state, the terminal receives a second viewpoint rotation operation triggered by the second function controller. In response to the second viewpoint rotation operation, the terminal turns off the viewpoint rotation function by the first function controller and turns on the second function and the viewpoint rotation function by the second function controller to switch the second viewpoint screen to a third viewpoint screen.
[0014] The method can respond to a viewpoint rotation operation triggered by a second function controller at the same time as a viewpoint rotation function by a first function controller is triggered. That is, viewpoint rotation operations at at least two contact points on the screen can be responded to simultaneously, improving interaction efficiency during operation. In addition, in this method, when the first function controller is in an on state, the terminal responds to a viewpoint rotation operation previously triggered by the second function controller in response to the viewpoint rotation function triggered by the second function controller, and when all of the function controllers having multiple viewpoint rotation functions are on, orderliness and accuracy of the response of the terminal to the viewpoint rotation operation are guaranteed.
[0015] In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments are briefly described below, but the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without exerting labor worthy of inventive step. [Brief description of the drawings]
[0016] [Figure 1] FIG. 2 is a schematic diagram of a camera model according to an exemplary embodiment of the present application; [Diagram 2] FIG. 2 is a configuration diagram of a terminal according to an exemplary embodiment of the present application. [Diagram 3] FIG. 11 is a configuration diagram of a terminal according to another exemplary embodiment of the present application. [Figure 4] 4 is a flowchart of a method for viewpoint rotation according to an exemplary embodiment of the present application; [Diagram 5] FIG. 13 is a schematic diagram of an interface for viewpoint rotation according to an exemplary embodiment of the present application; [Figure 6] 4 is a flowchart of a method for viewpoint rotation according to another exemplary embodiment of the present application; [Figure 7] 4 is a flowchart of a method for viewpoint rotation according to another exemplary embodiment of the present application; [Figure 8]4 is a flowchart of a method for viewpoint rotation according to another exemplary embodiment of the present application; [Figure 9] 1 is a flowchart of a method for setting a viewpoint rotation operation according to an exemplary embodiment of the present application. [Figure 10] FIG. 13 is an interface diagram of a method for setting a viewpoint rotation operation according to an exemplary embodiment of the present application. [Figure 11] FIG. 11 is an interface diagram of a method for setting a viewpoint rotation operation according to another exemplary embodiment of the present application. [Figure 12] 4 is a flowchart of a method for viewpoint rotation manipulation according to another exemplary embodiment of the present application. [Figure 13] 4 is a flowchart of a method for viewpoint rotation manipulation according to another exemplary embodiment of the present application. [Figure 14] 4 is a flowchart of a method for viewpoint rotation manipulation according to another exemplary embodiment of the present application. [Figure 15] FIG. 1 is a block diagram of an apparatus for viewpoint rotation according to an exemplary embodiment of the present application; [Figure 16] FIG. 2 is a configuration block diagram of a terminal according to an exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application are further described in detail in conjunction with the accompanying drawings.
[0018] First, some nouns related to the embodiments of this application will be interpreted.
[0019] Virtual environment: A virtual environment displayed (or provided) when an application is running on a terminal. This virtual environment may be an environment that simulates the real world, may be half a simulated environment and half a virtual environment, or may be an entirely virtual environment. The virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. In the embodiment described below, a three-dimensional virtual environment is exemplified as the virtual environment, but is not limited thereto.
[0020] Virtual Character: A movable object in a virtual environment. The movable object may be at least one of a virtual person, a virtual animal, and an animated character. Optionally, if the virtual environment is a three-dimensional virtual environment, the virtual characters are three-dimensional solid models created by animation skeleton techniques. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the space in the three-dimensional virtual environment.
[0021] View direction: a viewing direction when observing a virtual environment from a first-person, third-person, or other viewpoint of a virtual character. Here, the other viewpoint may be an overhead viewpoint or any other viewpoint. A first-person viewpoint is a viewing viewpoint of a first-person virtual character in a virtual environment, and the observed virtual screen does not include the virtual character itself. A third-person viewpoint is a viewing viewpoint of a third-person virtual character in a virtual environment, and the observed virtual screen includes the virtual character itself. Optionally, in an embodiment of the present application, a viewing direction is a direction observed by a camera model when a virtual character observes in a virtual environment.
[0022] Optionally, the camera model autonomously follows the virtual character in the virtual environment, i.e., when the position of the virtual character in the virtual environment changes, the camera model changes while following the position of the virtual character in the virtual environment, and the camera model is always within a preset distance range from the virtual character in the virtual environment. Optionally, during the autonomous following, the relative position of the camera model and the virtual character does not change.
[0023] Camera model: a three-dimensional model located around a virtual character in a three-dimensional virtual environment. In a first-person perspective, the camera model is located near or at the head of the virtual character. In a third-person perspective, the camera model may be located behind the virtual character, tied to the virtual character, or located at any position at a predefined distance from the virtual character. The camera model allows the virtual character in the three-dimensional virtual environment to be observed from different visual angles. Optionally, if the third-person perspective is a first-person over-the-shoulder perspective, the camera model is located behind the virtual character, e.g., behind the head and shoulders of the virtual person. Optionally, the perspectives include other perspectives, such as a bird's-eye view, in addition to the first-person and third-person perspectives. In a bird's-eye view, the camera model may be located above the head of the virtual character, which is a perspective that looks down on the virtual environment from the air. Optionally, the camera model is not actually displayed in the three-dimensional virtual environment, i.e., the camera model is not displayed in the three-dimensional virtual environment displayed in the user interface.
[0024] Taking the case where the camera model is at an arbitrary position at a preset distance from the virtual character as an example, one virtual character can be associated with one camera model as an option, and the camera model can rotate around the virtual character as a rotation center. For example, when the camera model is rotated around an arbitrary point of the virtual character as a rotation center, the camera model has an offset not only in rotation in angle but also in displacement, and the distance between the camera model and its rotation center does not change when rotating. That is, the camera model is rotated on the surface of a sphere with the rotation center as the sphere center. Here, the arbitrary point of the virtual character may be the head, torso, or any point around the virtual character, and the embodiment of the present application is not limited thereto. Optionally, when the camera model observes the virtual character, the central orientation of the viewpoint of the camera model is the direction that the point of the sphere on which the camera model exists points to the sphere center.
[0025] Optionally, the camera model may view the virtual character from various directions and at preset angles.
[0026] 1, a point on a virtual character 11 is identified as a center of rotation 12, and the camera model rotates around the center of rotation 12. Optionally, the camera model is set with an initial position that is a position behind and above the virtual character (e.g., a position behind the brain). Illustratively, as shown in FIG. 1, the initial position is position 13, and when the camera model rotates to position 14 or position 15, the viewpoint direction of the camera model changes with the rotation of the camera model.
[0027] A terminal in this application may be a laptop portable computer, a mobile phone, a tablet, an e-book reader, an electronic game console, an MP4 (Moving Picture Experts Group Audio Layer IV) player, and so on.
[0028] In terms of hardware configuration, the terminal includes a pressure touch screen 120, a memory 140, and a processor 160. Please refer to the configuration diagram of the terminal shown in FIG.
[0029] The touch screen 120 may be a capacitive screen or a resistive screen. The touch screen 120 is used to realize an interaction between the terminal and a user. In the embodiment of the present application, the terminal obtains a viewpoint rotation operation triggered by the user through the touch screen 120.
[0030] The memory 140 may include one or more computer readable storage media, including at least one of a Random Access Memory (RAM), a Read Only Memory (ROM), and a Flash memory (Flash). An operating system 142 and an application program 144 are installed in the memory 140.
[0031] The operating system 142 is basic software that provides secure access to computer hardware to applications 144. The operating system 142 may be Android or IOS.
[0032] The application 144 is an application that supports a virtual environment, the virtual environment including a virtual character. Optionally, the application 144 is an application that supports a three-dimensional virtual environment. The application 144 may be a virtual reality application, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, a MOBA game, or a multiplayer gunfight survival game. Optionally, the application 144 may be a standalone application, such as a standalone 3D game program, or an internet online application.
[0033] The processor 160 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 160 executes a viewpoint rotation command in response to a viewpoint rotation operation of the virtual character received on the touch screen 120.
[0034] 3, in an embodiment of the present application, the terminal may further include a gyro 180. The gyro 180 is for acquiring a viewpoint rotation operation of a virtual character triggered by a user.
[0035] 4 is a flowchart of a method for viewpoint rotation according to an exemplary embodiment of the present application. Taking the method applied to the terminal shown in FIG. 2 or FIG. 3 as an example, the method includes the following steps. Specifically, Step 201: A first view screen of the application is displayed.
[0036] A first perspective screen of the application is displayed on the terminal. Optionally, the application may be at least one of a virtual reality application, a three-dimensional map application, a military simulation program, a TPS game, an FPS game, and a MOBA game.
[0037] Optionally, the first viewpoint screen is a screen when observing the virtual environment adopting a first viewpoint direction of a virtual character in the virtual environment. The first person viewpoint direction may be a direction for observing the virtual environment using at least one of a first person viewpoint, a third person viewpoint, or other viewpoints. Here, the other viewpoints may be an overhead viewpoint or any other viewpoint. Note that the virtual environment screen corresponding to the first person viewpoint does not include the virtual character itself. The virtual environment screen corresponding to the third person viewpoint and the overhead viewpoint includes the virtual character itself, and for example, when observing the virtual environment with a camera model, a three-dimensional model of the virtual character and a virtual firearm held by the virtual character are seen.
[0038] As an option, a first function controller and a second function controller are superimposed on the first viewpoint screen, the first function controller is for supporting the first function and the viewpoint rotation function, and the second function controller is for supporting the second function and the viewpoint rotation function. Here, the first function is a function other than the viewpoint rotation function. The second function is a function other than the viewpoint rotation function. For example, the other function may be a scope peek function, a head extension function, a shooting function, etc.
[0039] Optionally, the first function controller includes at least one of a scope controller, a head-out controller, and a fire controller.
[0040] Optionally, the second function controller includes at least one of a scope controller, a head-out controller, and a fire controller.
[0041] Optionally, the first function controller and the second function controller are different, for example, the first function controller is a scope look controller and the second function controller is a head submit controller.
[0042] Here, the scope controller is for turning on or off the sight, which is for assisting aiming when shooting, and examples of the sight include a magnifying glass, a red dot sight, and a holographic sight. The head-out controller is used to control the virtual character to stick his head out to shoot when there is an obstruction, so as to reduce the exposed area of the virtual character. The shooting controller is used to control shooting, for example, to control shooting of a virtual rifle at a target.
[0043] Step 202: Receive a first viewpoint rotation operation triggered by a first function controller.
[0044] The terminal receives a first viewpoint rotation operation triggered by a first function controller, and optionally, the first viewpoint rotation operation includes one of a click operation and a long press operation.
[0045] Step 203: In response to the first viewpoint rotation operation, the first function and the viewpoint rotation function of the first function controller are turned on, and the first viewpoint screen is switched to the second viewpoint screen.
[0046] The terminal rotates the first viewpoint screen to a second viewpoint screen by a corresponding angle based on the first viewpoint direction in response to the first viewpoint rotation operation. Optionally, the second viewpoint screen is a screen when observing the virtual environment by adopting a second viewpoint direction of the virtual character in the virtual environment.
[0047] Optionally, the terminal generates a first sequence number of the first function controller in response to the first viewpoint rotation operation, the first sequence number being used to specify whether the viewpoint rotation operation by the first function controller is turned on or off.
[0048] Exemplarily, when the first function controller is a scope viewing controller, the terminal turns on the viewfinder in response to the first viewpoint rotation operation and also turns on the viewpoint rotation operation to switch the first viewpoint screen to the second viewpoint screen.
[0049] When the first function controller is a head-out controller, the terminal turns on the head-out function in response to the first viewpoint rotation operation, turns on the viewpoint rotation operation, and switches the first viewpoint screen to the second viewpoint screen.
[0050] When the first function controller is a shooting controller, the terminal fires in response to the first viewpoint rotation operation, and also turns on the viewpoint rotation operation to switch the first viewpoint screen to the second viewpoint screen. There are two modes of firing control by the shooting controller. One is firing by pressing. The other is firing by releasing the pressing. Therefore, the terminal firing in response to the first viewpoint rotation operation may be firing when the shooting controller is pressed, or may be firing when the shooting controller is pressed and then released.
[0051] Step 204: If the first function controller is in an on state, a second viewpoint rotation operation triggered by the second function controller is received.
[0052] Optionally, the terminal receives a second viewpoint rotation operation triggered by the second function controller when both the first function by the first function controller and the viewpoint rotation function are on.
[0053] Optionally, the second viewpoint rotation operation includes one of a click operation and a long press operation.
[0054] Step 205: In response to the second viewpoint rotation operation, the viewpoint rotation function by the first function controller is turned off, and the second function and viewpoint rotation function by the second function controller are turned on to switch the second viewpoint screen to a third viewpoint screen.
[0055] In response to the second viewpoint rotation operation, the terminal rotates by a corresponding angle based on the second viewpoint direction, and rotates the second viewpoint screen to a third viewpoint screen. Optionally, the third viewpoint screen is a screen when observing the virtual environment by adopting a third viewpoint direction of the virtual character in the virtual environment.
[0056] For example, when the second function controller is a scope viewing controller, the terminal turns on the viewfinder in response to the second viewpoint rotation operation, and also turns on the viewpoint rotation operation to switch the second viewpoint screen to a third viewpoint screen.
[0057] When the second function controller is a head-out controller, the terminal turns on the head-out function in response to the second viewpoint rotation operation, turns on the viewpoint rotation operation, and switches the second viewpoint screen to a third viewpoint screen.
[0058] If the second function controller is a shooting controller, the terminal fires a gun in response to the second viewpoint rotation operation, turns on the viewpoint rotation operation, and switches the second viewpoint screen to a third viewpoint screen.
[0059] At this time, the first function of the first function controller is in an ON state, for example, the sight is in an ON state or the head-out function is in an ON state. If the first function controller is a shooting controller, in the non-continuous shooting state, after firing once, the shooting controller is still in an ON state but no bullet is fired.
[0060] As an option, the terminal turns on the viewpoint rotation function by the second function controller in the following general steps.
[0061] 1) In response to a second viewpoint rotation operation, a second sequence number of the second function controller is generated.
[0062] The second sequence number is for specifying whether the viewpoint rotation function by the second function controller is turned on or off.
[0063] Optionally, the first function controller includes a first function controller in an on state, the first function controller in the on state being associated with a first sequence number, and the general steps involved in generating the second sequence number are as follows:
[0064] a) Obtaining the maximum sequence number from the first sequence number in response to a second viewpoint rotation operation.
[0065] b) Identify the sequence number obtained by incrementing the maximum sequence number by 1 as the second sequence number.
[0066] That is, if the maximum sequence number is X, the second sequence number is X + 1. For example, if the first sequence numbers include 1 and 2, the maximum sequence number is specified as 2 and the second sequence number is specified as 3.
[0067] 2) If the second sequence number is greater than the first sequence number which is the sequence number of the first function controller, turn off the viewpoint rotation function by the first function controller, and turn on the second function and the viewpoint rotation function by the second function controller, where the first sequence number is the sequence number of the first function controller.
[0068] The terminal determines whether the second sequence number is greater than the first sequence number, and if the second sequence number is greater than the first sequence number, the terminal turns off a viewpoint rotation function of the first function controller and turns on a second function and a viewpoint rotation function of the second function controller.
[0069] As described above, in the viewpoint rotation method according to the present embodiment, the terminal displays a first viewpoint screen of an application, and a first function controller and a second function controller are superimposed on the first viewpoint screen, the first function controller is for supporting a first function and a viewpoint rotation function, and the second function controller is for supporting a second function and a viewpoint rotation function. The terminal receives a first viewpoint rotation operation triggered by the first function controller. In response to the first viewpoint rotation operation, the terminal turns on the first function and the viewpoint rotation function by the first function controller to switch the first viewpoint screen to a second viewpoint screen. When the first function controller is in an on state, the terminal receives a second viewpoint rotation operation triggered by the second function controller. In response to the second viewpoint rotation operation, the terminal turns off the viewpoint rotation function by the first function controller and turns on the second function and the viewpoint rotation function by the second function controller to switch the second viewpoint screen to a third viewpoint screen.
[0070] The method is capable of responding to a viewpoint rotation operation triggered by a second function controller at the same time that a viewpoint rotation function by a first function controller is triggered, i.e., capable of responding to viewpoint rotation operations at at least two contact points on the screen at the same time, thereby improving interaction efficiency during operation. Also, in this method, when the first function controller is in an on state, the terminal responds to a viewpoint rotation operation previously triggered by the second function controller in response to the viewpoint rotation function triggered by the second function controller, and when all of the function controllers having multiple viewpoint rotation functions are on, orderliness and accuracy of the response of the terminal to the viewpoint rotation operation are guaranteed.
[0071] In games such as FPS games, TPS games, and MOBA games, the configuration of a multi-function controller with viewpoint rotation function ensures that players can freely perform viewpoint rotation operations in different states, providing more flexibility and operating space for combat.
[0072] Illustratively, FIG. 5 shows switching of viewpoint rotation functions by a first function controller and a second function controller. When the first function controller is a head-out controller and a scope-viewing controller, and the second function controller is a shooting controller, the user interface 21 in the first viewpoint includes a head-out controller 22, a scope-viewing controller 23, and a shooting controller 24. The terminal receives a first viewpoint rotation operation by the head-out controller 22, rotates the first viewpoint screen to a second viewpoint screen, for example, a user interface 25 in the second viewpoint, and the second viewpoint moves to the right by a distance L1 with respect to the first viewpoint. When the head-out controller 22 is triggered, the terminal accepts a second viewpoint rotation operation by the shooting button 24, rotates the second viewpoint screen to a third viewpoint screen, for example, a user interface 26 in the third viewpoint, and the third viewpoint moves to the right by a distance L2 with respect to the first viewpoint.
[0073] Based on Fig. 4, when the first function controller includes a first function controller in an on state, the terminal can identify a function controller that performs one viewpoint rotation operation from the first function controller when the viewpoint rotation function by the second function controller is turned off. Exemplarily, steps 206 to 208 are added after step 205, as shown in Fig. 6.
[0074] Step 206: It is determined whether the second viewpoint rotation operation by the second function controller is completed.
[0075] The terminal judges whether or not the second viewpoint rotation operation by the second function controller is completed. If the terminal has completed the second viewpoint rotation operation by the second function controller, it executes step 207. If the terminal has not completed the second viewpoint rotation operation by the second function controller, it executes step 208.
[0076] Optionally, the terminal adopts a drag operation for rotating the viewpoint of the virtual character, that is, the second viewpoint rotation operation further includes a drag operation.
[0077] Exemplarily, the second viewpoint rotation operation includes a click operation and a drag operation. When the terminal finishes the drag operation and the click operation by the second function controller, executes step 207. Otherwise, executes step 208. Optionally, the second viewpoint rotation operation includes a long press operation and a drag operation. When the terminal finishes the drag operation and the long press operation by the second function controller, executes step 207. Otherwise, executes step 208.
[0078] When the second viewpoint rotation operation by the second function controller is completed, the viewpoint rotation function by the second function controller is turned off.
[0079] Step 207: Among the first function controllers in the on state, the i-th first function controller in the on state is identified, and the viewpoint rotation function by the i-th first function controller in the on state is turned on.
[0080] When the viewpoint rotation function by the second function controller is turned off and the first function controller is in the on state, the terminal identifies the first function controller that is in the i-th on state (where i is a positive integer) among the first function controllers that are in the on state, and turns on the viewpoint rotation function by the i-th first function controller that is in the on state.
[0081] Optionally, if the first sequence number of the first function controller in the i-th on state is the maximum sequence number, the viewpoint rotation function of the first function controller in the i-th on state is turned on.
[0082] That is, the n first function controllers in the on state are respectively associated with n first sequence numbers, and the maximum sequence number among the n first sequence numbers is identified, the i-th first function controller in the on state corresponding to the maximum sequence number is selected, and the viewpoint rotation function of the i-th first function controller in the on state is turned on, where n is a positive integer.
[0083] Step 208: The second viewpoint rotation operation is still performed by the second function controller.
[0084] As described above, in the viewpoint rotation method according to the present embodiment, when the second viewpoint rotation operation by the second function controller is completed, if multiple first function controllers are in the on state, one first function controller is identified and autonomously takes over the control of viewpoint rotation, thereby maximally guaranteeing the order and accuracy of the response of the terminal to the viewpoint rotation operation when there are multiple function controllers with viewpoint rotation function. In addition, when one viewpoint rotation contact point disappears, the other viewpoint rotation contact point can receive the viewpoint rotation response, and the stuttering of the screen when the viewpoint rotation contact point is re-triggered can be avoided.
[0085] Illustratively, the embodiment shown in the above FIG. 6 can be described in two parts, a pressing process and a releasing process, according to the operation state of the second function controller, and FIG. 7 is a schematic illustration of the pressing process of the second function controller.
[0086] Step 31: Get started. Step 32: The terminal receives a pressing operation (triggering a second viewpoint rotation operation) on a second function controller having a viewpoint rotation function.
[0087] Step 33: The terminal turns on the viewpoint rotation function using the second function controller in response to the pressing operation, and assigns a second sequence number to the second function controller.
[0088] The terminal turns on the viewpoint rotation function by the second function controller in response to the pressing operation, and assigns a second sequence number to the second function controller. For example, if the function controller having the viewpoint rotation function that was triggered immediately before is assigned a sequence number x, the second sequence number becomes x+1. That is, until the second function controller is triggered, x is the maximum sequence number, and x is a positive integer.
[0089] Step 34: The terminal judges whether the first function controller having the viewpoint rotation function is in a pressed state. The terminal determines that the first function controller having the viewpoint rotation function is in a pressed state, and executes step 35. If not, it executes step 36. Step 35: The terminal turns off the viewpoint rotation function by the first function controller. Step 36: Finish. Here, "end" refers to the fact that detection of the first function controller in a pressed state has ended, but the viewpoint rotation function of the second function controller remains in the ON state.
[0090] FIG. 8 illustrates generally the release process for the second function controller.
[0091] Step 41: Get started. Step 42: The terminal receives a release operation (to cancel the second viewpoint rotation operation) for the second function controller having the viewpoint rotation function. Step 43: The terminal determines whether or not the viewpoint rotation function using the second function controller is turned on. If the terminal determines that the viewpoint rotation function by the second function controller is on, it executes step 47. If not, it executes step 44. Step 44: The terminal judges whether the first function controller having the viewpoint rotation function is in a pressed state. If the terminal determines that the first function controller having the viewpoint rotation function is in a pressed state, it executes step 45. If not, it executes step 47. Step 45: The terminal looks for the first feature controller corresponding to the highest sequence number. The terminal identifies the first function controller corresponding to the maximum sequence number from among the n first function controllers in the pressed state. Step 46: The terminal turns on the viewpoint rotation function of the first function controller corresponding to the maximum sequence number. Step 47: Finish. In some embodiments, the user can customize the trigger method of the viewpoint rotation operation. For example, the trigger method of the viewpoint rotation operation can be customized to a click operation, a long press operation, a touch operation, etc. As shown in FIG. 9, customization of the trigger method of the viewpoint rotation operation will be described.
[0092] Step 301: Display the setting interface of the application. A setting interface of the application is displayed on the terminal, and the setting interface includes at least two mode setting control components for setting a trigger method of the viewpoint rotation operation.
[0093] Optionally, the mode setting control component includes at least two of a click mode setting control component, a long press mode setting control component, and a mixed mode setting control component.
[0094] Note that the viewpoint rotation operation corresponding to the click mode setting control component is a click operation. The viewpoint rotation operation corresponding to the long press mode setting control component is a long press operation. The viewpoint rotation operation corresponding to the mixed mode setting control component is a touch operation, and the duration of the touch operation is used to determine whether the second function is turned on or off by the second function controller. Optionally, the viewpoint rotation operation includes one of a first viewpoint rotation operation and a second viewpoint rotation operation. Step 302: Receive a selection operation triggered in a setting interface. The selection operation is used to select a mode setting controller corresponding to the target trigger manner from among the at least two mode setting controllers, and optionally, the selection operation may include at least one of a click operation, a double click operation, a long press operation, and a slide operation. Step 303: In response to the selection operation, the trigger method for the viewpoint rotation operation is identified as the target trigger method.
[0095] The terminal identifies the trigger type of the viewpoint rotation operation as a target trigger type according to the selection operation. Optionally, the target trigger type includes at least two types of operations: a click operation, a long press operation, and a touch operation.
[0096] 10, assuming that the function controller is a scope viewing controller, the setting interface 51 of the application includes setting buttons for three types of scope viewing modes, namely, a click mode setting controller 52, a long press mode setting controller 53, and a mixed mode setting controller 54. The user can select one of the three types of scope viewing modes.
[0097] 11, assuming that the function controller is a head-out controller, the application setting interface 55 includes setting buttons for three types of scope viewing modes, namely, a click mode setting controller 56, a long press mode setting controller 57, and a mixed mode setting controller 58. The user can select one of the three types of head-out modes.
[0098] As described above, in the setting method for viewpoint rotation operation according to the present embodiment, the user can customize the trigger mode of the viewpoint rotation operation, adapt to the user's own shooting habits and operation characteristics, meet the independent operation needs of users at different levels, enrich the user's choices, and provide more personalized combat experiences.
[0099] The first function controller further includes a first function, and the second function controller further includes a second function. In this manner, the first viewpoint rotation operation further controls the on / off of the first function, and the second viewpoint rotation operation further controls the on / off of the second function. An example will be described in which the second viewpoint rotation operation controls the on / off of the second function by the second function controller.
[0100] In some embodiments, the target trigger method includes a click operation. The terminal turns on a second function by a second function controller in response to the click operation. When the click operation ends, the second function by the second function controller is kept on.
[0101] Optionally, the terminal turns off the second function provided by the second function controller in response to a re-click operation on the second function controller while the second function provided by the second function controller is turned on.
[0102] As an example, assuming that the second function controller is a scope viewing controller and the second function is to turn on the lens as shown in FIG. 12, in click mode, the process by which the scope viewing controller controls the on / off of scope viewing is shown in the following procedure.
[0103] Step 61: Start. Step 62: The terminal receives a click operation by the scope viewing controller. Step 63: The terminal determines whether the scope viewing function is turned on. If the terminal determines that the scope peering function is on, it executes step 64. If not, it executes step 65. Step 64: The terminal does not perform co-op peek.
[0104] Step 65: The terminal scopes.
[0105] In some embodiments, the target triggering method includes a long press operation. In response to the long press operation, the terminal turns on a second function by a second function controller. When the long press operation ends, the second function by the second function controller remains on.
[0106] As an option, the terminal turns off the second function provided by the second function controller in response to a click operation of the second function controller while the second function provided by the second function controller is turned on.
[0107] As an example, assuming that the second function controller is a scope viewing controller and the second function is scope viewing as shown in FIG. 13, in the long press mode, the process by which the scope viewing controller controls the on / off of scope viewing is shown in the following procedure.
[0108] Step 71: Start. Step 72: The terminal receives a long press operation on the scope viewing controller. Step 73: The terminal performs a scope look. Step 74: Termination: It is determined whether the long press operation of the scope viewing controller has ended. If the terminal determines that the long press operation of the scope viewing controller has ended, it executes step 75. If not, it executes step 76. Step 75: The terminal does not do any scoping. Step 76: The terminal remains in the scope looking state.
[0109] In some embodiments, the target trigger method includes a touch operation. The terminal turns on a second function by a second function controller in response to the touch operation. When the touch operation ends, a duration of the touch operation is obtained. If the duration is greater than a time threshold, the second function by the second function controller is maintained in an on state. Note that the time threshold is used to determine that the second function by the second function controller is maintained in an on state after the touch operation ends.
[0110] Optionally, the second function by the second function controller is turned off if the duration is equal to or less than the time threshold.
[0111] As an option, the terminal turns off the second function provided by the second function controller in response to a click operation of the second function controller while the second function provided by the second function controller is turned on.
[0112] As an example, assuming that the second function controller is a scope viewing controller and the second function is scope viewing as shown in FIG. 14, the process in which the scope viewing controller controls the on / off of scope viewing in the mixed mode is shown in the following procedure.
[0113] Step 81: Start. Step 82: The terminal receives a touch operation of the scope viewing controller. Step 83: The terminal determines whether the scope viewing function is turned on. If the terminal determines that the long press operation of the scope viewing controller has ended, it executes step 84. If not, it executes step 85. Step 84: The terminal does not do any scoping. Step 85: The terminal takes a scope look. Step 86: The terminal determines whether the operation time for ending the touch operation is greater than the time threshold. If the terminal determines that the operation time at the end of the touch operation is greater than the time threshold, it executes step 87. If not, it executes step 88.
[0114] For example, the time threshold may be 0.2 seconds (s). If the terminal determines that the operation time at the end of the touch operation is longer than 0.2 seconds, it executes step 87. If not, it executes step 88. Step 87: The terminal determines that the touch operation is a long press operation, and maintains the scope viewing state. Step 88: The terminal identifies the touch as a click and does not perform a scope look.
[0115] Note that the step in which the first viewpoint rotation operation controls the on / off of a first function by a first function controller is similar to the step in which the second viewpoint rotation operation controls the on / off of a second function by a second function controller, and therefore will not be described here.
[0116] In some embodiments, the response logic of the viewpoint rotation when the first function controller and the second function controller are triggered is customized by the user, and exemplarily, the terminal controls the viewpoint rotation of the virtual character with the first function controller according to the customization logic, or controls the viewpoint rotation of the virtual character with the second function controller according to the customization logic. Here, the customization logic is the response logic to the viewpoint rotation operation when the first function controller and the second function controller are triggered, which is customized by the user.
[0117] For example, the customization logic may be configured such that, when the first function controller and the second function controller are triggered simultaneously, the terminal turns on the viewpoint rotation function by the first function controller and turns off the viewpoint rotation control by the second function controller. Thus, when the first function controller and the second function controller are triggered simultaneously, the terminal controls the viewpoint rotation of the virtual character with the first function controller.
[0118] In some embodiments, the terminal controls the viewpoint rotation of the virtual character via the gyro. When the first function controller and / or the second control is triggered, the terminal receives its own rotation operation and controls the viewpoint rotation of the virtual character with the gyro.
[0119] As described above, the viewpoint rotation method of this embodiment provides the user with the ability to customize the response logic of viewpoint rotation, allowing the user to customize the control operation logic with a viewpoint rotation function that better suits their own operating habits, thereby improving the user's operating experience during combat.
[0120] In addition, by controlling the rotation of the viewpoint of the virtual character via the gyroscope, the user can rotate the viewpoint of the virtual character and at the same time control operations on other virtual characters, improving the efficiency of interactions during combat.
[0121] 15 is a block diagram of a viewpoint rotation device according to an exemplary embodiment of the present application. The device can be configured as a part or whole of a terminal by software, hardware, or a combination of both. The device includes the following modules:
[0122] a display module 401 for displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing a virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; A receiving module 402 for receiving a first viewpoint rotation operation triggered by a first function controller; a processing module 403 for switching on a first function and a viewpoint rotation function of a first function controller in response to a first viewpoint rotation operation, and switching the first viewpoint screen to a second viewpoint screen, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of a virtual character in the virtual environment; The receiving module 402 receives a second viewpoint rotation operation triggered by a second function controller when the first function controller is in an on state; In response to the second viewpoint rotation operation, the processing module 403 turns off the viewpoint rotation function by the first function controller and turns on the second function and the viewpoint rotation function by the second function controller to switch the second viewpoint screen to a third viewpoint screen, and the third viewpoint screen is a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment.
[0123] In some embodiments, the processing module 403 includes: a generating submodule 4032 for generating a second sequence number of a second function controller in response to a second viewpoint rotation operation; and a processing submodule 4034 that, if the second order number is greater than the first order number, which is the order number of the first function controller, turns off the viewpoint rotation function by the first function controller and turns on the second function and the viewpoint rotation function by the second function controller.
[0124] In some embodiments, the first function controller includes a first function controller in an on state, the first function controller in the on state being associated with a first sequence number; The generation submodule 4032 obtains the maximum sequence number from the first sequence numbers in response to the second viewpoint rotation operation, and increments the maximum sequence number by 1 to identify the obtained sequence number as the second sequence number.
[0125] In some embodiments, the first function controller includes a first function controller in an on state.
[0126] When the second viewpoint rotation operation by the second function controller is completed, the processing submodule 4034 identifies the first function controller that is in the i-th on state (where i is a positive integer) among the first function controllers that are in the on state, and turns on the viewpoint rotation function by the first function controller that is in the i-th on state.
[0127] In some embodiments, the first function controller in the on state is associated with the first sequence number.
[0128] The processing submodule 4034 turns on the viewpoint rotation function by the first function controller in the i-th on state if the first sequence number of the first function controller in the i-th on state is the maximum sequence number.
[0129] In some embodiments, The display module 401 displays a setting interface of the application, and the setting interface includes at least two mode setting controllers for setting a trigger method of the viewpoint rotation operation.
[0130] The receiving module 402 receives a selection operation triggered on the setting interface, and the selection operation is used to select a mode setting controller corresponding to a target triggering manner among the at least two mode setting controllers.
[0131] The identification module 404 identifies the trigger method of the viewpoint rotation operation as the target trigger method in response to the selection operation.
[0132] Here, the viewpoint rotation operation includes either a first viewpoint rotation operation or a second viewpoint rotation operation.
[0133] In some embodiments, the viewpoint rotation operation includes a second viewpoint rotation operation.The target trigger method includes a click operation.
[0134] The processing module 403 turns on the second function of the second function controller in response to the click operation. When the click operation ends, the second function of the second function controller is kept on.
[0135] In some embodiments, the viewpoint rotation operation includes a second viewpoint rotation operation.The target trigger method includes a long press operation.
[0136] The processing module 403 turns on the second function of the second function controller in response to the long press operation. When the long press operation ends, the second function of the second function controller is maintained as on.
[0137] In some embodiments, the viewpoint rotation operation includes a second viewpoint rotation operation. The target trigger method includes a touch operation.
[0138] The processing module 403 turns on the second function of the second function controller in response to the touch operation. When the touch operation ends, the processing module 403 obtains the duration of the touch operation. If the duration is greater than a time threshold, the processing module 403 keeps the second function of the second function controller turned on.
[0139] In some embodiments, the processing module 403 turns off the second function by the second function controller if the duration is less than or equal to the time threshold.
[0140] In some embodiments, the processing module 403 controls the viewpoint rotation of the virtual character with the first function controller according to the customization logic, or controls the viewpoint rotation of the virtual character with the second function controller according to the customization logic, where the customization logic is a response logic customized by the user to a viewpoint rotation operation when the first function controller and the second function controller are triggered.
[0141] As described above, in the viewpoint rotation device according to the present embodiment, the terminal displays a first viewpoint screen of an application, and a first function controller and a second function controller are superimposed on the first viewpoint screen, the first function controller is for supporting a first function and a viewpoint rotation function, and the second function controller is for supporting a second function and a viewpoint rotation function. The terminal receives a first viewpoint rotation operation triggered by the first function controller. In response to the first viewpoint rotation operation, the terminal turns on the first function and the viewpoint rotation function by the first function controller to switch the first viewpoint screen to a second viewpoint screen. With the first function controller in an on state, the terminal receives a second viewpoint rotation operation triggered by the second function controller. In response to the second viewpoint rotation operation, the terminal turns off the viewpoint rotation function by the first function controller, turns on the second function and the viewpoint rotation function by the second function controller, and switches the second viewpoint screen to a third viewpoint screen.
[0142] The device can respond to a viewpoint rotation operation triggered by a second function controller at the same time when the viewpoint rotation function by the first function controller is triggered, i.e., can respond to viewpoint rotation operations at at least two contact points on the screen at the same time, improving interaction efficiency during operation. Also, in this method, when the first function controller is in an on state, the terminal responds to the viewpoint rotation operation previously triggered by the second function controller in response to the viewpoint rotation function triggered by the second function controller, ensuring orderliness and accuracy of the response of the terminal to the viewpoint rotation operation when all of the function controllers having multiple viewpoint rotation functions are on.
[0143] In games such as FPS games, TPS games, and MOBA games, a multi-function controller with viewpoint rotation function can be set up to allow the player to freely rotate the viewpoint in different situations, providing greater flexibility and operational space for combat.
[0144] 16 is a block diagram of a terminal 500 according to an exemplary embodiment of the present application. The terminal 500 may be a smartphone, a tablet, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer iv (MP4) player, a notebook computer, or a desktop computer. The terminal 500 may also be called a user device, a mobile terminal, a laptop terminal, a desktop terminal, or other names.
[0145] Typically, the terminal 500 includes a processor 501 and a memory 502 .
[0146] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented using at least one of the following hardware formats: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 501 may include a main processor and a co-processor. The main processor is a processor for processing data in a wake-up state, and is also called a Central Processing Unit (CPU). The co-processor is a low-power processor for processing data in a standby state. In some embodiments, the processor 501 may incorporate an image processor (Graphics Processing Unit, GPU), which is responsible for rendering and drawing the necessary content to be displayed on the display. In some embodiments, the processor 501 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
[0147] The memory 502 may include one or more computer readable storage media, which may be non-transient. The memory 502 may also include high speed random access memory and non-volatile memory, such as one or more disk storage devices, flash storage devices, etc. In some embodiments, the non-transient computer readable storage media in the memory 502 stores at least one instruction, which is used to be executed by the processor 501 to perform a method of viewpoint rotation according to method embodiments of the present application.
[0148] In some embodiments, the terminal 500 may further include a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502, and the peripheral device interface 503 may be connected to each other via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 503 via a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 504, a touch screen 505, a camera 506, an audio circuit 507, a positioning component 508, and a power source 509.
[0149] The peripheral device interface 503 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 501 and the memory 502. In some embodiments, the processor 501, the memory 502, and the peripheral device interface 503 are integrated on the same chip or circuit board. In some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral device interface 503 may be implemented on separate chips or circuit boards, and is not limited to this embodiment.
[0150] The radio frequency circuit 504 is used to transmit and receive radio frequency (RF) signals, also called electromagnetic signals. The radio frequency circuit 504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 504 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user interface module, and the like. The radio frequency circuit 504 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan networks, intranets, mobile communication networks of each generation (2G, 3G, 4G, 5G), wireless LANs, and / or wireless fidelity (WiFi). In some embodiments, the radio frequency circuit 504 may further include circuitry related to Near Field Communication (NFC), to which the present application is not limited.
[0151] The display 505 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. If the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on or above the surface of the display screen 505. The touch signals may be input as control signals to the processor 501 for processing. In this case, the display screen 505 may also be used to provide virtual buttons and / or virtual keyboards, also called soft buttons and / or soft keyboards. In some embodiments, the display screen 505 may be one and may be located on the front panel of the terminal 500. In another embodiment, the display screen 505 may be at least two, each of which may be located on a different surface of the terminal 500, or may be designed to be folded. In yet another embodiment, the display screen 505 may be a flexible display screen provided on a curved or folded surface of the terminal 500. Furthermore, the display screen 505 may be a non-rectangular irregular shape, i.e., an irregular screen. The display 505 can be made of materials such as a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED).
[0152] The camera component 506 is used to collect images or videos. Optionally, the camera component 506 includes a front camera and a rear camera. Typically, the front camera is installed on the front panel of the terminal, and the rear camera is installed on the rear of the terminal. In some embodiments, at least two of the main camera, the depth of field camera, the wide-angle camera, and the telephoto camera are combined with the rear camera to realize a background blur function by fusing the main camera and the depth of field camera, a panoramic shooting by fusing the main camera and the wide-angle camera, and a virtual reality (VR) shooting function or other fusion shooting function. In some embodiments, the camera component 506 may include a flash. The flash may be a single color temperature flash or a two-color temperature flash. A two-color temperature flash is a combination of a warm flash and a cold flash that can be used to compensate for light at different color temperatures.
[0153] The audio circuit 507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, convert the sound waves into electrical signals, and input them to the processor 501 for processing, or to the radio frequency circuit 504 for voice communication. For the purpose of stereo collection or noise cancellation, there may be multiple microphones, each installed at different parts of the terminal 500. The microphone may be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a conventional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can be used not only to convert electrical signals into sound waves that can be heard by humans, but also to convert electrical signals into sound waves that cannot be heard by humans for distance measurement, etc. In some embodiments, the audio circuit 507 may include an earphone jack.
[0154] The positioning component 508 is used to determine the current geographic location of the terminal 500 in order to realize navigation or location based services (LBS). The positioning component 508 may be a positioning component based on the United States Global Positioning System (GPS), the Chinese Beidou system, or the Russian Galileo system.
[0155] The power source 509 is used to provide power to each component in the terminal 500. The power source 509 may be an AC, DC, disposable battery, or a rechargeable battery. If the power source 509 includes a rechargeable battery, the rechargeable battery may be a wired or wireless rechargeable battery. A wired rechargeable battery is a battery that is charged by a wired line, and a wireless rechargeable battery is a battery that is charged by a wireless coil. The rechargeable battery may also be used to support fast charging technology.
[0156] In some embodiments, the terminal 500 further comprises one or more sensors 510, including, but not limited to, an acceleration sensor 511, a gyro sensor 512, a pressure sensor 513, a fingerprint sensor 514, an optical sensor 515, and a proximity sensor 516.
[0157] The acceleration sensor 511 can detect the magnitude of acceleration on three coordinate axes of a coordinate system created by the terminal 500. For example, the acceleration sensor 511 can be used to detect components of gravitational acceleration on three coordinate axes. The processor 501 can control the touch screen 505 to display the user interface in a horizontal or vertical view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 can also be used for games and for collecting user movement data.
[0158] The gyro sensor 512 can detect the body direction and rotation angle of the terminal 500, and in cooperation with the acceleration sensor 511, can collect 3D movements of the user relative to the terminal 500. The processor 501 can realize functions such as movement detection (for example, changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation according to the data collected by the gyro sensor 512.
[0159] The pressure sensor 513 can be provided on a side frame of the terminal 500 and / or under the touch screen 505. When the pressure sensor 513 is provided on the side frame of the terminal 500, it can detect a gripping signal of the terminal 500 by the user, and the processor 501 can recognize the left and right hands and perform shortcut operations according to the gripping signal collected by the pressure sensor 513. When the pressure sensor 513 is provided under the touch screen 505, the processor 501 controls operability control on the UI interface according to a pressure operation on the touch screen 505 by the user. The operability control includes at least one of button control, scroll bar control, icon control, and menu control.
[0160] The fingerprint sensor 514 is used to collect a fingerprint of a user, and the processor 501 identifies the user's identity from the fingerprint collected by the fingerprint sensor 514, or the processor 501 identifies the user's identity from the fingerprint collected by the fingerprint sensor 514. When the user's identity is identified as a trusted identity, the processor 501 allows the user to perform related confidential operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, changing settings, etc. The fingerprint sensor 514 can be provided on the front, back, or side of the terminal 500. If a physical key or a manufacturer's logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical key or the manufacturer's logo.
[0161] The optical sensor 515 is for collecting the intensity of the ambient light. In one embodiment, the processor 501 may control the display brightness of the touch screen 505 according to the intensity of the ambient light collected by the optical sensor 515. Specifically, when the intensity of the ambient light is high, the display brightness of the touch screen 505 is increased. When the intensity of the ambient light is low, the display brightness of the touch screen 505 is decreased. In another embodiment, the processor 501 may also dynamically adjust the shooting parameters of the camera component 506 according to the intensity of the ambient light collected by the optical sensor 515.
[0162] The proximity sensor 516 is also called a distance sensor and is usually installed on the front panel of the terminal 500. The proximity sensor 516 is for collecting the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the touch screen 505 is controlled by the processor 501 to switch from the on-screen state to the off-screen state. When the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the touch screen 505 is controlled by the processor 501 to switch from the off-screen state to the on-screen state.
[0163] As will be appreciated by those skilled in the art, the structure shown in FIG. 16 is not intended to limit terminal 500, which may include more or fewer components than shown, may combine some components, or may employ a different arrangement of components.
[0164] As can be understood by those skilled in the art, all or part of the steps of the various methods of the above embodiments can be achieved by instructing the relevant hardware with a program, which can be stored in a computer-readable storage medium, which may be a computer-readable storage medium included in the memory of the above embodiments, or can exist independently in a computer-readable storage medium not incorporated in a terminal. The computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to realize the viewpoint rotation method described in any one of Figures 4 to 16.
[0165] Optionally, the computer-readable storage medium may include a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drives (SSD), an optical disk, etc. Here, the Random Access Memory may include a Resistance Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The numbers of the embodiments of the present application are for illustrative purposes only and do not represent the superiority or inferiority of the embodiments.
[0166] As can be understood by those skilled in the art, all or part of the steps for implementing the above-mentioned embodiments may be implemented by hardware, or may be implemented by instructing related hardware by a program. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
[0167] The above description is the preferred embodiments of the present application, and does not limit the present application. Any amendments, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should fall within the protection scope of the present application. [Explanation of symbols]
[0168] 11 Virtual Characters 12 Rotation Center 13 positions 14 positions 15 positions 51 Setting Interface 52 Click mode setting controller 53 Long press mode setting controller 54 Mixed Mode Configuration Controller 55 Setting Interface 56 Click Mode Setting Controller 57 Long press mode setting controller 58 Mixed Mode Configuration Controller 401 Display module 402 Receiver Module 402 Reception Module 403 Processing Module 404 Specific Module 500 terminals 501 Processor 502 Memory 503 Peripheral Device Interface 504 Radio Frequency Circuits 505 Display screen 505 Display 505 Touchscreen 506 Camera Component 506 Camera 507 Audio Circuit 508 Positioning Component 509 Power supply 510 Sensors 511 Acceleration Sensor 512 Gyro sensor 513 Pressure Sensor 514 Fingerprint Sensor 515 Optical Sensor 516 Proximity Sensor 4032 Generation Submodule 4034 Processing Submodule
Claims
1. A method for viewpoint rotation implemented by a terminal, comprising: a step of displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing the virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; receiving a first viewpoint rotation operation triggered by the first function controller, the first viewpoint rotation operation being a drag operation; a step of switching the first viewpoint screen to a second viewpoint screen in response to the first viewpoint rotation operation, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of the virtual character in the virtual environment; receiving a second viewpoint rotation operation triggered by the second function controller when the first function controller is in an on state, the second viewpoint rotation operation being a drag operation; switching the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller rather than the first function controller, the third viewpoint screen being a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment, the first function is one of a head-out function, a co-op function, and a shooting function, and the second function is another one of a head-out function, a co-op function, and a shooting function; a step of switching the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller with priority over the first function controller, generating a second sequence number of the second function controller in response to the second viewpoint rotation operation; switching the second viewpoint screen to a third viewpoint screen when the second sequence number is greater than a first sequence number which is a sequence number of the first function controller; A method for viewpoint rotation comprising:
2. the first function controller includes a first function controller in an ON state, the first function controller in the ON state being associated with the first sequence number; The step of generating a second sequence number of the second function controller in response to the second viewpoint rotation operation includes: obtaining a maximum sequence number from the first sequence numbers in response to the second viewpoint rotation operation; and identifying the sequence number obtained by incrementing the maximum sequence number by 1 as the second sequence number.
2. The method of claim 1 .
3. the first function controller includes a first function controller in an on state; After switching the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller preferentially over the first function controller, the method further comprises: when the second viewpoint rotation operation by the second function controller is completed, identifying an i-th first function controller in the on-state (where i is a positive integer) among the first function controllers in the on-state, and autonomously accepting the viewpoint rotation operation by the i-th first function controller in the on-state, 2. The method of claim 1 .
4. the first function controller in the on state is associated with the first sequence number; a step of identifying an i-th first function controller in the on-state among the first function controllers in the on-state, and autonomously accepting the viewpoint rotation operation by the i-th first function controller in the on-state, when the first sequence number of the i-th first function controller in the on-state is the maximum sequence number, autonomously accepting the viewpoint rotation operation by the i-th first function controller in the on-state; 4. The method according to claim 3 .
5. A method for viewpoint rotation implemented by a terminal, comprising: a step of displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing the virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; receiving a first viewpoint rotation operation triggered by the first function controller, the first viewpoint rotation operation being a drag operation; a step of switching the first viewpoint screen to a second viewpoint screen in response to the first viewpoint rotation operation, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of the virtual character in the virtual environment; receiving a second viewpoint rotation operation triggered by the second function controller when the first function controller is in an on state, the second viewpoint rotation operation being a drag operation; switching the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller rather than the first function controller, the third viewpoint screen being a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment, the first function is one of a head-out function, a co-op function, and a shooting function, and the second function is another one of a head-out function, a co-op function, and a shooting function; Controlling a viewpoint rotation of the virtual character with the first function controller according to customization logic; or and controlling a viewpoint rotation of the virtual character with the second function controller according to the customization logic; The customization logic is a response logic to a viewpoint rotation operation when the first function controller and the second function controller customized by a user are triggered. A method for viewpoint rotation comprising:
6. A viewpoint rotation device, comprising: a display module for displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing a virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; a receiving module for receiving a first viewpoint rotation operation triggered by the first function controller, the first viewpoint rotation operation being a drag operation; a processing module for switching the first viewpoint screen to a second viewpoint screen in response to the first viewpoint rotation operation, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of the virtual character in the virtual environment; the receiving module receives a second viewpoint rotation operation triggered by the second function controller when the first function controller is in an on state, the second viewpoint rotation operation being a drag operation; the processing module switches the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller with priority over the first function controller; the third viewpoint screen is a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment, the first function is one of a head-out function, a co-op function, and a shooting function, and the second function is another one of a head-out function, a co-op function, and a shooting function; The switching of the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller rather than the first function controller by the processing module includes: generating a second sequence number of the second function controller in response to the second viewpoint rotation operation; switching the second viewpoint screen to a third viewpoint screen when the second sequence number is greater than a first sequence number which is a sequence number of the first function controller; Including, A viewpoint rotation device comprising:
7. A viewpoint rotation device, comprising: a display module for displaying a first viewpoint screen of an application, the first viewpoint screen being a screen when observing a virtual environment using a first viewpoint direction of a virtual character in the virtual environment, a first function controller and a second function controller being superimposed on the first viewpoint screen, the first function controller being for supporting a first function and a viewpoint rotation function, and the second function controller being for supporting a second function and a viewpoint rotation function; a receiving module for receiving a first viewpoint rotation operation triggered by the first function controller, the first viewpoint rotation operation being a drag operation; a processing module for switching the first viewpoint screen to a second viewpoint screen in response to the first viewpoint rotation operation, the second viewpoint screen being a screen when the virtual environment is observed using a second viewpoint direction of the virtual character in the virtual environment; the receiving module receives a second viewpoint rotation operation triggered by the second function controller when the first function controller is in an on state, the second viewpoint rotation operation being a drag operation; the processing module switches the second viewpoint screen to a third viewpoint screen in response to the second viewpoint rotation operation triggered by the second function controller with priority over the first function controller; the third viewpoint screen is a screen when the virtual environment is observed using a third viewpoint direction of the virtual character in the virtual environment, the first function is one of a head-out function, a co-op function, and a shooting function, and the second function is another one of a head-out function, a co-op function, and a shooting function; The processing module includes: Controlling a viewpoint rotation of the virtual character with the first function controller according to customization logic; or Controlling a viewpoint rotation of the virtual character with the second function controller according to the customization logic. The method further comprises: The customization logic is a response logic to a viewpoint rotation operation when the first function controller and the second function controller customized by a user are triggered. A viewpoint rotation device comprising:
8. A terminal, Memory, A processor coupled to the memory; Including, A terminal, characterized in that the processor is configured to load and execute executable instructions to implement the method of viewpoint rotation according to any one of claims 1 to 5.
9. A computer program comprising: Includes instructions, When the instructions are executed on a computer, the computer is caused to execute the viewpoint rotation method according to any one of claims 1 to 5. A computer program comprising:
Citation Information
Patent Citations
Control method and device of shooting game
CN108525294A
Object aiming method and device, storage medium and electronic device
CN108553891A
Method, device, apparatus and storage medium for controlling virtual role
CN109350964A
Method, device and unit for rotating viewing angle and storage medium
CN109821237A
User interface program
JP2017134802A