Lens control method, device, storage medium and electronic device

By displaying the virtual lens control in a virtual scene and displaying multiple lens controls in response to user operations, the problem of single and complex operation of the virtual lens control method in the prior art is solved, and efficient adjustment of the virtual lens control mode and improving control efficiency is achieved.

CN114404962BActive Publication Date: 2025-04-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210109426.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2025-04-08
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

In the prior art, the control method of virtual lenses is single, and the user adjusts the control method to switch interfaces, which makes the operation complex, resulting in low lens control efficiency.

Method used

By displaying the virtual scene and the virtual lens controls, at least two lens controls are displayed in response to user operations. The user can directly adjust the control mode of the virtual lens to improve control efficiency.

Benefits of technology

It realizes efficient adjustment of virtual lens control mode, improves the control efficiency of virtual lenses, and simplifies user operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114404962B_ABST
    Figure CN114404962B_ABST
Patent Text Reader

Abstract

The present application discloses a lens control method, device, storage medium and electronic device. The method includes: displaying a virtual scene and a virtual lens control; in response to a first selection operation triggered on the virtual lens control, displaying at least two lens controls associated with the virtual lens control, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, determining that the control mode of the virtual lens is a target control mode associated with the target lens control; and in the case of obtaining a control operation performed on the virtual lens, controlling the virtual lens to capture images in the virtual scene according to the target control mode. The present application solves the technical problem of low lens control efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a lens control method, device, storage medium and electronic device. Background Art

[0002] Related technologies usually use virtual lenses to capture images in virtual games, but the control method of virtual lenses is often single; if the user wants to adjust the control method of the virtual lens, such as adjusting control method one to control method two, it is usually necessary to switch the current interface to the lens configuration interface and complete the adjustment of the control method of the virtual lens on the lens configuration interface. The operation is relatively complicated, which reduces the control efficiency of the virtual lens. Therefore, there is a problem of low lens control efficiency.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a lens control method, device, storage medium and electronic device to at least solve the technical problem of low lens control efficiency.

[0005] According to one aspect of an embodiment of the present application, a lens control method is provided, comprising: displaying a virtual scene and a virtual lens control; in response to a first selection operation triggered on the virtual lens control, displaying at least two lens controls associated with the virtual lens control, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, determining that the control mode of the virtual lens is a target control mode associated with the target lens control; and in the case of obtaining a control operation performed on the virtual lens, controlling the virtual lens to capture images in the virtual scene according to the target control mode.

[0006] According to another aspect of an embodiment of the present application, a lens control device is further provided, including: a first display unit, configured to display a virtual scene and a virtual lens control; a second display unit, configured to display at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; a determination unit, configured to determine that the control mode of the virtual lens is a target control mode associated with the target lens control in response to a second selection operation triggered on a target lens control among the at least two lens controls; and a capture unit, configured to control the virtual lens to capture images in the virtual scene according to the target control mode when a control operation performed on the virtual lens is acquired.

[0007] As an optional solution, the above-mentioned device includes: a third display unit, which is used to display the angle control control of the above-mentioned target control mode after it is determined that the control mode of the above-mentioned virtual lens is the target control mode associated with the above-mentioned target lens control; the above-mentioned acquisition unit includes: a first acquisition module, which is used to rotate the above-mentioned virtual lens according to the target angle corresponding to the above-mentioned angle control operation when the angle control operation performed on the above-mentioned virtual lens is obtained, and use the rotated virtual lens to capture the picture in the above-mentioned virtual scene.

[0008] As an optional scheme, the above-mentioned third display unit includes: a first display module, used to display the angle control area and the first control sub-control located in the above-mentioned angle control area; the above-mentioned first acquisition module includes: a first acquisition sub-module, used to obtain the above-mentioned target angle according to the first position information of the selected above-mentioned first control sub-control in the above-mentioned angle control area when the third selection operation performed on the above-mentioned first control sub-control is obtained; the first acquisition sub-module is used to rotate the above-mentioned virtual lens according to the above-mentioned target angle, and use the rotated above-mentioned virtual lens to capture the picture in the above-mentioned virtual scene.

[0009] As an optional solution, the above-mentioned first display unit includes: a second display module, used to display the above-mentioned virtual scene, the above-mentioned virtual lens control, and the first virtual character located in the above-mentioned virtual scene; the above-mentioned first acquisition module includes: a second acquisition sub-module, used to use the above-mentioned virtual lens to acquire the picture centered on the above-mentioned first virtual character in the above-mentioned virtual scene.

[0010] As an optional solution, the above-mentioned device includes: a fourth display unit, which is used to display the distance control control of the above-mentioned target control mode after it is determined that the control mode of the above-mentioned virtual lens is the target control mode associated with the above-mentioned target lens control; the above-mentioned acquisition unit includes: a second acquisition module, which is used to, when the distance control operation performed on the above-mentioned virtual lens is obtained, scale the above-mentioned virtual lens according to the target distance corresponding to the above-mentioned distance control operation, and use the scaled above-mentioned virtual lens to capture the picture in the above-mentioned virtual scene.

[0011] As an optional solution, the above-mentioned fourth display unit includes: a third display module, used to display the distance control area and the second control sub-control located in the above-mentioned distance control area; the above-mentioned second acquisition module includes: a second acquisition sub-module, used to obtain the above-mentioned target distance according to the second position information of the selected second control sub-control in the above-mentioned distance control area when the fourth selection operation performed on the above-mentioned second control sub-control is obtained; a third acquisition sub-module, used to scale the above-mentioned virtual lens according to the above-mentioned target distance, and use the scaled virtual lens to capture the picture in the above-mentioned virtual scene.

[0012] As an optional solution, the third acquisition submodule includes: a reduction subunit, used to reduce the virtual lens according to the target distance when the distance value corresponding to the second position information is less than the target distance threshold; or, an enlargement subunit, used to enlarge the virtual lens according to the target distance when the distance value corresponding to the second position information is greater than the target distance threshold, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the enlarged virtual lens.

[0013] As an optional solution, the above-mentioned first display unit includes: a fourth display module, used to display the above-mentioned virtual scene, the above-mentioned virtual lens control, and the second virtual character located in the above-mentioned virtual scene; the above-mentioned second acquisition module includes: a third acquisition sub-module, used to use the above-mentioned virtual lens to acquire the image from the first-person perspective of the above-mentioned second virtual character in the above-mentioned virtual scene when the above-mentioned target distance is at the first distance threshold; or, a fourth acquisition sub-module, used to use the above-mentioned virtual lens to acquire the image from the third-person perspective of the above-mentioned second virtual character in the above-mentioned virtual scene when the above-mentioned target distance is at the second distance threshold.

