Adjusting method, device and equipment for virtual sighting telescope and storage medium

By acquiring gyroscope data and adjusting the attitude of the terminal equipment, the automatic adjustment of the virtual scope is achieved, which solves the problem of complex magnification adjustment of the virtual scope in the prior art and improves user operation efficiency.

CN119868953APending Publication Date: 2025-04-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311387078.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, the magnification adjustment of the virtual scope requires the user to perform complex clicking and sliding operations, resulting in complex and inconvenient operations.

Method used

By displaying the first environment screen of the virtual environment through the virtual scope, acquiring gyroscope data in response to the user's operation, adjusting the posture of the terminal device to adjust the parameters of the virtual scope, and automatically adjusting the virtual scope is realized.

Benefits of technology

The adjustment process of the virtual scope is simplified. Users only need to adjust the magnification of the virtual scope by adjusting the posture of the terminal device, which improves the operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119868953A_ABST
    Figure CN119868953A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual sighting telescope adjusting method and device, equipment and a storage medium. Relates to the technical field of computers. The method comprises the following steps: displaying a first environment picture obtained by observing a virtual environment through a virtual sighting telescope; in response to a first operation used for triggering adjustment of the virtual sighting telescope, first motion data collected by a gyroscope are obtained, and the first motion data are used for determining the posture change condition of the terminal equipment; and in response to a second operation for adjusting the posture of the terminal equipment, displaying a second environment picture obtained by observing the virtual environment through the adjusted virtual sighting telescope. According to the method, under the condition that the virtual sighting telescope is triggered and adjusted, the picture display of the virtual sighting telescope can be adjusted only by adjusting the posture of the terminal equipment, a user does not need to carry out sliding operation any more, and the adjusting efficiency of the user on the virtual sighting telescope is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, equipment and storage medium for adjusting a virtual sight. Background Art

[0002] In a virtual shooting scene, users can use a virtual sight installed on a virtual shooting prop to observe and aim at the target.

[0003] In the related art, after clicking the relevant controls of the virtual sight (such as the focus adjustment button corresponding to the virtual sight), the user can adjust the magnification of the virtual sight by sliding the button in the slider control (the slider control can indicate the magnification supported by the virtual sight), so as to aim at the shooting target more accurately.

[0004] However, the above-mentioned method for adjusting the virtual sight requires a series of operations such as the user clicking, searching for a button in a slider, and sliding the button in the slider, which is relatively complicated. Summary of the invention

[0005] The embodiment of the present application provides a method, device, equipment and storage medium for adjusting a virtual sight. The technical solution provided by the embodiment of the present application is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for adjusting a virtual sight is provided, the method comprising:

[0007] Displaying a first environment picture obtained by observing the virtual environment through a virtual sight;

[0008] In response to a first operation for triggering adjustment of the virtual sight, acquiring first motion data collected by the gyroscope, wherein the first motion data is used to determine a change in the posture of the terminal device;

[0009] In response to a second operation for adjusting the posture of the terminal device, a second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed; wherein the parameters of the adjusted virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

[0010] According to one aspect of an embodiment of the present application, a device for adjusting a virtual sight is provided, the device comprising:

[0011] An environment display module, used to display a first environment picture obtained by observing the virtual environment through a virtual sight;

[0012] an acquisition module, configured to acquire first motion data collected by the gyroscope in response to a first operation for triggering adjustment of the virtual sight, wherein the first motion data is used to determine a change in the posture of the terminal device;

[0013] The environment display module is also used to respond to a second operation for adjusting the posture of the terminal device, and display a second environment picture obtained by observing the virtual environment through an adjusted virtual sight; wherein the parameters of the adjusted virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

[0014] According to one aspect of an embodiment of the present application, a terminal device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned virtual sight adjustment method.

