Virtual camera configuration method, device, equipment and storage medium

HK40094515BActive Publication Date: 2026-09-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
HK42023083252
Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2026-09-11

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A virtual camera configuration method and device, equipment and storage medium, relate to computer and internet technical field. The method comprises: displaying a user interface of a camera tool, and the user interface displays an import control; in response to an operation on the import control, a virtual camera sequence generated according to import data is displayed; in response to an operation on a first virtual camera in at least one virtual camera, the configuration parameters of the first virtual camera are displayed; and in response to a configuration saving operation on the virtual camera sequence, the configuration information of the virtual camera sequence is saved. By importing data into the camera tool, the camera tool automatically generates and displays a virtual camera sequence. Without manual adjustment of the virtual camera by an animator, the position and motion trajectory of the virtual camera are determined according to the picture taken by the virtual camera, simplifying the process of configuring the virtual camera, making the operation simple, and improving the efficiency of configuring the virtual camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer and Internet technology, and in particular to a method, apparatus, device and storage medium for configuring a virtual camera. Background Technology

[0002] Virtual cameras can capture images of virtual objects in a virtual scene to generate animations related to those virtual objects.

[0003] In related technologies, a method for configuring a virtual camera is provided. Animators adjust the position and motion trajectory of the virtual camera to obtain a preview image captured by the virtual camera. Based on the effect of the preview image, they continue to adjust the position and motion trajectory of the virtual camera until a suitable position and motion trajectory for the virtual camera are determined, thus completing the configuration of the virtual camera.

[0004] However, the above-mentioned configuration methods for virtual cameras are complex and inefficient. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for configuring a virtual camera. The technical solutions provided by this application are as follows.

[0006] According to one aspect of the embodiments of this application, a method for configuring a virtual camera is provided, the method comprising:

[0007] The user interface for the camera movement tool is displayed, and the user interface includes import controls;

[0008] In response to an operation on the import control, a sequence of virtual cameras generated based on the import data is displayed, the sequence of virtual cameras including at least one virtual camera, the import data being used to define the type and order of each of the virtual cameras;

[0009] In response to an operation on a first virtual camera among the at least one virtual cameras, configuration parameters of the first virtual camera are displayed. These configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and are automatically generated by the camera movement tool based on the imported data.

[0010] In response to a configuration save operation for the virtual camera sequence, the configuration information of the virtual camera sequence is saved, the configuration information including the configuration parameters of each virtual camera included in the virtual camera sequence.

[0011] According to one aspect of the embodiments of this application, a configuration device for a virtual camera is provided, the device comprising:

[0012] The first display module is used to display the user interface of the camera movement tool, and the user interface displays import controls;

[0013] The second display module is configured to display a sequence of virtual cameras generated based on imported data in response to an operation on the import control. The sequence of virtual cameras includes at least one virtual camera, and the imported data is used to define the type and order of each virtual camera.

[0014] The third display module is configured to display configuration parameters of the first virtual camera in response to an operation on the first virtual camera among the at least one virtual cameras. The configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and the configuration parameters are automatically generated by the camera movement tool based on the imported data.

[0015] A save module is configured to save the configuration information of the virtual camera sequence in response to a configuration save operation for the virtual camera sequence, the configuration information including the configuration parameters of each virtual camera included in the virtual camera sequence.

[0016] According to one aspect of the embodiments of this application, a terminal device is provided, the terminal device including a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the above-described virtual camera configuration method.

[0017] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer program, which is loaded and executed by a processor to implement the above-described virtual camera configuration method.

[0018] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program, the computer program being loaded and executed by a processor to implement the above-described virtual camera configuration method.

[0019] The technical solution provided in this application can bring the following beneficial effects:

[0020] By importing data into the camera movement tool, the tool automatically generates and displays a virtual camera sequence to complete the virtual camera configuration. This eliminates the need for animators to manually adjust the virtual camera and determine its position and movement trajectory based on the footage captured, simplifying the configuration process, making it simple to operate, and improving efficiency. Attached Figure Description

[0021] Figure 1This is a schematic diagram of the implementation environment of a solution provided in one embodiment of this application;

[0022] Figure 2 This is a schematic diagram of a keyframe provided in one embodiment of this application;

[0023] Figure 3 This is a flowchart of a virtual camera configuration method provided in one embodiment of this application;

[0024] Figure 4 This is a schematic diagram of the user interface of a camera movement tool provided in one embodiment of this application;

[0025] Figure 5 This is a schematic diagram of the user interface of a game engine provided in one embodiment of this application;

[0026] Figure 6 This is a schematic diagram of a file selection interface provided in one embodiment of this application;

[0027] Figure 7 This is a schematic diagram illustrating the addition of a virtual camera according to an embodiment of this application;

[0028] Figure 8 This is a schematic diagram of a preview virtual camera provided in one embodiment of this application;

[0029] Figure 9 This is a schematic diagram of a migrated virtual camera sequence provided in one embodiment of this application;

[0030] Figure 10 This is a schematic diagram of a cut-out virtual camera provided in one embodiment of this application;

[0031] Figure 11 This is a block diagram of a public preset addition module for a camera movement tool provided in one embodiment of this application;

[0032] Figure 12 This is a block diagram of the lens and sequence creation module of a camera movement tool provided in one embodiment of this application;

[0033] Figure 13 This is a block diagram of a quick editing and preview module for a camera movement tool provided in one embodiment of this application;

[0034] Figure 14 This is a block diagram of a virtual camera configuration device provided in one embodiment of this application;

[0035] Figure 15 This is a block diagram of a virtual camera configuration device provided in another embodiment of this application;

[0036] Figure 16 This is a structural block diagram of a terminal device provided in one embodiment of this application. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0038] Before describing the embodiments of this application, some terms used in this application will be explained.

[0039] 1. Game Engine: A software development environment designed specifically for creating real-time interactive content. It was initially used primarily for developing video games, but is now widely used in other fields such as animation production and special effects production.

[0040] 2. Real-time animation pipeline: This refers to the computer calculating and displaying the animation on the same time, with a frame rate of at least 25 frames per second (fps) to create a smooth and real-time visual experience. Game engines allow teams to quickly acquire high-resolution assets, physically based simulations and motion, realistic textures and cloth, a wide variety of particle effects, as well as cameras and complex lighting. Advantages include real-time control, rapid iteration, and the ability to make creative decisions that were previously impossible.

[0041] 3. Virtual Camera: A camera in the game engine that can be manually controlled by the user, directly assigned a value, or driven by a mobile device (such as a mobile phone, tablet, etc.). In some embodiments, a virtual camera may also be referred to as a virtual camera, virtual lens, virtual camera, etc., and this application does not limit it in this way.

[0042] 4. Sequencer: Unreal Engine's multi-track editor for creating and previewing cutscene sequences in real time. By creating level sequences and adding tracks, users can define the composition of each track, thus determining the content of the scene. Tracks can include animation (for animate characters), transformation (for moving objects in the scene), audio (for including music or sound effects), and several other track types.

[0043] 5. Non-linear editing: This is a modern editing technique used in film and television post-production, meaning that any frame in a video clip can be accessed.

[0044] 6. Cinematic Language: This refers to telling a story through the lens. By observing the subject matter and changes in the composition, one can understand the message the photographer wants to convey through the lens.

