Game picture control method and apparatus, and electronic device

By using rotating controls to adjust the camera status in 3D games, switching between projection cameras and orthogonal cameras is solved, and the convenience and alignment experience of viewing angle switching is improved.

WO2024193238A9PCT designated stage expired Publication Date: 2024-11-21NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/074875
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2024-01-31
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

In the 3D game editor, switching between projection cameras and orthogonal cameras is inconvenient and space is limited, making it difficult to achieve natural viewing angle switching.

Method used

The virtual camera switch is achieved through the rotating controls in the game, adjusting the camera status to collect game scenes, including changes in camera position and orientation, saving interface space and simplifying operations.

Benefits of technology

It realizes natural switching between projection cameras and orthogonal cameras, improves operation convenience, saves game interface space, and provides a better alignment experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024074875_21112024_PF_FP_ABST
    Figure CN2024074875_21112024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a game picture control method and apparatus, and an electronic device. The method comprises: in response to a first trigger operation on a rotation control on a graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling a first scene picture, which is obtained by collecting a game scene by means of a first virtual camera, to switch to a second scene picture, which is obtained by collecting the game scene by means of a second virtual camera according to a second camera state corresponding to the preset target angle, wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust camera states of the first virtual camera and the second virtual camera. By means of a rotation control in a game, switching between virtual cameras for collecting a game scene can be implemented, such that a usage space of a game interface is saved on, and camera switching is simple and convenient to operate; moreover, a scene picture obtained by means of collecting a game scene at a preset angle can be displayed after camera switching is performed, so as to facilitate a player in performing an editing operation on an editing object in the game scene.
Need to check novelty before this filing date? Find Prior Art

Description

Game screen control method, device and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310295605.7, filed on March 22, 2023, entitled “Method, device and electronic device for controlling game screens”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the technical field of game interaction design, and in particular to a method, device, and electronic device for controlling a game screen. Background Art

[0004] In 3D games, a virtual camera is often used to capture the game scene and display the game screen. Specifically, virtual cameras typically include projection cameras and orthographic cameras. A projection camera is a camera used in 3D games to simulate the human eye's perspective, also known as a projection perspective. An orthographic camera is a camera in 3D games that provides a rectangular field of view, without the effect of near objects appearing larger than far objects.

[0005] In game editors, a switch is usually required to switch between orthographic and projection perspectives. However, the available white space in the game's primary interface layout is limited, making it difficult to provide additional space for the switch, resulting in poor convenience in perspective switching. Furthermore, in game editors, two sets of viewing distances are usually stored separately for projection cameras and orthographic cameras, resulting in a clunky switching between orthographic and projection perspectives.

[0006] Summary of the Invention

[0007] The purpose of the present disclosure is to provide a method, device and electronic device for controlling a game screen, so as to make the switching between orthographic perspective and projection perspective more natural without adding additional controls, while improving the operational convenience of perspective switching.

[0008] In a first aspect, the present disclosure provides a method for controlling a game screen, providing a graphical user interface through a terminal device; the method includes: the graphical user interface displays a first scene screen obtained by capturing a game scene through a first virtual camera, wherein the game scene includes an editable object, which is a virtual object set in the game scene in response to an editing instruction; in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to be switched to a second scene screen obtained by capturing the game scene according to a second camera state corresponding to the preset target angle by a second virtual camera; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

[0009] In a second aspect, the present disclosure provides a device for controlling a game screen, which provides a graphical user interface through a terminal device; the device includes: a scene acquisition module, configured to execute a graphical user interface to display a first scene screen obtained by acquiring a game scene through a first virtual camera, wherein the game scene includes an editable object, which is a virtual object set in the game scene in response to an editing instruction; a camera switching module, configured to execute a first trigger operation in response to a rotation control on the graphical user interface, control the rotation control to rotate to a preset target angle, and control the first scene screen to be switched to a second scene screen obtained by acquiring the game scene through a second camera state corresponding to the preset target angle by the second virtual camera; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

[0010] In a third aspect, the present disclosure provides an electronic device comprising a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned game screen control method.

[0011] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned game screen control method.

[0012] The embodiments of the present disclosure bring the following beneficial effects:

[0013] The present disclosure provides a method, device, and electronic device for controlling a game screen. First, a graphical user interface displays a first scene screen obtained by capturing a game scene through a first virtual camera, wherein the game scene includes an editable object, which is a virtual object set in the game scene in response to an editing instruction; then, in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to switch to a second scene screen obtained by capturing the game scene according to a second camera state corresponding to the preset target angle; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes camera position and / or camera orientation. This method uses the rotation control in the game to realize the switching of the virtual camera that captures the game scene, thereby saving the space used for the game interface and simplifying the camera switching operation; at the same time, after switching the virtual camera, the game screen with the game scene captured at the preset angle can be displayed, making it convenient for players to edit the editable objects in the game scene.

[0014] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by practicing the above-mentioned technology of the present disclosure.

[0015] In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the following briefly introduces the drawings required for use in the specific embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] FIG1 is a flowchart of a method for controlling a game screen provided by one of the embodiments of the present disclosure;

[0018] FIG2 is a flow chart of another method for controlling a game screen provided by one of the embodiments of the present disclosure;

[0019] FIG3 is a flowchart of another method for controlling a game screen provided by one of the embodiments of the present disclosure;

[0020] FIG4 is a flowchart of another method for controlling a game screen provided by one of the embodiments of the present disclosure;

[0021] FIG5 is a schematic diagram of the perspectives of a first virtual camera and a second virtual camera provided by one of the embodiments of the present disclosure;

[0022] FIG6 is a schematic diagram of a first virtual camera switching to a second virtual camera provided by one of the embodiments of the present disclosure;

[0023] FIG7 is a schematic diagram of another embodiment of the present disclosure, wherein a first virtual camera is switched to a second virtual camera;

[0024] FIG8 is a schematic diagram of camera switching after a second scene image is magnified according to one of the embodiments of the present disclosure.

[0025] FIG9 is a schematic structural diagram of a game screen control device provided by one of the embodiments of the present disclosure;

[0026] FIG10 is a schematic structural diagram of an electronic device provided in one of the embodiments of the present disclosure. DETAILED DESCRIPTION

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all of them. Generally, the components of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure as claimed, but merely represents selected embodiments of the present disclosure. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative effort shall fall within the scope of protection of the present disclosure.

[0029] In 3D games, it is usually necessary to use a virtual camera to shoot the game scene and obtain the game screen displayed on the screen of the gaming device. Specifically, virtual cameras usually include projection cameras and orthographic cameras. The projection camera is the camera used in 3D games to simulate the human eye perspective. The human eye perspective simulated by the projection camera can also be called the projection perspective. The orthographic camera is a camera in 3D games that provides an orthographic perspective without large near and small far, and a rectangular field of view. The principle of the orthographic camera is to divide the entire scene into several pixels according to a given width and height, and then map the scene midpoint corresponding to each pixel to the corresponding pixel point. In addition, the orthographic camera presents objects at different distances in the scene with the same size regardless of the distance between them, thus ensuring the positive proportional scaling of the scene.

[0030] In game editors, a switch is usually required to switch between orthographic and projection perspectives. However, the available white space in the game's primary interface layout is limited, making it difficult to provide additional space for the switch, resulting in poor convenience in perspective switching. Furthermore, in game editors, two sets of viewing distances are usually stored separately for projection cameras and orthographic cameras, resulting in a clunky switching between orthographic and projection perspectives.

