In-game video recording control method and apparatus, electronic device, and storage medium
By partitioning the graphical user interface in game recording, and using multiple interactive methods to manage perspectives and virtual characters, the problem of excessive rotation amplitude of viewing angles is solved and the recording effect of game recording is improved.
Patent Information
- Application Number
- PCT/CN2024/096343
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-16
- Filing Date
- 2024-05-30
- Publication Date
- 2024-12-19
AI Technical Summary
In the existing game recording technology, when the viewing angle is rotated by sliding a specific area of the graphical user interface, it is easy to cause the viewing angle to rotate too much, affecting the recording effect.
By displaying the game scene in the graphical user interface, at least two interactive methods affecting screen updates are provided, and the viewing angle and virtual characters are controlled separately using different framing parameters of the first and second areas, combining the touch screen and gyroscope inputs to achieve detailed results perspective and character control.
It improves the recording effect of game videos, provides more refined perspective and character control, reduces the problem of excessive rotation amplitude of view angle during recording, and enhances the quality of videos.
Smart Images

Figure CN2024096343_19122024_PF_FP_ABST
Abstract
Description
Method, device, electronic device and storage medium for controlling video recording in games
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202310721798.8 filed on June 16, 2023, entitled “Video Recording Control Method, Device, Electronic Device and Storage Medium in Games”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computers, and in particular to a method, device, electronic device, and storage medium for controlling video recording in a game. Background Art
[0004] With the development of game technology, many games now support recording game scenes.
[0005] In the related in-game video recording control method, the perspective rotation of the entire graphical user interface is achieved by sliding a specific area of the graphical user interface. During the recording of the game scene, the perspective adjustment achieved by the above sliding operation can easily cause the perspective rotation to be too large, resulting in poor recording effect.
[0006] Summary of the Invention
[0007] In view of this, the present disclosure provides a method, device, electronic device and storage medium for controlling video recording in games, which can provide at least two interactive modes that affect screen updates during the recording process, and control the partitioning of the graphical user interface to facilitate improving the video recording effect of the game.
[0008] In a first aspect, an embodiment of the present disclosure provides a method for controlling video recording in a game, wherein a graphical user interface is provided through a terminal device; the graphical user interface includes a game scene; the method for controlling video recording in the game comprises: in response to triggering a video recording instruction in the game, controlling the graphical user interface to display a first area and a second area, displaying a first game screen formed by capturing the game scene based on first framing parameters through the first area, and displaying a second game screen formed by capturing the game scene based on second framing parameters through the second area, wherein the first area is located at a first preset position of the graphical user interface, and the second area is an area of the graphical user interface other than the first area; controlling the start of recording the second game screen displayed in the second area; in response to triggering a video recording instruction in the game A preset operation is inputted through a first input device and applied to the first area, and the first framing parameters and the second framing parameters are updated according to the preset operation; a first game screen formed by capturing the game scene based on the updated first framing parameters is displayed through the first area, and a second game screen formed by capturing the game scene based on the updated second framing parameters is displayed through the second area; in response to a control instruction inputted through a second input device and applied to the second area, the second framing parameters are updated according to the control instruction, and a second game screen formed by capturing the game scene based on the updated second framing parameters is displayed through the second area; in response to a recording stop instruction, video data is generated based on the recorded second game screen displayed in the second area.
[0009] In a second aspect, an embodiment of the present disclosure provides a video recording control device in a game, which provides a graphical user interface through a terminal device; the graphical user interface includes a game scene; the video recording control device in the game includes: a partition module, configured to execute in response to the triggering of a video recording instruction in the game, control the graphical user interface to display a first area and a second area, display a first game screen formed by capturing the game scene based on a first framing parameter through the first area, and display a second game screen formed by capturing the game scene based on a second framing parameter through the second area, wherein the first area is located at a first preset position of the graphical user interface, and the second area is an area of the graphical user interface other than the first area; a start recording module, configured to execute control to start recording the second game screen displayed in the second area; a first framing update module, configured to execute in response to the triggering of a video recording instruction through A preset operation is inputted by a first input device and applied to the first area, and the first framing parameters and the second framing parameters are updated according to the preset operation; a game screen update module is configured to execute a first game screen formed by collecting the game scene based on the updated first framing parameters through the first area, and to display a second game screen formed by collecting the game scene based on the updated second framing parameters through the second area; a second framing update module is configured to execute a control instruction inputted by a second input device and applied to the second area, update the second framing parameters according to the control instruction, and display a second game screen formed by collecting the game scene based on the updated second framing parameters through the second area; a video recording generation module is configured to execute a video recording stop instruction in response to generate video data based on the second game screen displayed in the recorded second area.
[0010] In a third aspect, an embodiment of 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 a method for controlling video recording in a game according to any of the aforementioned embodiments of the first aspect of the present disclosure.
[0011] In a fourth aspect, an embodiment of the present disclosure provides a machine-readable storage medium, characterized in that the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the in-game video recording control method according to any of the aforementioned embodiments of the first aspect of the present disclosure.
[0012] According to the in-game recording control method, device, electronic device, and storage medium of the disclosed embodiments, in response to a recording command being triggered in the game, a graphical user interface (GUI) is partitioned and controlled to display a first area and a second area. The first area displays a first game screen formed by capturing a game scene based on first framing parameters, while the second area displays a second game screen formed by capturing a game scene based on second framing parameters. Recording of the second game screen displayed in the second area begins. In response to a preset operation applied to the first area via a first input device, the first and second framing parameters are updated according to the preset operation. The first area displays the first game screen formed by capturing a game scene based on the updated first framing parameters, while the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameters. In response to a control command applied to the second area via a second input device, the second framing parameters are updated according to the control command, and the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameters. Therefore, during the recording of the screen displayed in the second area, at least two interactive methods for influencing screen updates can be provided, and the GUI is controlled by partitions, thereby improving the recording quality of in-game recording.
[0013] Other features and advantages of the present disclosure will be described in the following description, and in part will become apparent from the description, or understood by practicing the present disclosure. The objectives and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0014] In order to make the above-mentioned objectives, features and advantages of the present disclosure 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
[0015] 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 those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0016] FIG1 is a flow chart of a method for controlling video recording in a game provided by one of the embodiments of the present disclosure;
[0017] FIG2 is a schematic diagram of a graphical user interface after a recording instruction is triggered in a method for controlling recording in a game provided by one of the embodiments of the present disclosure;
[0018] FIG3 is a schematic diagram of a graphical user interface after a second framing parameter is updated in a method for controlling video recording in a game provided by one of the embodiments of the present disclosure;
[0019] FIG4 is a schematic diagram of a graphical user interface before starting or after stopping recording in a method for controlling video recording in a game provided by one of the embodiments of the present disclosure;
[0020] FIG5 is a structural block diagram of a video recording control device for a game provided by one of the embodiments of the present disclosure;
[0021] FIG6 is a structural block diagram of an electronic device provided in one of the embodiments of the present disclosure. DETAILED DESCRIPTION
[0022] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0023] In the related in-game video recording control method, the perspective rotation of the entire graphical user interface is achieved by sliding a specific area of the graphical user interface. During the recording of the game scene, the perspective adjustment achieved by the above sliding operation can easily cause the perspective rotation to be too large, resulting in poor viewing effect of the recording results.
[0024] In some games, the graphical user interface also includes a virtual character within the game scene. Related technologies often require controlling the virtual character's movement through a first specific operation on the graphical user interface, and controlling the camera angle through a second specific operation on the graphical user interface. During video recording, it's sometimes necessary to control both the virtual character's movement and the camera angle. In these situations, players may have their hands occupied, preventing them from fine-tuning the camera angle.
[0025] In some games, perspective adjustment is achieved through gyroscope interaction. However, in related technologies, whether controlling the perspective through a gyroscope or through specific operations acting on a graphical user interface, the perspective of the entire graphical user interface is adjusted, which often causes the perspective to rotate too much in the video.
[0026] Based on this, the embodiments of the present disclosure provide a method, device, electronic device and storage medium for controlling video recording in a game, which can provide at least two interactive modes that affect screen updates during the recording process, and control the partitioning of the graphical user interface to facilitate improving the video recording effect of the game.
[0027] In one embodiment of the present disclosure, the in-game recording control method can be run on a local terminal device (a touch or non-touch client device) or a server. When the in-game recording control method 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.
[0028] In some optional implementations, 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 video recording control method in the game 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.
[0029] In some optional embodiments, taking games as an example, the local terminal device stores the 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, the game program is downloaded and installed and run by the conventional electronic device. 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 display, or provided to the player through holographic projection. For example, the local terminal device may include a display and a processor, the display being used to present the graphical user interface, the graphical user interface including the game screen, and the processor being used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display.
[0030] In one possible implementation, the disclosed embodiments provide a method for controlling in-game recording, wherein a graphical user interface is provided via a terminal device, which may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. The graphical user interface provided by the terminal device may display interface content, such as game scene images, interactive controls, etc., depending on the type of application being launched.
[0031] To facilitate understanding of this embodiment, a detailed description of a method for controlling in-game recording is provided. Figure 1 is a flowchart of the method for controlling in-game recording provided by one embodiment of the present disclosure. In this embodiment, the method provides a graphical user interface (GUI) via a terminal device; the GUI includes a game scene. The method includes steps S110 through S130.
[0032] In step S110, in response to the triggering of the recording instruction in the game, the graphical user interface is controlled to display the first area and the second area, and the first area is used to display the first game screen formed by capturing the game scene based on the first framing parameters, and the second area is used to display the second game screen formed by capturing the game scene based on the second framing parameters, wherein the first area is located at a first preset position of the graphical user interface, and the second area is the area in the graphical user interface other than the first area.
[0033] Figure 2 is a schematic diagram of a graphical user interface after a recording instruction is triggered in a method for controlling recording in a game according to an embodiment of the present disclosure. In response to the triggering of the recording instruction in the game, the graphical user interface is controlled to display a first area A1 and a second area A2.
[0034] In some embodiments, the second area A2 is located at the center of the graphical user interface. In other embodiments, the first area A1 may be located at other locations of the graphical user interface.
[0035] In some embodiments, the graphical user interface further includes a virtual character VC located in the game scene. Optionally, the virtual character VC is at least partially located in the first area A1.
[0036] In some embodiments, the graphical user interface further includes a movement control area VJ located at a second preset position in the first area A1. In response to a triggering operation applied to the movement control area VJ, the movement of the virtual character VC in the game scene can be controlled. Optionally, the movement control area VJ includes a virtual joystick control. In other embodiments, the movement control area VJ does not display a control, and a triggering operation applied to the movement control area VJ is sufficient to control the movement of the virtual character VC in the game scene.
[0037] In step S120, the control starts recording the second game screen displayed in the second area. The second area A2 is the recording area. In some embodiments, the control starts recording the second game screen displayed in the second area in response to the triggering of the recording command in the game; in other embodiments, the control starts recording the second game screen displayed in the second area after a preset period of time has passed since the triggering of the recording command in the game.
[0038] In step S130 , in response to a preset operation applied to the first area through the first input device, the first framing parameter and the second framing parameter are updated according to the preset operation.
[0039] In some embodiments, the first input device is a touch screen configured for the terminal device.
[0040] In some embodiments, the first framing parameter includes at least one of the following: a field of view angle of the virtual camera corresponding to the first area, a direction of the virtual camera corresponding to the first area, and a position of the virtual camera corresponding to the first area. The second framing parameter includes at least one of the following: a field of view angle of the virtual camera corresponding to the second area, a direction of the virtual camera corresponding to the second area, and a position of the virtual camera corresponding to the second area.
[0041] Optionally, the virtual camera corresponding to the first area and the virtual camera corresponding to the second area are the same virtual camera. Optionally, the virtual camera corresponding to the first area and the virtual camera corresponding to the second area are independent virtual cameras.
[0042] In step S140, a first game screen formed by capturing a game scene based on the updated first framing parameters is displayed in the first area, and a second game screen formed by capturing a game scene based on the updated second framing parameters is displayed in the second area.
[0043] In step S150, in response to a control instruction inputted through the second input device and acting on the second area, the second framing parameter is updated according to the control instruction, and a second game screen formed by capturing the game scene based on the updated second framing parameter is displayed through the second area.
[0044] In some embodiments, the second input device is a gyroscope of the terminal device. In some embodiments, during the video recording process, the gyroscope can slightly adjust the viewing angle of the video recording area, i.e., the second area, to achieve a fine-tuning effect of the video viewing angle, thereby facilitating refined recording.
[0045] In this embodiment, control commands applied to the second area do not affect the first framing parameter. However, the player can still adjust the first framing parameter by inputting preset operations applied to the first area using the first input device. Furthermore, the player can also control the movement of the avatar using the virtual joystick, thereby affecting the first framing parameter to a certain extent.
[0046] In step S160 , in response to the video recording stop instruction, video data is generated based on the second game screen displayed in the recorded second area.
[0047] According to an embodiment of the present disclosure, a method for controlling in-game recording, in response to a triggering in-game recording command, partitions a graphical user interface (GUI) and controls the GUI to display a first area and a second area. The first area displays a first game screen formed by capturing a game scene based on first framing parameters, while the second area displays a second game screen formed by capturing a game scene based on second framing parameters. Recording of the second game screen displayed in the second area begins. In response to a preset operation applied to the first area via a first input device, the first and second framing parameters are updated according to the preset operation. The first area displays the first game screen formed by capturing a game scene based on the updated first framing parameters, while the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameters. In response to a control command applied to the second area via a second input device, the second framing parameters are updated according to the control command, and the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameters. Therefore, during the recording of the screen displayed in the second area, at least two interactive methods for influencing screen updates can be provided, and the GUI can be controlled by partitions, thereby improving the recording quality of in-game recording.
[0048] In some embodiments, step S110 includes: in response to the triggering of a recording instruction in the game, capturing the game scene according to first framing parameters through a first virtual camera to obtain a first picture, and capturing the game scene according to second framing parameters through a second virtual camera to obtain a second picture; forming a first game picture based on processing the first picture, and forming a second game picture based on processing the second picture.
[0049] In some embodiments, in response to a preset operation applied to the first area through a first input device, the step of updating the first framing parameter and the second framing parameter according to the preset operation includes: updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation to update the first framing parameter and the second framing parameter.
[0050] In some embodiments, in response to a control instruction inputted via a second input device and acting on the second area, the step of updating the second framing parameter according to the control instruction includes: updating the orientation of the second virtual camera according to the control instruction to update the second framing parameter.
[0051] In some embodiments, the above-mentioned step of updating the orientation of the first virtual camera and the orientation of the second virtual camera according to a preset operation to update the first framing parameters and the second framing parameters includes: according to the preset operation, controlling the orientation of the first virtual camera to deflect and controlling the orientation of the second virtual camera to deflect with a first viewing angle adjustment threshold to update the first framing parameters and the second framing parameters.
[0052] In some embodiments, the step of updating the orientation of the second virtual camera according to the control instruction to update the second framing parameter includes: according to the control instruction, controlling the orientation of the second virtual camera to deflect with a second viewing angle adjustment threshold to update the second framing parameter.
[0053] In this embodiment, the term "viewing angle adjustment threshold" refers to the magnitude of viewing angle adjustment per unit of coordinate offset input when using a corresponding interactive method. A higher viewing angle adjustment threshold results in a larger viewing angle adjustment magnitude and faster viewing angle rotation when using this interactive method. A lower viewing angle adjustment threshold results in a smaller viewing angle adjustment magnitude and slower or more gradual viewing angle rotation when using this interactive method.
[0054] Among them, the perspective adjustment amplitude of one of the first perspective adjustment threshold and the second perspective adjustment threshold can be slower, and the perspective adjustment amplitude of the other can be faster. In this embodiment, when the second perspective adjustment threshold is used to control the rotation angle of the second area, the perspective rotation speed of the second area is lower than the perspective rotation speed when the first perspective adjustment threshold is used to control the rotation angle of the first area. During the recording process, the perspective of the recording area, i.e., the second area, can be adjusted to a smaller extent through the gyroscope, thereby achieving a fine-tuning effect of the recording perspective, facilitating refined recording, and thus facilitating improving the recording effect of the video in the game.
[0055] As described above, in some embodiments, the first input device is a touch screen configured for the terminal device. In this case, responding to the preset operation applied to the first area via the first input device may include responding to a sliding operation applied to the first area via the touch screen.
[0056] Taking the preset operation as a sliding operation as an example, in some other embodiments, the preset operation may be other operations acting on the first area. For example, the first area has a perspective control control, and the perspective control control may include at least two virtual buttons. In response to the virtual button being triggered, it can control the perspective of the first area and the second area to rotate in the corresponding direction.
[0057] In some embodiments, the step of updating the orientation of the first virtual camera and the orientation of the second virtual camera according to a preset operation includes: obtaining a first coordinate offset corresponding to the sliding operation based on a sliding operation acting on the first area; based on the first coordinate offset and the first mapping relationship, controlling the orientations of the first virtual camera and the second virtual camera to deflect simultaneously, wherein the first mapping relationship is a mapping relationship between the orientation rotation amplitude of the first virtual camera and the second virtual camera and the first coordinate offset.
[0058] As described above, in some embodiments, the second input device is a gyroscope of the terminal device, and the step of updating the orientation of the second virtual camera according to the control instruction includes: generating a second coordinate offset based on the offset of the gyroscope; and controlling the orientation of the second virtual camera to deflect based on the second coordinate offset and the second mapping relationship, wherein the second mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the second virtual camera and the second coordinate offset.
[0059] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface. The step of forming a first game screen based on the first screen processing includes: performing a first processing on the first screen to form a first game screen whose display range corresponds to the first area. The step of forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen whose display range corresponds to the second area. In this embodiment, the first processing performed on the first screen is, for example, a first cropping processing, and the second processing performed on the second screen is, for example, a second cropping processing. In some other embodiments, the above-mentioned first processing, second processing, etc. may include other processing for transforming the display range of the image. For example, the first processing may include a scaling processing.
[0060] In some embodiments, when recording begins, the first virtual camera and the second virtual camera have the same initial position and initial framing parameters, so that the initial first frame captured by the first virtual camera is the same as the initial second frame captured by the second virtual camera, so that when recording begins, the initial first game frame and the initial second game frame are stitched together to form the same frame as the initial first frame. In the above embodiment, when recording begins, the initial first game frame of the first area and the initial second game frame of the second area can be smoothly stitched together at the boundary to form a frame that is the same as the initial first frame.
[0061] In some optional embodiments, the step of forming a first game screen based on the first screen processing and displaying it in the first area further includes: performing a third processing on the first screen to form a third game screen with a display range corresponding to the second area, wherein, when recording begins, the initial third game screen is the same as the initial second game screen. The step of forming a second game screen based on the second screen processing and displaying it in the second area further includes: when recording begins, setting the third game screen to be displayed in the second area as the second game screen; after the second framing parameters are updated, displaying the second game screen formed by capturing and processing based on the second virtual camera in the second area. Therefore, when the content displayed by the third game screen differs from that of the second game screen, the second area preferentially displays the second game screen, i.e., the screen captured and processed based on the second virtual camera. In this embodiment, the third processing performed on the first screen is, for example, a third cropping process. In some other embodiments, the third processing, second processing, etc. may include other processing for transforming the image display range.
[0062] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface. The step of forming a first game screen based on the first screen processing includes: performing a first processing and a third processing on the first screen to form a first game screen corresponding to a display range of the first area and a third game screen corresponding to a display range of the second area, and the spliced screen of the third game screen and the first game screen is the same as the first screen. The step of forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen corresponding to a display range of the second area; displaying the second game screen formed by capturing the game scene based on the updated second framing parameters through the second area includes: forming a second game screen that is different from the third game screen based on the updated second framing parameters, and displaying it in the second area. In this embodiment, the first processing performed on the first screen is, for example, a first cropping process, the second processing performed on the second screen is, for example, a second cropping process, and the third processing performed on the first screen is, for example, a third cropping process.
[0063] In some of the above embodiments, when recording starts, the first virtual camera and the second virtual camera have the same initial position and initial framing parameters, so that the initial first picture captured by the first virtual camera is the same as the initial second picture captured by the second virtual camera, so that when recording starts, the spliced picture of the initial first game picture and the initial second game picture is the same as the initial first picture.
[0064] In some other embodiments, when recording starts, the first virtual camera and the second virtual camera differ in initial position and / or initial framing parameters, so that the initial first picture captured by the first virtual camera is different from the initial second picture captured by the second virtual camera, so that when recording starts, the initial first game picture and the initial second game picture are no longer smoothly spliced at the boundary. In one example, when recording starts, the focal lengths of the first virtual camera and the second virtual camera are different, and the initial position and other initial framing parameters are the same. At this time, the initial first picture captured by the first virtual camera and the initial second picture captured by the second virtual camera are no longer the same, and the picture captured by one is deeper and farther, while the picture captured by the other is shallower and closer. Accordingly, when recording starts, the initial first game picture and the initial second game picture are no longer smoothly spliced at the boundary and have a fault.
[0065] Figure 3 is a schematic diagram of a graphical user interface after the second framing parameter is updated in the in-game recording control method provided by an embodiment of the present disclosure. As shown in Figure 3, after the second framing parameter is updated, the second game screen displayed in the second area and the first game screen displayed in the first area generally no longer smoothly merge at the intersection.
[0066] In some embodiments, step S150 of responding to the control instruction acting on the second area inputted through the second input device includes: responding to the control instruction acting on the second area inputted through the second input device based on the preset response condition being satisfied.
[0067] In some embodiments, the response condition includes: a sliding operation applied to the first area via the touch screen is paused for a preset duration. The sliding operation is paused for the preset duration, causing the rotation of the viewing angles of the first and second areas to be paused for a preset duration. In this case, when the viewing angle adjustment via the preset operation applied to the first area is paused for the preset duration, rotating the device running the game will cause the gyroscope to respond to control the viewing angle, rather than requiring the gyroscope to directly respond to control the viewing angle at all times. This avoids erroneous viewing angle adjustment caused by the gyroscope directly responding to control the viewing angle when the device running the game is rotated, as well as jittery video footage.
[0068] The above sliding operation is paused for a preset time period, which is used to stop the view angle from rotating for a preset time period, and there is no restriction on whether to stop controlling the movement of the virtual character.
[0069] In some embodiments, pausing the sliding operation on the first area for a preset duration may include pausing the sliding operation on the first area and performing a long press operation on the sliding pause position for a preset duration. In this case, if the player wishes to control the viewing angle of the second area using the gyroscope, the player needs to stop the sliding operation on the first area and maintain the triggering of the sliding pause position for the preset duration before the gyroscope responds to control the viewing angle of the second area.
[0070] In some other embodiments, the preset operation acting on the first area is paused for a preset time period, including the sliding operation acting on the first area being paused for a preset time period. At this time, the player does not need to keep pressing, for example, the finger can leave the touch screen for a preset time period, and can also respond to the gyroscope and be used to control the viewing angle of the second area.
[0071] In some embodiments, the response condition includes: the gyroscope's offset value reaches a preset offset threshold. In this case, the gyroscope will only respond to control the viewing angle after the gyroscope's offset value reaches the preset offset threshold. This can avoid viewing angle issues caused by the gyroscope responding even when the player accidentally moves the game device slightly.
[0072] In some embodiments, after determining that a preset response condition has been met, the coordinate value of the gyroscope when the response condition is met is used as the initial coordinate value of the gyroscope response offset. After the gyroscope response condition is met, the subsequent offset of the gyroscope is calculated based on the initial coordinate value as a second coordinate offset.
[0073] In some embodiments, the graphical user interface further includes a virtual character positioned within the game scene, and the graphical user interface further includes a movement control area positioned at a second preset position within the first area. The in-game video recording control method further includes: after recording begins, controlling the movement of the virtual character within the game scene in response to a trigger operation applied to the movement control area, and controlling the virtual character's orientation within the game scene to rotate in response to a preset operation applied to the first area. Optionally, controlling the virtual character's orientation within the game scene to rotate in response to a control command applied to the second area via a second input device.
[0074] FIG4 is a schematic diagram of a graphical user interface before recording starts or after recording stops in a method for controlling video recording in a game provided by an embodiment of the present disclosure. In some embodiments, the method for controlling video recording in a game further includes: before recording starts or after recording stops, in response to a trigger operation applied to a movement control area, controlling the movement of a virtual character in a game scene and controlling the deflection of the virtual character's orientation in the game scene while maintaining the current orientation of the game field of view; when the virtual character is in a non-moving state, in response to a touch operation applied to an area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view while maintaining the current orientation of the virtual character; when the virtual character is in a moving state, in response to a touch operation applied to an area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view and controlling the adjustment of the orientation of the virtual character.
[0075] In the above embodiment, during the recording process, the control logic for the movement of the virtual character, the deflection of the virtual character's orientation, and the adjustment of the screen angle is different from that before the recording starts or after the recording stops. After the recording starts, the trigger operation acting on the movement control area controls the deflection of the virtual character's orientation in the game scene, but does not control the deflection of the virtual character's orientation in the game scene. The preset operation acting on the first area can adjust the screen angle of the first area and the second area, and simultaneously control the deflection of the virtual character's orientation in the game scene. Optionally, the control instruction acting on the second area inputted through the second input device can adjust the screen angle of the second area and control the deflection of the virtual character's orientation in the game scene.
[0076] The present disclosure also provides an in-game recording control device. Figure 5 is a block diagram of the in-game recording control device provided by one embodiment of the present disclosure. The in-game recording control device provides a graphical user interface (GUI) via a terminal device; the GUI includes a game scene. The in-game recording control device includes a partitioning module 110, a start recording module 120, a first frame update module 130, a game screen update module 140, a second frame update module 150, and a video generation module 160.
[0077] The partition module 110 is configured to execute in response to the triggering of a recording instruction in the game, control the graphical user interface to display a first area and a second area, and display a first game screen formed by capturing a game scene based on a first framing parameter through the first area, and display a second game screen formed by capturing a game scene based on a second framing parameter through the second area, wherein the first area is located at a first preset position of the graphical user interface, and the second area is an area in the graphical user interface other than the first area.
[0078] The start recording module 120 is configured to execute control to start recording the second game screen displayed in the second area.
[0079] The first framing updating module 130 is configured to execute a preset operation inputted through the first input device and applied to the first area, and update the first framing parameter and the second framing parameter according to the preset operation.
[0080] The game screen update module 140 is configured to display a first game screen formed by capturing a game scene based on the updated first framing parameters in the first area, and to display a second game screen formed by capturing a game scene based on the updated second framing parameters in the second area.
[0081] The second framing update module 150 is configured to execute a control instruction acting on the second area in response to input through the second input device, update the second framing parameters according to the control instructions, and display the second game screen formed by capturing the game scene based on the updated second framing parameters through the second area.
[0082] The video generation module 160 is configured to execute a response to the video stop instruction and generate video data according to the second game screen displayed in the recorded second area.
[0083] According to the in-game recording control device of the above embodiment, the partitioning module 110, in response to a triggering of a recording command in the game, partitions the graphical user interface and controls the graphical user interface to display a first area and a second area. The first area displays a first game screen formed by capturing a game scene based on the first framing parameters, while the second area displays a second game screen formed by capturing a game scene based on the second framing parameters. The start recording module 120 starts recording the second game screen displayed in the second area. The first framing update module 130, in response to a preset operation applied to the first area via a first input device, updates the first and second framing parameters based on the preset operation. The game screen update module 140 displays the first game screen formed by capturing a game scene based on the updated first framing parameters in the first area, while the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameters. The second framing update module 150, in response to a control command applied to the second area via a second input device, updates the second framing parameters based on the control command, and displays the second game screen formed by capturing a game scene based on the updated second framing parameters in the second area. Therefore, in the process of recording the screen displayed in the second area, at least two interactive modes that affect screen updates can be provided, and the graphical user interface can be controlled by partitions, so as to improve the recording effect of the game.
[0084] This embodiment further 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 method for controlling recording in a game. The electronic device can be a server or a terminal device.
[0085] FIG6 is a block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device includes a processor 901 and a memory 902 . The memory 902 stores machine-executable instructions that can be executed by the processor 901 . The processor 901 executes the machine-executable instructions to implement the above-mentioned method for controlling video recording in the game.
[0086] The in-game recording control method provides a graphical user interface (GUI) via a terminal device; the GUI includes a game scene; the in-game recording control method includes: in response to a triggering of a recording command in the game, controlling the GUI to display a first area and a second area, wherein the first area displays a first game screen formed by capturing the game scene based on a first framing parameter, and the second area displays a second game screen formed by capturing the game scene based on a second framing parameter, wherein the first area is located at a first preset position of the GUI, and the second area is an area of the GUI other than the first area; controlling to start recording the second game screen displayed in the second area; in response to a preset operation applied to the first area via a first input device, updating the first and second framing parameters according to the preset operation; displaying the first game screen formed by capturing the game scene based on the updated first framing parameter via the first area, and displaying the second game screen formed by capturing the game scene based on the updated second framing parameter via the second area; in response to a control command applied to the second area via a second input device, updating the second framing parameter according to the control command, and displaying the second game screen formed by capturing the game scene based on the updated second framing parameter via the second area; and in response to a recording stop command, generating video data based on the recorded second game screen displayed in the second area.
[0087] Furthermore, the electronic device may further include a communication interface 903 and a bus 904 , and the processor 901 , the communication interface 903 and the memory 902 are connected via the bus 904 .
[0088] The memory 902 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 achieved through at least one communication interface 903 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 904 may be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus is represented by only one bidirectional arrow in the drawings of this disclosure, but this does not mean that there is only one bus or one type of bus.
[0089] The processor 901 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 901 or by instructions in the form of software. The above-mentioned processor 901 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 known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in memory 902. Processor 901 reads information from memory 902 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0090] In some embodiments, the first input device is a touch screen configured for the terminal device; the second input device is a gyroscope of the terminal device.
[0091] In some embodiments, the first framing parameter includes at least one of the following: the field of view angle of the virtual camera corresponding to the first area, the orientation of the virtual camera corresponding to the first area, and the position of the virtual camera corresponding to the first area; the second framing parameter includes at least one of the following: the field of view angle of the virtual camera corresponding to the second area, the orientation of the virtual camera corresponding to the second area, and the position of the virtual camera corresponding to the second area.
[0092] In some embodiments, in response to the triggering of a recording instruction in the game, the graphical user interface is controlled to display a first area and a second area, and a first game screen formed by capturing the game scene based on the first framing parameters is displayed through the first area, and a second game screen formed by capturing the game scene based on the second framing parameters is displayed through the second area, including: in response to the triggering of the recording instruction in the game, the game scene is captured by the first virtual camera according to the first framing parameters to obtain the first screen, and the game scene is captured by the second virtual camera according to the second framing parameters to obtain the second screen; the first game screen is formed based on the first screen, and the second game screen is formed based on the second screen.
[0093] In some embodiments, in response to a preset operation acting on the first area input through a first input device, the first framing parameter and the second framing parameter are updated according to the preset operation, including: updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation to update the first framing parameter and the second framing parameter; in response to a control instruction acting on the second area input through a second input device, the second framing parameter is updated according to the control instruction, including: updating the orientation of the second virtual camera according to the control instruction to update the second framing parameter.
[0094] In some embodiments, the orientation of the first virtual camera and the orientation of the second virtual camera are updated according to a preset operation to update the first framing parameter and the second framing parameter, including: according to the preset operation, controlling the orientation of the first virtual camera to deflect and controlling the orientation of the second virtual camera to deflect with a first viewing angle adjustment threshold to update the first framing parameter and the second framing parameter; updating the orientation of the second virtual camera according to a control instruction to update the second framing parameter, including: according to the control instruction, controlling the orientation of the second virtual camera to deflect with a second viewing angle adjustment threshold to update the second framing parameter.
[0095] In some embodiments, the first input device is a touch screen configured for the terminal device, and the preset operation acting on the first area in response to input through the first input device includes: a sliding operation acting on the first area in response to input through the touch screen.
[0096] In some embodiments, the orientation of the first virtual camera and the orientation of the second virtual camera are updated according to a preset operation, including: obtaining a first coordinate offset corresponding to the sliding operation based on a sliding operation acting on the first area; based on the first coordinate offset and the first mapping relationship, controlling the orientations of the first virtual camera and the second virtual camera to deflect simultaneously, wherein the first mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the first virtual camera and the second virtual camera and the first coordinate offset.
[0097] In some embodiments, the second input device is a gyroscope of a terminal device, and the orientation of the second virtual camera is updated according to a control instruction, including: generating a second coordinate offset based on the offset of the gyroscope; and controlling the orientation of the second virtual camera to deflect based on the second coordinate offset and a second mapping relationship, wherein the second mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the second virtual camera and the second coordinate offset.
[0098] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface; forming a first game screen based on the first screen processing includes: performing a first processing on the first screen to form a first game screen whose display range corresponds to the first area; forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen whose display range corresponds to the second area.
[0099] In some embodiments, when recording starts, the first virtual camera and the second virtual camera have the same initial position and initial framing parameters, so that the initial first picture captured by the first virtual camera is the same as the initial second picture captured by the second virtual camera, so that when recording starts, the spliced picture of the initial first game picture and the initial second game picture is the same as the initial first picture.
[0100] In some embodiments, forming a first game screen based on the first screen processing and displaying it in the first area also includes: performing a third processing on the first screen to form a third game screen having a display range corresponding to the second area, wherein, when recording starts, the initial third game screen is the same as the initial second game screen; forming a second game screen based on the second screen processing and displaying it in the second area also includes: when recording starts, setting the third game screen as the second game screen to be displayed in the second area; after the second framing parameters are updated, displaying the second game screen formed by capturing and processing based on the second virtual camera in the second area.
[0101] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface; forming a first game screen based on the first screen processing includes: performing a first processing and a third processing on the first screen to form a first game screen with a display range corresponding to the first area and a third game screen with a display range corresponding to the second area, and a spliced screen of the third game screen and the first game screen is the same as the first screen; forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen with a display range corresponding to the second area; displaying the second game screen formed by capturing the game scene based on the updated second framing parameters through the second area includes: forming a second game screen that is different from the third game screen based on the updated second framing parameters, and displaying it in the second area.
[0102] In some embodiments, responding to the control instruction acting on the second area inputted through the second input device includes: responding to the control instruction acting on the second area inputted through the second input device based on that a preset response condition is satisfied.
[0103] In some embodiments, the response condition includes: a sliding operation on the first area inputted via the touch screen is paused for a preset time period.
[0104] In some embodiments, the response condition includes: the offset value of the gyroscope reaches a preset offset threshold.
[0105] In some embodiments, after determining that a preset response condition has been met, the coordinate value of the gyroscope when the response condition is met is used as the initial coordinate value of the gyroscope response offset.
[0106] In some embodiments, the graphical user interface also includes a virtual character located in the game scene, and the graphical user interface also includes a movement control area located at a second preset position in the first area; the in-game video recording control method also includes: after starting recording, responding to a trigger operation acting on the movement control area, controlling the virtual character to move in the game scene, and responding to a preset operation acting on the first area, controlling the direction of the virtual character in the game scene to deflect.
[0107] In some embodiments, the in-game video recording control method further includes: before starting recording or after stopping recording, responding to a trigger operation applied to the mobile control area, controlling the movement of the virtual character in the game scene and controlling the deflection of the virtual character's orientation in the game scene on the basis of maintaining the current orientation of the game field of view screen; when the virtual character is in a non-moving state, responding to a touch operation applied to the area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view screen on the basis of maintaining the current orientation of the virtual character; when the virtual character is in a moving state, responding to a touch operation applied to the area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view screen and controlling the adjustment of the orientation of the virtual character.
[0108] An electronic device according to an embodiment of the present disclosure includes a processor 901 and a memory 902. When the processor 901 executes machine-executable instructions to implement the above-mentioned in-game recording control method, in response to a triggering of a recording instruction in the game, the processor 901 partitions a graphical user interface (GUI), controls the GUI to display a first area and a second area, wherein the first area displays a first game screen formed by capturing a game scene based on a first framing parameter, and the second area displays a second game screen formed by capturing a game scene based on a second framing parameter, and recording of the second game screen displayed in the second area begins. In response to a preset operation inputted via a first input device and applied to the first area, the processor updates the first and second framing parameters according to the preset operation; the processor displays the first game screen formed by capturing a game scene based on the updated first framing parameter in the first area, and displays the second game screen formed by capturing a game scene based on the updated second framing parameter in the second area. In response to a control instruction inputted via a second input device and applied to the second area, the processor updates the second framing parameter according to the control instruction, and displays the second game screen formed by capturing a game scene based on the updated second framing parameter in the second area. Therefore, in the process of recording the screen displayed in the second area, at least two interactive modes that affect screen updates can be provided, and the graphical user interface can be controlled by partitions, so as to improve the recording effect of the game.
[0109] This embodiment further provides a machine-readable storage medium storing 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 method for controlling video recording in a game.
[0110] The in-game recording control method provides a graphical user interface (GUI) via a terminal device; the GUI includes a game scene; the in-game recording control method includes: in response to a triggering of a recording command in the game, controlling the GUI to display a first area and a second area, wherein the first area displays a first game screen formed by capturing the game scene based on a first framing parameter, and the second area displays a second game screen formed by capturing the game scene based on a second framing parameter, wherein the first area is located at a first preset position of the GUI, and the second area is an area of the GUI other than the first area; controlling to start recording the second game screen displayed in the second area; in response to a preset operation applied to the first area via a first input device, updating the first and second framing parameters according to the preset operation; displaying the first game screen formed by capturing the game scene based on the updated first framing parameter via the first area, and displaying the second game screen formed by capturing the game scene based on the updated second framing parameter via the second area; in response to a control command applied to the second area via a second input device, updating the second framing parameter according to the control command, and displaying the second game screen formed by capturing the game scene based on the updated second framing parameter via the second area; and in response to a recording stop command, generating video data based on the recorded second game screen displayed in the second area.
[0111] In some embodiments, the first input device is a touch screen configured for the terminal device; the second input device is a gyroscope of the terminal device.
[0112] In some embodiments, the first framing parameter includes at least one of the following: the field of view angle of the virtual camera corresponding to the first area, the orientation of the virtual camera corresponding to the first area, and the position of the virtual camera corresponding to the first area; the second framing parameter includes at least one of the following: the field of view angle of the virtual camera corresponding to the second area, the orientation of the virtual camera corresponding to the second area, and the position of the virtual camera corresponding to the second area.
[0113] In some embodiments, in response to the triggering of a recording instruction in the game, the graphical user interface is controlled to display a first area and a second area, and a first game screen formed by capturing the game scene based on the first framing parameters is displayed through the first area, and a second game screen formed by capturing the game scene based on the second framing parameters is displayed through the second area, including: in response to the triggering of the recording instruction in the game, the game scene is captured by the first virtual camera according to the first framing parameters to obtain the first screen, and the game scene is captured by the second virtual camera according to the second framing parameters to obtain the second screen; the first game screen is formed based on the first screen, and the second game screen is formed based on the second screen.
[0114] In some embodiments, in response to a preset operation acting on the first area input through a first input device, the first framing parameter and the second framing parameter are updated according to the preset operation, including: updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation to update the first framing parameter and the second framing parameter; in response to a control instruction acting on the second area input through a second input device, the second framing parameter is updated according to the control instruction, including: updating the orientation of the second virtual camera according to the control instruction to update the second framing parameter.
[0115] In some embodiments, the orientation of the first virtual camera and the orientation of the second virtual camera are updated according to a preset operation to update the first framing parameter and the second framing parameter, including: according to the preset operation, controlling the orientation of the first virtual camera to deflect and controlling the orientation of the second virtual camera to deflect with a first viewing angle adjustment threshold to update the first framing parameter and the second framing parameter; updating the orientation of the second virtual camera according to a control instruction to update the second framing parameter, including: according to the control instruction, controlling the orientation of the second virtual camera to deflect with a second viewing angle adjustment threshold to update the second framing parameter.
[0116] In some embodiments, the first input device is a touch screen configured for the terminal device, and the preset operation acting on the first area in response to input through the first input device includes: a sliding operation acting on the first area in response to input through the touch screen.
[0117] In some embodiments, the orientation of the first virtual camera and the orientation of the second virtual camera are updated according to a preset operation, including: obtaining a first coordinate offset corresponding to the sliding operation based on a sliding operation acting on the first area; based on the first coordinate offset and the first mapping relationship, controlling the orientations of the first virtual camera and the second virtual camera to deflect simultaneously, wherein the first mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the first virtual camera and the second virtual camera and the first coordinate offset.
[0118] In some embodiments, the second input device is a gyroscope of a terminal device, and the orientation of the second virtual camera is updated according to a control instruction, including: generating a second coordinate offset based on the offset of the gyroscope; and controlling the orientation of the second virtual camera to deflect based on the second coordinate offset and a second mapping relationship, wherein the second mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the second virtual camera and the second coordinate offset.
[0119] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface; forming a first game screen based on the first screen processing includes: performing a first processing on the first screen to form a first game screen whose display range corresponds to the first area; forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen whose display range corresponds to the second area.
[0120] In some embodiments, when recording starts, the first virtual camera and the second virtual camera have the same initial position and initial framing parameters, so that the initial first picture captured by the first virtual camera is the same as the initial second picture captured by the second virtual camera, so that when recording starts, the spliced picture of the initial first game picture and the initial second game picture is the same as the initial first picture.
[0121] In some embodiments, forming a first game screen based on the first screen processing and displaying it in the first area also includes: performing a third processing on the first screen to form a third game screen having a display range corresponding to the second area, wherein, when recording starts, the initial third game screen is the same as the initial second game screen; forming a second game screen based on the second screen processing and displaying it in the second area also includes: when recording starts, setting the third game screen to be displayed as the second game screen in the second area; after the second framing parameters are updated, displaying the second game screen formed by capturing and processing based on the second virtual camera in the second area.
[0122] In some embodiments, the display range of the first screen and the display range of the second screen both correspond to a graphical user interface; forming a first game screen based on the first screen processing includes: performing a first processing and a third processing on the first screen to form a first game screen with a display range corresponding to the first area and a third game screen with a display range corresponding to the second area, and a spliced screen of the third game screen and the first game screen is the same as the first screen; forming a second game screen based on the second screen processing includes: performing a second processing on the second screen to form a second game screen with a display range corresponding to the second area; displaying the second game screen formed by capturing the game scene based on the updated second framing parameters through the second area includes: forming a second game screen that is different from the third game screen based on the updated second framing parameters, and displaying it in the second area.
[0123] In some embodiments, responding to the control instruction acting on the second area inputted through the second input device includes: responding to the control instruction acting on the second area inputted through the second input device based on that a preset response condition is satisfied.
[0124] In some embodiments, the response condition includes: a sliding operation on the first area inputted via the touch screen is paused for a preset time period.
[0125] In some embodiments, the response condition includes: the offset value of the gyroscope reaches a preset offset threshold.
[0126] In some embodiments, after determining that a preset response condition has been met, the coordinate value of the gyroscope when the response condition is met is used as the initial coordinate value of the gyroscope response offset.
[0127] In some embodiments, the graphical user interface also includes a virtual character located in the game scene, and the graphical user interface also includes a movement control area located at a second preset position in the first area; the in-game video recording control method also includes: after starting recording, responding to a trigger operation acting on the movement control area, controlling the virtual character to move in the game scene, and responding to a preset operation acting on the first area, controlling the direction of the virtual character in the game scene to deflect.
[0128] In some embodiments, the in-game video recording control method further includes: before starting recording or after stopping recording, responding to a trigger operation applied to the mobile control area, controlling the movement of the virtual character in the game scene and controlling the deflection of the virtual character's orientation in the game scene on the basis of maintaining the current orientation of the game field of view screen; when the virtual character is in a non-moving state, responding to a touch operation applied to the area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view screen on the basis of maintaining the current orientation of the virtual character; when the virtual character is in a moving state, responding to a touch operation applied to the area of the graphical user interface corresponding to the first area, controlling the adjustment of the orientation of the game field of view screen and controlling the adjustment of the orientation of the virtual character.
[0129] According to an embodiment of the present disclosure, a machine-readable storage medium stores machine-executable instructions. When called and executed by a processor, the machine-executable instructions cause the processor to implement the aforementioned in-game recording control method. Specifically, in response to a triggering of a recording instruction in the game, a graphical user interface is partitioned, and the graphical user interface is controlled to display a first area and a second area. The first area displays a first game screen formed by capturing a game scene based on a first framing parameter, and the second area displays a second game screen formed by capturing a game scene based on a second framing parameter. Recording of the second game screen displayed in the second area begins. In response to a preset operation inputted via a first input device and applied to the first area, the first and second framing parameters are updated according to the preset operation. The first area displays the first game screen formed by capturing a game scene based on the updated first framing parameter, and the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameter. In response to a control instruction inputted via a second input device and applied to the second area, the second framing parameter is updated according to the control instruction, and the second area displays the second game screen formed by capturing a game scene based on the updated second framing parameter. Therefore, in the process of recording the screen displayed in the second area, at least two interactive modes that affect screen updates can be provided, and the graphical user interface can be controlled by partitions, so as to improve the recording effect of the game.
[0130] The computer program product of the in-game video recording control method, device, electronic device, and storage medium provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0131] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0132] In addition, in the description of the embodiments of the present disclosure, unless otherwise expressly specified or limited, the terms "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in the present disclosure based on the specific circumstances.
[0133] 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 server, 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.
[0134] 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.
[0135] Finally, it should be noted that the above 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 scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above 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 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 scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A method for controlling video recording in a game, providing a graphical user interface through a terminal device; The graphical user interface includes a game scene; The video recording control method in the game includes: In response to the triggering of a recording instruction in the game, the graphical user interface is controlled to display a first area and a second area, wherein a first game screen formed by capturing the game scene based on a first framing parameter is displayed through the first area, and a second game screen formed by capturing the game scene based on a second framing parameter is displayed through the second area, wherein the first area is located at a first preset position of the graphical user interface, and the second area is an area of the graphical user interface other than the first area; Control to start recording the second game screen displayed in the second area; In response to a preset operation applied to the first area input through a first input device, updating the first framing parameter and the second framing parameter according to the preset operation; Displaying, through the first area, a first game screen formed by collecting the game scene based on the updated first framing parameters, and displaying, through the second area, a second game screen formed by collecting the game scene based on the updated second framing parameters; In response to a control instruction inputted through a second input device and acting on a second area, the second framing parameter is updated according to the control instruction, and a second game screen formed by capturing the game scene based on the updated second framing parameter is displayed through the second area; In response to the video recording stop instruction, video data is generated according to the recorded second game screen displayed in the second area.
2. The method for controlling video recording in a game according to claim 1, wherein: The first input device is a touch screen configured for the terminal device; the second input device is a gyroscope of the terminal device.
3. The method for controlling video recording in a game according to claim 1, wherein: The first framing parameter includes at least one of the following: a field of view of a virtual camera corresponding to the first area, a direction of the virtual camera corresponding to the first area, and a position of the virtual camera corresponding to the first area; The second framing parameter includes at least one of the following: a field of view angle of a virtual camera corresponding to the second area, a direction of the virtual camera corresponding to the second area, and a position of the virtual camera corresponding to the second area.
4. The method for controlling video recording in a game according to claim 1, wherein: In response to triggering of a recording instruction in the game, controlling the graphical user interface to display a first area and a second area, displaying a first game screen formed by collecting the game scene based on a first framing parameter through the first area, and displaying a second game screen formed by collecting the game scene based on a second framing parameter through the second area, comprises: In response to triggering of a recording instruction in the game, the game scene is captured by a first virtual camera according to a first framing parameter to obtain a first picture, and the game scene is captured by a second virtual camera according to a second framing parameter to obtain a second picture; The first game screen is formed based on the first screen processing, and the second game screen is formed based on the second screen processing.
5. The method for controlling video recording in a game according to claim 4, wherein: In response to a preset operation inputted through a first input device and acting on the first area, updating the first framing parameter and the second framing parameter according to the preset operation includes: updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation to update the first framing parameter and the second framing parameter; The step of responding to a control instruction inputted through a second input device and acting on the second area and updating the second framing parameter according to the control instruction comprises: The orientation of the second virtual camera is updated according to the control instruction to update the second framing parameter.
6. The method for controlling video recording in a game according to claim 5, wherein: The updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation to update the first framing parameter and the second framing parameter includes: According to the preset operation, the first virtual camera is controlled to deflect and the second virtual camera is controlled to deflect according to the first viewing angle adjustment threshold, so as to update the first framing parameter and the second framing parameter; The updating the orientation of the second virtual camera according to the control instruction to update the second framing parameter includes: According to the control instruction, the direction of the second virtual camera is controlled to deflect with a second viewing angle adjustment threshold to update the second framing parameter.
7. The method for controlling video recording in a game according to claim 5, wherein: The first input device is a touch screen configured for the terminal device, and the preset operation acting on the first area in response to input through the first input device includes: In response to a sliding operation on the first area input through the touch screen.
8. The method for controlling video recording in a game according to claim 7, wherein: The updating the orientation of the first virtual camera and the orientation of the second virtual camera according to the preset operation includes: According to the sliding operation acting on the first area, obtaining a first coordinate offset corresponding to the sliding operation; Based on the first coordinate offset and the first mapping relationship, the directions of the first virtual camera and the second virtual camera are controlled to be deflected simultaneously, wherein the first mapping relationship is a mapping relationship between the rotation amplitude of the directions of the first virtual camera and the second virtual camera and the first coordinate offset.
9. The method for controlling video recording in a game according to claim 5, wherein: The second input device is a gyroscope of the terminal device, and updating the orientation of the second virtual camera according to the control instruction includes: generating a second coordinate offset based on the offset of the gyroscope; Based on the second coordinate offset and the second mapping relationship, the orientation of the second virtual camera is controlled to be deflected, wherein the second mapping relationship is a mapping relationship between the rotation amplitude of the orientation of the second virtual camera and the second coordinate offset.
10. The method for controlling video recording in a game according to any one of claims 4 to 9, wherein: The display range of the first picture and the display range of the second picture both correspond to the graphical user interface; The forming the first game screen based on the first screen processing includes: Performing a first process on the first picture to form the first game picture whose display range corresponds to the first area; The forming the second game screen based on the second screen processing includes: The second screen is subjected to a second process to form the second game screen whose display range corresponds to the second area.
11. The method for controlling video recording in a game according to claim 10, wherein: The first virtual camera and the second virtual camera have the same initial position and initial framing parameters, so that the initial first picture captured by the first virtual camera is the same as the initial second picture captured by the second virtual camera, so that when recording starts, the spliced picture of the initial first game picture and the initial second game picture is the same as the initial first picture.
12. The method for controlling video recording in a game according to claim 11, wherein: The forming of the first game screen based on the first screen processing and displaying the first game screen in the first area further includes: Performing a third process on the first screen to form a third game screen having a display range corresponding to the second area, wherein when recording starts, the initial third game screen is the same as the initial second game screen; The forming of the second game screen based on the second screen processing and displaying the second game screen in the second area further includes: When starting recording, setting the third game screen to be displayed in the second area as the second game screen; After the second framing parameter is updated, the second game screen acquired and processed by the second virtual camera is displayed in the second area.
13. The method for controlling video recording in a game according to any one of claims 4 to 9, wherein: The display range of the first picture and the display range of the second picture both correspond to the graphical user interface; The forming the first game screen based on the first screen processing includes: Performing a first process and a third process on the first screen to form the first game screen whose display range corresponds to the first area and the third game screen whose display range corresponds to the second area, wherein a spliced screen of the third game screen and the first game screen is the same as the first screen; The forming the second game screen based on the second screen processing includes: Performing a second process on the second picture to form the second game picture whose display range corresponds to the second area; The displaying, through the second area, of a second game screen formed by collecting the game scene based on the updated second framing parameter comprises: Based on the updated second framing parameters, the second game screen that is different from the third game screen is formed and displayed in the second area.
14. The method for controlling video recording in a game according to claim 2, wherein: The responding to the control instruction acting on the second area inputted through the second input device includes: Based on the preset response condition being satisfied, respond to the control instruction acting on the second area input through the second input device.
15. The method for controlling video recording in a game according to claim 14, wherein: The response conditions include: The sliding operation on the first area inputted through the touch screen is paused for a preset time period.
16. The method for controlling video recording in a game according to claim 14, wherein: The response conditions include: The offset value of the gyroscope reaches a preset offset threshold.
17. The method for controlling video recording in a game according to claim 14, wherein: After determining that the preset response condition has been satisfied, the coordinate value of the gyroscope when the response condition is satisfied is used as the initial coordinate value of the gyroscope response offset.
18. The method for controlling video recording in a game according to claim 1, wherein: The graphical user interface also includes a virtual character located in the game scene, and the graphical user interface also includes a movement control area located at a second preset position of the first area; The video recording control method in the game also includes: After recording starts, in response to a trigger operation applied to the movement control area, the virtual character is controlled to move in the game scene, and in response to the preset operation applied to the first area, the direction of the virtual character in the game scene is controlled to deflect.
19. The method for controlling video recording in a game according to claim 18, wherein: The video recording control method in the game also includes: Before starting recording or after stopping recording, in response to a trigger operation acting on the movement control area, on the basis of maintaining the current direction of the game field of view, controlling the movement of the virtual character in the game scene and controlling the direction of the virtual character in the game scene to deflect; When the virtual character is in a non-moving state, in response to a touch operation applied to an area of the graphical user interface corresponding to the first area, control the adjustment of the orientation of the game field of view while maintaining the current orientation of the virtual character; When the virtual character is in a moving state, in response to a touch operation applied to an area of the graphical user interface corresponding to the first area, the orientation of the game field of view is controlled to be adjusted, and the orientation of the virtual character is controlled to be adjusted.
20. A video recording control device in a game, providing a graphical user interface through a terminal device; The graphical user interface includes a game scene; The video recording control device in the game includes: The partition module is configured to execute, in response to a trigger of a recording instruction in the game, control the graphical user interface to display a first area and a second area, wherein the first area displays a first game screen formed by collecting the game scene based on the first framing parameter, and the second area displays a second game screen formed by collecting the game scene based on the second framing parameter, wherein the first area is located at a first preset position of the graphical user interface, and the second area is located at a first preset position of the graphical user interface. The area is an area in the graphical user interface other than the first area; A start recording module, configured to execute control to start recording the second game screen displayed in the second area; A first framing update module is configured to execute a preset operation acting on the first area in response to input through a first input device, and update the first framing parameter and the second framing parameter according to the preset operation; A game screen update module is configured to execute displaying a first game screen formed by collecting the game scene based on the updated first framing parameter through the first area, and displaying a second game screen formed by collecting the game scene based on the updated second framing parameter through the second area; A second framing update module is configured to execute a control instruction inputted through a second input device and acting on a second area, update the second framing parameter according to the control instruction, and display a second game screen formed by capturing the game scene based on the updated second framing parameter through the second area; The video generation module is configured to execute a video data generation according to the second game screen displayed in the second area in response to the video stop instruction.
21. 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 in-game video recording control method according to any one of claims 1-19.
22. A machine-readable storage medium storing machine-executable instructions, wherein when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the in-game video recording control method according to any one of claims 1-19.
Citation Information
Patent Citations
Game video playing method and system
CN104941182A
Screen recording control method and device, and computer readable storage medium
CN108600513A
Video recording method and device in game, electronic equipment and storage medium
CN115814405A
Video recording control method and device in game, electronic equipment and storage medium
CN116850585A