[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned virtual sight adjustment method.

[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium, and a processor reading and executing the computer program from the computer-readable storage medium to implement the above-mentioned virtual sight adjustment method.

[0017] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:

[0018] A first environment picture obtained by observing the virtual environment through a virtual sight is displayed. Then, in response to a first operation for triggering the adjustment of the virtual sight, first motion data for determining the change in the posture of the terminal device is obtained. And, in response to a second operation for adjusting the posture of the terminal device, a second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed. In the case of triggering the adjustment of the virtual sight, the picture display of the virtual sight can be adjusted only by adjusting the posture of the terminal device, and the user is no longer required to perform a sliding operation, thereby improving the user's adjustment efficiency of the virtual sight. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of two types of virtual sights provided by an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a magnification adjustment process of a virtual sight provided by an embodiment of the present application;

[0022] Figure 4 is a flow chart of a method for adjusting a virtual sight provided by an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a first environment screen and a second environment screen provided by an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of enabling a gyroscope option in a game client provided by an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of a parameter adjustment interface provided by an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of the rotation direction of a terminal device provided by an embodiment of the present application;

[0027] Fig. 9 is a schematic diagram of adjusting the magnification of a virtual sight provided by an embodiment of the present application;

[0028] Fig.10 is a schematic diagram of adjusting the magnification of a virtual sight provided by another embodiment of the present application;

[0029] Fig.11 is a schematic diagram of multiple candidate parameters displayed in a vertical arrangement according to an embodiment of the present application;

[0030] Fig.12 is a schematic diagram of multiple candidate parameters displayed in a horizontal arrangement according to an embodiment of the present application;

[0031] Fig.13 is a flowchart of triggering and ending adjustment of a virtual sight provided by an embodiment of the present application;

[0032] Fig.14 is a flow chart of an adjustment scheme of a virtual sight provided by an embodiment of the present application;

[0033] Fig.15 is a block diagram of an adjustment device for a virtual sight provided by an embodiment of the present application;

[0034] Fig.16 This is a structural block diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0036] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application. The implementation environment may include: a terminal device 10 and a server 20.

[0037] The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a multimedia player, a PC (Personal Computer), a wearable device, a vehicle-mounted terminal device, etc. A client running a target application may be installed in the terminal device 10, and the target application may be a game application, such as a shooting game application, or other applications providing shooting games.

[0038] The server 20 can be used to provide background services for the client of the target application (such as a game application) in the terminal device 10. For example, the server 20 can be a background server of the above-mentioned target application (such as a game application). The server 20 can be a single server, a server cluster composed of multiple servers, or a cloud computing service center.

[0039] The terminal device 10 and the server 20 may communicate via a network, such as a wireless or wired network.

[0040] In addition, in the embodiments of the present application, there is no limitation on the implementation form of the target application. For example, it may be an application that needs to be downloaded and installed, a small program that does not need to be installed, a web application, etc.

[0041] In a virtual shooting scene, the magnification of the virtual environment by the virtual scope is often not fixed. That is, the same virtual scope can support magnification of the virtual environment at multiple magnifications. For example, please refer to Figure 2 For the first type of virtual sight 21, as shown by the first slider control 23, it can magnify the virtual environment within the range of 4 times to 8 times. For the second type of virtual sight 22, as shown by the second slider control 24, it can magnify the virtual environment within the range of 3 times to 6 times. It should be noted that the first type of virtual sight 21, the second type of virtual sight 22, the first slider control 23 and the second slider control 24 are Figure 2 Not all are marked. Figure 2Only some marks are used for exemplary explanation. Therefore, for different shooting targets, the virtual sight can be adjusted accordingly to facilitate the user's aiming. For example, when the shooting target is close to the user's virtual character, the magnification of the virtual sight can be lowered; when the shooting target is far away from the user's virtual character, the magnification of the virtual sight can be increased. It can be seen that in a virtual shooting scene, adjusting the virtual sight is a high-frequency operation.

[0042] Next, the process of adjusting the magnification of the virtual sight in the related art is introduced.

[0043] Please refer to Figure 3 , which shows a schematic diagram of the magnification adjustment process of the virtual sight provided by an embodiment of the present application.

[0044] In the above magnification adjustment process, first, the user needs to click the distance adjustment button 31 in the interface to open a magnification range ( Figure 3 Then, the user needs to slide the slide button 32 in the above slide bar to adjust the magnification. Finally, after the user has completed the adjustment of the magnification, the user needs to click the close button 33 to retract the above slide bar.

[0045] It can be seen that the above magnification adjustment process is relatively complicated and is quite different from the adjustment method of a real scope, lacking the sense of substitution and immersion in the shooting scene. To solve the above problems, the embodiment of the present application provides a method for adjusting a virtual scope based on the posture change of a terminal device. Please refer to the embodiment below for details.

[0046] Please refer to Figure 4 , which shows a flow chart of a method for adjusting a virtual sight provided by an embodiment of the present application. The execution subject of each step of the method is a terminal device, such as a client of a target application in the terminal device, and a gyroscope is provided in the terminal device. The method may include at least one of the following steps 410 to 430.

[0047] Step 410, displaying a first environment picture obtained by observing the virtual environment through a virtual sight.

[0048] Gyroscopes (also known as angular velocity sensors) can be used to measure the angular velocity of a device when it is physically deflected or tilted. They are widely used in terminal devices and are mature and reliable. Gyroscopes can accurately analyze and determine the user's actual actions, and the terminal device will make corresponding interactive feedback based on the actions to complete the human-computer interaction process.

[0049] A virtual environment refers to a scene displayed by a terminal device that simulates the real world. A virtual environment can be displayed in a user interface, and users can control virtual characters to act in the virtual environment. Virtual characters refer to objects that users can manipulate in the virtual environment, and virtual characters can interact with the virtual environment. For example, in a shooting game, the virtual environment is displayed in the game interface, and users can control virtual characters to move and shoot in the virtual environment.

[0050] In some embodiments, a virtual sight is mounted on a virtual shooting prop to assist in aiming and shooting. A virtual shooting prop refers to a virtual prop used for shooting. For example, in a shooting game, a user can control a virtual character to purchase or pick up a virtual shooting prop and use the virtual shooting prop to shoot.

[0051] In some embodiments, the virtual sight is not installed on the virtual shooting prop, in which case the virtual sight can also be used to observe the virtual scene. For example, in a shooting game, the virtual sight can be directly used to observe the virtual environment.

[0052] In some embodiments, the virtual sight is used to enlarge and display the virtual environment, that is, the first environment picture is an enlarged picture of the virtual environment. In other embodiments, the virtual sight may not enlarge and display the virtual environment. For example, when the shooting target is close to the user's virtual character, the user only needs to use the crosshairs in the virtual sight to aim at the shooting target without enlarging the virtual environment.

[0053] The first environment picture refers to the picture obtained by observing the virtual environment through a virtual sight.

[0054] When the virtual sight is in an open (ie, unfolded) state, the unfolded virtual sight will be displayed in the user interface, and a first environment picture will be displayed in an observation area corresponding to the unfolded virtual sight.

[0055] For example, please refer to Figure 5 , a first environment image 52 can be observed through the virtual sight 51 .

[0056] Step 420, in response to a first operation for triggering adjustment of the virtual sight, first motion data collected by the gyroscope is acquired, and the first motion data is used to determine a change in the posture of the terminal device.

[0057] In some embodiments, the first motion data is angular velocity data of the terminal device.

[0058] In some embodiments, the first motion data is rotation direction and rotation angle data of the terminal device determined based on the angular velocity data.

[0059] The change in posture of the terminal device may include the terminal device being rotated, tilted, etc.

[0060] In the embodiment of the present application, in order to distinguish it from other operations, the operation for triggering the adjustment of the virtual sight is referred to as the first operation. The so-called "first operation for triggering the adjustment of the virtual sight" means that when the first operation is performed, the adjustment of the virtual sight begins. In some embodiments, "triggering the adjustment of the virtual sight" can also be referred to as entering a specific mode, in which the user can adjust the virtual sight.

[0061] In some embodiments, in response to the first operation, the gyroscope is activated and starts to collect first motion data.

[0062] In some embodiments, the gyroscope continuously collects the first motion data, and in response to the first operation, the first motion data collected by the gyroscope is acquired.

[0063] In some embodiments, the first operation includes: an operation on a first control, the first control is a control for triggering adjustment of a virtual sight. The first control is set in a user interface, for example, the first control can be set in a game interface. The first control can be displayed in the user interface in the form of a button, a slider, a text option, etc., and this application does not limit this.

[0064] In some embodiments, in response to a user's aiming operation, a first control is displayed. The aiming operation of the user refers to an operation of the user unfolding a virtual aiming scope, and only after the virtual aiming scope is unfolded can the user observe the virtual environment through the virtual aiming scope. In some embodiments, the virtual aiming scope can be unfolded by clicking the aiming control in the user interface.

[0065] In some embodiments, the operation on the first control is a long press operation on the first control, that is, the user can trigger the adjustment of the virtual sight by long pressing the first control. The long press operation on the first control refers to a continuous pressing operation on the first control, that is, the pressing operation on the first control for more than a set time can be called a long press operation on the first control. The set time can be the second threshold in the following embodiments.

[0066] In some embodiments, the operation on the first control is a click operation on the first control, that is, the user can trigger the adjustment of the virtual sight by clicking on the first control. The click operation on the first control refers to a short-term pressing operation on the first control, that is, a pressing operation on the first control that is less than a set time can be called a click operation on the first control.

[0067] In some embodiments, the first operation may also include sliding, dragging, and other operations on the first control, which is not limited in this application.

[0068] The above method controls the conditions for triggering the adjustment of the virtual sight by setting the first control, so that the user can choose whether to adjust the virtual sight according to his own needs.

[0069] In some embodiments, in response to an operation on a first control, where the duration of the operation on the first control is greater than or equal to a second threshold, first motion data collected by a gyroscope is acquired.

[0070] In the embodiment of the present application, in order to distinguish the motion data collected by the gyroscope from the motion data collected by other sensors (such as an acceleration sensor), the motion data collected by the gyroscope is referred to as the first motion data.

[0071] The second threshold can be set by the technician as needed, for example, it can be set to 0.2 seconds, 0.3 seconds, 0.5 seconds, etc., and this application does not limit this.

[0072] In some embodiments, in response to the first control being pressed for a duration greater than or equal to a second threshold, the first motion data collected by the gyroscope is acquired. Further, when the first control is held down (ie, continuously pressed), the first motion data collected by the gyroscope is continuously acquired.

[0073] The above method can effectively prevent the user from triggering the adjustment of the virtual sight due to accidentally touching the first control by setting the duration of the operation on the first control.

[0074] In some embodiments, the technical solution provided by the embodiments of the present application is applied to a game client. Before responding to a first operation for triggering adjustment of a virtual sight and obtaining first motion data collected by a gyroscope, the game client needs to be allowed to enable the gyroscope to adjust the sight. Figure 6 After selecting the "gyroscope switching aiming scope" option, in response to the first operation for triggering the adjustment of the virtual aiming scope, the first motion data collected by the gyroscope is obtained. The "gyroscope switching option" can be displayed in the setting interface of the game client. Further, the game interface can display setting options (such as displayed in the form of icons or text). When the user clicks the setting option, the above setting interface is displayed in the game interface. The user can open the above "gyroscope switching aiming scope" option in the setting interface by clicking or sliding.

[0075] Step 430, in response to the second operation for adjusting the posture of the terminal device, displaying a second environment picture obtained by observing the virtual environment through the adjusted virtual sight.

[0076] The adjusted parameters of the virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

[0077] In the embodiment of the present application, in order to distinguish it from other operations, the operation for adjusting the posture of the terminal device is referred to as the second operation. The so-called "the second operation is used to adjust the posture of the terminal device" means that when the second operation is performed, the posture of the terminal device changes. In other words, the second operation may refer to the operation of the user moving the terminal device, which may include operations such as rotating and tilting the terminal device.

[0078] The second environment picture refers to the picture obtained by observing the virtual environment through the adjusted virtual sight.

[0079] The second environment picture may be changed compared to the first environment picture. For example, the second environment picture may be zoomed in or zoomed out compared to the first environment picture; or, the brightness of the second environment picture may be changed compared to the first environment picture, such as being higher or lower; or, the clarity of the second environment picture may be changed compared to the first environment picture, such as being clearer or more blurred; or, the style of the crosshairs or crosshairs of the virtual sight in the second environment picture may be changed compared to the first environment picture, such as changing the crosshairs or crosshairs from dark to light.

[0080] For example, please refer to Figure 5 In response to the second operation for adjusting the posture of the terminal device, a second environment picture 53 can be observed through the virtual sight 51, and the second environment picture 53 is enlarged and displayed compared to the first environment picture 52.

[0081] The technical solution provided by the embodiment of the present application is to display a first environmental picture obtained by observing the virtual environment through a virtual sight. Then, in response to a first operation for triggering the adjustment of the virtual sight, first motion data for determining the change in the posture of the terminal device is obtained. And, in response to a second operation for adjusting the posture of the terminal device, a second environmental picture obtained by observing the virtual environment through the adjusted virtual sight is displayed. In the case of triggering the adjustment of the virtual sight, the screen display of the virtual sight can be adjusted only by adjusting the posture of the terminal device, and the user is no longer required to perform a sliding operation, thereby improving the user's adjustment efficiency of the virtual sight.

[0082] In the above embodiments, the display of the environment picture obtained by observing the virtual environment through the virtual sight is adjusted according to the posture change of the terminal device. In some embodiments, the parameter change of the virtual sight can also be intuitively prompted, which will be described in detail in the following embodiments.

[0083] In some embodiments, the adjustment method of the virtual sight further includes: displaying a parameter adjustment interface of the virtual sight, wherein the parameter adjustment interface displays a first prompt message and a plurality of candidate parameters supported by the virtual sight, and the first prompt message is used to mark the parameters in a selected state from the plurality of candidate parameters. The parameter adjustment interface is displayed in a user interface, and in some embodiments, the parameter adjustment interface can be displayed in an environment picture (such as a first environment picture) observed through the virtual sight. In some embodiments, the parameter adjustment interface can be displayed outside the environment picture observed through the virtual sight, such as around the virtual sight (above, below, on the left and on the right of the virtual sight). In the parameter adjustment interface, the parameters in a selected state can be used to indicate the current parameters of the virtual sight.

[0084] Exemplarily, in the user interface, when the first environment screen and the parameter adjustment interface are displayed at the same time, if the magnification "6x" is marked in the parameter adjustment interface, it indicates that the current magnification of the virtual sight is 6x, and the first environment screen is magnified 6 times compared to the corresponding virtual environment.

[0085] In some embodiments, in response to the first operation (or after the first operation), a parameter adjustment interface of the virtual sight is displayed. That is, obtaining the first motion data and displaying the parameter adjustment interface of the virtual sight can be performed simultaneously. Exemplarily, after the user long presses or clicks the first control, the first motion data is obtained, and the parameter adjustment interface of the virtual sight is displayed.

[0086] In some embodiments, in response to the second operation (or after the second operation), a parameter adjustment interface of the virtual sight is displayed. That is, displaying the second environment picture obtained by observing the virtual environment through the adjusted virtual sight and displaying the parameter adjustment interface of the virtual sight can be performed simultaneously. Exemplarily, after the user rotates or tilts the terminal device, the second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed, and the parameter adjustment interface of the virtual sight is displayed.

[0087] The multiple candidate parameters supported by the virtual sight may be multiple different magnifications supported by the virtual sight, or other types of parameters, for example, multiple different picture display brightnesses supported by the virtual sight (i.e., the brightness of the environment picture observed through the virtual sight), multiple different picture display clarity supported by the virtual sight (i.e., the clarity of the environment picture observed through the virtual sight), and multiple different styles of crosshairs or crosshairs supported by the virtual sight (e.g., crosshairs or crosshairs with different patterns or different colors).

[0088] The first prompt information may be represented by displaying the selected parameter in different colors or patterns, or may be represented by displaying a specific symbol (such as an arrow) to mark the selected parameter. The present application does not limit the form of expression of the first prompt information.

[0089] In some embodiments, the plurality of candidate parameters are arranged in a certain order and direction in the parameter adjustment interface, for example, arranged one by one along a straight line according to the size of the parameter value.

[0090] For example, please refer to Figure 7 In response to long pressing the first control 71 for more than 0.2 seconds, a parameter adjustment interface 72 of the virtual sight is displayed, and the parameter adjustment interface 72 displays multiple candidate magnifications supported by the virtual sight, among which the magnification "6 times" is in a selected state.

[0091] The above method sets a parameter adjustment interface so that the user can know the parameter value currently corresponding to the virtual sight in real time while adjusting the virtual sight, thereby improving the accuracy of parameter adjustment of the virtual sight.

[0092] In some embodiments, according to the first operation or the second operation, a first parameter type to be adjusted is determined from a plurality of parameter types of the virtual sight, and a parameter adjustment interface related to the first parameter type is displayed.

[0093] The above-mentioned various parameter types may include the magnification of the virtual sight, the screen display brightness, the screen display clarity, the style of the crosshairs or crosshairs in the virtual sight, etc.

[0094] In some embodiments, multiple parameter types may correspond to different controls, and the first parameter type to be adjusted may be determined from the multiple parameter types of the virtual sight according to the first operation (such as click and long press) for different controls. For example, if the user interface simultaneously displays a magnification adjustment control, a brightness adjustment control, a clarity adjustment control, and a crosshair adjustment control, the first parameter type may be determined to be the magnification according to the user's operation on the magnification adjustment control, the first parameter type may be determined to be the screen display brightness according to the user's operation on the brightness adjustment control, the first parameter type may be determined to be the screen display clarity according to the user's operation on the clarity adjustment control, and the first parameter type may be determined to be the crosshair or crosshair style of the virtual sight according to the user's operation on the crosshair adjustment control.

[0095] In some embodiments, multiple parameter types may correspond to different rotation axes, and the first parameter type to be adjusted may be determined from the multiple parameter types of the virtual sight according to the rotation operation around different axes. For example, if the terminal device rotates around an axis perpendicular to the plane where the screen of the terminal device is located, the first parameter type is the magnification; if the terminal device rotates around an axis parallel to the plane where the screen of the terminal device is located, the first parameter type is the screen display brightness.

[0096] The above method can selectively adjust the parameters of various virtual sights by adjusting the posture of the terminal device.

[0097] In some embodiments, when the terminal device rotates about a first axis toward a first direction, when the rotation angle is greater than or equal to a first threshold, the parameter in the selected state changes from the first parameter to the second parameter.

[0098] In some embodiments, when the terminal device rotates about the first axis toward the second direction, when the rotation angle is greater than or equal to the first threshold, the parameter in the selected state changes from the first parameter to the third parameter.

[0099] The first threshold can be set based on the user's operating habits. For example, the first threshold can be adjusted according to the game operation sensitivity set by the user. For example, if the user sets a high sensitivity, the first threshold can be set to a smaller value, such as 10 degrees or 15 degrees. If the user sets a low sensitivity, the first threshold can be set to a larger value, such as 20 degrees or 30 degrees.

[0100] In some embodiments, the user can adjust the game operation sensitivity in the setting interface of the game client. When the game operation sensitivity changes, the first threshold value also changes accordingly. For the specific introduction of the setting interface, please refer to the above embodiment, which will not be repeated here.

[0101] The first axis mentioned above refers to the rotation axis with reference to which the terminal device performs a rotation operation.

[0102] The first direction and the second direction are opposite, and the second parameter and the third parameter are different. In some embodiments, the first direction is a clockwise direction around the first axis, and correspondingly, the second direction is a counterclockwise direction around the first axis. In some embodiments, the first direction is a counterclockwise direction around the first axis, and correspondingly, the second direction is a clockwise direction around the first axis. For example, please refer to Figure 8For a terminal device, the center point of the terminal device's screen can be used as the coordinate origin, the straight line passing through the coordinate origin and perpendicular to the plane where the terminal device's screen is located can be used as the z-axis, the straight line passing through the coordinate origin and perpendicular to the shorter side of the terminal device's screen can be used as the y-axis, and the straight line passing through the coordinate origin and perpendicular to the longer side of the terminal device's screen can be used as the x-axis to construct a coordinate system. Furthermore, if the z-axis is used as the first axis, Figure 8 The counterclockwise direction around the z-axis is shown as the second direction, and correspondingly, the clockwise direction is the first direction.

[0103] For example, please refer to Fig. 9 When the terminal device is rotated 15 degrees clockwise around the first axis, the magnification in the selected state changes from "6 times" to "8 times".

[0104] For example, please refer to Fig.10 When the terminal device rotates 15 degrees counterclockwise around the first axis, the magnification in the selected state first changes from "6 times" to "4 times", and then changes from "4 times" to "2 times" after the next counterclockwise rotation of 15 degrees.

[0105] Exemplarily, when the terminal device rotates 15 degrees clockwise around the first axis, the brightness of the display screen in the selected state changes from "medium bright" to "high bright"; when the terminal device rotates 15 degrees counterclockwise around the first axis, the brightness of the display screen in the selected state changes from "medium bright" to "low bright".

[0106] Exemplarily, when the terminal device rotates 15 degrees clockwise around the first axis, the clarity of the display picture in the selected state changes from "medium picture quality" to "high picture quality"; when the terminal device rotates 15 degrees counterclockwise around the first axis, the brightness of the display picture in the selected state changes from "medium picture quality" to "low picture quality".

[0107] Exemplarily, when the terminal device rotates 15 degrees clockwise around the first axis, the crosshair style in the selected state changes from "default crosshair" to "dark crosshair"; when the terminal device rotates 15 degrees counterclockwise around the first axis, the crosshair style in the selected state changes from "default crosshair" to "light crosshair".

[0108] In addition, it should be noted that, in some embodiments, when the above-mentioned parameters in the selected state change, the picture obtained by observing the virtual environment through the virtual sight will also change accordingly.

[0109] Exemplarily, if the first environment picture corresponds to a 6-fold magnification of the virtual sight, when the magnification in the selected state changes from "6 times" to "8 times", the second environment picture is enlarged compared to the first environment picture; when the magnification in the selected state changes from "6 times" to "4 times", the second environment picture is reduced compared to the first environment picture.

[0110] Exemplarily, if the brightness of the first environment screen is medium brightness, when the display brightness of the screen in the selected state changes from "medium brightness" to "high brightness", the brightness of the second environment screen is increased compared to the first environment screen; when the display brightness of the screen in the selected state changes from "medium brightness" to "low brightness", the brightness of the second environment screen is reduced compared to the first environment screen.

[0111] Exemplarily, if the clarity of the first environment picture is medium quality, when the display clarity of the selected picture changes from "medium quality" to "high quality", the clarity of the second environment picture is improved compared with the first environment picture; when the display brightness of the selected picture changes from "medium quality" to "low quality", the clarity of the second environment picture is reduced compared with the first environment picture.

[0112] Exemplarily, if the crosshair style of the virtual sight in the first environment screen is the default crosshair, when the crosshair style in the selected state changes from "default crosshair" to "dark crosshair", the color of the crosshair in the second environment screen becomes darker than that in the first environment screen; when the crosshair style in the selected state changes from "default crosshair" to "light crosshair", the color of the crosshair in the second environment screen becomes lighter than that in the first environment screen.

[0113] The above method selects the direction of adjusting the parameters of the virtual sight (for example, increasing or decreasing the magnification) by selecting different rotation directions, which simulates the way of adjusting the magnification of the sight in the real world and is relatively convenient.

[0114] In some embodiments, when a parameter in a selected state changes, the terminal device is controlled to generate vibration feedback.

[0115] For example, please refer to Fig.10 When the magnification ratio in the selected state changes from "6 times" to "4 times", the terminal device is controlled to vibrate. When the magnification ratio in the selected state changes from "4 times" to "2 times", the terminal device is controlled to vibrate again.

[0116] The above method can prompt the user through body sensation that the parameters of the virtual sight have changed, ensuring that the user selects parameters that meet their needs.

[0117] In some embodiments, in response to a third operation for confirming the selection, the parameter in the selected state is determined as the parameter of the adjusted virtual sight.

[0118] The third operation refers to an operation for confirming a selection, and further refers to an operation for confirming the parameters of the virtual sight after the selection is adjusted.

[0119] In some embodiments, the third operation is used to end the adjustment of the virtual sight. That is, after the third operation is performed, the parameters of the virtual sight will no longer be adjusted in response to the second operation for adjusting the posture of the terminal device. In some embodiments, in response to the third operation, the display of the parameter adjustment interface is canceled. In some embodiments, in response to the third operation, the acquisition of the first motion data collected by the gyroscope is stopped.

[0120] In some embodiments, the third operation is clicking on the first control or stopping long pressing of the first control.

[0121] In some embodiments, the first operation is a click operation on the first control. Accordingly, in response to clicking the first control again, the parameters in the selected state are determined as the parameters of the adjusted virtual sight.

[0122] In some embodiments, the first operation is a long press operation on the first control. Accordingly, in response to stopping the long press on the first control, the parameters in the selected state are determined as the parameters of the adjusted virtual sight.

[0123] In the embodiment of the present application, the third operation corresponds to the first operation, and may also be an operation such as sliding or dragging on the first control, which is not limited in the present application.

[0124] For example, please refer to Fig. 9 , when the initial magnification (i.e., the magnification when the scope adjustment is triggered) is 6x, when the magnification is 6x in the selected state, stop pressing the first control (i.e., the user releases the control), and 6x is determined as the magnification of the adjusted virtual scope, i.e., the magnification remains unchanged. When the magnification is 8x in the selected state, stop pressing the first control, and the magnification is changed to 8x. Similarly, please refer to Fig.10 , when the initial magnification is 6 times, when the magnification is 6 times in the selected state, stop long pressing the first control, and 6 times can be determined as the magnification of the adjusted virtual sight, that is, the magnification remains unchanged. When the magnification is 4 times in the selected state, stop long pressing the first control, and the magnification is changed to 4 times. When the magnification is 2 times in the selected state, stop long pressing the first control, and the magnification is changed to 2 times.

[0125] Through the above method, the parameter adjustment process of the virtual sight can be ended when the user confirms that the appropriate parameters have been adjusted.

[0126] In some embodiments, a cancel option is also displayed in the parameter adjustment interface. In response to the third operation for confirming the selection, when the cancel option is selected, it is determined that the parameters of the virtual sight are not adjusted.

[0127] For example, please refer to Fig. 9 , when the initial magnification is 6 times, when the selected option is cancel option 91, stop pressing the first control, confirm that the parameters of the virtual sight are not adjusted, and the magnification of the virtual sight remains 6 times. Similarly, please refer to Fig.10 , when the initial magnification is 6 times, when the selected option is the cancel option 91, stop pressing the first control, determine that the parameters of the virtual sight are not adjusted, and the magnification of the virtual sight remains 6 times. It should be noted that the cancel option 91 is Fig. 9 and Fig.10 Not all are marked. Fig. 9 and Fig.10 Only some of the markings are used for illustrative purposes.

[0128] Through the above method, when the user confirms that the parameters do not need to be adjusted, the adjustment of the parameters of the virtual sight can be canceled.

[0129] In some embodiments, multiple candidate parameters are displayed in a vertical arrangement on the screen of the terminal device, and the first axis is perpendicular to the plane where the screen of the terminal device is located.

[0130] In some embodiments, Fig.11 As shown, multiple candidate parameters are displayed vertically on the screen of the terminal device. Accordingly, the first axis can be as follows: Figure 8 , about the z-axis shown. Figure 8 Rotating the terminal device clockwise along the z-axis shown can Fig.11 The selected parameter in the selection is switched from "6 times" to "8 times"; Figure 8 Rotating the terminal device counterclockwise along the z-axis shown can Fig.11 The selected parameter in the image is switched from "6 times" to "4 times".

[0131] In some embodiments, multiple candidate parameters are displayed horizontally on the screen of the terminal device, with a first axis parallel to the plane where the screen of the terminal device is located, and the first axis is perpendicular to a straight line corresponding to an arrangement direction of the multiple candidate parameters.

[0132] In some embodiments, Fig.12 As shown, multiple candidate parameters are displayed horizontally on the screen of the terminal device. Accordingly, the first axis can be as follows: Figure 8 , as shown in the x-axis. Figure 8 Rotating the terminal device clockwise along the x-axis shown can Fig.12 The selected parameter in the selection is switched from "6 times" to "8 times"; Figure 8 Rotating the terminal device counterclockwise along the x-axis shown can Fig.12 The selected parameter in the image is switched from "6 times" to "4 times".

[0133] By associating the arrangement of multiple candidate parameters with the first axis through the above method, the parameter adjustment interface can correspond to the axis referenced by the user during rotation, which is more in line with user habits, thereby improving the efficiency of the user in adjusting the parameters of the virtual sight.

[0134] In some embodiments, when the terminal device rotates about the first axis in the first direction or the second direction, if the parameter in the selected state is a boundary parameter of the virtual sight, the virtual sight is switched to another virtual sight; wherein the other virtual sight has different boundary parameters from the virtual sight.

[0135] The boundary parameters of the virtual sight refer to the parameters at the boundary of the parameter range corresponding to any parameter type (such as magnification) of the virtual sight. In some embodiments, the boundary parameters of the virtual sight refer to the extreme values ​​(maximum and minimum) of the parameters supported by the virtual sight. For example, please refer to Figure 7 , the magnification of "8x" and the magnification of "2x" are the boundary parameters corresponding to the virtual sight.

[0136] In some embodiments, when the terminal device rotates in a first direction around a first axis, if the parameter in the selected state is a maximum value of a certain type of parameter of the virtual sight, the virtual sight is switched to another virtual sight that supports a larger maximum value for that parameter type.

[0137] In some embodiments, when the terminal device rotates about the first axis toward the second direction, if the parameter in the selected state is the minimum value of a certain type of parameter of the virtual sight, the virtual sight is switched to another virtual sight that supports a smaller minimum value for the parameter type.

[0138] For example, for the first type of virtual sight, the magnification ratio supported is 4 times to 8 times. For the second type of virtual sight, the magnification ratio supported is 3 times to 6 times. When adjusting the second type of virtual sight, when the terminal device rotates clockwise around the first axis, if the parameter in the selected state is the magnification ratio "6 times", the virtual sight can be switched to the first type of virtual sight. Correspondingly, when adjusting the first type of virtual sight, when the terminal device rotates counterclockwise around the first axis, if the parameter in the selected state is the magnification ratio "4 times", the virtual sight can be switched to the second type of virtual sight.

[0139] In some embodiments, when the terminal device rotates around the first axis in the first direction or the second direction, if the parameter in the selected state is a boundary parameter of the virtual sight, a first prompt message is displayed, and the first prompt message is used to indicate whether the user has another virtual sight that can meet the parameter requirements.

[0140] Through the above method, when the user needs to use a virtual sight with a different parameter range (a higher maximum magnification or a lower minimum magnification), the virtual sight can be automatically switched, saving the user the operation steps of changing the virtual sight.

[0141] In some embodiments, the terminal device is further provided with an acceleration sensor, and the above-mentioned method for adjusting the virtual sight further includes the following steps:

[0142] 1. Acquire second motion data collected by the acceleration sensor, where the second motion data is used to characterize the acceleration of the terminal device.

[0143] The acceleration sensor is used to measure the acceleration of the terminal device. For example, the acceleration sensor can measure the following: Figure 8 The accelerations in the x-, y-, and z-axis directions are shown.

[0144] The second motion data may be acceleration data of the terminal device in any direction.

[0145] 2. When the acceleration of the terminal device is greater than or equal to a third threshold, execute a step of displaying a second environment picture obtained by observing the virtual environment through the adjusted virtual sight in response to a second operation for adjusting the posture of the terminal device.

[0146] For example, Figure 8As shown, if the acceleration of the terminal device in any one direction among the x-axis direction, the y-axis direction and the z-axis direction is greater than the third threshold value, a second operation for adjusting the posture of the terminal device is executed to display a second environment picture obtained by observing the virtual environment through the adjusted virtual sight.

[0147] The third threshold can be set by the technician as needed, for example, it can be 20 cm / s 2 、30cm / s 2 , 50cm / s 2 Etc., this application does not limit this.

[0148] The above method can prevent the virtual sight from being adjusted without the user's awareness (when the user slowly changes the posture of the terminal device without the user's awareness).

[0149] The above virtual scope adjustment method can be applied to game applications, such as a shooting game client. Below, a complete solution for adjusting the magnification of the virtual scope in a shooting game is introduced through an embodiment. The solution includes at least one of the following steps:

[0150] 1. Display the game interface, which displays relevant controls of the shooting game (such as shooting controls for controlling the virtual character to shoot, movement controls for controlling the virtual character to move, and the setting controls and aiming controls mentioned in the above embodiments, etc.) and the virtual environment.

[0151] 2. In response to the user clicking the setting control, the setting interface is displayed in the game interface, and the setting interface displays Figure 6 The "Gyroscope switch sight" option shown, the user can turn this option on or off by clicking or sliding. When this option is turned on, it allows the virtual sight to be controlled and adjusted according to the first motion data collected by the gyroscope. In the following embodiments, this option can be regarded as being turned on.

[0152] 3. In response to the user's aiming operation (such as a click operation on the aiming control), a first environment picture obtained by observing the virtual environment through the virtual aiming scope is displayed, and a first control is displayed.

[0153] 4. In response to the user's long press operation on the first control, a parameter adjustment interface is displayed. The parameter adjustment interface displays multiple candidate magnifications supported by the virtual sight and the first prompt information. The first prompt information here is used to mark the magnification in the selected state from the multiple candidate magnifications. The magnification in the selected state can indicate the magnification currently used by the virtual sight. For example, at this time, the magnification "6" is marked, indicating that the magnification currently used by the virtual sight is 6 times, and the first environment screen is enlarged 6 times compared to the virtual environment.

[0154] 5. When the user continues to press the first control, in response to the terminal device rotating around the first axis (such as Figure 8 In response to the terminal device rotating counterclockwise around the first axis, and the rotation angle is greater than or equal to the first threshold (such as 15 degrees), the magnification in the selected state is increased (such as from "6" times to "8" times). In addition, the second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed, and the second environment picture is enlarged and displayed compared with the first environment picture; or, in response to the terminal device rotating counterclockwise around the first axis, and the rotation angle is greater than or equal to the first threshold (such as 15 degrees), the magnification in the selected state is reduced (such as from "6" times to "4" times). In addition, the second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed, and the second environment picture is reduced and displayed compared with the first environment picture.

[0155] 6. In response to the user stopping pressing the first control, the magnification in the selected state (such as "8" times) is determined as the magnification of the virtual sight after adjustment. At this time, the second environment screen is magnified 8 times compared with the virtual environment. In addition, the display parameter adjustment interface is canceled. If the user does not press the first control, rotating the terminal device will not change the magnification of the virtual sight, nor will it change the environment screen obtained by observing the virtual environment through the virtual sight. At this time, it can be regarded as completing the adjustment of the magnification of the virtual sight.

[0156] Please refer to Fig.13 , which shows a flowchart of triggering and ending the adjustment of the virtual sight provided by an embodiment of the present application. The scheme includes at least one of the following steps.

[0157] 1. Detect whether the time for which the user long presses the first control exceeds a second threshold value. If so, activate the gyroscope and obtain the first motion data collected by the gyroscope.

[0158] 2. Detect whether the acceleration of the terminal device in any direction is greater than or equal to a third threshold value. If so, in response to a second operation for adjusting the posture of the terminal device, display a second environment picture obtained by observing the virtual environment through an adjusted virtual sight (the virtual sight is adjusted based on the user's rotation operation).

[0159] 3. Detect whether the user keeps pressing the first control. If not, end the adjustment of the virtual sight.

[0160] Please refer to Fig.14 , which shows a flow chart of an adjustment scheme of a virtual sight provided by an embodiment of the present application. The scheme includes at least one of the following steps.

[0161] 1. In response to a long press operation on a first control, first motion data collected by a gyroscope is acquired.

[0162] 2. In response to the rotation operation of the terminal device, the display of the picture obtained by observing the virtual environment through the virtual sight is adjusted (the picture is enlarged, that is, the corresponding magnification is increased, and the picture is reduced, that is, the corresponding magnification is reduced).

[0163] 3. In response to the user stopping the long press of the first control, when the cancel option is in a selected state, determining that the parameters of the virtual sight are not adjusted, or determining the magnification in the selected state as the magnification of the virtual sight after the adjustment.

[0164] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0165] Please refer to Fig.15 , which shows a block diagram of a virtual sight adjustment device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned virtual sight adjustment method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a terminal device, or it can be set in a terminal device, and a gyroscope is set in the terminal device. The device 1500 may include: an environment display module 1510 and an acquisition module 1520.

[0166] The environment display module 1510 is used to display a first environment picture obtained by observing the virtual environment through a virtual sight;

[0167] An acquisition module 1520, configured to acquire first motion data collected by the gyroscope in response to a first operation for triggering adjustment of the virtual sight, wherein the first motion data is used to determine a change in the posture of the terminal device;

[0168] The environment display module 1510 is also used to respond to a second operation for adjusting the posture of the terminal device, and display a second environment picture obtained by observing the virtual environment through an adjusted virtual sight; wherein the parameters of the adjusted virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

[0169] In some embodiments, the device 1500 further includes: a parameter display module ( Fig.15 not shown).

[0170] A parameter display module is used to display a parameter adjustment interface of the virtual sight, wherein the parameter adjustment interface displays first prompt information and multiple candidate parameters supported by the virtual sight, and the first prompt information is used to mark the parameters in a selected state from the multiple candidate parameters.

[0171] In some embodiments, the second operation is an operation for controlling the terminal device to rotate around a first axis; when the terminal device rotates around the first axis toward a first direction, when the rotation angle is greater than or equal to a first threshold, the parameter in the selected state changes from the first parameter to the second parameter; or, when the terminal device rotates around the first axis toward a second direction, when the rotation angle is greater than or equal to a first threshold, the parameter in the selected state changes from the first parameter to the third parameter; wherein the first direction is opposite to the second direction, and the second parameter is different from the third parameter. In some embodiments, the multiple candidate parameters are displayed vertically in the screen of the terminal device, and the first axis is perpendicular to the plane where the screen of the terminal device is located; or, the multiple candidate parameters are displayed horizontally in the screen of the terminal device, and the first axis is parallel to the plane where the screen of the terminal device is located, and the first axis is perpendicular to the straight line corresponding to the arrangement direction of the multiple candidate parameters.

[0172] In some embodiments, the parameter display module is also used to switch the virtual sight to another virtual sight when the terminal device rotates about the first axis toward the first direction or the second direction if the parameter in the selected state is a boundary parameter of the virtual sight; wherein the other virtual sight has different boundary parameters from the virtual sight.

[0173] In some embodiments, the parameter display module is further used to determine the parameter in the selected state as the parameter of the adjusted virtual sight in response to a third operation for confirming the selection.

[0174] In some embodiments, a cancel option is also displayed in the parameter adjustment interface; the parameter display module is also used to respond to a third operation for confirming the selection, and when the cancel option is in the selected state, determine that the parameters of the virtual sight are not adjusted.

[0175] In some embodiments, the parameter display module is used to determine a first parameter type to be adjusted from a plurality of parameter types of the virtual sight according to the first operation or the second operation; and display a parameter adjustment interface related to the first parameter type.

[0176] In some embodiments, the parameter display module is used to control the terminal device to generate vibration feedback when the parameter in the selected state changes.

[0177] In some embodiments, the first operation includes: an operation on a first control, where the first control is a control for triggering adjustment of the virtual sight.

[0178] In some embodiments, the acquisition module 1520 is used to obtain the first motion data collected by the gyroscope in response to an operation on the first control, and the duration of the operation on the first control is greater than or equal to a second threshold.

[0179] In some embodiments, the terminal device is also provided with an acceleration sensor; the environment display module 1510 is also used to obtain second motion data collected by the acceleration sensor, and the second motion data is used to characterize the acceleration of the terminal device; when the acceleration of the terminal device is greater than or equal to a third threshold, the second operation for adjusting the posture of the terminal device is executed in response to the step of displaying the second environment picture obtained by observing the virtual environment through the adjusted virtual sight.

[0180] The technical solution provided by the embodiment of the present application is to display a first environmental picture obtained by observing the virtual environment through a virtual sight. Then, in response to a first operation for triggering the adjustment of the virtual sight, first motion data for determining the change in the posture of the terminal device is obtained. And, in response to a second operation for adjusting the posture of the terminal device, a second environmental picture obtained by observing the virtual environment through the adjusted virtual sight is displayed. In the case of triggering the adjustment of the virtual sight, the screen display of the virtual sight can be adjusted only by adjusting the posture of the terminal device, and the user is no longer required to perform a sliding operation, thereby improving the user's adjustment efficiency of the virtual sight.

[0181] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0182] Please refer to Fig.16 , which exemplarily shows a structural block diagram of a terminal device provided by an embodiment of the present application.

[0183] Typically, the terminal device 1600 includes: a processor 1601 and a memory 1602 .

[0184] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an AI processor for processing computing operations related to machine learning.

[0185] The memory 1602 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 stores a computer program, which is loaded and executed by the processor 1601 to implement the above-mentioned virtual sight adjustment method.

[0186] Those skilled in the art will understand that Fig.16The structure shown in the figure does not constitute a limitation on the terminal device 1600, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0187] In some embodiments, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned virtual sight adjustment method.