[0045] 7. Animation: A form of expression. Animation is a comprehensive art form that combines painting, comics, film, digital media, photography, music, literature, and many other art categories.

[0046] 8. Video: A playback method. Video broadly refers to various technologies that capture, record, process, store, transmit, and reproduce a series of still images using electrical signals. When continuous image changes exceed 24 frames per second, according to the principle of visual persistence, the human eye cannot distinguish individual still images; what appears as a smooth and continuous visual effect is called video. Animation and video are both important media forms in multimedia technology, and they have a deep connection. Animation and video are often considered the same thing, mainly because they both belong to the category of "moving images." Moving images are a media form that produces a sense of motion by displaying a series of continuously changing still images or graphic sequences sequentially along a timeline. However, animation and video are actually two different concepts. Each frame of animation is generated manually or by computer. Based on the characteristics of the human eye, playing still image frames sequentially at a speed of 15 to 20 frames per second will produce a sense of motion. Each frame of video is obtained by capturing natural scenes or moving objects in real time. Video signals can be generated through continuous image signal input devices such as cameras and video recorders.

[0047] Please refer to Figure 1 This diagram illustrates an implementation environment provided by one embodiment of the present application. This implementation environment can be configured as a virtual camera configuration system. The implementation environment may include: a terminal device 100 and a server 200.

[0048] Terminal device 100 can be an electronic device such as a PC (Personal Computer), tablet computer, mobile phone, wearable device, or in-vehicle terminal. A client application for the target application can be installed and run on terminal device 100. This target application can be an application with animation production capabilities, such as a game engine. For example, the target application is a game engine that can run a camera movement tool and configure a virtual camera according to the camera movement tool to generate a virtual camera sequence. The camera movement tool can be a plugin within the target application or an application independent of the target application. Furthermore, this application does not limit the form of the target application, including but not limited to apps, mini-programs, etc., installed on terminal device 100, and can also be in web page form.

[0049] Server 200 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. Server 200 can be the backend server for the aforementioned target application, used to provide backend services to the clients of the target application.

[0050] Terminal device 100 and server 200 can communicate via a network, such as a wired or wireless network.

[0051] The virtual camera configuration method provided in this application embodiment can be executed by a terminal device in each step. Figure 1 Taking the implementation environment of the scheme shown as an example, the configuration method of the virtual camera can be executed by the terminal device 100, such as by the client of the target application installed and running in the terminal device 100, or by the camera movement tool installed and running in the terminal device 100.

[0052] In related technologies, configuring a virtual camera sequence requires the planners to first propose camera movement ideas to the animators. The animators then manually record the virtual camera animation as keyframes in the animation sequence within the game engine. Complex animation movements also require repeated calculations, adjustments, and smoothing. The planners and animators will communicate and revise repeatedly before the final camera animation is completed.

[0053] like Figure 2 As shown, a column with dotted markers represents a keyframe, such as keyframe 210. This column of markers indicates the position and configuration parameters of the virtual camera within the virtual scene. For example, the markers in keyframe 210, from top to bottom, represent the virtual camera's x-axis coordinates, y-axis coordinates, z-axis coordinates, roll (roll angle), pitch (pitch angle), yaw (yaw angle), and scale (scale) parameters within the virtual scene. Each keyframe can set one or more of these parameters; for example, keyframe 220 only sets the y-axis and z-axis coordinates. Planners and animators often use the footage captured by the virtual camera to determine how to set a camera position or a movement path, and then manually set parameters such as... Figure 2 The keyframes shown are used to complete the configuration of a virtual camera sequence.

[0054] However, in virtual scenes, the positional information and relative relationships between virtual objects and virtual cameras can be obtained in real time. Designing camera language based on visual effects is time-consuming and labor-intensive, and it fails to take advantage of the inherent advantages of the virtual environment. Moreover, the camera language of an animation often requires many revisions and iterations before it is finalized. If the keyframes of an animation with a virtual camera have already been set, and it is now necessary to move the entire shot backward by a certain distance, then each keyframe needs to be modified. This results in high iteration costs and requires repeated communication between the planner and the animation production team.

[0055] This application provides a method for configuring a virtual camera. Data can be imported into a camera movement tool, and the configuration parameters of the virtual camera can be determined based on the imported data, thereby generating a virtual camera sequence. By utilizing the relationship between the positions of virtual objects and virtual cameras in a virtual scene and the shooting frames of the virtual cameras, the configuration parameters of the virtual cameras are determined, automatically generating a virtual camera sequence without the need for manual adjustments by animators.

[0056] Please refer to Figure 3 The diagram illustrates a flowchart of a virtual camera configuration method according to an embodiment of this application. This method can have... Figure 1 The terminal device 100 shown executes the method. The method may include at least one of the following steps 310 to 340.

[0057] Step 310: Display the user interface of the camera movement tool, which includes import controls.

[0058] Camera movement tools refer to tools used to configure virtual cameras. These tools can be standalone applications or plugins based on target applications (such as game engines), and this application does not limit them in this regard.

[0059] The user interface of a camera movement tool refers to the interface used for human-computer interaction. Animators can configure virtual cameras in the user interface to generate virtual camera sequences.

[0060] If the camera movement tool is a plugin based on a game engine, its user interface can be independent of the game engine's user interface, or it can be a part of the interface displayed within the game engine's user interface; this application does not limit this. For example, the user interface of the camera movement tool can be as follows: Figure 4 The independent user interface 400 shown can also be as follows: Figure 5 The game engine's user interface shown is an interface area 510.

[0061] The camera movement tool's user interface displays at least one control for configuring the virtual camera. Animators can use the various controls included in the user interface to perform operations such as adding, deleting, modifying, cutting, and migrating the virtual camera.

[0062] In some embodiments, an import control is displayed in the user interface for importing data into the camera movement tool. For example, such as... Figure 4 As shown, the user interface 400 displays an import control 401.

[0063] Step 320: In response to an operation on the import control, display a sequence of virtual cameras generated based on the import data. The sequence of virtual cameras includes at least one virtual camera, and the import data is used to define the type and order of each virtual camera.

[0064] In some embodiments, the imported data is imported into the camera movement tool in a preset standardized format. This application does not limit the standardized format. For example, the standardized format can be a table or text.

[0065] Taking a table format as an example, as shown in Table 1, the imported data can include the following content.

[0066] The first three columns in Table 1, representing the planning description, timeline, and scope, are the animation production ideas provided by the planners to the animators. The animators then standardize these planning descriptions to create the table consisting of the last six columns shown in Table 1. The last six columns of Table 1 represent the imported data in a standardized format.

[0067] In some embodiments, the type of virtual camera is determined by the camera movement category and camera movement name, and the order of the virtual cameras is determined by the start frame and end frame of the virtual cameras.

[0068] Camera movement categories refer to classifications based on the camera movement rules of virtual cameras. These can include fixed camera positions, basic camera movements, and procedurally generated camera movements. Fixed camera positions refer to the virtual camera shooting from a fixed location. Basic camera movements refer to the virtual camera shooting according to basic motion rules, such as panning or pulling. Procedurally generated camera movements refer to more complex, procedurally generated camera movements, such as circular camera movements, where the virtual camera moves in a circle around the subject.