[0014] As an optional scheme, it includes: a first acquisition unit, used to acquire a candidate selection operation triggered on the virtual lens control before displaying at least two lens controls associated with the virtual lens control in response to the first selection operation triggered on the virtual lens control; a second acquisition unit, used to acquire the first selection operation in response to the first selection operation triggered on the virtual lens control if the duration of the candidate selection operation reaches a first duration threshold before displaying at least two lens controls associated with the virtual lens control; and a cancellation unit, used to cancel the execution of the first selection operation in response to the first selection operation triggered on the virtual lens control if the duration of the candidate selection operation reaches a second duration threshold before displaying at least two lens controls associated with the virtual lens control, wherein the second duration threshold is greater than the first duration threshold.

[0015] As an optional solution, it includes: a third acquisition unit, which is used to acquire the above-mentioned second selection operation after the above-mentioned first selection operation is acquired, when the operation position of the above-mentioned candidate selection operation moves and the above-mentioned candidate selection operation ends when the above-mentioned operation position is moved to the above-mentioned target lens control.

[0016] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above lens control method.

[0017] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the lens control method through the computer program.

[0018] In an embodiment of the present application, a virtual scene and a virtual lens control are displayed; in response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture the image in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be a target control mode associated with the target lens control; in the case of obtaining a control operation performed on the virtual lens, the virtual lens is controlled according to the target control mode to capture the image in the virtual scene, a virtual lens control is provided to the user during the display of the virtual scene, and the display of at least two lens controls is directly triggered by the virtual lens control, and further by triggering the selection operation on the two lens controls, the control mode (method) of the virtual lens is efficiently adjusted, thereby achieving the purpose of efficiently adjusting the control mode of the virtual lens, thereby achieving the technical effect of improving the control efficiency of the virtual lens, and thereby solving the technical problem of low lens control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 is a schematic diagram of an application environment of an optional lens control method according to an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of a process of an optional lens control method according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of an optional lens control method according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0028] Fig. 9 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0029] Fig.10 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0030] Fig.11 is a schematic diagram of another optional lens control method according to an embodiment of the present application;

[0031] Fig.12 is a schematic diagram of an optional lens control device according to an embodiment of the present application;

[0032] Fig.13 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] According to one aspect of an embodiment of the present application, a lens control method is provided. Optionally, as an optional implementation, the lens control method may be, but is not limited to, applied to: Figure 1In the environment shown, it may include but is not limited to a user device 102, a network 110 and a server 112, wherein the user device 102 may include but is not limited to a display 108, a processor 106 and a memory 104.

[0036] The specific process can be as follows:

[0037] Step S102, the user device 102 obtains a first selected operation triggered on the virtual lens control 1024, and displays the lens control A and the lens control B; further, the user device 102 obtains a second selected operation triggered on the lens control B, wherein the second selected operation is used to determine a control mode when the virtual lens captures the image of the virtual scene 1022;

[0038] Steps S104-S106, the user device 102 sends a selection instruction corresponding to the second selection operation to the server 112 via the network 110, wherein the selection instruction is used to determine the control mode of the virtual lens;

[0039] Step S108, the server 112 searches the database 114 for the target control mode corresponding to the selected instruction, and processes the target control mode through the processing engine 116, thereby generating target indication information corresponding to the target control mode;

[0040] In steps S110-S112, the server 112 sends the target indication information to the user device 102 via the network 110. The processor 106 in the user device 102 collects images in the virtual scene 1022 according to the target control mode based on the target indication information, displays the collected images on the display 108, and stores the target indication information in the memory 104.

[0041] remove Figure 1 In addition to the examples shown, the above steps can be completed independently by the user device 102, that is, the user device 102 performs the steps of acquiring the target control mode and generating the target indication signal, thereby reducing the processing pressure of the server. The user device 102 includes but is not limited to a handheld device (such as a mobile phone), a laptop computer, a desktop computer, a vehicle-mounted device, etc., and the present application does not limit the specific implementation of the user device 102.

[0042] Optionally, as an optional implementation, as Figure 2 As shown, the lens control method includes:

[0043] S202, displaying a virtual scene and a virtual lens control;

[0044] S204, in response to a first selection operation triggered on the virtual lens control, displaying at least two lens controls associated with the virtual lens control, wherein the lens controls are used to adjust a control mode of the virtual lens, and the virtual lens is used to capture images in a virtual scene;

[0045] S206, in response to a second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be a target control mode associated with the target lens control;

[0046] S208: When the control operation executed on the virtual lens is acquired, the virtual lens is controlled to capture images in the virtual scene according to the target control mode.

[0047] Optionally, in this embodiment, the above-mentioned lens control method can be but is not limited to being applied in a virtual game scene of a mobile terminal. Specifically, compared with a personal computer, a mobile terminal lacks auxiliary devices such as a mouse and a keyboard, and has poor operational flexibility. When a virtual game on such a mobile terminal is being run, a more convenient lens control method is often required to meet the basic game operation requirements of the mobile terminal. However, the lens control method in the related art usually only uses the lens control method on a personal computer, such as switching the display interface in the current virtual game scene to a lens configuration interface, and then completing the adjustment of the lens control mode (method) on the lens configuration interface. The steps are relatively cumbersome, and in the operation scenario of a mobile terminal with low operational flexibility, the burden of user operation is increased, which is not conducive to improving the user experience;

[0048] In the present embodiment, a virtual lens control is displayed while displaying the virtual game scene of the mobile terminal; thus, the user does not need to switch the display interface of the current virtual game scene to the lens configuration interface, but directly triggers a (first) selection operation on the virtual lens control; in response to the first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed while displaying the virtual game scene of the mobile terminal, and thus the user can directly trigger a (second) selection operation on any one of the at least two lens controls to efficiently adjust the control mode of the lens; such as in response to the second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be the target control mode associated with the target lens control; further, when the control operation performed on the virtual lens is obtained, the virtual lens is controlled according to the target control mode to capture the image in the virtual game scene.

[0049] Optionally, in this embodiment, displaying the virtual scene and the virtual lens control can be understood as, but not limited to, displaying the virtual lens control and the virtual scene on the same interface, such as displaying the virtual lens control and the virtual scene simultaneously on the running interface of the virtual game.

[0050] Optionally, in this embodiment, in order to reduce the display impact of the virtual lens control on the virtual game, the display position of the virtual lens control may be set at the edge of the running interface, and / or the display size of the virtual lens control may be set to be lower than the target area threshold, and / or the display transparency of the virtual lens control may be set to be lower than the target transparency threshold. In addition, the display parameters (display position, display area, display transparency, etc.) of the virtual lens space may also be, but are not limited to, custom settings.

[0051] Optionally, in this embodiment, the first selection operation and / or the second selection operation may include, but is not limited to, various types of operations such as a long selection operation, a short selection operation, a single selection operation, and multiple selection operations; in addition, the number of control modes associated with the target lens control may be, but is not limited to, greater than the number of spaces for at least two lens controls. For example, the operation instructions triggered when the first selection operation and / or the second selection operation are responded to may be determined according to, but is not limited to, the operation type of the selection operation; for example, in response to the first selection operation triggered on the virtual lens control (assuming a long selection operation), the lens control A and the lens control B associated with the virtual lens control are displayed; for another example, in response to the first selection operation triggered on the virtual lens control (assuming a short selection operation), the lens control B and the lens control C associated with the virtual lens control are displayed; or for example, in response to the first selection operation triggered on the virtual lens control (assuming a single selection operation), the lens control A associated with the virtual lens control is displayed; or for example, in response to the first selection operation triggered on the virtual lens control (assuming a double selection operation), the lens control B associated with the virtual lens control is displayed, etc.