[0188] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0189] In some embodiments, a computer program product is also provided, which includes a computer program stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the above-mentioned virtual sight adjustment method.

[0190] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0191] The above are merely exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for adjusting a virtual sight, characterized in that: The method is performed by a terminal device, wherein a gyroscope is provided in the terminal device, and the method comprises: Displaying a first environment picture obtained by observing the virtual environment through a virtual sight; In response to a first operation for triggering adjustment of the virtual sight, acquiring first motion data collected by the gyroscope, wherein the first motion data is used to determine a change in the posture of the terminal device; In response to a second operation for adjusting the posture of the terminal device, a second environment picture obtained by observing the virtual environment through the adjusted virtual sight is displayed; wherein the parameters of the adjusted virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

2. The method according to claim 1, characterized in that: The method further comprises: A parameter adjustment interface of the virtual sight is displayed, wherein the parameter adjustment interface displays first prompt information and multiple candidate parameters supported by the virtual sight, wherein the first prompt information is used to mark the parameters in a selected state from the multiple candidate parameters.

3. The method according to claim 2, characterized in that The second operation is an operation of controlling the terminal device to rotate around a first axis; When the terminal device rotates about the first axis toward a first direction, when the rotation angle is greater than or equal to a first threshold, the parameter in the selected state changes from the first parameter to the second parameter; or, In the case where the terminal device rotates about the first axis toward the second direction, when the rotation angle is greater than or equal to a first threshold, the parameter in the selected state changes from the first parameter to a third parameter; The first direction and the second direction are opposite, and the second parameter and the third parameter are different.