[0069] The camera movement name refers to the name of the camera movement method used by the virtual camera. For example, "long shot" means the virtual camera is filmed from a fixed position, and the resulting image is a distant view of the subject. "Close-up" means the virtual camera is filmed from a fixed position, and the resulting image is a close-up of the subject. "Push-pull" means the virtual camera moves along a trajectory, pushing or pulling the camera to film the subject.

[0070] Table 1: Example of Importing Data

[0071]

[0072] The start frame is used to determine the position when the virtual camera begins shooting, and the end frame is used to determine the position when the virtual camera ends shooting. The start frame refers to the timestamp when the virtual camera begins shooting, and the end frame refers to the timestamp when the virtual camera ends shooting.

[0073] Of course, the imported data can include not only camera movement type, camera movement name, start frame, end frame, start frame, and end frame, but also other data information from the virtual camera; this application does not limit this. For example, the imported data may also include the subject being filmed by the virtual camera. The subject being filmed refers to a virtual object filmed by the virtual camera in a virtual scene. The virtual object can be a virtual character or a virtual item in the virtual scene; this application does not limit this. For example, a virtual object can be a game character or a virtual item in a game scene.

[0074] In some embodiments, the imported data may include the subjects to be filmed by each virtual camera, or it may not include the subjects to be filmed by the virtual cameras.

[0075] For example, if the shooting objects of each virtual camera in the virtual camera sequence are the same (for example, the shooting objects of each virtual camera in the virtual camera sequence are all virtual object 1), the imported data may include the shooting objects corresponding to each virtual camera, or may not include the shooting objects corresponding to the virtual cameras, or may uniformly set the shooting objects corresponding to each virtual camera.

[0076] For example, if the subjects captured by the various virtual cameras in the virtual camera sequence are different (for example, the subjects captured by the various virtual cameras in the virtual camera sequence include virtual object 1, virtual object 2, and virtual object 3), then the imported data may include the subjects captured by each virtual camera respectively. A virtual camera sequence refers to virtual cameras arranged in chronological order of capture time. A virtual camera sequence includes at least one virtual camera, and the footage captured by each virtual camera can form a video. For example, as shown in Table 1, the virtual cameras included in the virtual camera sequence are arranged according to the order of the start frame and end frame shown in Table 1.

[0077] In some embodiments, virtual cameras can be categorized according to their camera movement rules.

[0078] For example, virtual cameras are classified into fixed shots and dynamic shots based on whether they move.

[0079] For example, virtual cameras can be classified according to the above camera movement categories, and thus virtual cameras can also be classified into fixed camera positions, basic camera movements, and procedurally generated camera movements.

[0080] For example, virtual cameras can also be classified according to the camera movement names mentioned above. Virtual cameras can be classified into long shot, close-up, medium shot, push-pull, circular, and surround shots.

[0081] In some embodiments, the imported data is imported into the camera movement tool in the form of a file, such as an Excel spreadsheet file.

[0082] In some embodiments, in response to an operation on the import control, a file selection interface is displayed, in which at least one file is displayed; in response to a selection operation on the target file, data stored in the target file is imported into the camera movement tool.

[0083] For example, in response to Figure 4 The operation of the import control 401 in the middle is displayed as follows: Figure 6 The file selection interface 600 shown allows the user to select a target file. In response to the selection operation on the target file 610, the data stored in the target file 610 is imported into the camera movement tool.

[0084] For example, such as Figure 4As shown, a virtual camera sequence 402 is generated and displayed based on imported data. The virtual camera sequence 402 includes at least one virtual camera. In some embodiments, the virtual camera sequence is displayed in the order of the virtual cameras. For example, taking the virtual cameras shown in Table 1 as an example, the virtual camera sequence is displayed in the following order: fixed camera position - long shot, basic camera movement - push-pull, basic camera movement - push-pull, fixed camera position - long shot, fixed camera position - long shot, procedurally generated camera movement - circular surround, fixed camera position - long shot, basic camera movement - push-pull.

[0085] In some embodiments, the type of virtual camera can be determined according to the camera movement name included in the imported data, and the order of the virtual cameras can be determined according to the start frame and end frame included in the imported data, thereby determining the configuration parameters of the virtual cameras.

[0086] In some embodiments, the images captured by virtual cameras using the same camera movement have similar composition. For example, if a virtual camera uses a close-up shot to capture the eyes of a subject, then in the virtual scene, after determining the position of the subject being captured by the virtual camera, the position of the virtual camera can be determined based on the relationship between the distance between the virtual camera and the subject and the images captured by the virtual camera. For example, if the distance between the virtual camera and the subject is 10m, the image captured by the virtual camera will include the subject's head; if the distance is 5m, the image captured by the virtual camera will include half of the subject's face. Based on this, the position of the virtual camera can be easily determined.

[0087] In some embodiments, the order of each virtual camera can be determined based on the start and end frames in the imported data.

[0088] Using the above method, virtual camera sequences can be automatically generated based on imported data, eliminating the need for animators to manually adjust the positions of the virtual cameras. This method is simple to operate and highly efficient.

[0089] In some embodiments, in response to an operation on the import control, import data is obtained; for the virtual cameras defined by the import data, the configuration parameters of the virtual cameras are determined according to the type of virtual camera and the location information of the shooting object; and a virtual camera sequence is generated and displayed according to the order of each virtual camera defined by the import data and the configuration parameters of each virtual camera.

[0090] In some embodiments, the position information of the subject being photographed can be the subject's position in the virtual scene, or it can be the subject's skeletal information. The subject's skeletal information can include the subject's skeletal structure, the position of the subject's skeleton in the virtual scene, and the orientation of the subject's skeleton.

[0091] In some embodiments, if the virtual camera is a fixed lens, the configuration parameters of the virtual camera are determined based on the location information of the subject being filmed. The configuration parameters of the virtual camera include the location of the virtual camera.

[0092] In some embodiments, if the virtual camera is a dynamic lens, the configuration parameters of the virtual camera are determined based on the location information of the subject being filmed. The configuration parameters of the virtual camera include the position and motion trajectory of the virtual camera.

[0093] For example, the virtual camera is a fixed-position long-range camera, and the position of the virtual camera is determined according to the type of virtual camera and the location information of the subject being filmed.

[0094] For example, the virtual camera is a procedurally generated circular surround camera. Based on the type of virtual camera and the location information of the subject being filmed, the position and motion trajectory of the virtual camera are determined. The motion trajectory of the virtual camera can be expressed using splines and spline points. Splines are the lines presented in the preview screen that describe the motion trajectory of the virtual camera, while spline points are the keyframe points on the spline used to describe the motion trajectory of the virtual camera.

[0095] In some embodiments, the configuration parameters of the virtual camera are determined based on the type of virtual camera, the location information of the subject being photographed, and the orientation of the subject being photographed.

[0096] Step 330: In response to an operation on a first virtual camera among at least one virtual camera, display the configuration parameters of the first virtual camera. The configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and the configuration parameters are automatically generated by the camera movement tool based on imported data.

[0097] For example, such as Figure 4 As shown, in response to an operation on the first virtual camera 402a of at least one virtual camera, configuration parameters 403 of the first virtual camera are displayed. The configuration parameters of the first virtual camera are used to determine the camera movement rules of the virtual camera in the virtual scene. The camera movement rules may include at least one of the following: the position of the virtual camera, the movement trajectory, the number of spline points, the running speed, the movement radius, whether to move in reverse, the spline ratio, the subject being filmed, the starting frame, etc.