[0031] Based on the above problems, the embodiments of the present disclosure provide a method, device and electronic device for controlling a game screen. This technology can be applied to the switching scenarios of virtual cameras with different functions set in the game scene, especially the switching scenarios of projection cameras and orthogonal cameras set in the game scene.

[0032] In one embodiment of the present disclosure, the control of the game screen can be run on a local terminal device or a server. When the control of the game screen is run on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0033] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game screen control method are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0034] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.

[0035] In one possible implementation, an embodiment of the present disclosure provides a method for controlling a game screen, wherein a graphical user interface is provided through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system; the graphical user interface is used to display a game scene screen obtained by capturing the game scene through a first virtual camera or a second virtual camera; as shown in FIG1 , the method includes the following specific steps:

[0036] Step S102: The graphical user interface displays a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, which are virtual objects set in the game scene in response to editing instructions.

[0037] In a specific implementation, the game scene may include at least one editable object, which may be a virtual terrain, a virtual level, a virtual decoration or a custom component, etc. The specific object types and object forms of the editable object may be set according to R&D requirements. Players can edit the editable object through editing instructions and use the edited editable object as a virtual object in the game scene. The above-mentioned editing operation may be an operation of dragging the editable object from the editing menu (the editing menu includes multiple different types of editable objects) to the game scene, or an operation of moving, scaling or rotating the editable object, or an operation of adjusting the color, movement mode, etc. of the editable control.

[0038] The above-mentioned first virtual camera can be a projection camera, which simulates the real world seen by the human eye and provides a conical field of view. The projection camera has the imaging characteristics of larger objects when near and smaller objects when far. That is, in the first scene image obtained by capturing the game scene by the first virtual camera, the closer the editable object is to the first virtual camera, the larger the display size of the editable object.

[0039] Step S104, in response to a first trigger operation on a rotation control on a graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to a second scene screen obtained by capturing the game scene by the second virtual camera according to a second camera state corresponding to the preset target angle; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or the camera orientation.

[0040] The rotation control in this disclosure is associated with both the first and second virtual cameras. This means the rotation control can adjust the camera states of the first and second virtual cameras, and can also control switching between the first and second virtual cameras to capture the game scene. The camera state can include only the camera orientation, only the camera position, or both.

[0041] In a specific implementation, the imaging principle and function of the above-mentioned second virtual camera are the same or similar to those of an orthographic camera (an orthographic camera can provide a rectangular field of view, so that things seen are not larger when near and smaller when far). That is, the second virtual camera can capture the game scene through an orthographic perspective to obtain a scene screen. In the scene screen, the display size of the editable object is a proportional scale of the actual size of the editable object, that is, editable objects of the same size have the same display size in the scene screen.

[0042] In actual applications, the above-mentioned first trigger operation can be a click operation, a long press operation, or a drag operation of the rotation control by the player, etc., which can be determined according to research and development needs. Specifically, according to the final trigger position of the first trigger operation, the preset target angle to which the rotation control is finally rotated can be determined. The preset target angle can be used to determine the direction from which the virtual camera collects the editable objects in the virtual game scene (this direction is usually the direction corresponding to when collecting the front view of the editable object), thereby determining the camera state of the virtual camera according to the determined direction and the camera focal length of the virtual camera. After determining the camera state of the virtual camera, the virtual camera does not jump directly to the determined camera state, but the virtual camera smoothly transitions from the current camera state to the determined camera state at a certain speed. Since the positions of the first virtual camera and the second virtual camera are bound to each other, the camera state of one virtual camera can be used to obtain the camera state of the other virtual camera. In some embodiments, the camera states of the first virtual camera and the second virtual camera remain consistent.

[0043] When the player performs a first trigger operation on the rotary control, the rotary control is rotated to a preset target angle based on the final trigger position of the first trigger operation, and the camera states of the first and second virtual cameras are adjusted. The first virtual camera capturing the game scene is switched to the second virtual camera, so that the graphical user interface displays the scene image obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle. In specific implementations, the virtual camera capturing the game scene can only be the first virtual camera or the second virtual camera, and the first and second virtual cameras cannot be used simultaneously to capture the game scene.

[0044] Specifically, each angle to which the rotation control is rotated corresponds to a corresponding camera state. In an optional embodiment, the camera state corresponding to the above-mentioned preset target angle is usually: when capturing the front view of the editable object in the game scene, the camera state of the second virtual camera, and the front view includes views corresponding to the front, rear, top, left, and right of the editable object. The present disclosure can obtain a scene screen containing a front view of the editable object by capturing the game scene with the second virtual camera. The player can better observe the features of the editable object through the front view, and can realize the alignment of the editable object, thereby facilitating the player to perform corresponding operations on the editable object and the editable object.

[0045] The present disclosure provides a method for controlling a game screen. First, a graphical user interface displays a first scene screen obtained by capturing a game scene through a first virtual camera, wherein the game scene includes an editable object, which is a virtual object set in the game scene in response to an editing instruction; then, in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to switch to a second scene screen obtained by capturing the game scene according to a second camera state corresponding to the preset target angle; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes a camera position and / or a camera orientation. This method uses the rotation control in the game to realize the switching of the virtual camera that captures the game scene, thereby saving the space used for the game interface and simplifying the camera switching operation; at the same time, after switching the virtual camera, the method can display the game screen with the game scene captured at the preset angle, making it convenient for players to edit the editable objects in the game scene.

[0046] The present disclosure also provides another method for controlling a game screen. This method is implemented based on the above method embodiment. The method focuses on responding to a first trigger operation on a rotation control on a graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the switching of the first scene screen to a second virtual camera capturing the game scene according to a second camera state corresponding to the preset target angle to obtain a second scene screen (implemented by the following steps S204-S206). As shown in FIG2 , the method includes the following specific steps:

[0047] Step S202: The graphical user interface displays a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, which are virtual objects set in the game scene in response to editing instructions.

[0048] Step S204, in response to the first trigger operation on the rotation control, the first virtual camera for capturing the game scene is switched to the second virtual camera, and the rotation parameters of the rotation control are obtained, and the rotation of the rotation control is controlled based on the rotation parameters; during the rotation of the rotation control, the scene image obtained by the second virtual camera capturing the game scene according to the camera state corresponding to the rotation parameters is displayed in the graphical user interface; wherein the rotation parameters include the rotation angle and rotation speed corresponding to the rotation of the rotation control to the preset target angle.

[0049] In a specific implementation, the first trigger operation includes a click operation on a target position of a rotation control; each position of the rotation control corresponds to a preset angle to which the rotation control is to rotate; the preset angles are used to indicate the camera states of the first and second virtual cameras when capturing a front view of an editable object in the game scene. That is, each preset angle corresponding to each position of the rotation control corresponds to a camera state.

[0050] When the player performs the first trigger operation on the rotation control, the first virtual camera for capturing the game scene will be switched to the second virtual camera, and the rotation parameters of the rotation control will be obtained at the same time, and the rotation of the rotation control will be controlled based on the rotation parameters; during the rotation of the rotation control, the camera states of the first virtual camera and the second virtual camera will be adjusted synchronously, so that the scene picture obtained by the second virtual camera capturing the game scene according to the camera state corresponding to the rotation parameters will be displayed in the graphical user interface, thereby achieving smooth perspective picture switching.