4. The method according to claim 3, characterized in that The plurality of candidate parameters are displayed in a vertical arrangement on the screen of the terminal device, and the first axis is perpendicular to the plane where the screen of the terminal device is located; or, The multiple candidate parameters are displayed in a horizontal arrangement on the screen of the terminal device, the first axis is parallel to the plane where the screen of the terminal device is located, and the first axis is perpendicular to a straight line corresponding to an arrangement direction of the multiple candidate parameters.

5. The method according to claim 3, characterized in that: The method further comprises: When the terminal device rotates about the first axis toward the first direction or the second direction, if the parameter in the selected state is a boundary parameter of the virtual sight, the virtual sight is switched to another virtual sight; wherein the other virtual sight has different boundary parameters from the virtual sight.

6. The method according to claim 2, characterized in that The method further comprises: In response to a third operation for confirming the selection, the parameters in the selected state are determined as the parameters of the adjusted virtual sight.

7. The method according to claim 2, characterized in that The parameter adjustment interface also displays a cancel option; the method further includes: In response to a third operation for confirming a selection, when the cancel option is in the selected state, it is determined that the parameters of the virtual sight are not adjusted.

8. The method according to claim 2, characterized in that: The parameter adjustment interface for displaying the virtual sight includes: According to the first operation or the second operation, determining a first parameter type to be adjusted from a plurality of parameter types of the virtual sight; A parameter adjustment interface related to the first parameter type is displayed.