[0098] In this context, the spline of a virtual camera refers to the motion trajectory of the virtual camera, and the spline points of the virtual camera refer to the keyframes on that trajectory. The motion radius describes the range of motion of the virtual camera.

[0099] In some embodiments, the user interface also displays general configuration parameters of a first virtual camera, and in response to an operation on the first virtual camera among at least one virtual camera, displays detailed configuration parameters of the first virtual camera. Exemplarily, the general configuration parameters of the first virtual camera may be displayed in a first area 404 of the user interface 400, and in response to an operation on the first virtual camera, detailed configuration parameters 403 of the first virtual camera are displayed on the user interface 400.

[0100] In some embodiments, general configuration parameters correspond to simple camera movement rules for the virtual camera, such as the position of the virtual camera and the rotation angle of the virtual camera; detailed configuration parameters correspond to complex camera movement rules for the virtual camera, such as the number of spline points and the spline ratio of the virtual camera.

[0101] In some embodiments, the configuration parameters of the virtual camera are automatically generated by the camera movement tool based on the imported data, without the need for manual settings by the animators.

[0102] Step 340: In response to the configuration saving operation for the virtual camera sequence, save the configuration information of the virtual camera sequence, which includes the configuration parameters of each virtual camera contained in the virtual camera sequence.

[0103] In some embodiments, the generated virtual camera sequence can be saved and applied to an animation sequence.

[0104] In some embodiments, a save control is also displayed in the user interface to save the configuration information of the virtual camera sequence in response to a configuration save operation for the virtual camera sequence (e.g., after selecting the virtual camera sequence, clicking the save control).

[0105] For example, such as Figure 4 As shown, in response to a configuration save operation for a virtual camera sequence (e.g., after selecting the virtual camera sequence, clicking the save control 405), the configuration information of the virtual camera sequence is saved. For example, it can be displayed as shown below. Figure 6 The path selection interface shown allows users to choose a target storage path. In response to this selection, the configuration information for the virtual camera sequence is stored in the target storage path. The target storage path is determined in the path selection interface.

[0106] The technical solution provided in this application imports data into a camera movement tool, which then automatically generates and displays a virtual camera sequence to complete the configuration of the virtual camera. This eliminates the need for animators to manually adjust the virtual camera and determine its position and trajectory based on the footage captured by the camera, simplifying the configuration process, making it easy to operate, and improving the efficiency of virtual camera configuration.

[0107] In some embodiments, the method provided in this application also supports modifying the configuration parameters of the virtual camera.

[0108] In some embodiments, step 350 is included after step 330.

[0109] Step 350: In response to the modification operation of the configuration parameters of the first virtual camera, display the modified configuration parameters of the first virtual camera.

[0110] For example, such as Figure 4 As shown, animators can modify the configuration parameters 403 of the first virtual camera displayed in the user interface 400. For example, if the configuration parameters of the first virtual camera are in an editable state, the modified configuration parameters of the first virtual camera are displayed in response to the modification operation of the configuration parameters of the first virtual camera.

[0111] In some embodiments, the user interface may display a modification control. In response to an operation on the modification control, the configuration parameters of the first virtual camera are adjusted to an editable state. In response to the modification operation on the configuration parameters of the first virtual camera, the modified configuration parameters of the first virtual camera are displayed. For example, in response to a modification operation on the starting frame of the first virtual camera, the modified starting frame of the first virtual camera is displayed. For example, in response to a modification operation on the coordinate position of the first virtual camera in the virtual scene, the modified coordinate position of the first virtual camera is displayed.

[0112] The above method allows animators to customize the configuration parameters of the virtual cameras if they are not satisfied with the automatically generated virtual camera sequence.

[0113] In some embodiments, the user interface also displays at least one preset virtual camera, which has at least one initial configuration parameter.

[0114] In some embodiments, the initial configuration parameters corresponding to different preset virtual cameras may be the same or different. For example, the initial configuration parameters corresponding to a preset distant view camera and the initial configuration parameters corresponding to a preset close-up camera may be the same or different. For example, the initial positions of both the preset distant view camera and the preset close-up camera are the origin position in the virtual scene. For example, the initial distance between the preset distant view camera and the subject is 500m, and the initial distance between the preset close-up camera and the subject is 200m.

[0115] For example, such as Figure 4 As shown, the user interface 400 displays multiple preset virtual cameras 406, including fixed camera position - long shot, fixed camera position - close shot, basic camera movement - push-pull, procedurally generated camera movement - circular surround, etc.

[0116] For example, such as Figure 4 As shown, the user interface 400 can display different types of preset virtual cameras, such as fixed-position long-range camera, fixed-position close-up camera, procedurally generated camera movement (circular surround camera), and basic camera movement (push-pull camera). This allows animators to simply select the corresponding preset virtual camera when adding one, eliminating the need to configure the type of virtual camera and simplifying the process.

[0117] In some embodiments, this application also supports adding virtual cameras to a virtual camera sequence.

[0118] For example, the steps of adding a virtual camera may include at least one of the steps 1 to 3.

[0119] Step 1: In response to an operation targeting a second virtual camera among at least one preset virtual camera, display the configuration interface of the second virtual camera.

[0120] The configuration interface displays the camera movement rules and corresponding configuration parameters for at least one second virtual camera. Animators can set the configuration parameters for the second virtual camera in the configuration interface.

[0121] For example, such as Figure 7 As shown, in response to an operation on the second virtual camera 710 among at least one preset virtual camera, a configuration interface 720 for the second virtual camera is displayed. The configuration interface 720 displays the camera movement rules and corresponding configuration parameters for at least one second virtual camera.

[0122] Step 2: In the configuration interface of the second virtual camera, at least one configuration parameter configured for the second virtual camera is displayed. The at least one configuration parameter includes the addition position of the second virtual camera in the virtual camera sequence.

[0123] In some embodiments, at least one configuration parameter is configured, including pointer time, which is used to determine the start timestamp of the shooting period of the second virtual camera.

[0124] If at least one of the configured parameters includes a pointer time, the shooting time of the second virtual camera is determined by using the pointer time as the start timestamp of the shooting period of the virtual camera containing the pointer time, and the end timestamp of the shooting period of the virtual camera containing the pointer time as the end timestamp of the shooting period of the second virtual camera. The second virtual camera is then added. The end timestamp of the shooting period of the virtual camera containing the pointer time is then modified to the pointer time. For example, if the virtual camera sequence includes virtual camera 1 and virtual camera 2, the shooting period of virtual camera 1 is from 1s to 10s, the shooting period of virtual camera 2 is from 11s to 20s, and the pointer time is 14s, then the virtual camera sequence is adjusted so that the shooting period of virtual camera 1 is from 1s to 10s, the shooting period of virtual camera 2 is from 11s to 20s, and the shooting period of the second virtual camera is from 14s to 20s.

[0125] In some embodiments, at least one configuration parameter includes a start timestamp and an end timestamp, which are used to determine the shooting period of the second virtual camera.