[0051] Step S206 , in response to the rotation of the rotary control to the preset target angle, controlling the graphical user interface to display a second scene image obtained by capturing the game scene by the second virtual camera according to the second camera state corresponding to the preset target angle.

[0052] The specific angle corresponding to the preset target angle is determined based on the final trigger position of the first trigger operation. When the rotary control is rotated to the preset target angle in accordance with the first trigger operation, the graphical user interface displays a second scene image obtained by capturing the game scene using the second camera state indicated by the preset target angle. In a specific implementation, the first virtual camera is a projection camera, and the second virtual camera is an orthographic camera.

[0053] The above-mentioned game screen control method switches to an orthographic camera capture by clicking the existing rotation control in the game, saving space in the game interface. Furthermore, since alignment only matters when the editable objects in the captured scene are in an orthographic view, enabling the orthographic camera and adjusting the camera state simultaneously reduces understanding and provides players with a better alignment experience.

[0054] The present disclosure also provides another method for controlling a game screen. This method is implemented based on the above method embodiment. The method focuses on responding to a first trigger operation on a rotation control on a graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the switching of the first scene screen to a second virtual camera capturing the game scene according to a second camera state corresponding to the preset target angle to obtain a second scene screen (implemented by the following step S304). As shown in FIG3 , the method includes the following specific steps:

[0055] Step S302: The graphical user interface displays a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, which are virtual objects set in the game scene in response to editing instructions.

[0056] Step S304, in response to the first trigger operation on the rotation control, the rotation control is controlled to rotate according to the first trigger operation. When the rotation control is rotated to a preset target angle, the first scene screen is switched to the second scene screen obtained by capturing the game scene by the second virtual camera according to the second camera state corresponding to the preset target angle.

[0057] In a specific implementation, the first trigger operation includes at least one of the following: a dragging operation to rotate the rotation control to a preset target angle; and a clicking operation on the target position of the rotation control. Specifically, the player can drag the rotation control to the preset target angle, or click on the target position of the rotation control; or click on the rotation control after dragging the rotation control to the preset target angle, thereby controlling the rotation control to rotate to the preset target angle, and at the same time controlling the first virtual camera and the second virtual camera to rotate to the second camera state corresponding to the preset target angle at a preset speed; then, when the first virtual camera and the second virtual camera rotate to the second camera state corresponding to the preset target angle, the first virtual camera that captures the game scene is switched to the second virtual camera, and the second scene screen obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle is displayed in the graphical user interface.

[0058] Step S306, in response to the specified trigger operation or the second trigger operation for the rotation control, control the switching of the second scene screen to the third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state corresponding to the specified trigger operation or the second trigger operation for the rotation control.

[0059] In specific implementations, the designated triggering operation can be determined based on R&D requirements. For example, the designated triggering operation can be a movement operation of pressing the right mouse button on a computer, or a two-finger movement operation on a mobile game screen, where the two fingers move on the screen while maintaining a constant distance. The second triggering operation can also be determined based on R&D requirements. For example, the second triggering operation can be a player rotating a rotary control or a player sliding a rotary control.

[0060] When the player performs a designated trigger operation or a second trigger operation on the rotation control, it is necessary to determine the camera states of the first virtual camera and the second virtual camera according to the display state of the editable objects in the current scene screen displayed in the graphical user interface, and then rotate the first virtual camera and the second virtual camera to the determined camera state at a preset speed, and at the same time switch the second virtual camera for capturing the game scene to the first virtual camera to display a third scene screen obtained by shooting the game scene with the first virtual camera in the graphical user interface. In the third scene screen, the closer the editable object is to the first virtual camera, the larger the display size of the editable object.

[0061] The above-mentioned method for controlling the game screen is simple and easy to use for switching between the two cameras, does not occupy too much interface space, and the switching between the two cameras is smooth and gentle. In addition, this method can save understanding costs and bring a better alignment experience to players.

[0062] The disclosed embodiments further provide another method for controlling a game screen. This method is implemented based on the above-mentioned method embodiment. The method focuses on describing a specific process of responding to a first trigger operation on a rotation control on a graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to a second scene screen obtained by capturing the game scene with the second virtual camera according to a second camera state corresponding to the preset target angle (implemented by the following steps S404-S408), and a specific process of responding to a specified trigger operation or a second trigger operation on the rotation control, controlling the second scene screen to be switched to a third scene screen obtained by capturing the game scene with the first virtual camera according to the specified trigger operation or the first camera state corresponding to the second trigger operation on the rotation control (implemented by the following steps S412-S416). As shown in FIG. 4 , the method includes the following specific steps:

[0063] Step S402: The graphical user interface displays a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes an editable object, which is a virtual object set in the game scene in response to an editing instruction.

[0064] Step S404, in response to a first trigger operation for the rotation control, determining a preset target angle corresponding to the rotation control and a target orientation of the first virtual camera and the second virtual camera according to the face of the polyhedron control triggered by the final trigger position of the first trigger operation; wherein the rotation control is a polyhedron control.

[0065] In a specific implementation, the rotation control is a polyhedron control, which includes multiple faces. Each face of the polyhedron control corresponds to a preset angle, and the preset angle is used to indicate: when capturing the front view of the editable object in the game scene, the camera orientation of the first virtual camera and the second virtual camera; wherein different faces of the polyhedron control correspond to different front views of the editable object. Specifically, the polyhedron control can be a cube control or a rectangular control. When the polyhedron control is a cube control, the top of the cube control is used to indicate: when capturing the editable object in the game scene, the virtual camera is located directly above the editable object, and is used to capture the front view corresponding to the top of the editable object; the front of the cube control is used to indicate: when shooting the editable object in the game scene, the virtual camera is located directly in front of the editable object, and is used to shoot the front view corresponding to the front of the editable object.

[0066] The face of the polyhedron control triggered by the final trigger position of the above-mentioned first trigger operation can be any face of the polyhedron control, and the specific face of the polyhedron control can be determined according to the player's operation, that is, the face of the polyhedron control clicked by the player is the face triggered by the final trigger position; or when the player drags the polyhedron control, which face is displayed only frontally in the graphical user interface, which face is the face triggered by the final trigger position. For example, when the player clicks on a face of the polyhedron control, the direction of the virtual camera indicated by the face in the game scene will be determined as the camera direction of the first virtual camera and the second virtual camera. Here, the camera directions of the first virtual camera and the second virtual camera are the same, that is, the positions of the first virtual camera and the second virtual camera are bound to each other.

[0067] Since the status data of the first virtual camera and the second virtual camera in the related art need to be saved separately and in different storage locations, the positions of the first virtual camera and the second virtual camera in the present disclosure are bound to each other, so that the first virtual camera and the second virtual camera can share a set of data, thereby reducing data storage.

[0068] Step S406 : determining target positions of the first virtual camera and the second virtual camera in the game scene based on the target orientation and the camera focal length of the first virtual camera before the first trigger operation.

[0069] In a specific implementation, when the first virtual camera for capturing the game scene switches to the second virtual camera, the camera focal length of the first virtual camera does not change. Therefore, the camera focal length before the first trigger operation (here the second virtual camera does not have a focal length parameter, so the camera focal lengths mentioned in the embodiments of the present disclosure are all the camera focal lengths of the first virtual camera) and the camera orientation can be used to determine the target positions of the first virtual camera and the second virtual camera, and then the second camera states of the first virtual camera and the second virtual camera can be obtained, and the second camera states include the target orientation and target position of the virtual camera.