[0052] Optionally, in this embodiment, in order to ensure the timeliness of the selection operation, when no further operation is detected to be triggered within a preset time length after the first selection operation and / or the second selection operation is triggered, the triggering of the first selection operation and / or the second selection operation may be canceled, but is not limited to; further exemplified, assuming that in response to the first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, but when the duration of displaying the at least two lens controls associated with the virtual lens control reaches a first preset time length and no selection operation is detected to be triggered on any of the at least two lens controls within the first preset time length, the first selection operation is canceled. The triggering of the operation restores the display of the virtual scene and the virtual lens controls; or assuming that a second selected operation is first responded to the triggering of the target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be the target control mode associated with the target lens control, but when the duration of the determination that the control mode of the virtual lens is the target control mode associated with the target lens control reaches a second preset duration and no control operation performed on the virtual lens is detected within the second preset duration, the triggering of the second selected operation is canceled, and it is also possible but not limited to restoring the control mode of the virtual lens before the second selected operation is triggered, and it is possible but not limited to restoring the display of the virtual scene and the virtual lens controls.

[0053] Optionally, in this embodiment, the control mode of the virtual lens can be understood as, but not limited to, the response manner of the virtual lens when it is controlled to move by a control operation, such as in control mode A, the virtual lens is set to move in a first direction in response to a first control operation, while in control mode B, the virtual lens is set to move in a second direction in response to the first control operation; or, in control mode C, the virtual lens is set to capture a first-person image of a target virtual character in a virtual scene in response to the first control operation, while in control mode D, the virtual lens is set to capture a third-person image of a target virtual character in a virtual scene in response to the first control operation.

[0054] Optionally, in this embodiment, the control mode of the virtual lens may also be, but is not limited to, a triggering mode of the control operation performed on the virtual lens. For example, in control mode A, the triggering mode of the control operation performed on the virtual lens is a drag trigger. Figure 3 As shown, during the display process of the virtual scene 302, the lens operation control 304 under the control model A is displayed, and when a first control operation (such as dragging a sub-control in the lens operation control 304) is obtained to trigger the lens operation control 304, the picture in the virtual scene 302 is captured in response to the first control operation;

[0055] For example, in control mode B, the triggering method of the control operation performed on the virtual lens is sliding triggering. Figure 3 The scene shown continues as Figure 4 As shown, during the display process of the virtual scene 302, the lens operation control 402 under the control model B is displayed, and when a second control operation (such as sliding a sub-control in the lens operation control 402) is triggered by the lens operation control 402, the image in the virtual scene 302 is captured in response to the second control operation;

[0056] Or for example, in control mode B, the triggering method of the control operation performed on the virtual lens is a click trigger, and the specific triggering method is based on Figure 3 The scene shown continues as Figure 5 As shown, during the display process of the virtual scene 302, the lens operation control 502 under the display control model C is displayed. When a third control operation triggered by the lens operation control 502 (such as clicking a sub-control in the lens operation control 402) is obtained, the picture in the virtual scene 302 is captured in response to the above-mentioned third control operation.

[0057] It should be noted that a virtual scene and a virtual lens control are displayed; in response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be a target control mode associated with the target lens control; and when a control operation performed on the virtual lens is obtained, the virtual lens is controlled according to the target control mode to capture images in the virtual scene.

[0058] To further illustrate, the optional Figure 6 As shown, a virtual scene 602 and a virtual lens control 604 are displayed. Figure 6 As shown in (a) in FIG. Figure 6 As shown in (b) of FIG. 6 , in response to a first selection operation triggered on the virtual lens control 604, at least two lens controls (such as lens control A and lens control B) associated with the virtual lens control 604 are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture the image in the virtual scene 602; furthermore, Figure 6 As shown in (c), in response to a second selection operation triggered on a target lens control 606 (such as lens control B) among at least two lens controls, the control mode of the virtual lens is determined to be the target control mode associated with the target lens control (such as adjusting the control mode of the virtual lens from the third person perspective to the control mode of the first person virtual lens); further, when a control operation performed on the virtual lens is obtained, the virtual lens is controlled according to the target control mode (the control mode of the first person virtual lens) to capture the image in the virtual scene 602.

[0059] Through the embodiments provided by the present application, a virtual scene and a virtual lens control are displayed; in response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be a target control mode associated with the target lens control; when a control operation performed on the virtual lens is obtained, the virtual lens is controlled to capture images in the virtual scene according to the target control mode, and the virtual lens control is displayed during the display of the virtual scene, and the display of at least two lens controls is directly triggered by the virtual lens control, and further the selection operation triggered on the two lens controls is performed to complete the efficient adjustment of the control mode (method) of the virtual lens, thereby achieving the purpose of efficiently adjusting the control mode of the virtual lens, thereby achieving the technical effect of improving the control efficiency of the virtual lens.

[0060] As an optional solution, after determining that the control mode of the virtual lens is a target control mode associated with the target lens control, the method includes: displaying an angle control control of the target control mode;

[0061] As an optional solution, when a control operation performed on a virtual lens is obtained, the virtual lens is controlled to capture images in a virtual scene according to a target control mode, including: when an angle control operation performed on the virtual lens is obtained, the virtual lens is rotated according to a target angle corresponding to the angle control operation, and the rotated virtual lens is used to capture images in the virtual scene.

[0062] Optionally, in this embodiment, rotating the virtual lens according to the target angle corresponding to the angle control operation can be understood as, but not limited to, rotating 360 degrees around the target object, wherein the target object can be, but not limited to, a target virtual character currently controlled by the user in the virtual scene. Or it can be understood as, but not limited to, rotating the virtual lens according to the target angle corresponding to the angle control operation to capture a circle of images around the target virtual character.

[0063] It should be noted that the related technology for capturing rotating images often requires the user to rotate the screen or perform a fixed-angle rotation operation on the screen, which is a relatively complicated operation. In this embodiment, a more intuitive angle control control is provided to allow users to complete more efficient image capture.

[0064] Through the embodiments provided in the present application, an angle control control of a target control mode is displayed; when an angle control operation performed on a virtual lens is obtained, the virtual lens is rotated according to the target angle corresponding to the angle control operation, and the rotated virtual lens is used to capture images in a virtual scene, thereby achieving the technical purpose of reducing the complexity of image capture and realizing the technical effect of improving the efficiency of image capture.

[0065] As an optional solution, the angle control control for displaying the target control mode includes: displaying an angle control area and a first control sub-control located in the angle control area;