[0126] If at least one of the configured parameters includes a start timestamp and an end timestamp, the shooting time period of the second virtual camera is determined according to the start timestamp and end timestamp, and the second virtual camera is added. Virtual cameras whose original shooting time period falls within the second virtual camera's shooting time period are shifted sequentially backward. For example, if the virtual camera sequence includes virtual camera 1 and virtual camera 2, with virtual camera 1's shooting time period from 1s to 10s and virtual camera 2's shooting time period from 11s to 20s, and start and end timestamps of 11s and 15s respectively, then the virtual camera sequence is adjusted so that virtual camera 1's shooting time period is from 1s to 10s, the second virtual camera's shooting time period is from 11s to 15s, and virtual camera 2's shooting time period is from 16s to 25s.

[0127] In some embodiments, at least one of the configured parameters may further include the subject being captured by the second virtual camera. For example, as... Figure 7As shown, the configuration interface 720 displays a shooting object selection control 721. In response to the operation of the shooting object selection control 721, the selectable state of the shooting object is displayed. In response to the operation of completing the selection of the shooting object, the shooting object of the second virtual camera is displayed in the configuration interface 720.

[0128] In some embodiments, at least one configuration parameter may also include the name of the second virtual camera, its running speed, spline scale, number of spline points, etc.

[0129] Step 3: In response to the configuration completion operation for the second virtual camera, add and display the second virtual camera in the virtual camera sequence according to the addition position.

[0130] In some embodiments, the camera movement tool adds and displays a second virtual camera in the virtual camera sequence based on the configuration parameters of the second virtual camera and the position where the second virtual camera is added.

[0131] The above methods simplify the process of adding virtual cameras for animators, improve the efficiency of configuring virtual cameras, and reduce the learning cost.

[0132] In some embodiments, a preview area for the virtual camera sequence is also displayed in the user interface.

[0133] The preview area of ​​the virtual camera sequence can be used to preview the preview images captured by at least one virtual camera included in the virtual camera sequence.

[0134] For example, such as Figure 4 As shown, the user interface 400 displays a preview area 407, which can display at least one virtual camera from a sequence of virtual cameras.

[0135] In some embodiments, at least one virtual camera in the preview area can be arranged chronologically or by type of virtual camera, for example, arranged in a tree structure by type of virtual camera. For example, as... Figure 4 As shown, the virtual cameras in preview area 407 are arranged in a tree structure, which is called the virtual camera preview tree.

[0136] In some embodiments, the preview operation for a virtual camera sequence may include at least one of the steps 1 to 2.

[0137] Step 1: In response to the preview operation for the virtual camera sequence, display the preview screens of each virtual camera in the virtual camera sequence in the preview area.

[0138] In some embodiments, a start preview control is displayed in the preview area. In response to an operation on the start preview control, preview images corresponding to each virtual camera in the virtual camera sequence are displayed in the preview area.

[0139] For example, such as Figure 8 As shown, a start preview control 810 is displayed in the preview area 800. In response to an operation on the start preview control 810, preview screens 830 corresponding to each virtual camera in the virtual camera sequence are displayed in the preview area.

[0140] In some embodiments, a low-performance rendering method is used to render the preview images corresponding to each virtual camera, and the resolution and clarity of the preview images corresponding to each virtual camera are reduced to reduce the performance consumption of the preview operation on the game engine.

[0141] Step 2: In response to the end preview operation for the virtual camera sequence, stop the rendering process of the preview screen and delete the rendered preview screen.

[0142] In some embodiments, an end preview control is displayed in the preview area. In response to an operation on the end preview control, the rendering process of the preview screen is stopped and the rendered preview screen is deleted.

[0143] For example, such as Figure 8 As shown, the preview area 810 displays an end preview control 820. In response to an operation on the end preview control 820, the rendering process of the preview screen is stopped, and the rendered preview screen is deleted. That is, the preview area changes from displaying the preview screens 830 corresponding to each virtual camera in the virtual camera sequence to displaying the virtual camera preview tree 840.

[0144] In some embodiments, although the preview function provided by the camera movement tool consumes significantly less performance than the preview function provided by the game engine, it still incurs performance costs. Therefore, this application provides a function to end the preview. In response to the end preview operation for a virtual camera sequence, the rendering process of the preview screen is stopped, and the rendered preview screen is deleted. When preview is not needed, animators can choose to end the preview, stop the rendering process of the preview screen, and delete the rendered preview screen to further reduce the performance consumption of the game engine.

[0145] In some embodiments, the user interface also displays at least one historical virtual camera sequence, which refers to a sequence of virtual cameras that has been configured and saved.

[0146] For example, such as Figure 4As shown, the user interface 400 also displays at least one historical virtual camera sequence 408. Each historical virtual camera sequence includes at least one virtual camera.

[0147] In some embodiments, this application also provides a function for modifying historical virtual camera sequences.

[0148] In some embodiments, the modification operation on the historical virtual camera sequence may include at least one of the steps 1 to 3.

[0149] Step 1: In response to an operation on the third virtual camera in the historical virtual camera sequence, display the configuration parameters of the third virtual camera.

[0150] For example, such as Figure 4 As shown, in response to an operation on the third virtual camera in the historical virtual camera sequence, the configuration parameters 409 of the third virtual camera are displayed.

[0151] The configuration parameters of the third virtual camera may include at least one of the following: the start timestamp, end timestamp, and frame rate of the third virtual camera.

[0152] Step 2: In response to the modification operation of the configuration parameters of the third virtual camera, display the modified configuration parameters of the third virtual camera.

[0153] Step 3: In response to the configuration saving operation for the historical virtual camera sequence, save the configuration information of the historical virtual camera sequence.

[0154] For example, the historical virtual camera sequence includes historical virtual camera 1, historical virtual camera 2, and historical virtual camera 3. In response to an operation on historical virtual camera 1, the configuration parameters of historical virtual camera 1 (e.g., start frame, end frame, frame rate) are displayed. In response to a modification operation on the configuration parameters of historical virtual camera 1, the modified configuration parameters of historical virtual camera 1 are displayed. In response to a configuration save operation on the historical virtual camera sequence, the configuration information of the historical virtual camera sequence is saved.

[0155] For steps 2 and 3, please refer to the modification and configuration saving operations in the above steps, which will not be repeated here.

[0156] Using the above method, animators can modify historical virtual camera sequences that have already been created. The modification operation is simple and quick, without requiring animators to manually adjust the keyframes of the virtual cameras that need to be modified, thus improving the efficiency of configuring virtual cameras.

[0157] In some embodiments, the user interface also displays a first migration control and a second migration control.

[0158] The first migration control is used to control the migration of the virtual camera sequence in a first format, and the second migration control is used to control the migration of the virtual camera sequence in a second format. Migration refers to copying the virtual camera sequence to another storage path for use in the creation and configuration of other projects. Here, "project" can be understood as the project for creating and configuring animation sequences or virtual camera sequences.

[0159] The first format is the format supported and recognized by the camera movement tool, and the second format is the format supported and recognized by the game engine.

[0160] In some embodiments, certain game engines do not support the operation of camera movement tools, for example, due to version incompatibility or the camera movement tools not being installed. In such cases, if it is necessary to reuse the virtual camera sequence configured through the camera movement tools, but the game engine cannot recognize the first format, the virtual camera sequence needs to be converted from the first format to the second format before being migrated to the game engine project.