9. The method according to claim 2, characterized in that: The method further comprises: When the parameter in the selected state changes, the terminal device is controlled to generate vibration feedback.

10. The method according to claim 1, characterized in that The first operation includes: an operation on a first control, where the first control is a control for triggering adjustment of the virtual sight.

11. The method according to claim 10, characterized in that The step of obtaining first motion data collected by the gyroscope in response to a first operation for triggering adjustment of the virtual sight includes: In response to an operation on the first control, where the duration of the operation on the first control is greater than or equal to a second threshold, the first motion data collected by the gyroscope is acquired.

12. The method according to claim 1, characterized in that The terminal device is also provided with an acceleration sensor, and the method further comprises: Acquire second motion data collected by the acceleration sensor, where the second motion data is used to characterize the acceleration of the terminal device; When the acceleration of the terminal device is greater than or equal to a third threshold, the step of displaying a second environment picture obtained by observing the virtual environment through the adjusted virtual sight in response to the second operation for adjusting the posture of the terminal device is executed.

13. A virtual sight adjustment device, characterized in that: The device comprises: An environment display module, used to display a first environment picture obtained by observing the virtual environment through a virtual sight; an acquisition module, configured to acquire first motion data collected by the gyroscope in response to a first operation for triggering adjustment of the virtual sight, wherein the first motion data is used to determine a change in the posture of the terminal device; The environment display module is also used to respond to a second operation for adjusting the posture of the terminal device, and display a second environment picture obtained by observing the virtual environment through an adjusted virtual sight; wherein the parameters of the adjusted virtual sight are obtained by adjusting the parameters of the virtual sight based on the first motion data.

14. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 12.

16. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method according to any one of claims 1 to 12.