[0066] As an optional scheme, when an angle control operation performed on a virtual lens is obtained, the virtual lens is rotated according to a target angle corresponding to the angle control operation, and the rotated virtual lens is used to capture images in the virtual scene, including: when a third selection operation performed on a first control sub-control is obtained, the target angle is obtained based on first position information of the selected first control sub-control in the angle control area; the virtual lens is rotated according to the target angle, and the rotated virtual lens is used to capture images in the virtual scene.

[0067] It should be noted that an angle control area and a first control sub-control located in the angle control area are displayed; when a third selection operation is performed on the first control sub-control, a target angle is obtained based on the first position information of the selected first control sub-control in the angle control area; the virtual lens is rotated according to the target angle, and the rotated virtual lens is used to capture the image in the virtual scene.

[0068] To further illustrate, the optional Figure 6 The scenario shown, continuing with e.g. Figure 7 As shown, a virtual scene 602 and a virtual lens control 604 are displayed. Figure 7 As shown in (a) in FIG. Figure 7 As shown in (b) of FIG. 6 , in response to a first selection operation triggered on the virtual lens control 604, at least two lens controls (such as lens control A and lens control B) associated with the virtual lens control 604 are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture the image in the virtual scene 602; furthermore, Figure 7As shown in (c), in response to the second selection operation triggered on the target lens control 606 (such as lens control B) among the at least two lens controls, the angle control control 702 of the target control mode is displayed, wherein the angle control control 702 includes an angle control area (direction circle) and a first control sub-control (slider) located in the angle control area; further, when the third selection operation performed on the first control sub-control is obtained, the target angle is obtained according to the first position information of the selected first control sub-control in the angle control area; the virtual lens is rotated according to the target angle, and the image in the virtual scene is captured using the rotated virtual lens.

[0069] Through the embodiments provided by the present application, an angle control area and a first control sub-control located in the angle control area are displayed; when a third selection operation performed on the first control sub-control is obtained, a target angle is obtained based on the first position information of the selected first control sub-control in the angle control area; the virtual lens is rotated according to the target angle, and the rotated virtual lens is used to capture the image in the virtual scene, thereby achieving the purpose of using an efficiently rotating virtual lens to complete the comprehensive capture of the image in the virtual scene, and realizing the effect of improving the efficiency and comprehensiveness of image capture.

[0070] As an optional solution, displaying a virtual scene and a virtual lens control includes: displaying a virtual scene, a virtual lens control, and a first virtual character located in the virtual scene;

[0071] As an optional solution, the virtual lens is rotated according to the target angle corresponding to the angle control operation, and the rotated virtual lens is used to capture images in the virtual scene, including: using the virtual lens to capture images in the virtual scene centered on the first virtual character.

[0072] Optionally, in this embodiment, rotating the virtual lens according to the target angle corresponding to the angle control operation may be understood as, but not limited to, rotating 360 degrees around a target object, wherein the target object may be, but not limited to, a first virtual character currently controlled by a user in a virtual scene. Or it may be understood as, but not limited to, rotating the virtual lens according to the target angle corresponding to the angle control operation to capture a circle of images around the first virtual character.

[0073] As an optional solution, after determining that the control mode of the virtual lens is a target control mode associated with the target lens control, the method includes: displaying a distance control control of the target control mode;

[0074] As an optional solution, when a control operation performed on a virtual lens is obtained, the virtual lens is controlled to capture images in a virtual scene according to a target control mode, including: when a distance control operation performed on the virtual lens is obtained, the virtual lens is scaled according to a target distance corresponding to the distance control operation, and the scaled virtual lens is used to capture images in the virtual scene.

[0075] Optionally, in this embodiment, scaling the virtual lens according to the target distance corresponding to the distance control operation may be understood, but not limited to, as taking the relative distance between the virtual lens and the target object as the scaling object of the target distance, wherein the target object may be, but not limited to, a target virtual character currently controlled by the user in the virtual scene. Or it may be understood, but not limited to, as adjusting the relative distance between the virtual lens and the target virtual character according to the target distance corresponding to the distance control operation, and collecting the relevant images of the target virtual character based on the adjusted relative distance;

[0076] Optionally, in this embodiment, the relative distance between the virtual lens and the target object may be, but is not limited to, set with an upper limit distance and a lower limit distance, wherein the upper limit distance may be, but is not limited to, understood as the relative distance between the virtual lens and the target object from a third-person perspective, and the lower limit distance may be, but is not limited to, understood as the relative distance between the virtual lens and the target object from a first-person perspective.

[0077] It should be noted that the related technology for capturing distance images often requires users to adjust the third-person perspective or the first-person perspective on the configuration interface to achieve this, and the operation is relatively complicated. In this embodiment, a more intuitive distance control control is provided, allowing users to complete more efficient image capture.

[0078] Through the embodiments provided by the present application, a distance control control of a target control mode is displayed; when a distance control operation performed on a virtual lens is obtained, the virtual lens is scaled according to the target distance corresponding to the distance control operation, and the scaled virtual lens is used to capture images in a virtual scene, thereby achieving the technical purpose of reducing the complexity of image capture and realizing the technical effect of improving the efficiency of image capture.

[0079] As an optional solution, displaying the distance control control of the target control mode includes: displaying a distance control area and a second control sub-control located in the distance control area;

[0080] As an optional solution, when a distance control operation performed on a virtual lens is obtained, the virtual lens is scaled according to a target distance corresponding to the distance control operation, and the scaled virtual lens is used to capture images in the virtual scene, including: when a fourth selection operation performed on a second control sub-control is obtained, the target distance is obtained based on second position information of the selected second control sub-control in the distance control area; the virtual lens is scaled according to the target distance, and the scaled virtual lens is used to capture images in the virtual scene.

[0081] It should be noted that a distance control area and a second control sub-control located in the distance control area are displayed; when a fourth selection operation performed on the second control sub-control is obtained, the target distance is obtained according to the second position information of the selected second control sub-control in the distance control area; the virtual lens is scaled according to the target distance, and the scaled virtual lens is used to capture the image in the virtual scene.

[0082] To further illustrate, the optional Figure 6 The scenario shown, continuing with e.g. Figure 8 As shown, a virtual scene 602 and a virtual lens control 604 are displayed. Figure 8 As shown in (a) in FIG. Figure 8 As shown in (b) of FIG. 6 , in response to a first selection operation triggered on the virtual lens control 604, at least two lens controls (such as lens control A and lens control B) associated with the virtual lens control 604 are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture the image in the virtual scene 602; furthermore, Figure 8 As shown in (c), in response to the second selection operation triggered on the target lens control 606 (such as lens control B) among the at least two lens controls, the distance control control 802 of the target control mode is displayed, wherein the distance control control 802 includes a distance control area (an area with a distance code) and a second control sub-control (a slider) located in the distance control area; further, when a fourth selection operation is obtained for the second control sub-control, the target distance is obtained according to the second position information of the selected second control sub-control in the distance control area; the virtual lens is scaled according to the target distance, and the image in the virtual scene 602 is captured using the scaled virtual lens.