[0070] Step S408: Turn the rotation control to a preset target angle, and adjust the first virtual camera and the second virtual camera to the target position and target orientation, and control the switching of the first scene screen to the second scene screen obtained by the second virtual camera capturing the game scene according to the target orientation and target position.

[0071] After determining the target orientation and target position of the first and second virtual cameras, the first and second virtual cameras can be rotated to the target orientation and target position at a preset speed. Simultaneously, during the rotation of the first and second virtual cameras, the first virtual camera capturing the game scene is switched to the second virtual camera, and the second scene image captured by the second virtual camera is displayed in the graphical user interface. The specific values ​​corresponding to the aforementioned preset speeds can be set based on research and development needs and are not specifically limited herein.

[0072] In a specific implementation, the specific process of controlling the switching of the first scene screen to the second scene screen obtained by capturing the game scene according to the target direction and target position by the second virtual camera can be achieved through the following steps 10-11:

[0073] Step 10: Obtain the focal length and field of view of the first virtual camera, and determine the target field of view of the second virtual camera for capturing the game scene based on the focal length and field of view.

[0074] The above-mentioned field of view angle is used to indicate the viewing angle of the first virtual camera for shooting the game scene. According to the camera focal length and field of view angle of the first virtual camera, the height of the rectangular field of view of the second virtual camera for shooting the game scene can be obtained through a simple trigonometric function relationship. By using the aspect ratio of the game device screen (this data can be retrieved from the device information), the width of the rectangular field of view can be calculated. According to the obtained height and width of the rectangular field of view, the target field of view range of the second virtual camera for shooting the game scene can be obtained.

[0075] As shown in Figure 5, a schematic diagram of the perspectives of the first virtual camera and the second virtual camera provided by an embodiment of the present disclosure is shown. The first virtual camera and the second virtual camera shown on the far left of Figure 5 have the same position and orientation. The angle in Figure 5 corresponds to the shooting perspective of the first virtual camera, and the rectangular box corresponds to the shooting perspective of the second virtual camera. FOV represents the field of view of the first virtual camera. Based on this, the height and width of the target field of view range of the second virtual camera shooting the game scene can be determined by the following formula:

[0076] Height = focal length * tan(FOV / 2) * 2;

[0077] Width = aspect ratio * height.

[0078] Step 11: Switch the first virtual camera that captures the game scene to the second virtual camera, and switch the first scene screen to the second scene screen that matches the target field of view size when the second virtual camera is located at the target orientation and target position and captures the game scene.

[0079] In a specific implementation, the target field of view is the same as the screen display range corresponding to the graphical user interface, so that the second scene screen is the scene screen obtained by the second virtual camera capturing the game scene within the target field of view.

[0080] As shown in FIG6 , a schematic diagram of a first virtual camera switching to a second virtual camera provided by an embodiment of the present disclosure is shown; the left image in FIG6 is a first scene screen obtained by capturing a game scene with the first virtual camera, in which three rows and four columns of rectangular blocks are displayed side by side. These rectangular blocks are used to represent editable objects in the game scene. The 12 rectangular blocks are of the same actual size, but the rectangular blocks in the first row are closer to the first virtual camera and are displayed in a larger size, while the rectangular blocks in the third row are farther from the first virtual camera and are displayed in a smaller size. The cube displayed in the upper right corner of the left image in FIG6 is a rotation control, each face of which is used to indicate the front view of the corresponding face of the editable object being captured. The right image in FIG6 is a second scene screen obtained by capturing the game scene with the second virtual camera when the rotation control is rotated to the front. In this second scene screen, since the three rows of rectangular blocks are displayed side by side and the view of the front of the rectangular blocks is captured, the rectangular blocks in the third and second rows are blocked, and the view corresponding to the front of the rectangular blocks in the first row is displayed, and the display size is the same.

[0081] As shown in Figure 7, this is a schematic diagram of another embodiment of the present disclosure providing a first virtual camera switched to a second virtual camera; the image on the right side of Figure 7 is a second scene screen obtained by switching to the second virtual camera to capture the game scene when the rotation control is rotated to the top. In this second scene screen, since the three rows of rectangles are displayed side by side and the view corresponding to the top of the rectangles is captured, the three rows of rectangles all display the view corresponding to the top, and the display size is the same.

[0082] Step S410, in response to the zoom operation on the second scene screen, adjust the field of view of the second virtual camera for capturing the game scene, and determine the fourth scene screen obtained by the second virtual camera capturing the game scene according to the second camera state based on the adjusted field of view.

[0083] In specific implementation, the above-mentioned zoom operation is usually an operation to enlarge or reduce the display size of the virtual object in the second scene screen. The zoom operation can be an operation of sliding the mouse wheel, or an operation of lengthening and shortening the distance between two fingers on the screen. The specific operation of the zoom operation can be determined according to research and development needs.

[0084] In actual applications, after the second scene image is displayed in the graphical user interface, during the process of capturing the game scene through the second virtual camera, the camera states of the first virtual camera and the second virtual camera in the game scene remain unchanged, that is, it is necessary to limit the movement of the first virtual camera and the second virtual camera, because the second virtual camera (equivalent to the orthogonal camera) does not have a large image when it is near and a small image when it is far. When the second virtual camera is turned on, the movement of the distance cannot adjust the distance of the scene seen, but may cause a cropping problem due to being too close. Therefore, when shooting the game scene through the second virtual camera, the zoom operation actually adjusts the height and width of the field of view of the second virtual camera. Therefore, in order to avoid the cropping problem, the present disclosure requires that when the second virtual camera shoots the game scene, the position and orientation of the first virtual camera and the second virtual camera remain unchanged.

[0085] Step S412: In response to a specified trigger operation or a second trigger operation on the rotation control, determine the current field of view of the second virtual camera for capturing the game scene.

[0086] In specific implementations, the aforementioned designated triggering operation can be determined based on R&D requirements. For example, the designated triggering operation can be a movement operation of pressing the right mouse button on a computer, or a two-finger movement operation on a mobile game screen, where the two fingers are typically moved on the screen while maintaining a constant distance between them. The aforementioned second triggering operation includes a rotation operation for a rotary control. The rotation operation for a rotary control can be an operation triggered by the player that can control the rotation of the rotary control, such as turning the rotary control or sliding the screen with two fingers.

[0087] In actual applications, after the second virtual camera captures the game scene to obtain the second scene screen, the player may zoom in and out on the editable objects in the scene screen, thereby adjusting the field of view of the second virtual camera. Therefore, when switching from the second virtual camera back to the first virtual camera, it is necessary to first determine the current field of view of the second virtual camera, so as to adjust the camera states of the first virtual camera and the second virtual camera.

[0088] Step S414: determining the first camera states of the first virtual camera and the second virtual camera according to the current field of view.

[0089] In a specific implementation, when the player performs a designated trigger operation or a second trigger operation on the rotation control, the second virtual camera capturing the game scene is switched to the first virtual camera, and the current field of view of the second virtual camera capturing the game scene needs to be determined. The current field of view indicates the width and height of the rectangular field of view of the second virtual camera currently capturing the game scene.

[0090] Specifically, the above step S414 can be implemented through the following steps 20-21:

[0091] Step 20: Adjust the focal length of the first virtual camera according to the current field of view corresponding to the second virtual camera to obtain an adjusted focal length.

