Virtual camera control method, device and electronic device
By automatically controlling the position and orientation of the virtual camera in the game and using preset state control information, the problem of monotonous virtual camera control method is solved, and the visual richness and fun of the game experience are improved.
Patent Information
- Application Number
- CN202210917129.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-08-01
AI Technical Summary
In the existing gaming technology, the control method of virtual cameras is monotonous and boring, affecting the player's gaming experience. Especially in games with automatic pathfinding, players need to frequently manually operate the virtual camera to maintain changes in the scene.
By providing a graphical user interface on the terminal device, it automatically controls the position and orientation of the virtual camera in response to the movement of the target object in the game scene or specifying touch operations, and uses preset status control information to realize changes in the camera state, including in multiple The state control data at the time point can realize flexible switching between automatic viewing lenses and manual operation modes.
It improves the visual richness in the game experience, reduces the needs of players to operate manually during the automatic road search process, provides a multi-angle viewing mode, and enhances the fun and visual experience of the game.
Smart Images

Figure CN115487496B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a control method, device and electronic equipment for a virtual camera. Background Art
[0002] A virtual camera is usually set in the game scene. The game scene is photographed by the virtual camera to obtain a scene picture, which is displayed on the terminal device of the game player. The change of the position and orientation of the virtual camera in the game scene will cause the scene picture to change. In the related art, most of them are controlled by the player manually, directly or indirectly, to control the position and orientation of the virtual camera, thereby controlling the scene picture to change; the method of manually controlling the virtual camera is relatively monotonous and boring, which affects the player's gaming experience. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a control method, device and electronic device for a virtual camera, so that the control mode of the virtual camera can be flexible and changeable, so that players can have a rich gaming visual experience while participating in the game.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling a virtual camera, providing a graphical user interface through a terminal device; a scene screen of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene screen is obtained by shooting the game scene with the virtual camera; the method comprises: in response to the movement of a target object in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change; wherein the camera state comprises: the position and / or orientation of the virtual camera in the game scene; in response to a first specified condition being triggered, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation setting for the virtual camera; the state control information comprises: state control data corresponding to multiple time points of the virtual camera.
[0005] The above-mentioned step of controlling the camera state of the virtual camera to change in response to the movement of the target object in the game scene, or in response to a specified touch operation, includes: in response to the movement of the target object in the game scene, controlling the virtual camera to follow the movement of the target object; in response to the specified touch operation, determining the operating parameters of the specified touch operation, and controlling the camera state of the virtual camera to change based on the operating parameters.
[0006] The above-mentioned steps of determining the operating parameters of the specified touch operation in response to the specified touch operation, and controlling the change of the camera state of the virtual camera based on the operating parameters, include: determining the operating parameters of the sliding operation in response to the sliding operation on the scene image; wherein the operating parameters of the sliding operation include: sliding direction and / or sliding distance; controlling the virtual camera to rotate around a specified dimension based on the operating parameters, or changing the relative distance between the virtual camera and the target object.
[0007] The above-mentioned step of obtaining preset status control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the status control information includes: in response to no detection of a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtaining preset status control information, and controlling the camera state of the virtual camera based on the status control information.
[0008] The above-mentioned state control information includes multiple ones; the state control information is used to control the movement of the virtual camera along a specified path, and is also used to control the virtual camera's orientation to change according to a preset orientation change method during the movement; different state control information has different specified paths or orientation change methods; the above-mentioned step of obtaining preset state control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the state control information includes: in response to the first specified condition being triggered, randomly determining target control information from multiple state control information, and controlling the camera state of the virtual camera based on the target control information.
[0009] The above-mentioned step of randomly determining target control information from multiple state control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the target control information includes: in response to the first specified condition being triggered, recording the first state data of the virtual camera when the first specified condition is triggered; randomly determining the target control information from multiple state control information, and obtaining the first control data corresponding to the first time point from the target control information; performing interpolation processing between the first state data and the first control data to obtain first interpolation data, and controlling the virtual camera to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data through the first interpolation data; and controlling the camera state of the virtual camera through the state control data corresponding to subsequent time points in the target control information.
[0010] After the above-mentioned steps of randomly determining target control information from multiple state control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the target control information, the method also includes: in response to the second specified condition being triggered, obtaining the first state data of the virtual camera when the first specified condition is triggered; wherein the second specified condition includes: detecting a specified touch operation acting on the scene image, or detecting a second state switching operation; controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; in response to the target object moving in the game scene, or in response to the specified touch operation, controlling the camera state of the virtual camera to change.
[0011] The above-mentioned step of controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data includes: obtaining the second state data of the virtual camera when the second specified condition is triggered; performing interpolation processing between the second state data and the first state data to obtain second interpolation data, and controlling the virtual camera to smoothly change from the camera state corresponding to the second state data to the camera state corresponding to the first state data through the second interpolation data.
[0012] The above-mentioned status control information is obtained in the following manner: in response to a first trigger operation, a first prompt information is displayed; the first prompt information is used to: prompt to start collecting the status control data of the virtual camera; continue to collect the status control data of the virtual camera; in response to a second trigger operation, end collecting the status control data of the virtual camera, save the collected status control data of the virtual camera, and obtain the status control information.
[0013] In a second aspect, an embodiment of the present invention provides a control device for a virtual camera, which provides a graphical user interface through a terminal device; a scene screen of a game scene is displayed in the graphical user interface; a virtual camera is arranged in the game scene; the scene screen is obtained by shooting the game scene with the virtual camera; the device comprises: a first control module, which is used to control the camera state of the virtual camera to change in response to the movement of a target object in the game scene, or in response to a specified touch operation; wherein the camera state comprises: the position and / or orientation of the virtual camera in the game scene; a second control module, which is used to obtain preset state control information in response to the first specified condition being triggered, and control the camera state of the virtual camera based on the state control information; wherein the state control information comprises: state control data corresponding to multiple time points of the virtual camera.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, including 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 virtual camera control method.
[0015] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual camera control method.
[0016] The embodiments of the present invention bring the following beneficial effects:
[0017] The control method, device and electronic device of the virtual camera provide a graphical user interface through a terminal device; the graphical user interface displays a scene picture of a game scene; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; in response to the movement of the target object in the game scene, or in response to the specified touch operation, the camera state of the virtual camera is controlled to change; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene; in response to the triggering of the first specified condition, the preset state control information is obtained, and the camera state of the virtual camera is controlled based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation for the virtual camera; the state control information includes: state control data corresponding to multiple time points of the virtual camera. In this method, the first specified condition is set based on the operation state or state switching operation of the specified touch operation. When the virtual camera is manually controlled, if the first specified condition is triggered, the camera state is automatically controlled through the state control information to realize the automatic change of the scene picture. The control method of the virtual camera is flexible and changeable, so that players have a rich game visual experience in the process of participating in the game.
[0018] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1A flowchart of a method for controlling a virtual camera provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of establishing a coordinate system based on a target object provided by an embodiment of the present invention;
[0023] Figure 3 A schematic diagram of the structure of a control device for a virtual camera provided by an embodiment of the present invention;
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] In the related art, there are mainly two ways to manually control the virtual camera. In one way, the virtual camera's direction and height are fixed, and the lens moves with the virtual object controlled by the player. When the player controls the virtual object to move, the virtual camera moves with the movement of the virtual object, thereby indirectly controlling the virtual camera and then controlling the scene picture to change. In another way, the virtual camera can achieve multi-degree-of-freedom rotation, and the position of the virtual camera can also be adjusted. The player can operate the scene picture, for example, click, slide, zoom, etc., to control the direction and position of the virtual camera to change, thereby changing the scene picture.
[0027] For some games that provide path-finding functions, such as sailing games, when automatically finding the way to the destination, it is rather tedious to always manually control the virtual camera, which affects the player's gaming experience.
[0028] Based on the above, the embodiments of the present invention provide a method, device and electronic device for controlling a virtual camera. This technology can be applied to the control of virtual cameras in various games, especially to games with path-finding functions, such as navigation games.
[0029] In one embodiment of the present invention, the control method of the virtual camera can be run on a terminal device or a server, and the terminal device can be a touch terminal device. When the control method of the virtual camera is run on a 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.
[0030] In an optional implementation, 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 game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual camera control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting 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, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, 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.
[0031] In an optional embodiment, taking a game as an example, the terminal device stores a game program and is used to present a game screen. The terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0032] In a possible implementation, an embodiment of the present invention provides a method for controlling a virtual camera, and a graphical user interface is provided through a terminal device, wherein the terminal device can be the terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above. A graphical user interface is provided through the terminal device, and the graphical user interface can display interface content, such as a game scene screen, a communication interaction window, etc., according to the type of application started.
[0033] To facilitate understanding of this embodiment, a control method for a virtual camera disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the control method of the virtual camera provides a graphical user interface through a terminal device, wherein the terminal device can be the terminal device described above or the client device described above; a scene picture of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; the control method of the virtual camera includes the following steps:
[0034] Step S102, in response to the target object moving in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene;
[0035] In this step, the camera state of the virtual camera is affected by the target object or the specified touch operation. Specifically, when the target object moves in the game scene, the virtual camera moves with the movement of the target object so that the target object is always in the scene screen, and the position of the virtual camera in the game scene changes. The movement of the target object can be based on a preset movement path, or it can be based on the movement instruction issued by the player. The specified touch operation can be a click operation, a sliding operation, or a pinch-to-zoom operation acting on the scene screen, thereby controlling the direction of the virtual camera to change, or controlling the relative distance between the virtual camera and the target object to change.
[0036] The camera state may include only the position of the virtual camera in the game scene, or only the direction of the virtual camera. Usually, the virtual camera exists in the game scene in the form of a viewing cone. When the position and direction of the virtual camera are determined, the scene image obtained by the shooting can be determined.
[0037] Step S104, in response to the first specified condition being triggered, obtain preset state control information, and control the camera state of the virtual camera based on the state control information; wherein the first specified condition is based on an operation state setting of a specified touch operation, or based on a state switching operation setting for the virtual camera; the state control information includes: state control data corresponding to multiple time points of the virtual camera.
[0038] In this step, the camera state of the virtual camera is affected by the state control information. In the aforementioned step S102, the camera state of the virtual camera is affected by the target object or the specified touch operation, and when the first specified condition is triggered, the camera state of the virtual camera is affected by the state control information.
[0039] In this embodiment, the first specified condition can be set based on the operating status of the specified touch operation; in step S102, the specified touch operation can control the change of the camera state of the virtual camera, and the operating status of the specified touch operation can include status information such as operation frequency and operation interval duration; for example, if the duration of the current time from the last specified touch operation is greater than the preset duration, it can be considered that the first specified condition is triggered; for example, within a certain time period, the operating frequency of the specified touch operation is counted, if the operating frequency is lower than the preset frequency, it can be considered that the first specified condition is triggered.
[0040] In another way, the first specified condition can be set based on the state switching operation for the virtual camera. Specifically, it can detect whether the player performs the state switching operation. If the state switching operation is detected, it can be considered that the first specified condition is triggered. The state switching operation can be a specified operation acting on the scene screen, or it can be an operation acting on the state switching control.
[0041] The state control information may be preset, and the state control information includes state control data corresponding to multiple time points of the virtual camera; the state control data may include position information, orientation information, etc. of the virtual camera. The state control data corresponding to different time points may be the same or different. When the state control data corresponding to multiple time points are different, the state control information may control the camera state of the virtual camera to change with time, thereby realizing automatic control of the virtual camera.
[0042] Players or developers can pre-set state control information. When the first specified condition is triggered, the state control data at each time point is read from the state control information, thereby controlling the camera state of the virtual camera to change automatically, thereby automatically changing the scene picture.
[0043] In a specific implementation method, when the state control information controls the camera state change of the virtual camera, the scene picture can be automatically changed. For example, in a sailing game, by setting the state control information, an automatic viewing lens can be realized, thereby improving the player's visual experience during the game participation process.
[0044] The control method of the virtual camera is as follows: a graphical user interface is provided through a terminal device; a scene picture of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; in response to the target object moving in the game scene, or in response to a specified touch operation, the camera state of the virtual camera is controlled to change; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene; in response to the first specified condition being triggered, the preset state control information is obtained, and the camera state of the virtual camera is controlled based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation for the virtual camera; the state control information includes: state control data corresponding to multiple time points of the virtual camera. In this method, the first specified condition is set based on the operation state or state switching operation of the specified touch operation. When the virtual camera is manually controlled, if the first specified condition is triggered, the camera state is automatically controlled through the state control information to realize the automatic change of the scene picture. The control method of the virtual camera is flexible and changeable, so that players have a rich game visual experience in the process of participating in the game.
[0045] In a specific implementation, in response to the target object moving in the game scene, the virtual camera is controlled to follow the target object; in response to a specified touch operation, the operation parameters of the specified touch operation are determined, and the camera state of the virtual camera is controlled to change based on the operation parameters.
[0046] In some games, the player controls the target object to move in the virtual scene, and the virtual camera follows the target object. For example, in a sailing game, the target object is a ship controlled by the player. After the player sets the movement path of the ship, the ship moves according to the movement path, and then the virtual camera moves along with the movement of the ship, so that the ship is in the scene screen.
[0047] When the player wants to view scenes outside the scene screen, the aforementioned designated touch operation can be performed; the designated touch operation can be an operation acting on the scene screen, or an operation acting on related controls, and can specifically include a click operation, a slide operation, etc. It should be noted that when the designated touch operation is triggered, the virtual camera can change its direction while following the movement of the target object, or the distance between the virtual camera and the target object can change; when the designated touch operation is triggered, the virtual camera can no longer follow the movement of the target object, and only control the position and direction of the virtual camera based on the designated touch operation.
[0048] In actual implementation, in response to a sliding operation on the scene screen, the operating parameters of the sliding operation are determined; wherein the operating parameters of the sliding operation include: sliding direction and / or sliding distance; based on the operating parameters, the virtual camera is controlled to rotate around a specified dimension, or the relative distance between the virtual camera and the target object is changed.
[0049] The operating parameters of the sliding operation may include only one of the sliding direction or the sliding distance, or may include both the sliding direction and the sliding distance; for example, when the sliding direction is different, the virtual camera may be controlled to rotate around different dimensions, or the virtual camera may be controlled to move along different directions; when the sliding distance is different, the rotation degree or movement distance of the virtual camera is different.
[0050] A specific example is that in a sailing game, the target object is a ship, and the player controls the ship to move on the sea. At this time, a coordinate system is established based on the center point of the ship. Figure 2 As shown, point O is the center of the ship, the forward direction of the ship is the positive direction of the X-axis, the right side of the forward direction of the ship is the positive direction of the Z-axis, and the upward direction of the ship is the positive direction of the Y-axis.
[0051] Usually, a virtual model has three spatial information in a coordinate system, including position, orientation, and scale. The scale can be determined by the relative distance between the virtual camera and the virtual model. Since the virtual camera exists in the virtual scene in the form of a viewing cone, only the position and orientation are needed to determine the state of the virtual camera in the aforementioned coordinate system. When the state of the virtual camera changes, it is usually necessary to interpolate the state data. Taking the position as an example, a line is connected between two positions, such as a straight line or an arc. Multiple position points are collected on the line, and time information is set for each position point, so as to control the virtual camera to move smoothly along the line.
[0052] At the same time, for the orientation of the virtual camera, the rotation matrix of the virtual camera can be converted into a quaternion, and each orientation corresponds to a quaternion; for two orientations, the quaternions of the two orientations can be interpolated to obtain multiple gradually changing quaternions, and then each quaternion can be converted into a rotation matrix to control the smooth change of the orientation of the virtual camera.
[0053] When the player manually controls the virtual camera, the aforementioned designated touch operation may be a sliding operation. Taking a ship in a sailing game as an example, the position of the virtual camera in the virtual scene is set to point A, and the direction of the virtual camera points to the center of the ship, that is, point O in the aforementioned coordinate system; the pitch angle of the virtual camera is expressed as Rp, and the value range of Rp can be, for example, 0-80 degrees; the yaw angle of the virtual camera is expressed as Ry, and the value range of Ry can be understood to be 0-360 degrees; the roll angle of the virtual camera remains unchanged. The distance between point A and point O is expressed as D, and the value range of D can be, for example, 20-600 unit lengths.
[0054] When the player slides the scene screen left and right, the touch operation is specified as the left and right sliding operation acting on the scene screen. At this time, the value of Ry can be adjusted, that is, the virtual camera is controlled to rotate around the Y axis. When the player slides the scene screen up and down, the touch operation is specified as the up and down sliding operation acting on the scene screen. At this time, the value of Rp can be adjusted, that is, the virtual camera is controlled to rotate around point O on the plane formed by the line connecting point A and point O and the Y axis. When the player operates with two fingers, the two fingers slide the scene screen. If the distance between the two fingers is increased, the virtual camera is pulled closer and the target object is enlarged. If the distance between the two fingers is reduced, the virtual camera is pulled away and the target object is reduced. The process of scaling the target object controls the virtual camera to move on the line connecting point A and point O.
[0055] The following provides a specific implementation method in which the first specified condition is triggered.
[0056] In response to not detecting a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information.
[0057] The above-mentioned specified time length can be preset, for example, 60 seconds, 100 seconds; when the player does not perform the specified touch operation within the specified time length, the camera state of the virtual camera remains unchanged, or only changes with the movement of the target object; in this case, the scene screen remains unchanged or changes less, and the picture content of the scene screen will be relatively monotonous. In order to enrich the picture content of the scene screen, in this embodiment, when the specified touch operation acting on the scene screen is not detected within the continuous specified time length, the camera state of the virtual camera is automatically controlled through the state control information, thereby realizing automatic control of the virtual camera, changing the scene screen, and improving the richness of the scene screen content.
[0058] In another way, the player can also perform the first state switching operation, for example, click the state switching control. At this time, the camera state of the virtual camera is also automatically controlled through the state control information to meet the player's need to control the automatic change of the scene picture.
[0059] In the related art, manual operation to control the virtual camera is the main control method of the virtual camera. In addition, there is also an automatic control method of the virtual camera. For example, a cutscene. When the virtual object controlled by the player reaches a certain location in the virtual scene, the automatic control method of the virtual camera is triggered, so that the cutscene is played. The triggering conditions of this automatic control method of the virtual camera are very harsh, and each time it is triggered, the scene picture changes in the same way, resulting in a relatively simple picture content.
[0060] In order to avoid the above problems, in this embodiment, the state control information includes multiple state control information; the state control information is used to control the movement of the virtual camera along a specified path, and is also used to control the virtual camera's orientation to change according to a preset orientation change method during the movement; different state control information has different specified paths or orientation change methods; in response to the first specified condition being triggered, the target control information is randomly determined from the multiple state control information, and the camera state of the virtual camera is controlled based on the target control information.
[0061] In the above method, the state control information controls both the position and orientation of the virtual camera. The specified path can be pre-specified. For example, the developer or the player controls the movement of the virtual camera in the virtual scene through touch operation. The system collects the movement trajectory of the virtual camera and obtains the specified path. Then, the orientation corresponding to each position of the virtual camera during the movement is set to obtain the above state control information. The above orientation change method is the change law of the orientation of the virtual camera at different time points.
[0062] In a specific implementation, the state control information can be saved as a trajectory file, which includes multiple time points and state control data corresponding to each time point, and the state control data includes the position, orientation and zoom state of the virtual camera. Developers can set multiple state control information to obtain multiple trajectory files. When the first specified condition is triggered, a target control information is randomly determined from the multiple state control information, so that each time the first specified condition is triggered, the scene screen changes in a different way, the scene screen content is richer and more varied, and the player's game visual experience is improved.
[0063] Furthermore, in response to the first specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is recorded; the target control information is randomly determined from multiple state control information, and the first control data corresponding to the first time point is obtained from the target control information; interpolation processing is performed between the first state data and the first control data to obtain first interpolation data, and the virtual camera is controlled by the first interpolation data to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data; the camera state of the virtual camera is controlled by the state control data corresponding to the subsequent time points in the target control information.
[0064] The first state data may include the position and orientation of the virtual camera, and may also include manual operation parameters such as the player's current lens pitch angle. Considering that there may be a certain gap between the first state data and the first control data, in this embodiment, interpolation processing is performed between the first state data and the first control data to obtain the first interpolation data, and the virtual camera is controlled by the first interpolation data to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data, so as to avoid the negative visual experience caused by the direct switching of the scene screen.
[0065] After the virtual camera changes to the camera state corresponding to the first control data, the virtual camera can be automatically controlled by the state control data corresponding to the subsequent time point in the target control information. In actual implementation, when rendering each frame of the scene, the state control data can be read according to the arrangement order of the time points in the target control data, so as to set the position and orientation of the virtual camera until the last state control data of the target control information is read.
[0066] In addition, the time points in the state control information may also have a certain interval, that is, the state control information stores the time points and state control data corresponding to the key frames. In order to make the camera state of the virtual camera change smoothly, the state control data corresponding to different time points may also be interpolated.
[0067] In a specific implementation method, in response to a second specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is obtained; wherein the second specified condition includes: detecting a specified touch operation acting on the scene screen, or detecting a second state switching operation; controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; in response to the movement of a target object in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change.
[0068] When the virtual camera is automatically controlled by the state control information, the second specified condition may be triggered. The second specified condition may be the detection of a specified touch operation acting on the scene screen. It can be understood that when the virtual camera is automatically controlled by the state control information, the player triggers the specified touch operation. At this time, the second specified condition is triggered, and the control state of the camera changes. The virtual camera is no longer controlled by the state control information, but the camera state changes by controlling the movement of the target object or the specified touch operation.
[0069] In addition, when the player performs a state switching operation, it can also be considered that the second specified condition is triggered, the control state of the camera changes, and the virtual camera is no longer controlled by the state control information, but the camera state changes by moving the target object or specifying a touch operation. The state switching operation can be implemented, for example, by a state switching control.
[0070] It should be noted that after the second specified condition is triggered, the first state data of the virtual camera is first obtained, and the first state data is the first state data of the virtual camera before the virtual camera is controlled by the state control information. At this time, the virtual camera is restored from the current state to the camera state corresponding to the first state data, and then the camera state is controlled according to the movement of the target object or the specified touch operation. In addition, the manual operation parameters corresponding to the first state data need to be restored. The manual operation parameters include the straight-line distance from the lens to the reference point (such as the midpoint) of the ship, the pitch angle of the lens, etc.
[0071] Specifically, the second state data of the virtual camera is obtained when the second specified condition is triggered; interpolation processing is performed between the second state data and the first state data to obtain second interpolation data, and the virtual camera is controlled by the second interpolation data to smoothly change from the camera state corresponding to the second state data to the camera state corresponding to the first state data.
[0072] Considering that there is a certain distance between the second state data and the first state data, the camera state of the virtual camera is controlled to smoothly change to the camera state corresponding to the first state data by interpolation, so that the scene picture changes more smoothly and the visual experience is higher.
[0073] The following embodiment provides a method for generating state control information. Developers or players can generate state control information to control the image content of the scene image when the virtual camera is automatically controlled.
[0074] Specifically, the status control information is obtained in the following manner: in response to a first trigger operation, a first prompt message is displayed; the first prompt message is used to: prompt the start of collecting the status control data of the virtual camera; continue to collect the status control data of the virtual camera; in response to a second trigger operation, end the collection of the status control data of the virtual camera, save the collected status control data of the virtual camera, and obtain the status control information.
[0075] The first trigger operation may be a trigger operation of a related control, for example, a trigger operation of a setting control acting on state control information. At this time, a first prompt message is displayed in the graphical user interface to prompt the player to start collecting state control data of the virtual camera. Then, the player can control the position and movement of the virtual camera. During this process, the game system continuously collects state control data of the virtual camera. For example, the state control data of the virtual camera may be recorded by sampling acquisition, thereby obtaining state control data corresponding to a plurality of sequentially arranged time points.
[0076] The second trigger operation may be a control operation for ending the setting of the state control information, and the collected state control data may be saved to obtain the state control information. The state control information may also be saved in the form of a trajectory file.
[0077] In the above method, players can freely design the state control data of the virtual camera, so that the virtual camera can change the scene image according to the player's preferences and needs under automatic control, thereby improving the player's gaming experience.
[0078] The control method of the virtual camera provided in this embodiment allows the virtual camera to move or rotate around the corresponding point in the corresponding plane of the coordinate system according to the player's designated touch operation, thereby realizing the manual operation mode of the lens; through the state control information, the virtual camera is moved and rotated according to multiple motion trajectories in random order, thereby realizing the multi-angle automatic viewing mode of the lens. And under the second trigger condition such as clicking the switch button, the camera position interpolation smooth transition and other operations are performed to realize the flexible switching of the camera lens in the two modes.
[0079] By supporting the flexible switching between the automatic viewing lens mode and the player's manual operation lens mode, different visual experiences can be brought to players. Especially for some games that provide path-finding functions, such as sailing games, players do not need too much manual operation when automatically finding their way to a place. Simply providing a manual operation lens is very monotonous and boring. When the path-finding process can be automatically switched to a multi-angle viewing mode, it can bring a good visual experience. After the player clicks to exit, he can quickly return to the manual operation mode, which will not affect the player's experience of other game functions.
[0080] Corresponding to the above method embodiment, see Figure 3 The structure diagram of a virtual camera control device shown in the figure provides a graphical user interface through a terminal device; the graphical user interface displays a scene picture of a game scene; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; the device includes:
[0081] The first control module 30 is used to control the camera state of the virtual camera to change in response to the target object moving in the game scene, or in response to a specified touch operation; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene;
[0082] The second control module 32 is used to obtain preset state control information in response to the first specified condition being triggered, and control the camera state of the virtual camera based on the state control information; wherein the state control information includes: state control data corresponding to multiple time points of the virtual camera.
[0083] The control device of the virtual camera provides a graphical user interface through a terminal device; the graphical user interface displays a scene picture of a game scene; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; in response to the movement of the target object in the game scene, or in response to a specified touch operation, the camera state of the virtual camera is controlled to change; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene; in response to the triggering of the first specified condition, the preset state control information is obtained, and the camera state of the virtual camera is controlled based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation for the virtual camera; the state control information includes: state control data corresponding to multiple time points of the virtual camera. In this method, the first specified condition is set based on the operation state or state switching operation of the specified touch operation. When the virtual camera is manually controlled, if the first specified condition is triggered, the camera state is automatically controlled through the state control information to achieve automatic change of the scene picture, so that the player can enrich the game visual experience in the process of participating in the game.
[0084] The above-mentioned first control module is also used to: in response to the movement of the target object in the game scene, control the virtual camera to follow the movement of the target object; in response to the specified touch operation, determine the operation parameters of the specified touch operation, and control the camera state of the virtual camera to change based on the operation parameters.
[0085] The above-mentioned first control module is also used to: respond to the sliding operation acting on the scene screen, determine the operating parameters of the sliding operation; wherein the operating parameters of the sliding operation include: sliding direction and / or sliding distance; based on the operating parameters, control the virtual camera to rotate around a specified dimension, or change the relative distance between the virtual camera and the target object.
[0086] The above-mentioned second control module is also used to: in response to no detection of a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtain preset state control information, and control the camera state of the virtual camera based on the state control information.
[0087] The above-mentioned state control information includes multiple ones; the state control information is used to control the virtual camera to move along a specified path, and is also used to control the virtual camera's orientation to change according to a preset orientation change method during the movement; different state control information has different specified paths or orientation change methods; the above-mentioned second control module is also used to: in response to the first specified condition being triggered, randomly determine the target control information from the multiple state control information, and control the camera state of the virtual camera based on the target control information.
[0088] The above-mentioned second control module is also used to: in response to the first specified condition being triggered, record the first state data of the virtual camera when the first specified condition is triggered; randomly determine the target control information from multiple state control information, and obtain the first control data corresponding to the first time point from the target control information; perform interpolation processing between the first state data and the first control data to obtain the first interpolation data, and control the virtual camera to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data through the first interpolation data; control the camera state of the virtual camera through the state control data corresponding to the subsequent time points in the target control information.
[0089] The above-mentioned device also includes a third control module, which is used to: in response to the second specified condition being triggered, obtain the first state data of the virtual camera when the first specified condition is triggered; wherein the second specified condition includes: detecting a specified touch operation acting on the scene screen, or detecting a second state switching operation; controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; in response to the target object moving in the game scene, or in response to the specified touch operation, controlling the camera state of the virtual camera to change.
[0090] The above-mentioned third control module is also used to: obtain the second state data of the virtual camera when the second specified condition is triggered; perform interpolation processing between the second state data and the first state data to obtain second interpolation data, and control the virtual camera to smoothly change from the camera state corresponding to the second state data to the camera state corresponding to the first state data through the second interpolation data.
[0091] The above-mentioned device also includes an information generation module, which is used to: display a first prompt information in response to a first trigger operation; the first prompt information is used to: prompt to start collecting the state control data of the virtual camera; continue to collect the state control data of the virtual camera; respond to a second trigger operation, end collecting the state control data of the virtual camera, save the collected state control data of the virtual camera, and obtain state control information.
[0092] This embodiment also provides an electronic device, including 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 virtual camera control method. The electronic device can be a server or a terminal device, such as a touch terminal device.
[0093] See also Figure 4 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned virtual camera control method.
[0094] Further, Figure 4 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0095] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0096] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 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, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention 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 invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0097] The processor in the electronic device can implement the following operations in the virtual camera control method by executing the machine executable instructions:
[0098] A method for controlling a virtual camera, providing a graphical user interface through a terminal device; a scene image of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene image is obtained by shooting the game scene with the virtual camera; the method comprises: in response to the movement of a target object in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change; wherein the camera state comprises: the position and / or orientation of the virtual camera in the game scene; in response to a first specified condition being triggered, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation setting for the virtual camera; the state control information comprises: state control data corresponding to multiple time points of the virtual camera.
[0099] In response to the target object moving in the game scene, the virtual camera is controlled to follow the target object; in response to the specified touch operation, the operation parameters of the specified touch operation are determined, and the camera state of the virtual camera is controlled to change based on the operation parameters.
[0100] In response to a sliding operation on a scene image, operating parameters of the sliding operation are determined; wherein the operating parameters of the sliding operation include: sliding direction and / or sliding distance; based on the operating parameters, the virtual camera is controlled to rotate around a specified dimension, or the relative distance between the virtual camera and the target object is changed.
[0101] In response to not detecting a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information.
[0102] The above-mentioned state control information includes multiple ones; the state control information is used to control the movement of the virtual camera along a specified path, and is also used to control the direction of the virtual camera to change according to a preset direction change method during the movement of the virtual camera; different state control information has different specified paths or direction change methods; in response to the first specified condition being triggered, the target control information is randomly determined from the multiple state control information, and the camera state of the virtual camera is controlled based on the target control information.
[0103] In response to a first specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is recorded; the target control information is randomly determined from a plurality of state control information, and the first control data corresponding to the first time point is obtained from the target control information; interpolation processing is performed between the first state data and the first control data to obtain first interpolation data, and the virtual camera is controlled by the first interpolation data to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data; the camera state of the virtual camera is controlled by the state control data corresponding to the subsequent time points in the target control information.
[0104] In response to the second specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is obtained; wherein the second specified condition includes: detecting a specified touch operation acting on the scene image, or detecting a second state switching operation; controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; in response to the target object moving in the game scene, or in response to the specified touch operation, controlling the camera state of the virtual camera to change.
[0105] Acquire the second state data of the virtual camera when the second specified condition is triggered; perform interpolation processing between the second state data and the first state data to obtain second interpolation data, and control the virtual camera to smoothly change from the camera state corresponding to the second state data to the camera state corresponding to the first state data through the second interpolation data.
[0106] The above-mentioned status control information is obtained in the following manner: in response to a first trigger operation, a first prompt information is displayed; the first prompt information is used to: prompt to start collecting the status control data of the virtual camera; continue to collect the status control data of the virtual camera; in response to a second trigger operation, end collecting the status control data of the virtual camera, save the collected status control data of the virtual camera, and obtain the status control information.
[0107] In the above method, a first specified condition is set based on the operating state of a specified touch operation or a state switching operation. When the virtual camera is manually controlled, if the first specified condition is triggered, the camera state is automatically controlled through state control information to achieve automatic changes in the scene picture. The control method of the virtual camera is flexible and changeable, so that players can have a rich gaming visual experience while participating in the game.
[0108] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual camera control method.
[0109] The machine executable instructions stored in the machine readable storage medium can implement the following operations in the virtual camera control method by executing the machine executable instructions:
[0110] A method for controlling a virtual camera, providing a graphical user interface through a terminal device; a scene image of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene image is obtained by shooting the game scene with the virtual camera; the method comprises: in response to the movement of a target object in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change; wherein the camera state comprises: the position and / or orientation of the virtual camera in the game scene; in response to a first specified condition being triggered, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information; wherein the first specified condition is set based on the operation state of the specified touch operation, or based on the state switching operation setting for the virtual camera; the state control information comprises: state control data corresponding to multiple time points of the virtual camera.
[0111] In response to the target object moving in the game scene, the virtual camera is controlled to follow the target object; in response to the specified touch operation, the operation parameters of the specified touch operation are determined, and the camera state of the virtual camera is controlled to change based on the operation parameters.
[0112] In response to a sliding operation on a scene image, operating parameters of the sliding operation are determined; wherein the operating parameters of the sliding operation include: sliding direction and / or sliding distance; based on the operating parameters, the virtual camera is controlled to rotate around a specified dimension, or the relative distance between the virtual camera and the target object is changed.
[0113] In response to not detecting a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information.
[0114] The above-mentioned state control information includes multiple ones; the state control information is used to control the movement of the virtual camera along a specified path, and is also used to control the direction of the virtual camera to change according to a preset direction change method during the movement of the virtual camera; different state control information has different specified paths or direction change methods; in response to the first specified condition being triggered, the target control information is randomly determined from the multiple state control information, and the camera state of the virtual camera is controlled based on the target control information.
[0115] In response to a first specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is recorded; the target control information is randomly determined from a plurality of state control information, and the first control data corresponding to the first time point is obtained from the target control information; interpolation processing is performed between the first state data and the first control data to obtain first interpolation data, and the virtual camera is controlled by the first interpolation data to smoothly change from the camera state corresponding to the first state data to the camera state corresponding to the first control data; the camera state of the virtual camera is controlled by the state control data corresponding to the subsequent time points in the target control information.
[0116] In response to the second specified condition being triggered, the first state data of the virtual camera when the first specified condition is triggered is obtained; wherein the second specified condition includes: detecting a specified touch operation acting on the scene image, or detecting a second state switching operation; controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; in response to the target object moving in the game scene, or in response to the specified touch operation, controlling the camera state of the virtual camera to change.
[0117] Acquire the second state data of the virtual camera when the second specified condition is triggered; perform interpolation processing between the second state data and the first state data to obtain second interpolation data, and control the virtual camera to smoothly change from the camera state corresponding to the second state data to the camera state corresponding to the first state data through the second interpolation data.
[0118] The above-mentioned status control information is obtained in the following manner: in response to a first trigger operation, a first prompt information is displayed; the first prompt information is used to: prompt to start collecting the status control data of the virtual camera; continue to collect the status control data of the virtual camera; in response to a second trigger operation, end collecting the status control data of the virtual camera, save the collected status control data of the virtual camera, and obtain the status control information.
[0119] In the above method, a first specified condition is set based on the operating state of a specified touch operation or a state switching operation. When the virtual camera is manually controlled, if the first specified condition is triggered, the camera state is automatically controlled through state control information to achieve automatic changes in the scene picture. The control method of the virtual camera is flexible and changeable, so that players can have a rich gaming visual experience while participating in the game.
[0120] The computer program product of the virtual camera control method, device and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0122] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0123] 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 invention, or the part that contributes to the prior art 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, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0124] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0125] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for controlling a virtual camera, characterized in that: A graphical user interface is provided through a terminal device; a scene picture of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene with the virtual camera; the method includes: In response to the target object moving in the game scene, or in response to a specified touch operation, controlling the camera state of the virtual camera to change; wherein the camera state includes: the position and / or orientation of the virtual camera in the game scene; In response to a first specified condition being triggered, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information; wherein the first specified condition is set based on an operation state of a specified touch operation, or based on a state switching operation setting for the virtual camera; the state control information includes: state control data corresponding to multiple time points of the virtual camera; The step of acquiring preset state control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the state control information comprises: In response to not detecting a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtaining preset state control information, and controlling the camera state of the virtual camera based on the state control information.
2. The method according to claim 1, characterized in that: In response to the target object moving in the game scene, or in response to a specified touch operation, the step of controlling the camera state of the virtual camera to change includes: In response to a target object moving in the game scene, controlling the virtual camera to follow the target object; In response to a designated touch operation, an operation parameter of the designated touch operation is determined, and a camera state of the virtual camera is controlled to change based on the operation parameter.
3. The method according to claim 2, characterized in that In response to a specified touch operation, determining an operation parameter of the specified touch operation, and controlling a change in the camera state of the virtual camera based on the operation parameter, comprises: In response to a sliding operation on the scene screen, determining an operation parameter of the sliding operation; wherein the operation parameter of the sliding operation includes: a sliding direction and / or a sliding distance; The virtual camera is controlled to rotate around a specified dimension based on the operating parameters, or the relative distance between the virtual camera and the target object is changed.
4. The method according to claim 1, characterized in that The state control information includes a plurality of state control information; the state control information is used to control the virtual camera to move along a specified path, and is also used to control the virtual camera to change its orientation according to a preset orientation change mode during the movement of the virtual camera; different state control information has different specified paths or orientation change modes; The step of acquiring preset state control information in response to the first specified condition being triggered, and controlling the camera state of the virtual camera based on the state control information comprises: In response to a first designated condition being triggered, target control information is randomly determined from a plurality of state control information, and the camera state of the virtual camera is controlled based on the target control information.
5. The method according to claim 4, characterized in that In response to the first specified condition being triggered, the step of randomly determining target control information from the multiple state control information, and controlling the camera state of the virtual camera based on the target control information includes: In response to a first specified condition being triggered, recording first state data of the virtual camera when the first specified condition is triggered; Randomly determine target control information from the multiple state control information, and obtain first control data corresponding to a first time point from the target control information; Performing interpolation processing between the first state data and the first control data to obtain first interpolation data, and controlling the virtual camera to smoothly transform from a camera state corresponding to the first state data to a camera state corresponding to the first control data through the first interpolation data; The camera state of the virtual camera is controlled by the state control data corresponding to the subsequent time point in the target control information.
6. The method according to claim 4, characterized in that In response to the first specified condition being triggered, after the step of randomly determining target control information from the plurality of state control information, and controlling the camera state of the virtual camera based on the target control information, the method further includes: In response to a second specified condition being triggered, obtaining first state data of the virtual camera when the first specified condition is triggered; wherein the second specified condition includes: detecting a specified touch operation acting on the scene screen, or detecting a second state switching operation; Controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data; In response to the target object moving in the game scene, or in response to a specified touch operation, the camera state of the virtual camera is controlled to change.
7. The method according to claim 6, characterized in that The step of controlling the camera state of the virtual camera to change to the camera state corresponding to the first state data comprises: Acquire second state data of the virtual camera when the second specified condition is triggered; Interpolation processing is performed between the second state data and the first state data to obtain second interpolation data, and the virtual camera is controlled by the second interpolation data to smoothly transform from the camera state corresponding to the second state data to the camera state corresponding to the first state data.
8. The method according to claim 1, characterized in that The state control information is obtained in the following manner: In response to the first trigger operation, displaying first prompt information; the first prompt information is used to: prompt to start collecting the state control data of the virtual camera; Continuously collecting state control data of the virtual camera; In response to the second trigger operation, the acquisition of the state control data of the virtual camera is ended, the acquired state control data of the virtual camera is saved, and the state control information is obtained.
9. A virtual camera control device, characterized in that: A graphical user interface is provided through a terminal device; a scene picture of a game scene is displayed in the graphical user interface; a virtual camera is set in the game scene; the scene picture is obtained by shooting the game scene by the virtual camera; the device includes: A first control module, configured to control a camera state of the virtual camera to change in response to a target object moving in the game scene, or in response to a specified touch operation; wherein the camera state includes: a position and / or orientation of the virtual camera in the game scene; A second control module, configured to obtain preset state control information in response to the first specified condition being triggered, and control the camera state of the virtual camera based on the state control information; wherein the state control information includes: state control data corresponding to multiple time points of the virtual camera; The second control module is also used to: in response to not detecting a specified touch operation acting on the scene image within a continuous specified time period, or in response to a first state switching operation, obtain preset state control information, and control the camera state of the virtual camera based on the state control information.
10. An electronic device, characterized in that: It comprises 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 virtual camera control method described in any one of claims 1-8.
11. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the virtual camera control method described in any one of claims 1-8.