[0083] Through the embodiments provided by the present application, a distance control area and a second control sub-control located in the distance control area are displayed; when a fourth selection operation performed on the second control sub-control is obtained, the target distance is obtained according to the second position information of the selected second control sub-control in the distance control area; the virtual lens is scaled according to the target distance, and the scaled virtual lens is used to capture the image in the virtual scene, thereby achieving the purpose of using a virtual lens with efficient distance adjustment to complete the comprehensive capture of the image in the virtual scene, and realizing the effect of improving the efficiency and comprehensiveness of image capture.

[0084] As an optional solution, the virtual lens is scaled according to the target distance, including:

[0085] S1, when the distance value corresponding to the second position information is less than the target distance threshold, reducing the virtual lens according to the target distance; or,

[0086] S2, when the distance value corresponding to the second position information is greater than the target distance threshold, zooming in the virtual lens according to the target distance, wherein the image in the virtual scene captured by the zoomed-out virtual lens is smaller than the image in the virtual scene captured by the zoomed-in virtual lens.

[0087] It should be noted that, when the distance value corresponding to the second position information is less than the target distance threshold, the virtual lens is reduced according to the target distance; or, when the distance value corresponding to the second position information is greater than the target distance threshold, the virtual lens is enlarged according to the target distance, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the enlarged virtual lens.

[0088] To further illustrate, the optional Figure 8 The scenario shown, continuing with e.g. Fig. 9 As shown, the distance control control 802 includes a distance control area 902 and a second control subspace 904, wherein the distance control area 902 displays codes corresponding to various distance thresholds, such as the code corresponding to the target distance threshold 906; when the distance value corresponding to the second position information is less than the target distance threshold (or it can be understood that the second control subspace 904 is moved above or below the code corresponding to the target distance threshold 906), the virtual lens is reduced according to the target distance; or, when the distance value corresponding to the second position information is greater than the target distance threshold (or it can be understood that the second control subspace 904 is moved below or above the code corresponding to the target distance threshold 906), the virtual lens is enlarged according to the target distance, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the enlarged virtual lens.

[0089] Through the embodiments provided by the present application, when the distance value corresponding to the second position information is less than the target distance threshold, the virtual lens is reduced according to the target distance; or, when the distance value corresponding to the second position information is greater than the target distance threshold, the virtual lens is enlarged according to the target distance, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the enlarged virtual lens, thereby achieving the purpose of efficiently adjusting the distance parameters of the virtual lens and realizing the effect of improving the control efficiency of the virtual lens.

[0090] As an optional solution, displaying a virtual scene and a virtual lens control includes: displaying a virtual scene, a virtual lens control, and a second virtual character located in the virtual scene;

[0091] As an optional solution, the virtual lens is scaled according to the target distance corresponding to the distance control operation, and the scaled virtual lens is used to capture images in the virtual scene, including: when the target distance is at a first distance threshold, the virtual lens is used to capture images from the first-person perspective of the second virtual character in the virtual scene; or, when the target distance is at a second distance threshold, the virtual lens is used to capture images from the third-person perspective of the second virtual character in the virtual scene.

[0092] Optionally, in this embodiment, the target distance between the virtual lens and the target object may be, but is not limited to, set with an upper limit distance and a lower limit distance, wherein the upper limit distance may be, but is not limited to, understood as the relative distance between the virtual lens and the second virtual character from a third-person perspective, and the lower limit distance may be, but is not limited to, understood as the relative distance between the virtual lens and the second virtual character from a first-person perspective.

[0093] It should be noted that the related technology for adjusting the perspective often requires the user to adjust the third-person perspective or the first-person perspective on the configuration interface, which is a relatively complicated operation. In this embodiment, a more efficient distance control control is provided, allowing users to complete more efficient perspective adjustments.

[0094] Through the embodiments provided by the present application, a virtual scene, a virtual lens control, and a second virtual character in the virtual scene are displayed; when the target distance is within a first distance threshold, the virtual lens is used to capture the image from the first-person perspective of the second virtual character in the virtual scene; or, when the target distance is within a second distance threshold, the virtual lens is used to capture the image from the third-person perspective of the second virtual character in the virtual scene, thereby achieving the purpose of improving the adjustment efficiency of the first-person perspective and realizing the effect of improving the image capture efficiency.

[0095] As an optional solution, before displaying at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control, the method includes:

[0096] S1, obtaining a candidate selection operation triggered by a virtual lens control;

[0097] S2, when the duration of the candidate selected operation reaches a first duration threshold, obtaining a first selected operation;

[0098] S3: when the duration of the candidate selected operation reaches a second duration threshold, cancel the execution of the first selected operation, wherein the second duration threshold is greater than the first duration threshold.

[0099] Optionally, in this embodiment, in order to improve the timeliness of the selected operation, at least two duration thresholds are set to assist in determining whether the currently acquired candidate selected operation can be determined as the selected operation. For example, the candidate selected operation whose duration of the operation does not reach the first duration threshold and / or the duration of the operation exceeds the second duration threshold is not determined to be the selected operation; conversely, the candidate selected operation whose duration of the operation reaches the first duration threshold and / or the duration of the operation does not exceed the second duration threshold is determined to be the selected operation.

[0100] As an optional solution, after obtaining the first selected operation, it includes:

[0101] When the operation position of the candidate selected operation moves and the candidate selected operation ends when the operation position is moved to the target lens control, a second selected operation is acquired.

[0102] Optionally, in this embodiment, the trigger of the first selected operation can be but is not limited to a long press operation, and then a sliding operation is performed when the long press operation is not completed, and when sliding to the target lens control, it is further determined whether the long press operation is completed. If it is completed, the second selected operation is obtained. If it is not completed, the operation position of the long press operation continues to be obtained for subsequent judgment.

[0103] As an optional solution, for ease of understanding, the above lens control method is applied to the game scene of the mobile terminal. In the game of the mobile terminal, if the player wants to operate the lens to view the surrounding situation, usually two fingers are needed to rotate the screen for a circle to see the whole situation, which is a complicated operation. Or the player is currently in the third-person perspective, and if he wants to enter the first-person perspective, he needs to click the switch button or other operations. In this embodiment, when the player is in the game, he can quickly operate with one hand to realize the single-finger viewing of the surrounding environment, as well as free stretching and quick switching of the first and third-person perspectives. The operation is quick and convenient, and the user experience is better.