[0161] For example, such as Figure 4 As shown, the user interface 400 displays a first migration control 410 and a second migration control 411. The first migration control 410 is used to control the migration of the virtual camera sequence in a first format, and the second migration control 411 is used to control the migration of the virtual camera sequence in a second format.

[0162] In some embodiments, in response to an operation on a first migration control, configuration information of a virtual camera sequence is saved to a target storage path in a first format, the first format being a format supported and recognized by the camera movement tool.

[0163] In some embodiments, in response to an operation on a first migration control, a path selection interface is displayed, and in response to a selection operation on a target storage path, configuration information of the virtual camera sequence is saved to the target storage path in a first format.

[0164] In some embodiments, in response to an operation on the second migration control, configuration information of the virtual camera sequence is saved to a target storage path in a second format, which is a format that the game engine supports and recognizes.

[0165] For example, the configuration information of the virtual camera sequence is saved to the target storage path in a CineCamera-type camera format. The migrated virtual camera sequence is as follows: Figure 9 As shown, the short vertical lines represent keyframes.

[0166] In some embodiments, when the configuration information of the virtual camera sequence is saved to the target storage path in a second format, each frame of the virtual camera sequence is determined as a keyframe to ensure that the virtual camera can perform normal camera movement and shooting.

[0167] In some embodiments, in response to an operation on the second migration control, a path selection interface is displayed, and in response to a selection operation on the target storage path, the configuration information of the virtual camera sequence is saved to the target storage path in a second format.

[0168] The target storage path mentioned above is the storage path for the virtual camera sequence, selected in the path selection interface. The path selection interface displays at least one storage path.

[0169] The above method enables the reuse of virtual camera sequences created and generated using camera movement tools in game engines, avoiding restrictions on the application of virtual camera sequences.

[0170] In some embodiments, this application also provides a cropping function for virtual cameras.

[0171] In some embodiments, the switching operation for a historical virtual camera sequence may include at least one of the steps 1 to 3.

[0172] Step 1: In response to the switching operation for the fourth virtual camera in the virtual camera sequence, determine the pointer time, which is the timestamp of the virtual camera to be switched. The shooting period of the fourth virtual camera starts from the first timestamp and ends at the second timestamp.

[0173] The timestamp mentioned in the embodiments of this application refers to a moment, which can also be simply understood as a frame.

[0174] Step 2: If the pointer time is at the first timestamp, then switch the fourth virtual camera in the virtual camera sequence to the target virtual camera. The shooting time of the target virtual camera starts from the first timestamp and ends at the second timestamp.

[0175] In some embodiments, such as Figure 10 As shown, if the pointer time is at the first timestamp 1010, the fourth virtual camera in the virtual camera sequence will be switched to the target virtual camera. The shooting period of the target virtual camera will start from the first timestamp 1010 and end at the second timestamp 1020.

[0176] For example, if the first timestamp is 10s and the second timestamp is 20s, and the pointer time is 10s, then the fourth virtual camera in the virtual camera sequence will be switched to the target virtual camera, and the shooting time of the target virtual camera will start from 10s and end at 20s.

[0177] Step 3: If the pointer time is between the first timestamp and the second timestamp, then add a target virtual camera to the virtual camera sequence. The shooting time of the fourth virtual camera is adjusted to start from the first timestamp and end at the pointer time, and the shooting time of the target virtual camera starts from the pointer time and ends at the second timestamp.

[0178] In some embodiments, such as Figure 10 As shown, if the pointer time is between the first timestamp 1010 and the second timestamp 1020, a target virtual camera is added to the virtual camera sequence. The shooting period of the fourth virtual camera is adjusted to start from the first timestamp 1010 and end at the pointer time, while the shooting period of the target virtual camera starts from the pointer time and ends at the second timestamp 1020. For example, if the pointer time is at the third timestamp 1030, the shooting period of the fourth virtual camera is adjusted to start from the first timestamp 1010 and end at the third timestamp 1030, while the shooting period of the target virtual camera starts from the third timestamp 1030 and ends at the second timestamp 1020.

[0179] For example, if the first timestamp is 10s and the second timestamp is 20s, and the pointer time is 15s, then a target virtual camera is added to the virtual camera sequence. The shooting time of the fourth virtual camera is adjusted to start from 10s and end at 15s, and the shooting time of the target virtual camera starts from 15s and ends at 20s.

[0180] In some embodiments, after completing the switching operation for the fourth virtual camera in the virtual camera sequence described above, a preview image captured by the virtual camera sequence is displayed. For example... Figure 10 As shown, the preview image 1040 obtained from the virtual camera sequence is displayed.

[0181] The above methods enable animators to quickly switch between virtual cameras, improving the efficiency of virtual camera configuration.

[0182] In some embodiments, the user interface also displays animation generation controls.

[0183] For example, such as Figure 4 As shown, the user interface 400 also displays an animation generation control 412.

[0184] The animation generation control is used to control the generation of videos based on virtual camera sequences that capture virtual scenes.

[0185] In some embodiments, in response to an operation on an animation generation control, a video is generated based on a sequence of virtual cameras capturing a virtual scene.

[0186] This application also proposes a camera movement tool, and provides a block diagram of the functional modules of this camera movement tool. The virtual camera is also referred to as a lens in the diagram.

[0187] Please refer to Figure 11 It shows a block diagram of a public preset addition module of a camera movement tool provided in one embodiment of this application.

[0188] The public preset addition module is a major component of the camera movement tool. It includes pre-set descriptive content (preset category, preset name, preset default parameter value) as well as lens generation rules and lens movement rules. Therefore, users can interact with the computer through the controls displayed in the user interface to trigger the configuration of the virtual camera.

[0189] The public preset addition module calls the stored information of different preset objects (including preset virtual cameras), and combines it with the bone information of the object being filmed to rewrite the coordinate position, focal length, object being filmed and focal distance of the virtual camera in the virtual scene, and draws splines of different motion trajectories in real time to complete the generation and instantiation of the virtual camera.

[0190] Please refer to Figure 12 It shows a block diagram of the lens and sequence creation module of the camera movement tool provided in one embodiment of this application.

[0191] Once the virtual cameras are instantiated, they exist within the virtual scene and can be directly displayed and invoked, as well as used for real-time signal output such as real-time rendering. To obtain a real-time rendering sequence or to pre-process a virtual camera sequence, an animation sequence needs to be created. An animation sequence includes the virtual camera sequence, audio track, and animation of the subject being filmed.

[0192] Users can generate an animation sequence by inputting the start and end frames and frame rate, or by filling in a standardized storyboard, and then clicking the "Create Sequence" button to trigger the animation sequence generation function. This function creates an animation sequence and simultaneously creates a virtual camera array for the selected virtual camera. By iterating through the virtual camera array and determining the configuration parameters of each virtual camera, it creates the necessary motion trajectories and keyframes for each virtual camera in the created animation sequence, enabling the movement of the virtual cameras to be reproduced in the animation sequence.

[0193] The camera movement tool also provides another user interface that allows users to modify the virtual camera's configuration parameters in real time, and to rewrite the virtual camera's motion rules and motion rules in the animation sequence in real time.