[0092] In a specific implementation, the focal length of the first virtual camera can be calculated based on the height of the current field of view and the field of view angle of the first virtual camera through a preset trigonometric function relationship. For example, the adjusted focal length can be determined by the following formula:

[0093] The adjusted focal length = height corresponding to the current field of view / 2 / tan (FOV / 2).

[0094] Step 21 : determining the first camera states of the first virtual camera and the second virtual camera according to the adjusted focal length and the current orientation of the first virtual camera.

[0095] Since the current camera orientation remains unchanged, the positions where the first virtual camera and the second virtual camera should be located can be simply reversed while the visual focus remains unchanged.

[0096] Step S416: rotate the first virtual camera and the second virtual camera to the first camera state, and switch the fourth scene image to the third scene image obtained by capturing the game scene with the first virtual camera according to the first camera state.

[0097] After determining the camera orientations and camera positions to be adjusted for the first and second virtual cameras, the first and second virtual cameras can be rotated to the camera orientations and camera positions to be adjusted at a preset speed. Simultaneously, during the rotation of the first and second virtual cameras, the second virtual camera capturing the game scene is switched to the first virtual camera, and a third scene image captured by the first virtual camera capturing the game scene is displayed in the graphical user interface. The specific values ​​corresponding to the aforementioned preset speeds can be set based on research and development requirements and are not specifically limited herein.

[0098] To facilitate understanding of the embodiments of the present disclosure, FIG8 provides a schematic diagram of camera switching after the second scene screen is magnified. The image on the left of FIG8 is the game screen obtained by magnifying the image on the right of FIG6 , and the image on the right of FIG8 is the third scene screen obtained by capturing the game scene with the first virtual camera after the player rotates the rotation control when the image on the left of FIG8 is displayed in the graphical user interface. The third scene screen can reflect the three-dimensional effect of the editable object, and the third scene screen is obtained by capturing the game scene with the first virtual camera after recalculating the camera position during the switching phase. As can be seen from FIG8 , the two cameras can switch smoothly.

[0099] The above-mentioned method of controlling the game screen uses the existing rotation control in the game to switch to the orthographic camera to shoot the game scene, which can save space in the game interface. At the same time, since alignment is only meaningful when the editable object captured is a front view when shooting a virtual scene with an orthographic camera, turning on the orthographic camera and adjusting the camera state occur at the same time, which can save understanding costs and bring players a better alignment experience. In addition, this method recalculates the camera focal length of the first virtual camera and the width and height of the field of view corresponding to the second virtual camera each time the virtual camera shooting the game scene is switched, thereby giving players a smooth camera switching experience.

[0100] In accordance with the above method embodiment, the present disclosure also provides a device for controlling a game screen, which provides a graphical user interface through a terminal device. As shown in FIG9 , the device includes:

[0101] The scene acquisition module 90 is configured to execute a graphical user interface to display a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, which are virtual objects set in the game scene in response to editing instructions.

[0102] The camera switching module 91 is configured to execute a first trigger operation in response to a rotation control on a graphical user interface, control the rotation control to rotate to a preset target angle, and control the switching of the first scene screen to the second scene screen obtained by capturing the game scene by the second virtual camera according to the second camera state corresponding to the preset target angle; wherein, the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

[0103] The above-mentioned device for switching game screens first displays a first scene screen obtained by capturing a game scene through a first virtual camera on a graphical user interface, wherein the game scene includes editable objects, which are editable objects set in the game scene in response to editing instructions; then, in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to switch to a second scene screen obtained by capturing the game scene with a second virtual camera according to a second camera state corresponding to the preset target angle; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes camera position and / or camera orientation. This method uses the rotation control in the game to realize the switching of the virtual camera that captures the game scene, thereby saving the space used for the game interface and simplifying the camera switching operation; at the same time, after switching the virtual camera, the game screen with the game scene captured at the preset angle can be displayed, making it convenient for players to edit the editable objects in the game scene.

[0104] In an optional embodiment, the camera switching module 91 is configured to perform the following: responding to a first trigger operation on the rotation control, controlling the rotation control to rotate according to the first trigger operation, and when the rotation control is rotated to a preset target angle, controlling the first scene screen to be switched to a second scene screen obtained by capturing the game scene by the second virtual camera according to the second camera state corresponding to the preset target angle.

[0105] In a specific implementation, the first trigger operation includes at least one of the following: a drag operation of rotating the rotary control to a preset target angle; and a click operation on a target position of the rotary control.

[0106] In an optional embodiment, the camera switching module 91 is configured to perform: in response to a first trigger operation on the rotation control, switching the first virtual camera for capturing the game scene to the second virtual camera, obtaining the rotation parameters of the rotation control, and controlling the rotation of the rotation control based on the rotation parameters; during the rotation of the rotation control, displaying in the graphical user interface a scene image obtained by capturing the game scene by the second virtual camera according to the camera state corresponding to the rotation parameters; wherein the rotation parameters include a rotation angle and a rotation speed corresponding to the rotation of the rotation control to a preset target angle; in response to the rotation control rotating to the preset target angle, controlling the graphical user interface to display a second scene image obtained by capturing the game scene by the second camera state corresponding to the preset target angle.

[0107] In a specific implementation, the above-mentioned first trigger operation includes: a click operation on the target position of the rotation control; wherein each position in the rotation control corresponds to a preset angle to which the rotation control is about to rotate; wherein the preset angle is used to indicate: when capturing the front view of the editable object in the game scene, the camera status of the first virtual camera and the second virtual camera.

[0108] In actual applications, while the rotary control is rotating, the camera states of the first virtual camera and the second virtual camera are synchronously adjusted.

[0109] In some embodiments, the positions of the first virtual camera and the second virtual camera are bound to each other.

[0110] In a specific implementation, the first virtual camera is a projection camera; the second virtual camera is an orthogonal camera.

[0111] In a specific implementation, the above-mentioned rotation control is a polyhedron control; each face of the polyhedron control corresponds to a preset angle, and the preset angle is used to indicate: when capturing the front view of the editable object in the game scene, the camera orientation of the first virtual camera and the second virtual camera; wherein, different faces of the polyhedron control correspond to different front views of the editable object; the above-mentioned camera switching module 91 is configured to execute: in response to the first trigger operation for the rotation control, determining the preset target angle corresponding to the rotation control and the target orientation of the first virtual camera and the second virtual camera according to the face of the polyhedron control triggered by the final trigger position of the first trigger operation; determining the target position of the first virtual camera and the second virtual camera in the game scene based on the target orientation and the camera focal length of the first virtual camera before the first trigger operation; rotating the rotation control to the preset target angle, and adjusting the first virtual camera and the second virtual camera to the target position and target orientation, controlling the switching of the first scene screen to the second scene screen obtained by capturing the game scene by the second virtual camera according to the target orientation and target position.

[0112] Furthermore, the camera switching module 91 is also configured to execute: obtaining the camera focal length and field of view angle of the first virtual camera, and determining the target field of view range of the second virtual camera for capturing the game scene based on the camera focal length and field of view angle; switching the first virtual camera for capturing the game scene to the second virtual camera, and switching the first scene screen to the second scene screen that matches the target field of view range size when the second virtual camera is located in the target direction and target position and captures the game scene.

[0113] In actual reality, after the second scene image is displayed in the graphical user interface, during the process of capturing the game scene through the second virtual camera, the camera states of the first virtual camera and the second virtual camera remain unchanged.