[0104] To further illustrate, the optional Fig.10As shown, when entering the game, you can, but are not limited to, Fig.10 As shown in (a) of FIG. 1 , the lens button 1002 is pressed to trigger the Fig.10 The lens selection mode shown in (b) in the figure can be selected by further clicking on the corresponding operation mode. In addition, the player can also long press the lens button, and the style of the lens button will change, and the lens multi-mode can be automatically switched directly. If the appropriate lens operation is performed, the operation is removed to select it. Further select the appropriate mode, such as Fig.10 The mode of zooming the lens forward and backward as shown in (c) in the figure, after selecting it, you can press and hold the lens button (slider) and drag it forward and backward, from the first-person perspective to the farthest third-person perspective; or Fig.10 As shown in (d), the free rotation mode of the lens is selected, and a direction circle appears around the lens button (slider), which can be dragged to view the environment around the player; in addition, if the operation lasts for more than the preset time (such as 2 seconds) and no operation occurs, the lens selection mode is canceled and the lens becomes a normal control.

[0105] To further illustrate, the optional specific steps of applying the above lens control method in a game scene of a mobile terminal are as follows: Fig.11 As shown:

[0106] Step S1102, displaying a virtual game scene and a camera button;

[0107] Step S1104, obtaining a selection operation triggered by a lens button;

[0108] Step S1106, determining whether the above-mentioned selection operation is a long press operation, if not, executing step S1108, if yes, executing step S1110;

[0109] Step S1108, restoring the original position of the game camera;

[0110] Step S1110, triggering the lens selection mode;

[0111] Step S1112, determining whether the mode triggered in the lens selection mode is the lens front-back stretching mode or the lens free rotation mode, if it is the lens front-back stretching mode, executing step S1114, if it is the lens free rotation mode, executing step S1118;

[0112] Step S1114, displaying the front and rear stretching display distance of the lens;

[0113] Step S1116, in response to the operation triggered by the front-back stretching display of the lens, push forward to the first-person perspective / pull back to the third-person perspective;

[0114] Step S1118, display the camera 306 degrees to view the roulette wheel;

[0115] Step S1120, in response to the operation triggered on the viewing wheel, operate the camera joystick to view the surrounding environment.

[0116] Optionally, in this embodiment, after the processor collects the event data, the operation action may be determined as a long press or a slide. After receiving the processing result of the processor, the control unit performs a corresponding operation.

[0117] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0118] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0119] According to another aspect of the embodiments of the present application, a lens control device for implementing the above lens control method is also provided. Fig.12 As shown, the device comprises:

[0120] A first display unit 1202, used to display a virtual scene and a virtual lens control;

[0121] The second display unit 1204 is used to display at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene;

[0122] A determining unit 1206, configured to determine, in response to a second selection operation triggered on a target lens control among the at least two lens controls, that the control mode of the virtual lens is a target control mode associated with the target lens control;

[0123] The acquisition unit 1208 is used to control the virtual lens to acquire images in the virtual scene according to the target control mode when the control operation performed on the virtual lens is acquired.

[0124] Optionally, in this embodiment, the lens control device can be but is not limited to being used in a virtual game scene on a mobile terminal. Specifically, compared to a personal computer, a mobile terminal lacks auxiliary equipment such as a mouse and a keyboard, and has poor operational flexibility. When a virtual game on such a mobile terminal is being run, a more convenient lens control device is often required to meet the basic game operation requirements of the mobile terminal. However, the lens control device in the related art usually just uses the lens control device on a personal computer, such as switching the display interface in the current virtual game scene to a lens configuration interface, and then completing the adjustment of the lens control mode (method) on the lens configuration interface. The steps are relatively cumbersome, and in the operation scenario of a mobile terminal with low operational flexibility, the burden of user operation is increased, which is not conducive to improving the user experience.

[0125] In the present embodiment, a virtual lens control is displayed while displaying the virtual game scene of the mobile terminal; thus, the user does not need to switch the display interface of the current virtual game scene to the lens configuration interface, but directly triggers a (first) selection operation on the virtual lens control; in response to the first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed while displaying the virtual game scene of the mobile terminal, and thus the user can directly trigger a (second) selection operation on any one of the at least two lens controls to efficiently adjust the control mode of the lens; such as in response to the second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be the target control mode associated with the target lens control; further, when the control operation performed on the virtual lens is obtained, the virtual lens is controlled according to the target control mode to capture the image in the virtual game scene.

[0126] Optionally, in this embodiment, displaying the virtual scene and the virtual lens control can be understood as, but not limited to, displaying the virtual lens control and the virtual scene on the same interface, such as displaying the virtual lens control and the virtual scene simultaneously on the running interface of the virtual game.

[0127] Optionally, in this embodiment, in order to reduce the display impact of the virtual lens control on the virtual game, the display position of the virtual lens control may be set at the edge of the running interface, and / or the display size of the virtual lens control may be set to be lower than the target area threshold, and / or the display transparency of the virtual lens control may be set to be lower than the target transparency threshold. In addition, the display parameters (display position, display area, display transparency, etc.) of the virtual lens space may also be, but are not limited to, custom settings.

[0128] Optionally, in this embodiment, the first selection operation and / or the second selection operation may include, but is not limited to, various types of operations such as a long selection operation, a short selection operation, a single selection operation, and multiple selection operations; in addition, the number of control modes associated with the target lens control may be, but is not limited to, greater than the number of spaces for at least two lens controls. For example, the operation instructions triggered when the first selection operation and / or the second selection operation are responded to may be determined according to, but is not limited to, the operation type of the selection operation; for example, in response to the first selection operation triggered on the virtual lens control (assuming a long selection operation), the lens control A and the lens control B associated with the virtual lens control are displayed; for another example, in response to the first selection operation triggered on the virtual lens control (assuming a short selection operation), the lens control B and the lens control C associated with the virtual lens control are displayed; or for example, in response to the first selection operation triggered on the virtual lens control (assuming a single selection operation), the lens control A associated with the virtual lens control is displayed; or for example, in response to the first selection operation triggered on the virtual lens control (assuming a double selection operation), the lens control B associated with the virtual lens control is displayed, etc.

[0129] Optionally, in this embodiment, in order to ensure the timeliness of the selection operation, when no further operation is detected to be triggered within a preset time length after the first selection operation and / or the second selection operation is triggered, the triggering of the first selection operation and / or the second selection operation may be canceled, but is not limited to; further exemplified, assuming that in response to the first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, but when the duration of displaying the at least two lens controls associated with the virtual lens control reaches a first preset time length and no selection operation is detected to be triggered on any of the at least two lens controls within the first preset time length, the first selection operation is canceled. The triggering of the operation restores the display of the virtual scene and the virtual lens controls; or assuming that a second selected operation is first responded to the triggering of the target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be the target control mode associated with the target lens control, but when the duration of the determination that the control mode of the virtual lens is the target control mode associated with the target lens control reaches a second preset duration and no control operation performed on the virtual lens is detected within the second preset duration, the triggering of the second selected operation is canceled, and it is also possible but not limited to restoring the control mode of the virtual lens before the second selected operation is triggered, and it is possible but not limited to restoring the display of the virtual scene and the virtual lens controls.