[0194] The camera movement tool also provides conversion functions, enabling virtual camera sequences based on the camera movement tool to be converted into virtual camera sequences that can be supported by the game engine, and enabling animation sequences based on the camera movement tool to be converted into ordinary animation sequences, without relying on the operation of the camera movement tool.

[0195] Please refer to Figure 13 It shows a block diagram of a quick editing and preview module of a camera movement tool provided in one embodiment of this application.

[0196] The built-in virtual camera switching logic of the animation sequence is quite complex and cannot preview the shot of each camera at the current time. Therefore, the camera movement tool also provides a user interface that can simulate a signal switcher, enabling users to quickly complete virtual camera editing and virtual camera preview functions.

[0197] Clicking "Start Preview Control" will display the real-time footage of all virtual cameras in the virtual camera sequence in the user interface. Selecting a virtual camera will bind the virtual camera sequence track to the current virtual camera track, ranging from the current frame to the end frame. Each segment will be a virtual camera chapter (the shooting time of a virtual camera).

[0198] When performing rapid editing of a virtual camera sequence, the camera movement tool first determines the position of the current frame to see if it is within an already completed virtual camera section. If the current frame is the starting frame of a virtual camera section, the target virtual camera is selected, and the virtual camera bindings of that section are converted to the target virtual camera binding's view. If the current frame is in the middle of a virtual camera section, that section is split, with the portion before the current frame being the original virtual camera binding's view, and the portion after the current frame being the target virtual camera binding's view.

[0199] The technical solution provided in this application can effectively improve the efficiency of virtual camera configuration, support rapid creation, adjustment and repeated modification, reduce the learning cost for users to use game engines for animation production, be user-friendly for users with no prior experience, and be reusable across projects.

[0200] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0201] Please refer to Figure 14 This diagram illustrates a block diagram of a virtual camera configuration device according to an embodiment of this application. The device has the functionality to implement the method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be installed within a terminal device. For example... Figure 14 As shown, the device 1400 includes: a first display module 1410, a second display module 1420, a third display module 1430, and a storage module 1440.

[0202] The first display module 1410 is used to display the user interface of the camera movement tool, and the user interface displays import controls.

[0203] The second display module 1420 is configured to display a sequence of virtual cameras generated based on imported data in response to an operation on the import control, the sequence of virtual cameras including at least one virtual camera, the imported data being used to define the type and order of each of the virtual cameras.

[0204] The third display module 1430 is configured to display configuration parameters of the first virtual camera in response to an operation on the first virtual camera among the at least one virtual cameras. The configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and the configuration parameters are automatically generated by the camera movement tool based on the imported data.

[0205] The storage module 1440 is configured to, in response to a configuration storage operation for the virtual camera sequence, store the configuration information of the virtual camera sequence, the configuration information including the configuration parameters of each virtual camera included in the virtual camera sequence.

[0206] In some embodiments, the second display module 1420 is configured to, in response to an operation on the import control, acquire the import data; for the virtual camera defined by the import data, determine the configuration parameters of the virtual camera according to the type of the virtual camera and the location information of the shooting object; and generate and display the virtual camera sequence according to the order of each virtual camera defined by the import data and the configuration parameters of each virtual camera.

[0207] In some embodiments, the second display module 1420 is configured to, if the virtual camera is a fixed-lens camera, determine the configuration parameters of the virtual camera based on the position information of the object being filmed, wherein the configuration parameters of the virtual camera include the position of the virtual camera; or,

[0208] If the virtual camera is a dynamic lens, then the configuration parameters of the virtual camera are determined based on the position information of the subject being filmed. The configuration parameters of the virtual camera include the position and motion trajectory of the virtual camera.

[0209] In some embodiments, such as Figure 15 As shown, the device 1400 also includes a fourth display module 1450.

[0210] The fourth display module 1450 is used to display the modified configuration parameters of the first virtual camera in response to a modification operation on the configuration parameters of the first virtual camera.

[0211] In some embodiments, the user interface also displays at least one preset virtual camera, which has at least one initial configuration parameter;

[0212] The fourth display module 1450 is further configured to, in response to an operation on the second virtual camera among the at least one preset virtual cameras, display a configuration interface for the second virtual camera; in the configuration interface of the second virtual camera, display at least one configuration parameter configured for the second virtual camera, the at least one configuration parameter including: the addition position of the second virtual camera in the virtual camera sequence; in response to a configuration completion operation on the second virtual camera, add and display the second virtual camera in the virtual camera sequence according to the addition position.

[0213] In some embodiments, the user interface also displays a preview area of ​​the virtual camera sequence;

[0214] The fourth display module 1450 is further configured to, in response to a preview operation on the virtual camera sequence, display preview images corresponding to each virtual camera included in the virtual camera sequence in the preview area.

[0215] In some embodiments, the fourth display module 1450 is further configured to stop the rendering process of the preview screen and delete the rendered preview screen in response to an end preview operation for the virtual camera sequence.

[0216] In some embodiments, the user interface also displays at least one historical virtual camera sequence, which refers to a virtual camera sequence that has been configured and saved.

[0217] The fourth display module 1450 is further configured to, in response to an operation on the third virtual camera in the historical virtual camera sequence, display the configuration parameters of the third virtual camera; in response to a modification operation on the configuration parameters of the third virtual camera, display the modified configuration parameters of the third virtual camera; and in response to a configuration saving operation on the historical virtual camera sequence, save the configuration information of the historical virtual camera sequence.

[0218] In some embodiments, the user interface also displays a first migration control and a second migration control;

[0219] The fourth display module 1450 is further configured to, in response to an operation on the first migration control, save the configuration information of the virtual camera sequence to a target storage path in a first format, wherein the first format is a format supported and recognized by the camera movement tool; or,

[0220] The fourth display module 1450 is further configured to, in response to an operation on the second migration control, save the configuration information of the virtual camera sequence to a target storage path in a second format, wherein the second format is a format supported and recognized by the game engine.

[0221] In some embodiments, the fourth display module 1450 is further configured to, in response to a switching operation for a fourth virtual camera in the virtual camera sequence, determine a pointer time, wherein the pointer time is a timestamp at which the virtual camera needs to be switched, and the shooting period of the fourth virtual camera starts from a first timestamp and ends at a second timestamp; if the pointer time is at the first timestamp, then the fourth virtual camera in the virtual camera sequence is switched to a target virtual camera, and the shooting period of the target virtual camera starts from the first timestamp and ends at the second timestamp; if the pointer time is between the first timestamp and the second timestamp, then a target virtual camera is added to the virtual camera sequence, and the shooting period of the fourth virtual camera is adjusted to start from the first timestamp and end at the pointer time, and the shooting period of the target virtual camera starts from the pointer time and ends at the second timestamp.

[0222] In some embodiments, the user interface also displays animation generation controls, and the device 1400 further includes a generation module 1460.

[0223] The generation module 1460 is configured to generate a video of the virtual scene captured by the virtual camera sequence in response to an operation on the animation generation control.

[0224] It should be noted that the above embodiments only illustrate the division of the above functional modules when implementing the device. In actual applications, the above functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0225] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0226] Please refer to Figure 16This illustrates a structural block diagram of a terminal device provided in another exemplary embodiment of this application.

[0227] Typically, computer device 1600 includes a processor 1601 and a memory 1602.