[0114] Furthermore, the above-mentioned device also includes a zoom module, which is configured to perform: in response to a first trigger operation on a rotation control on a graphical user interface, control the rotation control to rotate to a preset target angle, and control the first scene screen to be switched to a second scene screen obtained by the second virtual camera capturing the game scene according to a second camera state corresponding to the preset target angle, and then, in response to a zoom operation acting on the second scene screen, adjust the field of view of the second virtual camera capturing the game scene, and determine the fourth scene screen obtained by the second virtual camera capturing the game scene according to the second camera state based on the adjusted field of view.

[0115] In a specific implementation, the above-mentioned device also includes a first camera switching module, which is configured to execute: in response to a first trigger operation on a rotation control on a graphical user interface, control the rotation control to rotate to a preset target angle, and control the first scene screen to be switched to the second virtual camera according to the second camera state corresponding to the preset target angle to obtain the second scene screen of the game scene; in response to a specified trigger operation or a second trigger operation on the rotation control, control the second scene screen to be switched to the first virtual camera according to the specified trigger operation or the second trigger operation on the rotation control to obtain the third scene screen of the game scene.

[0116] Furthermore, the above-mentioned first camera switching module is also configured to perform: in response to a specified trigger operation or a second trigger operation for the rotation control, determine the current field of view of the second virtual camera for capturing the game scene; determine the first camera state of the first virtual camera and the second virtual camera based on the current field of view; rotate the first virtual camera and the second virtual camera to the first camera state, and switch the second scene screen to the third scene screen obtained by capturing the game scene with the first virtual camera according to the first camera state.

[0117] In actual applications, the above-mentioned first camera switching module is further configured to perform: adjusting the camera focal length of the first virtual camera according to the current field of view corresponding to the second virtual camera to obtain an adjusted focal length; and determining the first camera states of the first virtual camera and the second virtual camera according to the adjusted focal length and the current orientation of the first virtual camera.

[0118] Specifically, the second trigger operation includes a rotation operation on the rotation control.

[0119] The game screen control device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding content in the aforementioned method embodiment.

[0120] An embodiment of the present disclosure also provides an electronic device, as shown in FIG10 , which includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned game screen control method.

[0121] Specifically, a graphical user interface is provided through a terminal device, and the above-mentioned game screen control method includes: the graphical user interface displays a first scene screen obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, and the editable objects are virtual objects set in the game scene in response to editing instructions; in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to be switched to a second scene screen obtained by capturing the game scene according to a second camera state corresponding to the preset target angle by the second virtual camera; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

[0122] The above-mentioned game screen control method uses the rotation control in the game to realize the switching of the virtual camera that captures the game scene, thereby saving the use space of the game interface and simplifying the camera switching operation; at the same time, this method can display the game screen with the game scene captured at a preset angle after switching the virtual camera, making it convenient for players to edit the editing objects in the game scene.

[0123] In an optional embodiment, the above-mentioned steps of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle, include: responding to the first trigger operation of the rotation control, controlling the rotation control to rotate according to the first trigger operation, and when the rotation control is rotated to the preset target angle, controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle.

[0124] In an optional embodiment, the first trigger operation includes at least one of the following: a drag operation of rotating the rotary control to a preset target angle; and a click operation on a target position of the rotary control.

[0125] In an optional embodiment, the above-mentioned response to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the switching of the first scene screen to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle, includes: responding to the first trigger operation of the rotation control, switching the first virtual camera that captures the game scene to the second virtual camera, and obtaining the rotation parameters of the rotation control, and controlling the rotation of the rotation control based on the rotation parameters; during the rotation of the rotation control, displaying the scene screen of the game scene obtained by the second virtual camera capturing the game scene according to the camera state corresponding to the rotation parameters in the graphical user interface; wherein the rotation parameters include the rotation angle and rotation speed corresponding to the rotation of the rotation control to the preset target angle; in response to the rotation control rotating to the preset target angle, controlling the graphical user interface to display the second scene screen of the game scene obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle.

[0126] In an optional embodiment, the above-mentioned first trigger operation includes: a click operation on the target position of the rotation control; wherein each position in the rotation control corresponds to a preset angle to which the rotation control is about to rotate; wherein the preset angle is used to indicate: when capturing the front view of the editable object in the game scene, the camera status of the first virtual camera and the second virtual camera.

[0127] In an optional embodiment, while the rotary control is rotated, the camera states of the first virtual camera and the second virtual camera are synchronously adjusted.

[0128] In an optional embodiment, the positions of the first virtual camera and the second virtual camera are bound to each other.

[0129] In an optional embodiment, the first virtual camera is a projection camera; and the second virtual camera is an orthographic camera.

[0130] In an optional embodiment, the rotation control is a polyhedron control; each face of the polyhedron control corresponds to a preset angle, and the preset angle is used to indicate: when capturing a front view of an editable object in the game scene, the camera orientation of the first virtual camera and the second virtual camera; wherein different faces of the polyhedron control correspond to different front views of the editable object; the step of responding to a first trigger operation on the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera to capture a second scene screen of the game scene according to a second camera state corresponding to the preset target angle, comprises: responding to the first trigger operation on the rotation control, determining the preset target angle corresponding to the rotation control and the target orientations of the first and second virtual cameras according to the face of the polyhedron control triggered by the final trigger position of the first trigger operation; determining the target positions of the first and second virtual cameras in the game scene based on the target orientations and the camera focal length of the first virtual camera before the first trigger operation; rotating the rotation control to the preset target angle, adjusting the first and second virtual cameras to the target positions and target orientations, and controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the target orientations and target positions.

[0131] In an optional embodiment, the above-mentioned control switches the first scene screen to the second scene screen obtained by the second virtual camera capturing the game scene according to the target orientation and target position, including: obtaining the camera focal length and field of view angle of the first virtual camera, and determining the target field of view range of the second virtual camera for capturing the game scene according to the camera focal length and field of view angle; switching the first virtual camera for capturing the game scene to the second virtual camera, and switching the first scene screen to the second scene screen that matches the size of the target field of view range when the second virtual camera is located in the target orientation and target position and captures the game scene.

[0132] In an optional embodiment, after the second scene image is displayed in the graphical user interface, during the process of capturing the game scene through the second virtual camera, the camera states of the first virtual camera and the second virtual camera remain unchanged.

[0133] In an optional embodiment, after the above-mentioned step of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second scene screen obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle, the above-mentioned method further includes: responding to a zoom operation acting on the second scene screen, adjusting the field of view of the second virtual camera capturing the game scene, and determining the fourth scene screen obtained by the second virtual camera capturing the game scene according to the second camera state based on the adjusted field of view.

[0134] In an optional embodiment, after the above-mentioned steps of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera according to the second camera state corresponding to the preset target angle to obtain the second scene screen of the game scene, the above-mentioned method further includes: responding to a specified trigger operation or a second trigger operation of the rotation control, controlling the second scene screen to be switched to the first virtual camera according to the specified trigger operation or the second trigger operation of the rotation control to obtain the third scene screen of the game scene.

[0135] In an optional embodiment, the above-mentioned step of controlling the switching of the second scene screen to the third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state corresponding to the specified trigger operation or the second trigger operation for the rotation control in response to the specified trigger operation or the second trigger operation for the rotation control includes: determining the current field of view of the second virtual camera capturing the game scene in response to the specified trigger operation or the second trigger operation for the rotation control; determining the first camera state of the first virtual camera and the second virtual camera based on the current field of view; rotating the first virtual camera and the second virtual camera to the first camera state, and switching the second scene screen to the third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state.