[0130] Optionally, in this embodiment, the control mode of the virtual lens can be understood as, but not limited to, the response manner of the virtual lens when it is controlled to move by a control operation, such as in control mode A, the virtual lens is set to move in a first direction in response to a first control operation, while in control mode B, the virtual lens is set to move in a second direction in response to the first control operation; or, in control mode C, the virtual lens is set to capture a first-person image of a target virtual character in a virtual scene in response to the first control operation, while in control mode D, the virtual lens is set to capture a third-person image of a target virtual character in a virtual scene in response to the first control operation.

[0131] It should be noted that a virtual scene and a virtual lens control are displayed; in response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be a target control mode associated with the target lens control; and when a control operation performed on the virtual lens is obtained, the virtual lens is controlled according to the target control mode to capture images in the virtual scene.

[0132] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0133] Through the embodiments provided by the present application, a virtual scene and a virtual lens control are displayed; in response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens control is used to adjust the control mode of the virtual lens, and the virtual lens is used to capture images in the virtual scene; in response to a second selection operation triggered on a target lens control among the at least two lens controls, the control mode of the virtual lens is determined to be a target control mode associated with the target lens control; when a control operation performed on the virtual lens is obtained, the virtual lens is controlled to capture images in the virtual scene according to the target control mode, and the virtual lens control is displayed during the display of the virtual scene, and the display of at least two lens controls is directly triggered by the virtual lens control, and further the selection operation triggered on the two lens controls is performed to complete the efficient adjustment of the control mode (method) of the virtual lens, thereby achieving the purpose of efficiently adjusting the control mode of the virtual lens, thereby achieving the technical effect of improving the control efficiency of the virtual lens.

[0134] As an optional solution, the device includes: a third display unit, configured to display an angle control control of the target control mode after determining that the control mode of the virtual lens is the target control mode associated with the target lens control;

[0135] The acquisition unit 1208 includes: a first acquisition module, which is used to rotate the virtual lens according to the target angle corresponding to the angle control operation when an angle control operation performed on the virtual lens is acquired, and use the rotated virtual lens to acquire the image in the virtual scene.

[0136] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0137] As an optional solution, the third display unit includes: a first display module, used to display the angle control area and the first control sub-control located in the angle control area;

[0138] The first acquisition module includes: a first acquisition submodule, which is used to obtain a target angle according to first position information of the selected first control subcontrol in the angle control area when a third selection operation performed on the first control subcontrol is obtained; and a first acquisition submodule, which is used to rotate the virtual lens according to the target angle and use the rotated virtual lens to capture the image in the virtual scene.

[0139] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0140] As an optional solution, the first display unit 1202 includes: a second display module, which is used to display a virtual scene, a virtual lens control, and a first virtual character located in the virtual scene;

[0141] The first acquisition module includes: a second acquisition submodule, which is used to use a virtual lens to acquire a picture centered on the first virtual character in the virtual scene.

[0142] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0143] As an optional solution, the device includes: a fourth display unit, configured to display a distance control control of the target control mode after determining that the control mode of the virtual lens is the target control mode associated with the target lens control;

[0144] The acquisition unit 1208 includes: a second acquisition module, which is used to scale the virtual lens according to the target distance corresponding to the distance control operation when the distance control operation performed on the virtual lens is acquired, and use the scaled virtual lens to capture the image in the virtual scene.

[0145] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0146] As an optional solution, the fourth display unit includes: a third display module, used to display the distance control area and the second control sub-control located in the distance control area;

[0147] The second acquisition module includes: a second acquisition submodule, which is used to obtain the target distance according to the second position information of the selected second control subcontrol in the distance control area when the fourth selection operation performed on the second control subcontrol is obtained; and a third acquisition submodule, which is used to scale the virtual lens according to the target distance and use the scaled virtual lens to capture the picture in the virtual scene.

[0148] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0149] As an optional solution, the third acquisition submodule includes:

[0150] a zoom-out subunit, configured to zoom out the virtual lens according to the target distance when the distance value corresponding to the second position information is less than a target distance threshold; or

[0151] The magnification subunit is used to magnify the virtual lens according to the target distance when the distance value corresponding to the second position information is greater than the target distance threshold, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the magnified virtual lens.

[0152] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0153] As an optional solution, the first display unit 1202 includes: a fourth display module, which is used to display the virtual scene, the virtual lens control, and the second virtual character located in the virtual scene;

[0154] The second acquisition module includes: a third acquisition sub-module, which is used to use a virtual lens to capture the image from the first person perspective of the second virtual character in the virtual scene when the target distance is within the first distance threshold; or a fourth acquisition sub-module, which is used to use the virtual lens to capture the image from the third person perspective of the second virtual character in the virtual scene when the target distance is within the second distance threshold.

[0155] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0156] As an optional solution, it includes:

[0157] A first acquisition unit, configured to acquire a candidate selection operation triggered on the virtual lens control before displaying at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control;

[0158] A second acquisition unit is configured to acquire the first selected operation when the duration of the candidate selected operation reaches a first duration threshold before displaying at least two lens controls associated with the virtual lens control in response to the first selected operation triggered on the virtual lens control;

[0159] A cancelling unit is used to cancel the execution of the first selection operation before displaying at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control, if the duration of the candidate selection operation reaches a second duration threshold, wherein the second duration threshold is greater than the first duration threshold.

[0160] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0161] As an optional solution, it includes:

[0162] The third acquisition unit is used to acquire the second selection operation after acquiring the first selection operation, when the operation position of the candidate selection operation moves and the candidate selection operation ends when the operation position is moved to the target lens control.

[0163] For specific embodiments, reference may be made to the examples shown in the above lens control method, which will not be described in detail in this example.

[0164] According to another aspect of the embodiments of the present application, an electronic device for implementing the above lens control method is also provided. Fig.13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.

[0165] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0166] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0167] S1, displays the virtual scene and virtual lens controls;

[0168] S2, in response to a first selection operation triggered on the virtual lens control, displaying at least two lens controls associated with the virtual lens control, wherein the lens controls are used to adjust a control mode of the virtual lens, and the virtual lens is used to capture images in a virtual scene;

[0169] S3, in response to a second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be a target control mode associated with the target lens control;

[0170] S4, when the control operation executed on the virtual lens is acquired, the virtual lens is controlled to capture images in the virtual scene according to the target control mode.

[0171] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.

[0172] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the lens control method and device in the embodiments of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, to implement the above-mentioned lens control method. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 may be specifically, but not limited to, used to store information such as virtual scenes, virtual lens controls, and target control modes. As an example, if Fig.13 As shown, the memory 1302 may include but is not limited to the first display unit 1202, the first display unit 1202, the determination unit 1206 and the acquisition unit 1208 in the lens control device. In addition, it may also include but is not limited to other module units in the lens control device, which will not be repeated in this example.

[0173] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0174] In addition, the electronic device further includes: a display 1308 for displaying information such as the virtual scene, virtual lens controls and target control mode; and a connection bus 1310 for connecting various module components in the electronic device.

[0175] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0176] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0177] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0178] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0179] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.