[0228] Processor 1601 may include one or more processing cores, such as a quad-core processor, a nine-core processor, etc. Processor 1601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

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

[0230] Those skilled in the art will understand that Figure 16 The structure shown does not constitute a limitation on the computer device 1600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0231] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein the storage medium stores a computer program that, when executed by a processor of a computer device, implements the above-described configuration method for a virtual camera.

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

[0233] In an exemplary embodiment, a computer program product is also provided, comprising a computer program stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium and executes the computer program, causing the terminal device to perform the virtual camera configuration method described above.

[0234] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. In the implementation of this application, the data collection and processing should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject (or have a legal basis), and conduct subsequent data use and processing within the scope of laws, regulations, and the authorization of the personal information subject.

[0235] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for configuring a virtual camera, characterized in that, The method includes: The user interface for the camera movement tool is displayed, and the user interface includes an import control. In response to an operation on the import control, a sequence of virtual cameras generated based on the import data is displayed, the sequence of virtual cameras including at least one virtual camera, the import data being used to define the type and order of each of the virtual cameras; In response to an operation on a first virtual camera among the at least one virtual cameras, configuration parameters of the first virtual camera are displayed. These configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and are automatically generated by the camera movement tool based on the imported data. In response to a configuration save operation for the virtual camera sequence, the configuration information of the virtual camera sequence is saved, the configuration information including the configuration parameters of each virtual camera included in the virtual camera sequence; In response to a switching operation for the fourth virtual camera in the virtual camera sequence, a pointer time is determined, the pointer time being the timestamp at which the virtual camera needs to be switched, and the shooting period of the fourth virtual camera starting from the first timestamp and ending at the second timestamp; If the pointer time is at the first timestamp, then the fourth virtual camera in the virtual camera sequence is switched to the target virtual camera, and the shooting period of the target virtual camera starts from the first timestamp and ends at the second timestamp; If the pointer time is between the first timestamp and the second timestamp, a target virtual camera is added to the virtual camera sequence. The shooting period of the fourth virtual camera is adjusted to start from the first timestamp and end at the pointer time, and the shooting period of the target virtual camera starts from the pointer time and ends at the second timestamp.

2. The method according to claim 1, characterized in that, The step of displaying a virtual camera sequence generated based on the imported data in response to an operation on the import control includes: In response to an operation on the import control, the imported data is obtained; For the virtual camera defined by the imported data, the configuration parameters of the virtual camera are determined according to the type of the virtual camera and the location information of the shooting object; The virtual camera sequence is generated and displayed based on the order of the virtual cameras defined by the imported data and the configuration parameters of each virtual camera.

3. The method according to claim 2, characterized in that, The step of determining the configuration parameters of the virtual camera based on the type of virtual camera and the location information of the subject being filmed includes: If the virtual camera is a fixed lens, then the configuration parameters of the virtual camera are determined based on the location information of the object being filmed. The configuration parameters of the virtual camera include the location of the virtual camera. or, If the virtual camera is a dynamic lens, then the configuration parameters of the virtual camera are determined based on the position information of the subject being filmed. The configuration parameters of the virtual camera include the position and motion trajectory of the virtual camera.

4. The method according to claim 1, characterized in that, After displaying the configuration parameters of the first virtual camera, the method further includes: In response to a modification operation on the configuration parameters of the first virtual camera, the modified configuration parameters of the first virtual camera are displayed.

5. The method according to claim 1, characterized in that, The user interface also displays at least one preset virtual camera, which has at least one initial configuration parameter. The method further includes: In response to an operation on the second virtual camera among the at least one preset virtual cameras, the configuration interface of the second virtual camera is displayed; The configuration interface of the second virtual camera displays at least one configuration parameter configured for the second virtual camera, including the addition position of the second virtual camera in the virtual camera sequence; In response to the configuration completion operation for the second virtual camera, the second virtual camera is added to the virtual camera sequence for display according to the added position.

6. The method according to claim 1, characterized in that, The user interface also displays a preview area of ​​the virtual camera sequence; The method further includes: In response to a preview operation on the virtual camera sequence, preview images of each virtual camera included in the virtual camera sequence are displayed in the preview area.

7. The method according to claim 6, characterized in that, The method further includes: In response to the end preview operation for the virtual camera sequence, the rendering process of the preview screen is stopped, and the rendered preview screen is deleted.

8. The method according to claim 1, characterized in that, The user interface also displays at least one historical virtual camera sequence, which refers to a virtual camera sequence that has been configured and saved. The method further includes: In response to an operation targeting the third virtual camera in the historical virtual camera sequence, the configuration parameters of the third virtual camera are displayed; In response to a modification operation on the configuration parameters of the third virtual camera, the modified configuration parameters of the third virtual camera are displayed; In response to the configuration save operation for the historical virtual camera sequence, the configuration information of the historical virtual camera sequence is saved.

9. The method according to claim 1, characterized in that, The user interface also displays a first migration control and a second migration control; The method further includes: In response to an operation on the first migration control, the configuration information of the virtual camera sequence is saved to the target storage path in a first format, wherein the first format is a format that the camera movement tool supports and can recognize. or, In response to an operation on the second migration control, the configuration information of the virtual camera sequence is saved to a target storage path in a second format, which is a format supported and recognized by the game engine.

10. The method according to claim 1, characterized in that, The user interface also displays animation generation controls, and the method further includes: In response to an operation on the animation generation control, a video is generated based on the virtual camera sequence capturing the virtual scene.

11. A configuration device for a virtual camera, characterized in that, The device includes: The first display module is used to display the user interface of the camera movement tool, and the user interface displays import controls; The second display module is configured to display a sequence of virtual cameras generated based on imported data in response to an operation on the import control. The sequence of virtual cameras includes at least one virtual camera, and the imported data is used to define the type and order of each virtual camera. The third display module is configured to display configuration parameters of the first virtual camera in response to an operation on the first virtual camera among the at least one virtual cameras. The configuration parameters are used to determine the camera movement rules of the virtual camera in the virtual scene, and the configuration parameters are automatically generated by the camera movement tool based on the imported data. A save module is configured to save the configuration information of the virtual camera sequence in response to a configuration save operation for the virtual camera sequence, the configuration information including the configuration parameters of each virtual camera included in the virtual camera sequence; The fourth display module is configured to, in response to a switching operation for the fourth virtual camera in the virtual camera sequence, determine a pointer time, wherein the pointer time is the timestamp at which the virtual camera needs to be switched, and the shooting period of the fourth virtual camera starts from a first timestamp and ends at a second timestamp; if the pointer time is at the first timestamp, then the fourth virtual camera in the virtual camera sequence is switched to the target virtual camera, and the shooting period of the target virtual camera starts from the first timestamp and ends at the second timestamp; if the pointer time is between the first timestamp and the second timestamp, then the target virtual camera is added to the virtual camera sequence, and the shooting period of the fourth virtual camera is adjusted to start from the first timestamp and end at the pointer time, and the shooting period of the target virtual camera starts from the pointer time and ends at the second timestamp.

12. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method as described in any one of claims 1 to 10.

14. A computer program product, characterized in that, The computer program product includes a computer program that is loaded and executed by a processor to implement the method as claimed in any one of claims 1 to 10.