[0136] In an optional embodiment, the step of determining the first camera states of the first virtual camera and the second virtual camera based on the current field of view includes: adjusting the camera focal length of the first virtual camera according to the current field of view corresponding to the second virtual camera to obtain an adjusted focal length; and determining the first camera states of the first virtual camera and the second virtual camera based on the adjusted focal length and the current orientation of the first virtual camera.

[0137] In an optional embodiment, the second trigger operation includes a rotation operation on a rotation control.

[0138] Furthermore, the electronic device shown in FIG10 further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0139] Memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG10 uses only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.

[0140] The processor 101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 101 or by instructions in the form of software. The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.

[0141] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the above-mentioned game screen control method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0142] Specifically, a graphical user interface is provided through a terminal device, and the above-mentioned game screen control method includes: the graphical user interface displays a first scene screen obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, and the editable objects are virtual objects set in the game scene in response to editing instructions; in response to a first trigger operation on a rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to be switched to a second scene screen obtained by capturing the game scene according to a second camera state corresponding to the preset target angle by the second virtual camera; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

[0143] The above-mentioned game screen control method uses the rotation control in the game to realize the switching of the virtual camera that captures the game scene, thereby saving the use space of the game interface and simplifying the camera switching operation; at the same time, this method can display the game screen with the game scene captured at a preset angle after switching the virtual camera, making it convenient for players to edit the editing objects in the game scene.

[0144] In an optional embodiment, the above-mentioned steps of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle, include: responding to the first trigger operation of the rotation control, controlling the rotation control to rotate according to the first trigger operation, and when the rotation control is rotated to the preset target angle, controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle.

[0145] In an optional embodiment, the first trigger operation includes at least one of the following: a drag operation of rotating the rotary control to a preset target angle; and a click operation on a target position of the rotary control.

[0146] In an optional embodiment, the above-mentioned response to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the switching of the first scene screen to the second virtual camera to capture the second scene screen of the game scene according to the second camera state corresponding to the preset target angle, includes: responding to the first trigger operation of the rotation control, switching the first virtual camera that captures the game scene to the second virtual camera, and obtaining the rotation parameters of the rotation control, and controlling the rotation of the rotation control based on the rotation parameters; during the rotation of the rotation control, displaying the scene screen of the game scene obtained by the second virtual camera capturing the game scene according to the camera state corresponding to the rotation parameters in the graphical user interface; wherein the rotation parameters include the rotation angle and rotation speed corresponding to the rotation of the rotation control to the preset target angle; in response to the rotation control rotating to the preset target angle, controlling the graphical user interface to display the second scene screen of the game scene obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle.

[0147] In an optional embodiment, the above-mentioned first trigger operation includes: a click operation on the target position of the rotation control; wherein each position in the rotation control corresponds to a preset angle to which the rotation control is about to rotate; wherein the preset angle is used to indicate: when capturing the front view of the editable object in the game scene, the camera status of the first virtual camera and the second virtual camera.

[0148] In an optional embodiment, while the rotary control is rotated, the camera states of the first virtual camera and the second virtual camera are synchronously adjusted.

[0149] In an optional embodiment, the positions of the first virtual camera and the second virtual camera are bound to each other.

[0150] In an optional embodiment, the first virtual camera is a projection camera; and the second virtual camera is an orthographic camera.

[0151] In an optional embodiment, the rotation control is a polyhedron control; each face of the polyhedron control corresponds to a preset angle, and the preset angle is used to indicate: when capturing a front view of an editable object in the game scene, the camera orientation of the first virtual camera and the second virtual camera; wherein different faces of the polyhedron control correspond to different front views of the editable object; the step of responding to a first trigger operation on the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera to capture a second scene screen of the game scene according to a second camera state corresponding to the preset target angle, comprises: responding to the first trigger operation on the rotation control, determining the preset target angle corresponding to the rotation control and the target orientations of the first and second virtual cameras according to the face of the polyhedron control triggered by the final trigger position of the first trigger operation; determining the target positions of the first and second virtual cameras in the game scene based on the target orientations and the camera focal length of the first virtual camera before the first trigger operation; rotating the rotation control to the preset target angle, adjusting the first and second virtual cameras to the target positions and target orientations, and controlling the first scene screen to be switched to the second virtual camera to capture the second scene screen of the game scene according to the target orientations and target positions.

[0152] In an optional embodiment, the above-mentioned control switches the first scene screen to the second scene screen obtained by the second virtual camera capturing the game scene according to the target orientation and target position, including: obtaining the camera focal length and field of view angle of the first virtual camera, and determining the target field of view range of the second virtual camera for capturing the game scene according to the camera focal length and field of view angle; switching the first virtual camera for capturing the game scene to the second virtual camera, and switching the first scene screen to the second scene screen that matches the size of the target field of view range when the second virtual camera is located in the target orientation and target position and captures the game scene.

[0153] In an optional embodiment, after the second scene image is displayed in the graphical user interface, during the process of capturing the game scene through the second virtual camera, the camera states of the first virtual camera and the second virtual camera remain unchanged.

[0154] In an optional embodiment, after the above-mentioned step of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second scene screen obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle, the above-mentioned method further includes: responding to a zoom operation acting on the second scene screen, adjusting the field of view of the second virtual camera capturing the game scene, and determining the fourth scene screen obtained by the second virtual camera capturing the game scene according to the second camera state based on the adjusted field of view.

[0155] In an optional embodiment, after the above-mentioned steps of responding to the first trigger operation of the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene screen to be switched to the second virtual camera according to the second camera state corresponding to the preset target angle to obtain the second scene screen of the game scene, the above-mentioned method further includes: responding to a specified trigger operation or a second trigger operation of the rotation control, controlling the second scene screen to be switched to the first virtual camera according to the specified trigger operation or the second trigger operation of the rotation control to obtain the third scene screen of the game scene.

[0156] In an optional embodiment, the above-mentioned step of controlling the switching of the second scene screen to the third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state corresponding to the specified trigger operation or the second trigger operation for the rotation control in response to the specified trigger operation or the second trigger operation for the rotation control includes: determining the current field of view of the second virtual camera capturing the game scene in response to the specified trigger operation or the second trigger operation for the rotation control; determining the first camera state of the first virtual camera and the second virtual camera based on the current field of view; rotating the first virtual camera and the second virtual camera to the first camera state, and switching the second scene screen to the third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state.

[0157] In an optional embodiment, the step of determining the first camera states of the first virtual camera and the second virtual camera based on the current field of view includes: adjusting the camera focal length of the first virtual camera according to the current field of view corresponding to the second virtual camera to obtain an adjusted focal length; and determining the first camera states of the first virtual camera and the second virtual camera based on the adjusted focal length and the current orientation of the first virtual camera.

[0158] In an optional embodiment, the second trigger operation includes a rotation operation on a rotation control.

[0159] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0160] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this disclosure and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0161] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims

1. A method for controlling a game screen, providing a graphical user interface through a terminal device; the method comprising: The graphical user interface displays a first scene image obtained by capturing a game scene through a first virtual camera, wherein the game scene includes editable objects, and the editable objects are virtual objects set in the game scene in response to editing instructions; In response to a first trigger operation on the rotation control on the graphical user interface, the rotation control is controlled to rotate to a preset target angle, and the first scene screen is controlled to be switched to the second scene screen obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle; wherein the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes the camera position and / or camera orientation.

2. The method according to claim 1, wherein The step of responding to a first trigger operation on a rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene image to be switched to a second scene image obtained by capturing the game scene by a second virtual camera according to a second camera state corresponding to the preset target angle, includes: In response to a first trigger operation on the rotation control, the rotation control is controlled to rotate according to the first trigger operation. When the rotation control is rotated to a preset target angle, the first scene screen is controlled to be switched to the second scene screen obtained by the second virtual camera capturing the game scene according to the second camera state corresponding to the preset target angle.

3. The method according to claim 2, wherein: The first trigger operation includes at least one of the following: a drag operation of rotating the rotation control to the preset target angle; and a click operation on the target position of the rotation control.

4. The method according to claim 1, wherein The step of responding to a first trigger operation on a rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene image to be switched to a second scene image obtained by capturing the game scene by the second virtual camera according to a second camera state corresponding to the preset target angle, includes: In response to a first trigger operation on the rotation control, the first virtual camera used to capture the game scene is switched to the second virtual camera, and a rotation parameter of the rotation control is obtained, and the rotation of the rotation control is controlled based on the rotation parameter; during the rotation of the rotation control, a scene image obtained by the second virtual camera capturing the game scene according to the camera state corresponding to the rotation parameter is displayed in the graphical user interface; wherein the rotation parameter includes a rotation angle and a rotation speed corresponding to the rotation of the rotation control to a preset target angle; In response to the rotation of the rotation control to a preset target angle, the graphical user interface is controlled to display a second scene image obtained by capturing the game scene by the second virtual camera according to a second camera state corresponding to the preset target angle.

5. The method according to claim 4, wherein The first trigger operation includes: a click operation on the target position of the rotation control; wherein each position in the rotation control corresponds to a preset angle to which the rotation control is about to rotate; wherein the preset angle is used to indicate: when capturing a front view of an editable object in the game scene, the camera status of the first virtual camera and the second virtual camera.

6. The method according to claim 1, wherein While the rotary control is rotating, the camera states of the first virtual camera and the second virtual camera are synchronously adjusted.

7. The method according to claim 1, wherein The positions of the first virtual camera and the second virtual camera are bound to each other.

8. The method according to claim 1, wherein The first virtual camera is a projection camera; the second virtual camera is an orthographic camera.

9. The method according to claim 7, wherein: The rotation control is a polyhedron control; each face of the polyhedron control corresponds to a preset angle, and the preset angle is used to indicate the camera orientation of the first virtual camera and the second virtual camera when capturing a front view of an editable object in the game scene; wherein different faces of the polyhedron control correspond to different front views of the editable object; The step of responding to a first trigger operation on a rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene image to be switched to a second scene image obtained by capturing the game scene by a second virtual camera according to a second camera state corresponding to the preset target angle, includes: In response to a first trigger operation on the rotation control, determining a preset target angle corresponding to the rotation control and target orientations of the first virtual camera and the second virtual camera based on a face of the polyhedron control triggered by a final trigger position of the first trigger operation; Determining target positions of the first virtual camera and the second virtual camera in the game scene based on the target orientation and the camera focal length of the first virtual camera before the first trigger operation; The rotation control is rotated to the preset target angle, and the first virtual camera and the second virtual camera are adjusted to the target position and the target orientation, and the first scene screen is controlled to be switched to the second scene screen obtained by the second virtual camera capturing the game scene according to the target orientation and the target position.

10. The method according to claim 9, wherein: The step of controlling the switching of the first scene image to the second scene image obtained by the second virtual camera capturing the game scene according to the target orientation and the target position includes: Obtaining the camera focal length and field of view angle of the first virtual camera, and determining a target field of view range for the second virtual camera to capture the game scene based on the camera focal length and the field of view angle; The first virtual camera that captures the game scene is switched to the second virtual camera, and the first scene screen is switched to a second scene screen that matches the target field of view size and is obtained by capturing the game scene when the second virtual camera is located at the target direction and the target position.

11. The method according to claim 1, wherein After the second scene image is displayed in the graphical user interface, during the process of capturing the game scene through the second virtual camera, the camera states of the first virtual camera and the second virtual camera remain unchanged.

12. The method according to claim 11, wherein After the steps of responding to a first trigger operation on the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene image to be switched to a second scene image obtained by capturing the game scene by a second virtual camera according to a second camera state corresponding to the preset target angle, the method further includes: In response to the zoom operation on the second scene image, the field of view of the second virtual camera for capturing the game scene is adjusted, and a fourth scene image obtained by the second virtual camera capturing the game scene according to the second camera state is determined based on the adjusted field of view.

13. The method according to claim 1, wherein After the steps of responding to a first trigger operation on the rotation control on the graphical user interface, controlling the rotation control to rotate to a preset target angle, and controlling the first scene image to be switched to a second scene image obtained by capturing the game scene by a second virtual camera according to a second camera state corresponding to the preset target angle, the method further includes: In response to a specified trigger operation or a second trigger operation for the rotation control, the second scene screen is controlled to be switched to a third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state corresponding to the specified trigger operation or the second trigger operation for the rotation control.

14. The method according to claim 13, wherein: The step of controlling, in response to a specified trigger operation or a second trigger operation on the rotation control, to switch the second scene image to a third scene image obtained by the first virtual camera capturing the game scene according to the first camera state corresponding to the specified trigger operation or the second trigger operation on the rotation control comprises: In response to a specified trigger operation or a second trigger operation on the rotation control, determining a current field of view of the second virtual camera for capturing the game scene; Determining first camera states of the first virtual camera and the second virtual camera according to the current field of view; The first virtual camera and the second virtual camera are rotated to the first camera state, and the second scene screen is switched to a third scene screen obtained by the first virtual camera capturing the game scene according to the first camera state.

15. The method according to claim 14, wherein The step of determining the first camera states of the first virtual camera and the second virtual camera according to the current field of view includes: Adjusting the focal length of the first virtual camera according to the current field of view corresponding to the second virtual camera to obtain an adjusted focal length; A first camera state of the first virtual camera and the second virtual camera is determined according to the adjusted focal length and the current orientation of the first virtual camera.

16. The method according to claim 13, wherein The second trigger operation includes a rotation operation on the rotation control.

17. A device for controlling a game screen, providing a graphical user interface via a terminal device; the device comprising: a scene acquisition module configured to execute the graphical user interface to display a first scene image obtained by acquiring a game scene through a first virtual camera, wherein the game scene includes editable objects, and the editable objects are virtual objects set in the game scene in response to editing instructions; A camera switching module is configured to execute a first trigger operation in response to a rotation control on the graphical user interface, control the rotation control to rotate to a preset target angle, and control the switching of the first scene screen to a second virtual camera to capture the second scene screen of the game scene according to a second camera state corresponding to the preset target angle; wherein, the rotation control corresponds to the first virtual camera and the second virtual camera, and the rotation control is configured to adjust the camera state of the first virtual camera and the second virtual camera, and the camera state includes camera position and / or camera orientation.

18. An electronic device comprising a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the game screen control method described in any one of claims 1 to 16.

19. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the game screen control method described in any one of claims 1 to 16.