[0180] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0181] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.

[0182] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0183] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0184] S1, displays the virtual scene and virtual lens controls;

[0185] S2, in response to a first selection operation triggered on the virtual lens control, displaying at least two lens controls associated with the virtual lens control, wherein the lens controls are used to adjust a control mode of the virtual lens, and the virtual lens is used to capture images in a virtual scene;

[0186] S3, in response to a second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be a target control mode associated with the target lens control;

[0187] S4, when the control operation executed on the virtual lens is acquired, the virtual lens is controlled according to the target control mode to capture images in the virtual scene.

[0188] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0189] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0190] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0191] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0195] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A lens control method, characterized in that: include: Display virtual scenes and virtual camera controls; In response to a first selection operation triggered on the virtual lens control, at least two lens controls associated with the virtual lens control are displayed, wherein the lens controls are used to adjust a control mode of a virtual lens, and the virtual lens is used to capture images in the virtual scene; In response to a second selection operation triggered on a target lens control among the at least two lens controls, determining the control mode of the virtual lens to be a target control mode associated with the target lens control; When a control operation performed on the virtual lens is acquired, controlling the virtual lens to capture images in the virtual scene according to the target control mode; After determining that the control mode of the virtual lens is the target control mode associated with the target lens control, the method includes: displaying the angle control control of the target control mode; when a control operation performed on the virtual lens is obtained, controlling the virtual lens to capture images in the virtual scene according to the target control mode, including: when an angle control operation performed on the virtual lens is obtained, rotating the virtual lens according to a target angle corresponding to the angle control operation, and using the rotated virtual lens to capture images in the virtual scene; or, After determining that the control mode of the virtual lens is the target control mode associated with the target lens control, the method includes: displaying the distance control control of the target control mode; and controlling the virtual lens to capture the image in the virtual scene according to the target control mode when a control operation performed on the virtual lens is obtained, including: when a distance control operation performed on the virtual lens is obtained, scaling the virtual lens according to the target distance corresponding to the distance control operation, and using the scaled virtual lens to capture the image in the virtual scene.

2. The method according to claim 1, characterized in that The angle control control for displaying the target control mode comprises: a display angle control area and a first control sub-control located in the angle control area; The method of, when an angle control operation performed on the virtual lens is obtained, rotating the virtual lens according to a target angle corresponding to the angle control operation, and using the rotated virtual lens to capture the image in the virtual scene, comprises: when a third selection operation performed on the first control sub-control is obtained, obtaining the target angle according to first position information of the selected first control sub-control in the angle control area; rotating the virtual lens according to the target angle, and using the rotated virtual lens to capture the image in the virtual scene.

3. The method according to claim 1, characterized in that The displaying of the virtual scene and the virtual lens control comprises: displaying the virtual scene, the virtual lens control, and a first virtual character located in the virtual scene; The step of rotating the virtual lens according to a target angle corresponding to the angle control operation and using the rotated virtual lens to capture images in the virtual scene includes: using the virtual lens to capture images in the virtual scene centered on the first virtual character.

4. The method according to claim 1, characterized in that: The distance control control for displaying the target control mode includes: a display distance control area and a second control sub-control located in the distance control area; The method of, when a distance control operation performed on the virtual lens is obtained, scaling the virtual lens according to a target distance corresponding to the distance control operation, and using the scaled virtual lens to capture a picture in the virtual scene, comprises: when a fourth selection operation performed on the second control sub-control is obtained, acquiring the target distance according to second position information of the selected second control sub-control in the distance control area; scaling the virtual lens according to the target distance, and using the scaled virtual lens to capture a picture in the virtual scene.

5. The method according to claim 4, characterized in that The step of scaling the virtual lens according to the target distance includes: When the distance value corresponding to the second position information is less than a target distance threshold, reducing the virtual lens according to the target distance; or, When the distance value corresponding to the second position information is greater than the target distance threshold, the virtual lens is enlarged according to the target distance, wherein the image in the virtual scene captured by the reduced virtual lens is smaller than the image in the virtual scene captured by the enlarged virtual lens.

6. The method according to claim 1, characterized in that The displaying of the virtual scene and the virtual lens control comprises: displaying the virtual scene, the virtual lens control, and a second virtual character located in the virtual scene; The step of scaling the virtual lens according to the target distance corresponding to the distance control operation, and using the scaled virtual lens to capture images in the virtual scene, includes: when the target distance is within a first distance threshold, using the virtual lens to capture images from the first-person perspective of the second virtual character in the virtual scene; or, when the target distance is within a second distance threshold, using the virtual lens to capture images from the third-person perspective of the second virtual character in the virtual scene.

7. The method according to any one of claims 1 to 6, characterized in that Before displaying at least two lens controls associated with the virtual lens control in response to the first selection operation triggered on the virtual lens control, the method includes: Obtaining a candidate selection operation triggered on the virtual lens control; When the duration of the candidate selected operation reaches a first duration threshold, acquiring the first selected operation; When the duration of the candidate selected operation reaches a second duration threshold, the first selected operation is canceled, wherein the second duration threshold is greater than the first duration threshold.

8. The method according to claim 7, characterized in that After the obtaining of the first selected operation, the method further includes: When the operation position of the candidate selected operation moves and the candidate selected operation ends when the operation position is moved to the target lens control, the second selected operation is acquired.

9. A lens control device, characterized in that: include: A first display unit, used for displaying a virtual scene and a virtual lens control; a second display unit, configured to display at least two lens controls associated with the virtual lens control in response to a first selection operation triggered on the virtual lens control, wherein the lens controls are used to adjust a control mode of a virtual lens, and the virtual lens is used to capture images in the virtual scene; a determining unit, configured to determine, in response to a second selection operation triggered on a target lens control among the at least two lens controls, that the control mode of the virtual lens is a target control mode associated with the target lens control; A collection unit, configured to control the virtual lens to collect images in the virtual scene according to the target control mode when a control operation performed on the virtual lens is acquired; The device comprises: a third display unit, configured to display the angle control control of the target control mode after determining that the control mode of the virtual lens is the target control mode associated with the target lens control; the acquisition unit comprises: a first acquisition module, configured to rotate the virtual lens according to the target angle corresponding to the angle control operation when an angle control operation performed on the virtual lens is acquired, and to acquire the image in the virtual scene by using the rotated virtual lens; or The device includes: a fourth display unit, which is used to display the distance control control of the target control mode after determining that the control mode of the virtual lens is the target control mode associated with the target lens control; the acquisition unit includes: a second acquisition module, which is used to scale the virtual lens according to the target distance corresponding to the distance control operation when the distance control operation performed on the virtual lens is acquired, and use the scaled virtual lens to capture the picture in the virtual scene.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 8 when executed.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.

12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.

Citation Information

Patent Citations

  • Lens processing method and device and readable storage medium

    CN112891943A

  • Lens visual angle adjusting method and device, electronic equipment and storage medium

    CN113117332A