Virtual camera adjustment method and device, equipment and medium thereof

CN122824973APending Publication Date: 2026-09-25GUANGZHOU CULUO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611179271.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-09-25

AI Technical Summary

Technical Problem

当预设方案以固定快照作为恢复目标时,虚拟摄像机从受控姿态切换回原始姿态的过程极易产生可见的视角跳变,影响观看的连贯性

Benefits of technology

[0008]可以看出,通过以上的实施例可知,本申请有益效果主要体现在以下几个方面:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122824973A_ABST
    Figure CN122824973A_ABST
Patent Text Reader

Abstract

The application relates to a virtual camera adjustment method and device, equipment and medium. Camera control configuration information is acquired; current attitude parameter of a virtual camera in an original camera control mode is acquired; target attitude parameter corresponding to the current attitude parameter is determined based on the camera control mode and the attitude control parameter; based on target transition duration and target transition curve information contained in target transition configuration information, the virtual camera is controlled to change from a current framing attitude to a target framing attitude corresponding to the target attitude parameter through a target framing transition stage; and in response to meeting a framing recovery condition, based on recovery transition duration and recovery transition curve information contained in recovery transition configuration information, the virtual camera is controlled to change back to the framing attitude in the original camera control mode through a recovery framing transition stage. The application realizes a smooth closed loop from original control to preset control and back to original control, thereby avoiding picture jumping in the attitude switching process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual interaction technology, and in particular to a virtual camera adjustment method, apparatus, device, and medium. Background Technology

[0002] During interaction in a virtual scene, the virtual camera is responsible for presenting the user with content from a specific perspective. To provide a more targeted viewing angle in different interaction scenarios, existing technologies typically pre-configure corresponding camera control schemes for specific interactive behaviors. When the user triggers the interactive behavior, the system calls the preset camera parameters to adjust the virtual camera to the target posture to present the desired visual effect; when the interactive behavior ends or the control scheme is executed, the virtual camera returns to its original posture before being called.

[0003] Such approaches typically aim to restore a static snapshot saved at the moment of triggering. However, the interactive states in virtual scenes are constantly changing. Even during the period when the preset control scheme is in effect, the control logic originally followed by the camera will continue to calculate based on the current situation, generating new real-time postures. When the preset scheme uses a fixed snapshot as the restoration target, the process of the virtual camera switching from the controlled posture back to the original posture can easily produce visible perspective jumps, affecting the continuity of the viewing experience.

[0004] Improving how virtual cameras recover their posture after preset control ends is a problem that needs to be solved. Summary of the Invention

[0005] The purpose of this application is to solve the above-mentioned problems by providing a virtual camera adjustment method and corresponding apparatus, devices, non-volatile readable storage media, and computer program products.

[0006] According to one aspect of this application, a method for adjusting a virtual camera is provided, comprising: Obtain camera control configuration information, which includes camera control mode and control parameter information. The control parameter information includes attitude control parameters, target transition configuration information, and recovery transition configuration information. Obtain the current attitude parameters of the virtual camera in the original camera control mode; Determine the target attitude parameters based on the camera control mode and attitude control parameters; Based on the target transition duration and target transition curve information contained in the target transition configuration information, the virtual camera is controlled to change from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters. In response to the fulfillment of the recovery framing conditions, based on the recovery transition duration and recovery transition curve information contained in the recovery transition configuration information, the virtual camera is controlled to change from the target framing posture to the framing posture in the original camera control mode.

[0007] According to another aspect of this application, a virtual camera adjustment device is provided, comprising: The control configuration acquisition module is used to acquire camera control configuration information, which includes camera control mode and control parameter information. The control parameter information includes attitude control parameters, target transition configuration information and recovery transition configuration information. The attitude parameter acquisition module is used to acquire the current attitude parameters of the virtual camera in the original camera control mode; The target attitude determination module is used to determine the target attitude parameters based on the camera control mode and attitude control parameters. The target pose transition module is used to control the virtual camera to change from the current framing pose corresponding to the current pose parameter to the target framing pose corresponding to the target pose parameter, based on the target transition duration and target transition curve information contained in the target transition configuration information. The posture recovery transition module is used to control the virtual camera to change from the target framing posture to the framing posture in the original camera control mode in response to the fulfillment of the framing recovery conditions, based on the recovery transition duration and recovery transition curve information contained in the recovery transition configuration information.

[0008] As can be seen from the above embodiments, the beneficial effects of this application are mainly reflected in the following aspects: First, this application obtains the current posture parameters output in real time by the virtual camera in the original camera control mode, enabling the preset posture adjustment to be based on an accurate reflection of the original control state. In related technologies, preset control schemes typically use the static posture saved at the trigger moment as a reference, ignoring the fact that the original control logic continues to generate new real-time postures during control execution. This application replaces static snapshots with real-time output, providing a benchmark reference that conforms to the current interaction state for posture adjustment, allowing the subsequent regression process to be based on data that accurately reflects scene changes.

[0009] Secondly, this application sets the return target for restoring the framing transition to the real-time output framing posture in the original camera control mode, rather than the static posture at the moment of triggering the adjustment. This ensures that the return process remains synchronized with the dynamic changes in the interactive state of the scene during the adjustment period. In related technologies, the restoration target is often a fixed snapshot saved at the trigger moment. When the preset control ends and this snapshot is used as the return target, the difference between the snapshot and the real-time state can easily cause a jump in the viewpoint. This application avoids this jump problem by using the real-time output posture as the return target, ensuring that the image remains continuous during the handover of control.

[0010] Furthermore, this application configures independent transition durations and transition curve information for the target framing transition and the return-to-original framing transition, allowing the two stages—entering the preset posture and returning to the original posture—to adapt to different transition rhythms. In related technologies, the two stages typically use a uniform transition method, making it difficult to simultaneously address the differentiated needs of entering the preset viewpoint and returning to the original viewpoint. This application, by configuring transition parameters separately, achieves controllable viewpoint adjustment while maintaining the continuity of the transition process.

[0011] Furthermore, this application uses the conditions for restoring the viewfinder as the criterion for initiating the viewfinder restoration transition, enabling the exit timing of the preset posture to be coordinated with the actual interaction process. In related technologies, the exit of preset controls is usually fixed at a single time point, lacking linkage with the actual interaction situation in the scene. This application, through a conditional triggering mechanism, makes the determination of the restoration timing more flexible and can adapt to the actual needs of different interaction scenarios.

[0012] Through the aforementioned improvements, this application constructs a closed-loop process from initial control to preset adjustment and then to dynamic regression of initial control in four aspects: obtaining real-time attitude parameters as a reference, setting real-time attitude as a regression target, configuring independent transition parameters for the two transitions, and initiating regression through conditional triggering. Compared with related technologies that use fixed snapshots as references and regression targets, uniformly configure transition parameters, and fix exit timing, this application improves the accuracy of the attitude reference, the real-time nature of the regression target, the flexibility of transition control, and the adaptability of exit timing, providing a solution for camera control in virtual scenes that balances flexibility and viewing continuity. Attached Figure Description

[0013] Figure 1 This is an exemplary network architecture for this application; Figure 2 This is a flowchart illustrating one embodiment of the virtual camera adjustment method of this application; Figure 3 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application based on a pose replacement mode and a pose overlay mode; Figure 4 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application based on a multi-offset overlay rule; Figure 5 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application based on a horizontal rotation angle constraint. Figure 6 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application, which determines a transition configuration based on transition reference information. Figure 7 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application based on the determination of effective conditions; Figure 8 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application based on an input interruption mechanism. Figure 9 This is a flowchart illustrating an embodiment of the virtual camera adjustment method based on viewpoint offset control according to this application. Figure 10 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application, which displays dynamic blur effects and image afterimages. Figure 11 This is a flowchart illustrating an embodiment of the virtual camera adjustment method of this application, in which a picture-in-picture window displays the framing posture under the original camera control mode; Figure 12 This is a schematic block diagram of the virtual camera adjustment device of this application; Figure 13 This is a schematic diagram of the structure of a virtual camera adjustment device used in this application. Detailed Implementation

[0014] The technical solution of this application can be widely applied to various network architectures to adapt to different types and scales of game applications. In a network architecture such as... Figure 1In the typical network architecture shown, the player's terminal device accesses the game service cluster via the network. This cluster consists of multiple game servers 81. A microservice architecture manages and maintains the operational resources of these game servers 81, providing multiple service instances. Each service instance is responsible for different services. For example, some service instances can be used to maintain the front-end service for the terminal device 80 to access the game, while others can be responsible for the game's virtual camera adjustment gameplay service, providing players with corresponding virtual camera adjustment functions for gameplay. The player's terminal device 80 has a computer program product implemented according to the virtual camera adjustment method of this application installed and running, or the terminal device can be connected to a cloud server container, where the computer program product runs. After the computer program product runs, it accesses the game service cluster, allowing the player to control the player character in the game through the terminal device and interact with various service instances of the game, such as engaging in combat with hostile entities.

[0015] Each service instance can maintain a real-time connection with the player's terminal device 80 via the network, handling various events and interactions in the game, such as the movement and attacks of virtual objects, and virtual camera adjustments. The server provides necessary data support to the terminal device to ensure smooth game operation. This data includes, but is not limited to, data related to virtual camera adjustment methods. These datasets contain map model data in the virtual interactive scene and resource model data of its combat scene resources, such as scene buildings, user character models, enemy player models, enemy monster models, and various other neutral or non-biological models, which are used by the terminal device 80 to render and generate corresponding real-time images. Based on the received data related to virtual camera adjustment methods, the terminal device 80 identifies the corresponding target combat scene type based on the combat interaction status information between the user's virtual object and the enemy's virtual object. Then, based on the camera control mode corresponding to the target combat scene type, it controls the framing posture of the virtual camera to serve the user's virtual combat experience.

[0016] This application is not only applicable to the gaming experience of single players, but can also be extended to multiplayer online game environments. In multiplayer games, multiple players' (users') terminal devices connect to the game service cluster simultaneously, and each service instance needs to handle interaction requests from multiple players and update the game status in real time.

[0017] In an exemplary application scenario of this application, consider a massively multiplayer online role-playing game (MMORPG) in which players can freely explore a vast open-world map.

[0018] The virtual camera adjustment method provided in this application can be widely deployed in various virtual interactive virtual environment systems, especially suitable for application scenarios such as video games, virtual reality experiences, and simulation training platforms. In a typical technical architecture, the execution entity of this application is usually a terminal device running a client application, such as a personal computer, game console, or mobile device. The game engine or application framework running on the terminal device integrates combat gameplay processing middleware and logic processing units, responsible for real-time rendering of virtual scenes, handling user interactions, and managing the playback of combat performance resources. The virtual camera's resources and related strategy configuration data can be stored locally on the terminal device or dynamically obtained from a remote server as needed. Real-time monitoring, strategy matching, and virtual camera adjustment processes can be completed locally on the client to ensure low-latency response and a smooth experience.

[0019] During virtual camera adjustment, the system first acquires camera control configuration information, which includes the camera control mode and control parameters. These control parameters specifically carry attitude control parameters, target transition configuration information, and recovery transition configuration information. Simultaneously, the system acquires the current attitude parameters output in real-time by the virtual camera under the original camera control mode. Then, based on the camera control mode, the system processes the current attitude parameters using the attitude control parameters to determine the target attitude parameters. After the target attitude parameters are generated, the system, based on the target transition configuration information, controls the virtual camera to smoothly transition from its current framing posture to the target framing posture corresponding to the target attitude parameters, and maintains this target framing posture. Once the maintenance phase ends, the system, based on the recovery transition configuration information, controls the virtual camera to undergo a recovery framing transition phase, smoothly changing the framing posture back to the framing posture under the original camera control mode, completing a full temporary intervention.

[0020] In the above process, when the camera control mode in the camera control configuration information is attitude replacement mode, the current attitude parameter is directly replaced with the attitude control parameter to obtain the target attitude parameter. When the camera control mode is attitude overlay mode, the attitude control parameter is used as an offset and overlaid with the current attitude parameter to generate the target attitude parameter. If it is attitude overlay mode and there are multiple control parameter information for the same attitude parameter, the system will check whether it carries a final overlay flag: if there is no flag, the attitude control parameters in each control parameter information are all added to the current attitude parameter as offsets; if the flag exists, the attitude control parameter in the control parameter information with the flag is used as the unique offset for overlay to obtain the target attitude parameter. When the control parameter information also includes the horizontal rotation angle adjustment amount, reference axis, lateral mode, and angle limit threshold, the system will determine the target rotation direction on both sides of the reference axis based on the lateral mode during the process of determining the target attitude parameters. The system will adjust the current horizontal rotation angle according to the camera control mode and the adjustment amount to obtain the target rotation angle. When the target rotation angle is less than the angle limit threshold, it will be corrected to the angle represented by the threshold to prevent the virtual camera from crossing the reference axis.

[0021] In addition, at any point during the target framing transition phase, the maintenance phase, or the recovery framing transition phase, the system will detect the amount of view change caused by the view adjustment operation in real time. Once the amount of change exceeds the input interruption threshold carried in the camera control configuration information, the system will immediately terminate the execution of the camera control configuration information and switch the framing posture control to respond to the view adjustment operation.

[0022] If the control parameter information also includes a viewpoint offset value, the system controls the virtual camera's observation point position based on this viewpoint offset value during the target framing transition phase to the recovery framing transition phase, and then transitions the observation point back to the observation point position in the original camera control mode during the recovery framing transition phase. All of the above scenarios strictly follow a unified process: first, acquiring configuration information and the original posture; then, determining the target posture based on the camera control mode and corresponding adjustment rules; and finally, implementing transition control based on the transition configuration and returning to the original control. This demonstrates the complete execution path of this application under different control modes and parameter constraints.

[0023] The term "system" as used in this application may refer to a collection of software and hardware environments on the game client and / or server sides, used to implement various functions in virtual interactive scenes. It includes components such as game engines, physics systems, collision detection modules, special effects rendering modules, and audio systems. These components work together to process player input, execute game logic, update game state, generate visual and auditory feedback, and provide players with an interactive experience.

[0024] After providing a general overview of the exemplary network architecture and application scenarios of this application, as well as some basic concepts, the following will continue to describe several specific embodiments of this application.

[0025] Please see Figure 2 The virtual camera adjustment method of this application includes steps S1100 to S1500 in some embodiments, and each step is described below.

[0026] Step S1100: Obtain camera control configuration information.

[0027] The purpose of camera control configuration information is to provide the necessary mode selection and parameter basis for subsequent determination of target attitude, execution of target framing transition phase, and restoration of framing transition phase.

[0028] Camera control configuration information is a set of structured data used to describe the various settings involved in temporarily controlling the framing posture of a virtual camera. The source of camera control configuration information can take several forms during implementation. For example, it can be pre-compiled as a data table asset and read when needed; it can be bound to the motion data of virtual objects, associated with specific trigger events, and retrieved when the event is activated; or it can be dynamically generated and passed in by external logic modules through parameter passing during program execution.

[0029] The camera control configuration information consists of two parts: camera control mode and control parameter information. The camera control mode defines the adjustment strategy for processing the current attitude parameters of the virtual camera using the attitude control parameters in the control parameter information to obtain the target attitude parameters.

[0030] In some specific examples, camera control modes can include pose replacement mode and pose overlay mode. When the camera control mode is in pose replacement mode, the corresponding pose parameter adjustment method is to directly use the pose control parameters as the target pose parameters. During the control period, the virtual camera's framing pose is taken over by this target pose parameter, and the output of the original camera control mode logic is temporarily replaced. When the camera control mode is in pose overlay mode, the corresponding pose parameter adjustment method is to use the pose control parameters as offsets and overlay them onto the current pose parameters output in real time by the original camera control mode logic to form the target pose parameters. The original camera control mode logic continues to operate and output real-time pose values ​​during the pose overlay mode.

[0031] Control parameter information is another component of camera control configuration information. Specifically, it includes attitude control parameters, target transition configuration information, and recovery transition configuration information. Attitude control parameters describe the desired adjustment amount of the virtual camera's framing posture in one or more attribute dimensions. Depending on the actual application requirements, attitude control parameters can involve one or more attribute dimensions of the virtual camera's framing posture, including but not limited to horizontal rotation angle, pitch angle, roll angle, field of view size, and jib length. Taking horizontal rotation angle as an example, when the camera control mode is attitude replacement mode, the horizontal rotation angle value carried by the attitude control parameters represents the absolute angular position that the virtual camera should reach; when the camera control mode is attitude overlay mode, the horizontal rotation angle value carried by the attitude control parameters represents the offset accumulated above the current angle value. The offset can be positive to represent a certain rotation direction or negative to represent the opposite rotation direction.

[0032] Target transition configuration information defines the transition rules for the virtual camera to transition from the current framing pose to the target pose parameters. This information includes transition duration and transition curve information. Transition duration is the time taken for the current pose to change to the target pose; its specific value can be set according to the action rhythm or visual performance requirements, such as 0.2 seconds, 0.5 seconds, or 1.0 second. Transition curve information describes the distribution of the pose parameter change rate over time within the transition duration. Optional transition curve types include, but are not limited to, linear transition curves, ease-in transition curves, ease-out transition curves, and ease-in / ease-out transition curves. Furthermore, custom curve assets can be used to define more refined rate change patterns.

[0033] The recovery transition configuration information defines the transition rules for the virtual camera to switch from the target framing posture to the original camera control mode. This information also includes the recovery transition duration and curve information, and its basic structure is similar to the target transition configuration information. One difference between the recovery transition configuration information and the target transition configuration information lies in how the regression endpoint is determined: the endpoint of the target transition configuration information is the target posture parameter determined by the current posture parameters and posture control parameters at the time the camera control configuration information is acquired, and this target posture parameter is calculated before the transition begins; while the regression endpoint of the recovery transition configuration information is not a static fixed value saved at the start of the intervention, but rather a posture value dynamically calculated by the original camera control mode logic at every moment during the recovery framing transition phase, based on real-time changes in the virtual scene, including the position and orientation of the user's virtual object, and the presence of a gaze target. Therefore, the regression target pointed to by the recovery transition configuration information is dynamically updated throughout the entire recovery framing transition phase, allowing the screen transition after the intervention to seamlessly integrate into the real-time output of the original control system.

[0034] In one implementation, camera control configuration data is obtained by triggering an animation notification. When a user performs a specific interactive action in a virtual scene, an animation notification pre-placed in the animation resource associated with that action is activated. In response to the animation notification, the system reads the camera control mode and various control parameters pre-configured for that animation notification and assembles them into camera control configuration data.

[0035] In another implementation, the camera control configuration data originates from a pre-set data table. This data table stores pre-configured camera control configuration records, each record containing at least the spatial transformation data of the target virtual object, the spatial transformation data of the virtual camera, and transition time parameters. Upon receiving a trigger signal, the system reads the corresponding camera control configuration record from the data table based on the reference identifier carried in the signal, and parses the parameters therein into camera control mode, attitude control parameters, target transition configuration information, and recovery transition configuration information, thereby obtaining the camera control configuration data. The camera control configuration records in the data table can be pre-created using the visual configuration tool in the level editor.

[0036] Specifically, in the camera control configuration editor, designers can specify a virtual object in the scene as the target virtual object, establishing a spatial association between the virtual camera and the target virtual object. Then, they can directly drag and drop in the viewport or adjust the framing posture of the virtual camera relative to the target virtual object through the parameter panel to determine the desired visual effect in a WYSIWYG manner. Simultaneously, they can input transition time parameters to define the speed of subsequent posture changes. After configuration, the system encapsulates the spatial transformation data of the target virtual object, the spatial transformation data of the virtual camera, the transition time parameters, and the target specification method into a single camera control configuration record and exports it to a preset data table. The target specification method includes specifying the spatial position of the target virtual object as the target reference, or using the spatial position of the virtual camera as the target reference. When a preview is needed, the designer can select a record from the data table to trigger a preview command. The editor will drive the current virtual camera from its current framing posture, interpolating the transition time parameters in the record to the framing posture defined by that record, allowing for real-time verification of the final presentation effect within the editor. The camera control configuration record, after preview confirmation, can be read by the system at runtime and used as camera control configuration data.

[0037] In an example of a virtual scenario, a user-defined virtual object performs an action with camera movement effects during a confrontation. When this action reaches a specific moment associated with a triggering event, the system acquires a set of camera control configuration information. In this set of camera control configuration information, the camera control mode is set to attitude overlay mode, the attitude control parameters carry a horizontal rotation angle offset of -30 degrees, the transition duration in the target transition configuration information is 0.25 seconds and the transition curve is a fade-out curve, and the recovery transition configuration information has a recovery transition duration of 0.4 seconds and a recovery transition curve is a fade-in fade-out curve. The system first acquires the current horizontal rotation angle calculated in real time under the original camera control mode, adds this current horizontal rotation angle to the -30 degree offset, and obtains the target horizontal rotation angle. Subsequently, based on the target transition configuration information, the system transitions the virtual camera's horizontal rotation attitude to the target horizontal rotation angle within 0.25 seconds using the change characteristics of the fade-out curve and maintains this attitude. After the maintenance phase ends, the system, based on the recovery transition configuration information, transitions the virtual camera's horizontal rotation posture back to the original camera control mode within 0.4 seconds using the easing-in / easing-out curve characteristics. The horizontal rotation angle is calculated in real time for each frame. Throughout the recovery transition, the return target angle always follows the latest value output by the original control system. Even if the user's virtual object moves or the target switches during the action, the endpoint of the recovery process can adapt to the change synchronously, making the screen movement natural and continuous.

[0038] In one implementation, before acquiring camera control configuration data, the system can first perform a precondition judgment to determine whether to initiate subsequent framing posture control. Specifically, the system acquires the current combat state and target lock state, and simultaneously reads the pre-configured activation conditions corresponding to the camera control configuration data. The combat state indicates whether the system is currently in an interactive combat scenario, and the target lock state indicates whether there is a locked target virtual object. The activation conditions predefine the range of combat states that allow framing posture control (e.g., only allowed in combat, only allowed outside of combat) and the range of target lock states (e.g., only allowed when there is a locked target, only allowed when there is no locked target). When both the combat state and the target lock state meet their respective ranges in the activation conditions, the system continues to execute subsequent framing posture control steps; otherwise, the system ignores the camera control configuration data and does not perform any framing posture change. By using precondition judgment, the system can avoid the camera control configuration data being erroneously triggered in inappropriate scenarios, allowing the same set of configuration data to have different activation behaviors in different interactive scenarios, eliminating the need to create independent configuration data for different scenarios.

[0039] It can be seen that the processing step of acquiring camera control configuration information organizes the camera control mode, attitude control parameters, target transition configuration information, and recovery transition configuration information into a unified configuration information. This provides clear behavioral basis and quantitative parameters for the entire process of the virtual camera transitioning from original control to temporary intervention and then back to original control. This enables the virtual camera to achieve orderly and smooth attitude coordination between different control sources, helps reduce the interdependence between various framing control logics, and provides a feasible path for modular camera movement effect configuration and reuse.

[0040] Step S1200: Obtain the current attitude parameters of the virtual camera in the original camera control mode.

[0041] Obtaining the current attitude parameters of the virtual camera in the original camera control mode is a step in acquiring a real-time attitude reference. The current attitude parameters obtained in this step provide a starting point for subsequent calculations to determine the target attitude parameters based on the camera control mode, enabling temporary framing attitude intervention to perform parameter calculations based on the actual attitude state of the virtual camera before intervention.

[0042] A virtual camera is an abstract entity used to determine the viewing area in a virtual scene. Its framing posture is described by a set of attribute parameters, which define the virtual camera's position, orientation, and field of view in the virtual space. The original camera control mode refers to the control logic or system that actually drives the virtual camera's framing posture before receiving temporary framing posture intervention defined by the current camera control configuration information. During the operation of the virtual scene, the original camera control mode can manifest in various specific control methods. For example, the original camera control mode can be an adaptive following control, which automatically adjusts the virtual camera's posture based on the position and orientation of the user's virtual object to provide a suitable viewing angle. Another example is a locking control, which continuously adjusts the virtual camera's posture around the user-specified object. Yet another example is an autonomous control mode where the user can directly manipulate the virtual camera's posture in real time using an input device. Regardless of the specific control mode used, when there is no temporary framing posture intervention or the intervention has not yet started, the virtual camera's framing posture value is determined by the continuous calculation output of the original camera control mode.

[0043] The current pose parameter refers to the framing pose value calculated in real time and actually presented by the original camera control mode at the moment the virtual camera performs the acquisition operation. The current pose parameter typically includes the specific values ​​of the framing pose in one or more attribute dimensions. These attribute dimensions include, but are not limited to, horizontal rotation angle, pitch angle, roll angle, field of view size, and jib arm length. In one embodiment, the horizontal rotation angle represents the amount of rotation of the virtual camera around the vertical direction; the pitch angle represents the angle at which the virtual camera tilts up or down; the roll angle represents the amount of tilt of the virtual camera around its own line of sight; the field of view size represents the horizontal angle range of the virtual camera's field of view; and the jib arm length represents the spatial distance between the virtual camera and the gaze reference point. The specific values ​​of each attribute dimension at the current moment together constitute a complete set of pose snapshots, used to characterize the real-time state of the virtual camera before temporary intervention.

[0044] The operation of obtaining the current pose parameters refers to reading the real-time values ​​of the aforementioned attribute dimensions from the original camera control mode logic or the virtual camera object. This operation can be implemented in different ways. For example, the system can directly access the state variables maintained internally by the virtual camera entity and obtain the current pose parameter values ​​by reading the data fields corresponding to each attribute. Alternatively, the system can call the value retrieval interface exposed by the original camera control mode logic, which returns the pose result calculated by the original camera control mode in this frame. Another option is to use event notifications or callback functions, whereby the original camera control mode logic pushes the latest pose parameter values ​​to the module that needs to obtain the data after each pose update. Regardless of the method used, the result obtained is the real-time viewing pose value maintained by the original camera control mode for the virtual camera before it is affected by temporary intervention.

[0045] In an exemplary virtual scene, a user-defined virtual object performs an action with accompanying camera movement effects in an adversarial environment. At the moment this action triggers a temporary framing posture adjustment, the virtual camera is under continuous management by the original camera control mode. For example, the original camera control mode uses an adaptive following strategy, continuously adjusting the following angle based on the virtual object's movement direction. To calculate the target posture for this adjustment, the adjustment process needs to know the virtual camera's current actual posture parameters. Therefore, the system reads the current posture values ​​from the original camera control mode logic, assuming a horizontal rotation angle of 45 degrees, a pitch angle of -15 degrees, a jib length of 300 units, and a field of view of 70 degrees. This set of values ​​constitutes the current posture parameters, and subsequent calculations, whether replacing them or adding offsets, are based on these values.

[0046] It can be seen that the process of acquiring the current posture parameters of the virtual camera in the original camera control mode provides a consistent posture reference benchmark for temporary framing posture intervention. This allows the determination of the target posture parameters to be directly linked to the actual framing posture of the virtual camera before intervention, thus helping to ensure the spatial continuity of the framing image when transitioning from the original control state to the target framing transition stage. It also allows different adjustment modes such as posture overlay or posture replacement to be performed from a unified posture starting point.

[0047] Step S1300: Determine the target attitude parameters based on the camera control mode and attitude control parameters.

[0048] In the overall execution of the virtual camera adjustment method, the corresponding target posture parameters are determined based on the camera control mode and posture control parameters. This is the calculation step that transforms the control intent carried in the configuration into specific posture values. The target posture parameters generated in this step directly determine the endpoint state that the subsequent target framing transition tends to.

[0049] The camera control modes can include pose replacement mode and pose overlay mode. In pose replacement mode, the pose control parameters are directly used as the values ​​of the target pose parameters. In pose overlay mode, the pose control parameters are treated as offsets and added to the current pose parameters item by item across each attribute dimension. The system adjusts the current pose parameters accordingly based on the pose parameter adjustment mode, using the pose control parameters to determine the corresponding target pose parameters for controlling the virtual camera's framing pose. Besides these two modes, other modes can be defined as needed, such as weighted blending mode and scaling mode, as long as a reasonable conversion from the current pose parameters to the target pose parameters can be achieved.

[0050] Attitude control parameters are a component of the camera control configuration information that carries the desired attitude adjustment values. The content of attitude control parameters may include specific settings for one or more attribute dimensions of the framing attitude, such as horizontal rotation angle, pitch angle, roll angle, field of view size, and jib length. In one embodiment, attitude control parameters may also carry auxiliary information to constrain the calculation process. For example, when multiple control parameter information simultaneously targets the same attribute dimension, a flag can be set to indicate that a certain set of parameters is exclusive. In this case, only the parameters with this flag are used as valid offsets for superposition, or other existing offsets are cleared.

[0051] The process of determining the target attitude parameters corresponding to the current attitude parameters involves the system selecting the appropriate attitude parameter adjustment method based on the camera control mode. It then reads the values ​​from the attitude control parameters and any accompanying auxiliary information. Considering the real-time values ​​of each dimension of the current attitude parameters, the system executes the calculation steps defined by the adjustment method to generate target attitude parameters with determined values ​​for each dimension. If the attitude control parameters do not involve specific attribute dimensions, the target attitude parameters can directly use the values ​​of the corresponding dimensions from the current attitude parameters. If the attitude control parameters include auxiliary constraint information, the system will make necessary corrections to the calculation results in the corresponding dimensions based on these constraints.

[0052] In an exemplary virtual scene, a user-defined virtual object triggers an action with camera movement effects. Camera control configuration information is acquired, with the camera control mode set to attitude overlay mode. The attitude control parameters include horizontal rotation angle offset and pitch angle offset. The system obtains the current attitude parameters under the original camera control mode, where the horizontal rotation angle is 45 degrees and the pitch angle is -15 degrees. When determining the target attitude parameters, the system, based on the attitude overlay mode, adds the current horizontal rotation angle to the offset to obtain a preliminary target value. Then, combining this with the lateral mode, it determines which side of the reference axis the offset should act on. Finally, it adds the current pitch angle to the pitch offset to obtain the target pitch angle. Other unadjusted attributes remain at their current values, thus forming a complete set of target attitude parameters.

[0053] It can be seen that determining the target posture parameters corresponding to the current posture parameters based on the camera control mode and posture control parameters provides a wealth of target generation methods for temporary framing posture intervention of virtual cameras. This allows the determination of target posture to adapt to different adjustment needs such as direct setting and incremental overlay, which helps to improve the configuration flexibility and performance precision of virtual camera framing control.

[0054] Step S1400: Based on the target transition duration and target transition curve information contained in the target transition configuration information, control the virtual camera to change from the current framing posture to the target framing posture corresponding to the target posture parameters.

[0055] During the execution of the virtual camera adjustment method, after the target posture parameters are determined, the subsequent processing enters the actual posture change execution stage. The task of this stage is to drive the virtual camera's framing posture to smoothly change from the state before adjustment to the state described by the target posture parameters, based on the various settings in the target transition configuration information. The entire change process is called the target framing transition stage.

[0056] Target transition configuration information is a component of the control parameter information in the camera control configuration information. It is specifically used to specify the execution method for the virtual camera to transition from the current framing posture to the target framing posture. The target transition configuration information may include the target transition duration, which limits the absolute length of the target framing transition phase. This duration can be flexibly set according to the rhythm of the actions in the virtual scene and visual needs, such as 0.2 seconds, 0.5 seconds, or 1.0 seconds.

[0057] The target transition configuration information can also include target transition curve information, which describes how the rate of change of the virtual camera's attitude parameters varies over time within the time interval covered by the target transition duration. Various transition curves are available, such as linear transition curves, where attitude parameters transition from their current value to the target value at a constant rate; ease-in transition curves, where attitude parameters change slowly at the beginning of the transition and accelerate towards the end; ease-out transition curves, where attitude parameters change quickly at the beginning of the transition and slow down towards the end; and ease-in / ease-out transition curves, where attitude parameters change slowly at both the beginning and end of the transition and quickly in the middle. Furthermore, more complex rate change patterns can be implemented using custom curves to address specific camera movement requirements.

[0058] The current framing pose refers to the actual framing pose of the virtual camera as the target framing transition phase is about to begin. This pose is determined by the current pose parameters in the original camera control mode. The target framing pose refers to the virtual camera framing pose corresponding to the values ​​of each attribute dimension of the target pose parameters. When the virtual camera's pose parameters match the target pose parameters, it means that the virtual camera has assumed the target framing pose.

[0059] During the target framing transition phase, where the virtual camera changes from its current framing posture to the target posture parameters, the system calculates the posture parameters to be used at each frame and applies them to the virtual camera in real time, resulting in a continuous motion effect on the observed screen. The specific calculation method can be as follows: Based on the target transition duration in the target transition configuration information and the time elapsed since the start of the phase, the transition progress ratio of the current frame is determined; this progress ratio is mapped through the transition curve in the target transition configuration information to obtain a curve-corrected weighting coefficient; for each attribute dimension of the framing posture, this weighting coefficient is used to perform interpolation between the current posture parameters and the target posture parameters to obtain the posture parameter values ​​for the current frame. The interpolation method can be selected according to the data characteristics of the attribute dimensions. For example, spherical linear interpolation can be used for angle-type attributes such as horizontal rotation angle and pitch angle to ensure the smoothness of rotational motion; linear interpolation can be used for scalar attributes such as field of view size or crane length; other interpolation methods can also be used. The updated pose parameters are written to the virtual camera in each frame, causing the virtual camera's position, orientation, or field of view to change accordingly, thereby achieving a smooth transition from the current framing pose to the target framing pose.

[0060] In an exemplary virtual scene, a user-defined virtual object performs an action with accompanying camera movement during an adversarial process. After the target pose parameters are determined, the system reads the target transition configuration information, in which the target transition duration is set to 0.25 seconds and the transition curve is set to a fade-out curve. The system starts the target framing transition phase with the current framing pose of the virtual camera as the starting point and the framing pose corresponding to the target pose parameters as the ending point. During the 0.25-second duration, the system calculates the weights frame by frame based on the fade-out curve. For example, assuming the current horizontal rotation angle is 45 degrees and the target horizontal rotation angle is 15 degrees, at 0.1 seconds after the phase begins, the time progress ratio is 0.4. After the fade-out curve mapping, the weight coefficient may be 0.64 (actually depending on the specific shape of the curve). Then, the horizontal rotation angle at that moment is approximately the result of interpolating between 45 degrees and 15 degrees with a weight of 0.64, that is, approximately 15 degrees plus a difference of 0.36, with the angle approaching the target value. The fade-out curve makes the posture change relatively rapid in the early stage, then gradually slows down until it finally lands accurately on the target posture. The entire transition process presents a smooth and natural camera movement visually.

[0061] It can be seen that by controlling the transition process of the virtual camera from the current framing posture to the target framing posture through target transition configuration information, the duration and rate of posture transition change become configurable elements. This allows for the customization of corresponding transition performance according to different framing needs, which helps to improve the visual smoothness and expressiveness of temporary posture intervention of virtual cameras and provides support for the refined design of camera movement effects in virtual scenes.

[0062] In step S1500, in response to meeting the conditions for restoring the framing, based on the restoration transition duration and restoration transition curve information contained in the restoration transition configuration information, the virtual camera is controlled to change from the target framing posture to the framing posture in the original camera control mode.

[0063] In the overall execution of the virtual camera adjustment method, once the conditions for restoring the framing are met, the process of returning control of the virtual camera to the original control system begins. This step is based on the restoration transition configuration information. Through the restoration framing transition phase, which involves the virtual camera changing from the target framing posture to the framing posture under the original camera control mode, the virtual camera's framing posture smoothly returns from the target framing posture to the state determined in real-time by the original camera control mode. This step is not only the reverse of the target framing transition phase, but also has a unique characteristic in the definition of the return endpoint compared to conventional transitions—the return target is not a static posture value saved before intervention, but rather a posture value dynamically calculated by the original camera control mode based on the real-time changes in the virtual scene during the restoration framing transition phase.

[0064] The recovery transition configuration information is a component of the control parameter information within the camera control configuration information. Its structure is similar to the target transition configuration information, including the recovery transition duration and the recovery transition curve. The recovery transition duration determines the absolute length of the recovery framing transition phase. This duration can be flexibly set in practical applications according to the movement rhythm of the virtual scene and the requirements of scene switching, such as 0.3 seconds, 0.5 seconds, or 1.0 second. The recovery transition curve information describes the distribution characteristics of the rate of change of the virtual camera's posture parameters over time during the recovery transition phase. Optional curve types include linear curves, ease-in curves, ease-out curves, ease-in / ease-out curves, and custom curves. Developers can select different curves based on the desired regression visual experience.

[0065] The system needs to determine when to initiate a framing recovery transition phase, allowing the virtual camera to return to its original framing mode after changing from the target framing posture. This determination is not fixed at a single time point but is triggered by preset framing recovery conditions. These conditions are a set of preset rules used by the system to determine whether the framing recovery transition phase should be initiated. The specific definition of these conditions can be pre-set in the camera control configuration information to adapt to the differentiated timing requirements of different interaction scenarios.

[0066] In one implementation, the framing restoration condition is the expiration of a preset maintenance duration. The camera control configuration information includes a preset maintenance duration parameter. When the virtual camera reaches the target framing posture, the system starts timing. When the timer reaches the duration specified by the maintenance duration parameter, the system determines that the framing restoration condition is met and then initiates the framing restoration transition phase. This implementation is suitable for interactive scenarios with a fixed performance duration, allowing the virtual camera to automatically return to the framing posture of the original camera control mode at a preset time point.

[0067] In another implementation, the framing restoration condition is a user-initiated viewpoint adjustment operation. While maintaining the target framing posture, the system continuously monitors the amount of viewpoint change generated by the user through the input device. When the viewpoint change exceeds a preset threshold, the system determines that the framing restoration condition is met, initiates a framing restoration transition phase, and gradually returns control of the framing posture to the user or the original camera control logic. This implementation is suitable for scenarios where the user needs to be able to interrupt the preset viewpoint at any time during the performance.

[0068] In another implementation, the framing restoration condition is that the target object exceeds a preset frame range. While maintaining the target framing posture, the system continuously monitors the position of the locked target or object of interest within the frame. When the target object deviates from the preset safe area of ​​the frame, and the deviation persists for a preset delay, the system determines that the framing restoration condition is met and initiates the framing restoration transition phase. This implementation is suitable for scenarios where the viewing angle control strategy needs to be dynamically adjusted based on the actual position of the target object.

[0069] In another implementation, the framing restoration condition is that the controlled virtual object enters a forced displacement state. When the system detects that the controlled virtual object has entered a positional change state beyond user control due to external forces, it determines that the framing restoration condition is met and initiates the framing restoration transition phase. This implementation is suitable for scenarios that require priority response to emergency interaction events.

[0070] The above-mentioned implementation methods can be used individually or in combination. The specific configuration of the recovery framing conditions can be determined by the relevant parameters in the camera control configuration information, enabling the same set of posture control procedures to adapt to the differentiated requirements of different types of interactive behaviors for recovery timing. By using the recovery framing conditions as the basis for determining the start of the recovery framing transition phase, rather than fixing the exit timing, the system can coordinate the exit process of the preset posture with the actual interaction process.

[0071] The framing pose in the original camera control mode refers to the framing pose value continuously calculated and output by the original camera control mode logic based on the real-time conditions in the current virtual scene during the framing recovery transition phase. The original camera control mode logic does not stop running throughout the temporary pose intervention; its output is only temporarily obscured at certain stages of the intervention (e.g., in pose replacement mode). Once the framing recovery transition phase begins, the virtual camera gradually reverts to the real-time output of the original camera control mode logic. The endpoint of the framing recovery transition phase is not a fixed pose target, but rather changes dynamically with each frame as the output of the original camera control mode logic updates. For example, if the user's virtual object moves or turns during the regression process, the original camera control mode logic will output an updated pose value accordingly, and the virtual camera's target during the recovery transition will adjust accordingly, ensuring that the recovery process always uses the latest real-time pose as a reference. This frame-by-frame tracking dynamic regression mechanism avoids image jumps caused by the virtual camera reverting to an outdated pose snapshot after the intervention ends.

[0072] The execution method of the recovery framing transition phase is similar to the technical principle of the target framing transition phase, achieved through frame-by-frame interpolation. The system determines the transition progress ratio of the current frame based on the recovery transition duration and the time elapsed since the start of the recovery phase. This ratio is then mapped using the recovery transition curve to obtain a weighted coefficient after curve deformation. Subsequently, this weighted coefficient is interpolated between the target pose parameters and the pose parameters output in real-time from the original camera control mode for the current frame to determine the pose parameter values ​​that the virtual camera should present in the current frame. Because the pose parameters output in real-time from the original camera control mode are continuously updated during the recovery phase, the regression endpoint for each frame participating in the interpolation calculation may be different, giving the interpolation process dynamic adaptability.

[0073] In an exemplary virtual scenario, a user-defined virtual object triggers an action with accompanying camera movement during a confrontation. The parameters in the camera control configuration information have been acquired and executed. After the virtual camera transitions to the target framing pose during the target framing transition phase, it maintains this pose throughout the action. When the action nears its end or the triggering condition disappears, the recovery framing transition phase begins. The system reads the recovery transition configuration information, where the recovery transition duration is set to 0.4 seconds and the recovery transition curve is set to an ease-in / ease-out curve. During the 0.4-second recovery process, the system acquires the pose parameters calculated in real-time by the original camera control mode logic based on the virtual object's current position, orientation, and the presence of a gaze target, frame by frame. These dynamically updated pose parameters are used as the interpolation target, and interpolation is performed with the target pose parameters to drive the gradual regression of the virtual camera's pose attributes. If the camera control configuration information also includes a viewpoint offset value, such as setting the vertical offset of the observation point, the system will shift the observation point to the specified position during the target framing transition phase. During the recovery phase, the system will interpolate the observation point position frame by frame back to the observation point position calculated in real time by the original camera control mode, so that the observation point and the framing posture will return synchronously.

[0074] It can be seen that after the conditions for restoring the view are met, the virtual camera is controlled to change back to the view posture of the original camera control mode through the view restoration transition stage based on the view restoration transition configuration information. This processing link defines the time and rate characteristics of the regression process through the configurable view restoration transition duration and the view restoration transition curve. At the same time, the dynamic value output in real time by the original camera control mode is used as the regression endpoint, so that the exit of temporary intervention can be coordinated with the real-time changes of the virtual scene.

[0075] Based on any embodiment of the method in this application, such as Figure 3 As shown, the camera control mode includes attitude replacement mode and attitude overlay mode. Based on the camera control mode and attitude control parameters, the target attitude parameters corresponding to the current attitude parameters are determined, including steps S1311 and S1312. Each step is explained below.

[0076] Step S1311: When the camera control mode is attitude replacement mode, the attitude control parameters are determined as the target attitude parameters.

[0077] In attitude replacement mode, the attitude control parameters directly determine the values ​​of the target attitude parameters in each attribute dimension, and the generation process does not depend on the current attitude parameters of the virtual camera in the original camera control mode. For example, if the current attitude parameters of the virtual camera are a horizontal rotation angle of 45 degrees and a pitch angle of -10 degrees, while the attitude control parameters carry a horizontal rotation angle of 90 degrees and a pitch angle of -5 degrees, then the target attitude parameters after replacement will have a horizontal rotation angle of 90 degrees and a pitch angle of -5 degrees, and the original 45 degrees and -10 degrees will no longer be used. This approach is suitable for situations where the virtual camera needs to be precisely switched to a preset framing attitude. It allows the virtual camera to be temporarily taken over by the configured values ​​during intervention, providing a deterministic means of angle setting.

[0078] Step S1312: When the camera control mode is attitude overlay mode, the offset corresponding to the attitude control parameters is overlaid with the current attitude parameters to obtain the target attitude parameters.

[0079] The target attitude parameters are obtained by superimposing the attitude control parameters as offsets onto the current attitude parameters. In attitude superposition mode, the values ​​in the attitude control parameters are treated as increments. For each attribute dimension of the framing attitude, the attitude control parameter value in that dimension is added to the current attitude parameter value, and the sum is the target attitude parameter value in that dimension. The attitude control parameters in superposition mode can carry positive or negative values; positive values ​​indicate an increase along a preset direction, and negative values ​​indicate a decrease along the opposite direction. For example, if the current horizontal rotation angle of the virtual camera is 45 degrees, and the horizontal rotation angle offset provided by the attitude control parameters is -30 degrees, then the superimposed target horizontal rotation angle will be 15 degrees. For attribute dimensions not covered by the attitude control parameters, the target attitude parameters directly retain the corresponding values ​​in the current attitude parameters without applying additional offsets. One characteristic of the pose overlay mode is that the original camera control mode logic continues to run during the intervention period, and its output current pose parameters are continuously updated. The offset is overlaid on the latest current pose parameters every frame, so that the target pose parameters can follow the real-time changes caused by factors such as character movement and target switching in the virtual scene, forming a dynamic offset effect.

[0080] In an exemplary virtual scenario, a user-defined virtual object triggers two different actions sequentially during a combat scenario. The first action is a skill requiring a fixed close-up perspective. The camera control configuration for this action sets the camera control mode to pose replacement mode, specifying a horizontal rotation angle of 90 degrees and a pitch angle of -10 degrees. When the action is triggered, the virtual camera, which initially follows the character's orientation around 45 degrees, undergoes a generation step in pose replacement mode, directly setting the target's horizontal rotation angle to 90 degrees and the pitch angle to -10 degrees. A transition phase then switches to this preset pose, resulting in a stable close-up image. The second action is a normal attack with a displacement effect. Its configuration sets the camera control mode to pose overlay mode, with a horizontal rotation angle offset of -30 degrees. When the attack is triggered, the virtual camera's current horizontal rotation angle is 45 degrees, constantly following the character. After the overlay step, the target's horizontal rotation angle becomes 15 degrees, and the virtual camera shifts 30 degrees to the side while still following the character. This offset is removed during the recovery phase after the attack, and the view smoothly returns to its original control state. The two modes address different needs, namely the need for precise composition and the need for dynamic offset, allowing designers to flexibly arrange the behavior of virtual cameras by selecting the camera control mode.

[0081] It can be seen that refining and limiting the camera control modes to attitude replacement mode and attitude overlay mode provides two sets of well-structured target generation rules for temporary attitude intervention of virtual cameras. The attitude replacement mode achieves precise attitude control through direct setting, while the attitude overlay mode introduces offset changes while preserving the original dynamic response of the control through incremental overlay. The two complement each other, providing a configurable implementation basis for diverse camera movement needs and helping to improve the adaptability and configuration efficiency of the virtual camera control framework.

[0082] Based on any embodiment of the method in this application, such as Figure 4 As shown, when the camera control mode is attitude overlay mode and the camera control configuration information contains multiple control parameter information for the same attitude parameter, the attitude control parameter is used as an offset and overlaid with the current attitude parameter to obtain the target attitude parameter, including steps S1321 and S1322. Each step is explained below.

[0083] Step S1321: When none of the multiple control parameter information carries the final superposition flag, the attitude parameters of each control parameter information are added to the current attitude parameter as offsets to obtain the target attitude parameter.

[0084] Regarding the processing step of determining the target attitude parameters based on the attitude parameter adjustment method in attitude overlay mode, this section further defines the rules for overlaying and generating the target attitude parameters when the camera control configuration information contains multiple control parameter information for the same attitude parameter. This limitation ensures that when multiple sets of offsets exist simultaneously in attitude overlay mode, the system can synthesize the target attitude parameters in an orderly manner according to a predetermined priority logic, avoiding attitude confusion caused by conflicts between multiple sets of offsets.

[0085] When the camera control mode is set to attitude overlay mode, the attitude parameter adjustment method involves adding the attitude control parameters as offsets to the current attitude parameters. In simple applications, the camera control configuration information may only carry one set of control parameters; in this case, the target attitude parameter is directly obtained by adding this set of offsets to the current attitude parameter. However, in practical applications, the same attitude parameter may be affected by control parameter information from multiple sources simultaneously. For example, a user virtual object may simultaneously perform two actions with camera movement effects, each carrying a set of control parameter information for the same attribute dimension. In this situation, a set of rules is needed to determine how these offsets collectively affect the current attitude parameter.

[0086] The final superposition flag is a marker embedded within the control parameter information, indicating whether the attitude parameters carried by that control parameter information are exclusive during superposition. When the final superposition flag is set in the control parameter information, it means that the set of offsets should be the only valid offsets on that attitude parameter, and offsets applied by other control parameter information that already exist should be cleared to ensure that the effect of this set of offsets is not interfered with by other sources. When the final superposition flag is not set in the control parameter information, the set of offsets is simply used as a normal superposition source and can be accumulated together with other offsets that do not carry the final superposition flag.

[0087] When multiple control parameters in the camera control configuration information simultaneously target the same attitude parameter, and none of these control parameters carry a final overlay flag, the system treats the attitude parameter values ​​carried by each of these control parameters as independent offsets. These offsets are then added to the current attitude parameter one by one to obtain the final target attitude parameter. For example, assuming the current horizontal rotation angle is 45 degrees, and there are two sets of control parameters targeting this angle—the first set carrying an offset of -30 degrees and the second carrying an offset of +10 degrees—and neither set carries a final overlay flag, the target horizontal rotation angle equals 45 degrees minus 30 degrees plus 10 degrees, which is 25 degrees. The effects of the two offsets are combined and reflected.

[0088] Step S1322: When there is control parameter information carrying the final superposition flag, the attitude parameter carried by the control parameter information is used as the unique offset and superimposed with the current attitude parameter to obtain the target attitude parameter.

[0089] When multiple control parameters exist in the camera control configuration information, and at least one of them carries a final overlay flag, the system only uses the attitude parameter carried by the control parameter carrying the final overlay flag as the valid offset. Offsets from other control parameters without the final overlay flag are ignored, and other existing offsets are cleared. If multiple control parameters carrying the final overlay flag exist simultaneously, one can be selected as the valid offset according to a predetermined rule (e.g., the most recently triggered one). For example, if the current horizontal rotation angle is 45 degrees, and a first set of offsets with a negative 30-degree offset without the final overlay flag is already in effect, and a new set of control parameters is triggered with an offset of positive 50 degrees and a final overlay flag, the system clears the first set of offsets and uses the positive 50-degree offset as the sole offset, overlaying it with the current horizontal rotation angle of 45 degrees to obtain a target horizontal rotation angle of 95 degrees. The original negative 30-degree offset is no longer included in the calculation.

[0090] In an exemplary virtual scenario, a user's virtual object triggers two passive effects and one active skill during a combat scenario. The first passive effect provides the character with a persistent camera offset, whose control parameters do not carry a final overlay flag, and the offset is a horizontal rotation angle of -20 degrees. The second passive effect also provides a set of control parameters, also without a final overlay flag, and the offset is a horizontal rotation angle of +15 degrees. These two offsets are added together to the current horizontal rotation angle of the original camera control mode, producing a composite offset. Subsequently, the user triggers an active skill, whose control parameters carry a final overlay flag, and the horizontal rotation angle offset is +60 degrees. According to the above rules, when the active skill takes effect, the offsets of the first two passive effects are cleared, and only the +60-degree horizontal rotation angle offset is superimposed on the base posture. When the active skill ends, its offset is removed during the recovery transition phase; if necessary, the offsets of the first two passive effects can be reinstated. Through this mechanism, designers can distinguish which camera movement effects can be superimposed and coexist, and which camera movement effects require exclusive control of the pose, thereby maintaining the predictability of the virtual camera's pose in complex combinations of actions.

[0091] As can be seen, by introducing a final overlay flag and corresponding accumulation or exclusion rules in the pose overlay mode, the virtual camera can perform orderly compositing according to the configured priority when faced with multiple source offsets. For control parameter information without a final overlay flag, its offset can coexist and accumulate with other ordinary offsets, providing overlay space for continuous atmospheric camera movements; for control parameter information with a final overlay flag, its offset can exclusively occupy the pose adjustment right, providing a definite visual representation for framing key actions. This design provides an effective management path for the pose coordination of the virtual camera under conditions of multiple actions triggered in parallel, reducing the risk of unpredictable multi-source offsets.

[0092] Based on any embodiment of the method in this application, such as Figure 5 As shown, the control parameter information also includes the horizontal rotation angle adjustment amount, reference axis, lateral mode and angle limit threshold. Based on the camera control mode and attitude control parameters, the target attitude parameters corresponding to the current attitude parameters are determined, including steps S1331 to S1333. Each step is explained below.

[0093] Step S1331: Based on the lateral mode, determine the target rotation direction corresponding to the horizontal rotation angle adjustment amount on both sides of the reference axis.

[0094] In determining the horizontal rotation angle as the target posture parameter, the system also needs to introduce additional constraints to prevent the virtual camera from crossing a preset reference axis in the horizontal direction. This reference axis serves as a spatial reference, dividing the horizontal plane into continuous ranges from 0 degrees to 180 degrees on each side of the reference axis. When the virtual camera crosses from one side to the other, the left-right orientation between the target virtual object and the background environment in the image will be completely reversed, causing the user to lose the ability to judge the current spatial layout for a short period of time. Therefore, this embodiment further introduces the horizontal rotation angle adjustment amount, reference axis, lateral mode, and angle limit threshold into the control parameter information, which together constitute a constraint system for the horizontal rotation angle.

[0095] The definition of the reference axis depends on the current locking status. When a target is locked, the reference axis is the water surface projection direction from the controlled virtual object to the locked target. When no target is locked, the reference axis is the current orientation of the controlled virtual object. The system uses this reference axis to determine the current lateral position of the virtual camera and the direction in which subsequent rotation operations should be performed.

[0096] The lateral mode is used to determine which side of the reference axis the horizontal rotation angle adjustment should be applied to. The value of the lateral mode can be preset in the control parameter information. For example, the lateral mode can be set to a fixed application to one side of the reference axis, automatically select the side where the virtual camera is currently located, or select the side closer to the current angle based on proximity. The system determines the target rotation direction corresponding to the horizontal rotation angle adjustment based on the lateral mode carried in the control parameter information.

[0097] Step S1332: Obtain the current horizontal rotation angle from the current posture parameters of the virtual camera. Based on the camera control mode and the horizontal rotation angle adjustment amount, adjust the current horizontal rotation angle to obtain the target rotation angle.

[0098] The meaning of the horizontal rotation angle adjustment varies depending on the control mode. When the camera control mode is attitude replacement mode, the horizontal rotation angle adjustment represents an absolute target angle value, which the system directly uses as the target rotation angle. When the camera control mode is attitude overlay mode, the horizontal rotation angle adjustment represents an offset value. The system obtains the current horizontal rotation angle from the current attitude parameters, overlays the offset value with the current horizontal rotation angle, and uses the overlaid result as the target rotation angle.

[0099] Step S1333: When the target rotation angle is less than the angle limit threshold, the target rotation angle is corrected to the angle represented by the angle limit threshold in order to prevent the virtual camera from crossing the reference axis.

[0100] After determining the target rotation angle, the system compares it with an angle limit threshold. The angle limit threshold is the minimum angle value that the virtual camera is allowed to approach the reference axis in the horizontal direction. When the target rotation angle is less than the angle limit threshold, the system corrects the target rotation angle to the angle represented by the angle limit threshold, so that the virtual camera stays at the innermost position allowed on the current side of the reference axis, without crossing the reference axis into the opposite area.

[0101] In a specific business scenario, a user manipulates a virtual object within a virtual environment to engage in combat against a hostile virtual object. The user has already locked onto the hostile virtual object, and the current virtual camera is positioned 60 degrees to the right of the reference axis. At this moment, the user triggers an interaction, and the system retrieves the corresponding camera control configuration data, which indicates that the camera control mode is in pose overlay mode. The control parameters in this camera control configuration data also include the horizontal rotation angle adjustment, for example, -70 degrees; the lateral mode, for example, automatically selects the current side; and the angle limit threshold, for example, is 1 degree.

[0102] The system automatically selects the current side based on the side-view mode, determining the target rotation direction to the right of the reference axis. The system obtains the current horizontal rotation angle of 60 degrees from the current attitude parameters. Since the camera control mode is attitude overlay mode, the system adjusts the horizontal rotation angle to -70 degrees as an offset value and adds it to the current horizontal rotation angle of 60 degrees, calculating a -10 degree as the target rotation angle. The system compares the target rotation angle of -10 degrees with the angle limit threshold of 1 degree, determining that the target rotation angle is less than the angle limit threshold, and therefore corrects the target rotation angle to 1 degree. Ultimately, the virtual camera's horizontal rotation angle remains at 1 degree to the right of the reference axis, without crossing the reference axis into the left-side region.

[0103] In another specific business scenario, the camera control mode is a pose replacement mode. For example, the horizontal rotation angle adjustment carried in the control parameter information is 0 degrees, and in the lateral mode, it is fixed to the left of the reference axis. The system determines the target rotation direction as the left of the reference axis based on the lateral mode and directly adjusts the horizontal rotation angle to 0 degrees as the target rotation angle. The system compares the target rotation angle of 0 degrees with the angle limit threshold of 1 degree, determines that the target rotation angle is less than the angle limit threshold, and therefore corrects the target rotation angle to 1 degree. The corrected virtual camera stays at a position 1 degree to the left of the reference axis, avoiding the uncertainty of the viewpoint that might result from complete overlap with the reference axis.

[0104] It can be seen that by introducing constraints such as the reference axis, lateral mode, and angle limit threshold in the determination of the target attitude parameters of the horizontal rotation angle, the system can effectively control the boundary of the horizontal rotation angle change in both attitude replacement mode and attitude superposition mode. Regardless of the value of the horizontal rotation angle adjustment carried in the control parameter information, the system can ensure that the rotation of the virtual camera in the horizontal direction is always completed on the same side of the reference axis, which helps to avoid sudden changes in the image orientation caused by crossing the reference axis, and provides a path for users to maintain stable spatial perception during virtual interaction.

[0105] Based on any embodiment of the method in this application, such as Figure 6 As shown, the process includes steps S1111 and S1112, and each step is explained below.

[0106] Step S1111: Obtain transition reference information, which includes the relative position between the user virtual object and the hostile virtual object, and the character skill information released by the user virtual object to the hostile virtual object.

[0107] When determining the target transition configuration information used in the target framing transition phase and the recovery transition configuration information used in the recovery framing transition phase, the system does not use a fixed single value. Instead, it dynamically selects transition parameters that are suitable for the current interactive scene based on the specific situation in the current interactive scene. This embodiment introduces the concept of transition reference information based on the established overall control framework. By acquiring transition reference information that reflects the current interactive situation and determining the corresponding transition configuration based on this information, the rhythm of the virtual camera's posture changes can match the actual interactive state in the scene.

[0108] Transition baseline information refers to a set of reference data used to determine transition configurations. This reference data reflects the characteristics of the current interaction scenario from different dimensions, thus providing an objective basis for selecting transition configurations. Transition baseline information includes the relative positions between the user's virtual object and the hostile virtual object, as well as the character skill information released by the user's virtual object towards the hostile virtual object. These two types of information characterize the current interaction situation from spatial and behavioral dimensions, respectively.

[0109] Relative position refers to the spatial relationship between a user's virtual object and an adversary's virtual object within a virtual scene. Relative position can be characterized by two dimensions: distance and angle. The distance dimension refers to the straight-line spatial distance between the user's virtual object and the adversary's virtual object. This distance directly affects the range of adjustment required by the virtual camera's jib arm. When the distance represented by the relative position is large, the virtual camera may require a longer transition time to adjust the jib arm length, to avoid a jarring visual effect due to rapid changes. The angle dimension refers to the deviation angle of the adversary's virtual object relative to the current orientation of the user's virtual object, or the deviation angle of the adversary's virtual object relative to the current orientation of the virtual camera. When the angular difference represented by the relative position is large, the adjustment range of the virtual camera in the horizontal rotation direction increases accordingly. In this case, using a transition curve that is fast at the beginning and slow at the end allows the virtual camera to quickly approach the target direction in the initial adjustment phase and slowly converge to the target angle in the final phase, helping to improve the user's visual comfort during the change of perspective.

[0110] Character skill information refers to the descriptive information about the character skills released by a user's virtual object against an enemy virtual object, such as the skill type identifier, skill duration, and skill movement rhythm characteristics. Different character skills have different movement rhythms and performance requirements, and these differences directly affect the selection of transition configurations. For example, a fast dash skill has a short duration and a compact movement rhythm. In this case, a short transition duration and a fast transition curve are needed to ensure that the virtual camera's perspective changes closely follow the rhythm of the character's movement, avoiding situations where the action has ended but the perspective has not yet arrived. A charged, heavy skill has a longer duration and a slow, powerful movement rhythm. In this case, a longer transition duration and a slow-in / slow-out transition curve are needed to create a weighty, gradual visual effect in the virtual camera's perspective changes, matching the rhythm of the skill itself.

[0111] Step S1112: Determine the target transition configuration information or restore the transition configuration information based on the transition baseline information.

[0112] After acquiring the transition reference information, the system determines the target transition configuration information or restores the transition configuration information based on this information. The target transition configuration information is used to control the process of the virtual camera transitioning from the current framing posture to the target framing posture, while the restore transition configuration information is used to control the process of the virtual camera returning from the target framing posture to the framing posture in the original camera control mode. There are several ways to determine the transition configuration based on the transition reference information.

[0113] In one implementation, the system pre-defines the association between transition baseline information and transition configuration. This association can be a multi-dimensional mapping table. The input dimensions of the mapping table include the segmented intervals of relative position and the type identifier of character skill information. The output of the mapping table is the corresponding transition duration value and transition curve type. For example, the mapping table can divide the distance dimension of relative position into three segments: close distance, medium distance, and long distance. It can also divide character skill information into three types: fast skills, normal skills, and heavy skills. For each combination of relative position segment and skill type, the mapping table pre-configures the corresponding target transition duration, target transition curve type, recovery transition duration, and recovery transition curve type. After obtaining the current relative position and character skill information, the system can determine the corresponding target transition configuration information and recovery transition configuration information through a table lookup operation.

[0114] In another implementation, the correlation can be achieved through a preset calculation formula. This formula uses the distance and angle difference in relative positions as independent variables, and the correction coefficient corresponding to the skill type identifier in the character's skill information as a parameter to calculate the transition duration and transition curve parameters. For example, the calculation formula can set the basic transition duration to be positively correlated with the distance value, and then multiply it by the correction coefficient corresponding to the skill type. The correction coefficient for fast skills is smaller, and the correction coefficient for heavy skills is larger, so that different types of skills obtain different transition durations at the same distance.

[0115] The transition configuration is determined based on the transition baseline information. This can be done by determining the target transition configuration information separately, the recovery transition configuration information separately, or both simultaneously. When one is determined separately, the other can use a preset default configuration. When both are determined simultaneously, the target and recovery transition configuration information can be the same or different, depending on the configuration of the association. For example, for a specific skill, the association can be configured so that the target transition duration is shorter and the recovery transition duration is longer, allowing the virtual camera to quickly enter a preset posture and slowly exit when returning to its original posture, thus adapting to the performance requirements of that skill.

[0116] In a specific business scenario, a user controls a virtual character to fight against a hostile virtual object. The virtual character uses a quick dash skill on the hostile virtual object, at which point the relative positions of the user's virtual character and the hostile virtual object are relatively close and the angular deviation is small. The system obtains transition reference information, including the relative distance being close and the angle being small, and the character skill information indicating that the current skill is a quick dash skill. Based on this transition reference information, the system determines, through preset correlations, that the target transition configuration information includes a short target transition duration and a linear or slightly accelerated target transition curve. Simultaneously, it determines that the recovery transition configuration information includes a short recovery transition duration and a linear or slightly accelerated recovery transition curve. During the target framing transition phase, the virtual camera adjusts its perspective at a rapid pace, closely following the rhythm of the quick dash skill. After the rapid dash skill ends, the system initiates a recovery framing transition phase based on the recovery framing conditions. According to the determined recovery transition duration and recovery transition curve information, the virtual camera returns to the framing posture of the original camera control mode at a relatively fast pace. The entire perspective change process is consistent with the rhythm of the rapid dash skill.

[0117] In another specific business scenario, the same virtual character unleashes a charged heavy skill at the same hostile virtual object. The relative position is the same as in the previous scenario, but the character's skill information has changed. The system obtains transition baseline information, where the character's skill information indicates that the current skill is a charged heavy skill. Based on this transition baseline information, the system determines, through preset correlations, that the target transition configuration information includes a relatively long target transition duration and a fade-in / fade-out type target transition curve. Simultaneously, it determines that the recovery transition configuration information includes a relatively long recovery transition duration and a fade-in / fade-out type recovery transition curve. During the target framing transition phase, the virtual camera adjusts its perspective slowly and gradually, creating a sense of weight and matching the rhythm of the charged heavy skill's action. During the recovery framing transition phase, the virtual camera also returns to its original framing posture in the original camera control mode with a slow and gradual pace. A comparison of the two business scenarios shows that, despite the same relative position, the different character skill information and the preset association assign different target transition configuration information and recovery transition configuration information to the two scenarios. This ensures that the rhythm of the virtual camera's posture changes when entering the preset posture stage and returning to the original posture stage are coordinated with the rhythm of the current character skill's movements.

[0118] As can be seen, by acquiring transition reference information containing relative position and character skill information, and determining the target transition configuration information or restoring the transition configuration information based on this transition reference information, the system can match the transition rhythm of the virtual camera in the two stages of entering the preset posture and returning to the original posture with the current spatial position relationship and interaction behavior type. This mechanism enables different types and distances of interaction behaviors to obtain a perspective change experience adapted to their own characteristics, avoiding the problem of inconsistent perspective changes and action rhythm in some interaction scenarios that may be caused by using fixed transition parameters, and providing an implementation path for the dynamic determination of transition configuration.

[0119] Based on any embodiment of the method in this application, such as Figure 7 As shown, before obtaining the camera control configuration information, steps S1121 to S1123 are included. The following describes each step.

[0120] Step S1121: Obtain the current combat status and target lock status, as well as the activation conditions corresponding to the camera control configuration information.

[0121] Before acquiring camera control configuration data, the system performs a precondition judgment process to determine whether to start subsequent framing posture control. By introducing a verification mechanism for effective conditions, the system filters whether the camera control configuration data has the conditions for execution in the current interactive scenario, thereby avoiding triggering unnecessary framing posture changes in inappropriate scenarios.

[0122] The system first acquires the current combat status. The combat status indicates whether the system is currently in an interactive combat scenario, specifically whether the user's virtual object is engaged in combat with at least one hostile virtual object. The combat status describes a macro-level interactive situation, including both "in-combat" and "out-of-combat" states. An "in-combat" state indicates that the user's virtual object is currently fighting against a hostile virtual object, with both sides exhibiting attack intent or engaging in interactive behavior; an "out-of-combat" state indicates that the user's virtual object is not currently in any combat situation and is in a free-moving or standby state. The combat status can be acquired in various ways. For example, the system can acquire it by reading the status flag of the combat management module in the current virtual scene, or by detecting whether the user's virtual object is within the warning range of a hostile virtual object or whether combat determination logic has been triggered.

[0123] The target lock status indicates whether a locked target virtual object exists, that is, whether the user's virtual object has designated a hostile virtual object as the focus of its current attention and tracking. The target lock status value describes a focusing relationship for a specific object, including two scenarios: a locked target status and an unlocked target status. A locked target status indicates that the user's virtual object has focused its attention on a specific hostile virtual object through a locking operation, and the virtual camera's viewpoint should, in principle, be organized around this locked target. An unlocked target status indicates that the user's virtual object has not performed a locking operation on any hostile virtual object, and the virtual camera's viewpoint can be controlled by the user or by other underlying control logic. The target lock status can be obtained in various ways. For example, the system can determine this by reading whether the identifier of the currently locked object in the lock management module is empty, or it can update it in real time by monitoring the occurrence and release of locking operation events.

[0124] While acquiring the combat status and target lock status, the system also acquires the activation conditions corresponding to the camera control configuration data. Activation conditions are a set of state constraints pre-configured in the camera control configuration data, defining the range of interactive states that allow the configuration data to trigger framing posture control. Activation conditions include a condition group corresponding to the combat status and a condition group corresponding to the target lock status. These two condition groups have a logical AND relationship; both conditions must be met simultaneously for the configuration to be effective. The condition group corresponding to the combat status specifies which combat states allow activation, and its configuration methods include combinations such as allowing activation during combat but not outside of combat, allowing activation outside of combat but not during combat, or activation in both combat and outside of combat. The condition group corresponding to the target lock status specifies which target lock status allows activation, and its configuration methods include combinations such as allowing activation when a target is locked but not when no target is locked, allowing activation when no target is locked but not when a target is locked, or activation in both locked and unlocked targets. Activation conditions are set independently by the configurer for each camera control configuration data set; different camera control configuration data sets can have different activation condition configurations. For example, one camera control configuration for enhancing the target-locked view has the following activation conditions: the combat state condition group is only allowed to be active during combat, and the target lock state condition group is only allowed to be active when there is a locked target. Another camera control configuration for displaying the actions of a user's virtual object has the following activation conditions: the combat state condition group is allowed to be active both during and outside of combat, and the target lock state condition group is allowed to be active both when there is a locked target and when there is no locked target.

[0125] Step S1122: When the combat state and target lock state meet the activation conditions, control the virtual camera to perform framing posture control according to the camera control configuration information.

[0126] After acquiring the combat state, target lock state, and activation conditions, the system matches the currently acquired combat state with the condition group corresponding to the combat state in the activation conditions, and simultaneously matches the currently acquired target lock state with the condition group corresponding to the target lock state in the activation conditions. When the combat state meets the range defined in its corresponding condition group (i.e., the current combat state belongs to the list of combat states allowed by the activation conditions), and the target lock state also meets the range defined in its corresponding condition group (i.e., the current target lock state belongs to the list of target lock states allowed by the activation conditions), the system determines that both the combat state and the target lock state simultaneously meet the activation conditions, and the camera control configuration data can be executed in the current interactive state of the virtual scene. Subsequently, the system continues to execute the subsequent framing posture control steps, including acquiring camera control configuration data, acquiring the current posture parameters of the virtual camera in the original camera control mode, determining the target posture parameters, controlling the virtual camera to change to the target framing posture through the target framing transition phase, maintaining the target framing posture, and then changing back to the framing posture in the original camera control mode through the recovery framing transition phase, etc., completing the entire process.

[0127] Step S1123: When the combat state and target lock state do not meet the activation conditions, ignore the camera control configuration information.

[0128] When the combat state does not meet the range defined in its corresponding condition group, or the target lock state does not meet the range defined in its corresponding condition group, or neither the combat state nor the target lock state meets the range defined in their respective condition groups, the system determines that the combat state and the target lock state do not meet the activation conditions, and the camera control configuration data does not have the execution conditions in the current virtual scene's interactive state. At this time, the system ignores the camera control configuration data, does not initiate any subsequent framing posture change process, and the virtual camera maintains its framing posture unchanged in the original camera control mode. "Ignoring" means that the system discards the configuration data; it neither executes the target framing transition phase nor the recovery framing transition phase. The virtual camera's framing posture is completely unaffected by the configuration data, as if the configuration data had never been triggered. Since the interactive behavior corresponding to the configuration data has already been executed, the user's virtual object will still fully play the action performance of that interactive behavior, only without producing any additional performance enhancement effects at the perspective level.

[0129] In a specific business scenario, a user manipulates a virtual object in a virtual scene, engaging in combat with a hostile virtual object. The virtual object has already locked onto the hostile virtual object, and the virtual camera is in the locked-view state of the original camera control mode. At this moment, the user triggers an interaction. For example, the pre-configured activation conditions in the camera control configuration data associated with this interaction are: the combat state condition group is configured to only be active during combat, and the target lock state condition group is configured to only be active when there is a locked target. Before obtaining this camera control configuration data, the system first performs a pre-condition judgment process. The system obtains the current combat state as "in combat" and the current target lock state as "with a locked target." The system compares "in combat" with the allowed states in the combat state condition group, finding that "in combat" falls within the allowed range, and the matching result is satisfied. The system compares "with a locked target" with the allowed states in the target lock state condition group, finding that "with a locked target" falls within the allowed range, and the matching result is also satisfied. Since both the combat state and the target lock state meet the activation conditions, the system determines that the configuration data is executable and then enters the complete framing posture control process. The virtual camera completes the preset adjustment of the viewing angle under the control of the configuration data, and smoothly returns to the locked viewing angle state of the original camera control mode after the adjustment is completed.

[0130] In another specific business scenario, the same camera control configuration data is placed in the animation resource of the same interactive behavior, but the user triggers this interactive behavior outside of combat. For example, the user invokes this interactive behavior in a non-combat area such as a town or camp. Before obtaining the camera control configuration data, the system performs a pre-condition judgment process, determining that the current combat state is outside of combat and the current target lock state is an unlocked target. The system compares the outside-of-combat state with the allowed states in the combat state condition group and finds that outside of combat is not within the range that is only allowed to be effective in combat, so the matching result is not satisfied. The system compares the unlocked target with the allowed states in the target lock state condition group and finds that unlocked target is not within the range that is only allowed to be effective when there is a locked target, so the matching result is also not satisfied. Since neither the combat state nor the target lock state meets the effective conditions, the system determines that the configuration data is not executable and ignores the camera control configuration data. The framing posture of the virtual camera does not change, and the user's virtual object still plays the interactive behavior completely. When the user invokes this interactive behavior outside of combat, there is no interference from the preset perspective performance in combat, and the viewing experience remains consistent.

[0131] In another specific business scenario, the activation conditions of camera control configuration data are configured as follows: the combat state condition group allows it to be effective both during and outside of combat, and the target lock state condition group allows it to be effective both with and without a locked target. This configuration data is placed in an animation resource of a demonstrative interactive behavior. The configurator wants this interactive behavior to present the same perspective and performance effect when invoked in any interactive state. When the user triggers this interactive behavior while in combat and with a locked target, the system obtains that the combat state is "in combat" and the target lock state is "with a locked target," both conditions are met, and the system executes framing posture control. When the user triggers the same interactive behavior while outside of combat and without a locked target, the system obtains that the combat state is "outside of combat" and the target lock state is "without a locked target," both conditions are also met, and the system still executes framing posture control. When the user triggers this interactive behavior while in combat but without a locked target, the system obtains that the combat state is "in combat" and the target lock state is "without a locked target," both conditions are also met, and the system still executes framing posture control. By configuring both the combat state condition group and the target lock state condition group in the activation conditions to be effective for all states, the configurator achieves full-scene coverage of interactive behaviors without having to create multiple sets of configuration data for different interactive states.

[0132] As can be seen, by introducing a precondition judgment step before acquiring camera control configuration data, the system can automatically compare the real-time interaction state of the current virtual scene with the pre-configured activation conditions in the camera control configuration data. The system only initiates the framing posture control process when both conditions are met simultaneously; otherwise, the configuration data is ignored. This mechanism allows the same camera control configuration data to be placed in different interactive behavior animation resources, with the activation conditions determining the triggering of the viewpoint performance effect under different interactive states. This eliminates the need to create separate configuration versions for different interactive scenarios, reducing the redundancy of configuration resources and providing a path for conditional triggering of camera control configuration data under different interactive states.

[0133] Based on any embodiment of the method in this application, such as Figure 8 As shown, the camera control configuration information also includes an input interruption threshold, including steps S1341 and S1342. The following describes each step.

[0134] Step S1341: During the process of adjusting the framing posture of the virtual camera based on the camera control configuration information, the amount of view change caused by the view adjustment operation of the virtual camera is detected.

[0135] The system introduces a configurable user-initiated interruption mechanism to promptly terminate the execution of the current camera control configuration data when the user needs to regain control of the viewpoint. During virtual scene interaction with virtual objects, users may encounter situations requiring an urgent switch in observation direction, such as the sudden appearance of a new object of interest or an unexpected change in the interaction. If the execution of the camera control configuration data is completely unaffected by user actions, the user will be forced to accept a pre-defined viewpoint change for a certain period, unable to react promptly to scene changes. Therefore, the camera control configuration data also includes an input interruption threshold. This threshold defines the magnitude of viewpoint adjustments that constitute a valid interruption intent, thus establishing an adjustable balance between automated viewpoint control and active user intervention.

[0136] The input interruption threshold is a pre-set numerical parameter in the camera control configuration data. Its function is to serve as a benchmark for judging whether a user's perspective adjustment operation is sufficiently strong. A perspective adjustment operation refers to a user's active action via an input device aimed at changing the virtual camera's viewing direction. The specific form of the input device can include, but is not limited to, a mouse, gamepad joystick, touchscreen virtual joystick, head-mounted display attitude sensor, and gravity sensor. The system does not need to concern itself with the physical type of the input device; it only needs to acquire the change in perspective generated by the operation. The change in perspective is a quantitative indicator reflecting the magnitude of the perspective adjustment operation. For example, the change in perspective can be the change in yaw angle, pitch angle, or roll angle before and after the operation, or a comprehensive measure of these angular changes, or a perspective displacement value calculated based on the input device's output signal. The calculation method for the change in perspective can be predefined in the system, as long as it reflects the intensity of the user's operation.

[0137] The system initiates real-time detection of viewpoint adjustments as soon as the virtual camera changes from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters. Real-time detection means the system continuously acquires the viewpoint changes generated by the input device in every frame or every calculation cycle, rather than performing a one-time status read at the beginning or end of a certain stage. This continuous detection method covers the entire time interval from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters, and from the target framing posture back to the framing posture in the original camera control mode, ensuring that any viewpoint adjustment operation made by the user at any point in time is captured by the system in a timely manner.

[0138] During real-time detection, whenever the system acquires the current change in viewing angle, it compares this change with the input interruption threshold contained in the camera control configuration data. When the change in viewing angle is less than or equal to the input interruption threshold, the system determines that the user's viewing angle adjustment is too small to constitute a clear intention to intervene. In this case, the system continues to maintain the current stage of execution, without interrupting the framing posture control flow of the camera control configuration data. The virtual camera's posture continues to change smoothly according to the preset target transition configuration information or restore the transition configuration information, or continues to maintain the target posture.

[0139] Step S1342: If the change in viewing angle is greater than the input interruption threshold, stop adjusting the framing posture of the virtual camera based on the currently executing camera control configuration information, and adjust the framing posture of the virtual camera according to the viewing angle adjustment operation.

[0140] When the change in viewing angle exceeds the input interruption threshold, the system determines that the user has issued a viewing angle adjustment command with clear force, and the intention to actively intervene has been established. In this case, the system immediately terminates the execution of the current camera control configuration data. Termination means that the system will not continue to execute the unfinished part of the current stage, nor will it enter subsequent stages that have not yet started. For example, if the system is executing the target framing transition stage, when an interruption occurs, the system will not continue to transition the virtual camera to the target framing posture, and will directly stop the remaining process of this stage. If the system is maintaining the target framing posture stage, when an interruption occurs, the system will not continue to maintain this posture, nor will it start the recovery framing transition stage. If the system is executing the recovery framing transition stage, when an interruption occurs, the system will not continue to transition to the framing posture in the original camera control mode, and will directly stop the remaining process of this stage. Skipped transition stages will not be compensated for in any way.

[0141] After terminating the execution of the camera control configuration data, the system immediately switches control over the framing posture. Framing posture control refers to the authority to determine how the virtual camera adjusts its framing posture. While the camera control configuration data is in effect, this control is held by the control logic defined in the configuration data. When the interruption mechanism is triggered, the system reclaims framing posture control from the camera control configuration data and switches to a state that responds to viewpoint adjustment operations. This means that the virtual camera's framing posture is no longer constrained by preset target posture parameters or transitional configurations in the configuration data, but instead directly changes in real-time following the user's viewpoint adjustment operations. When the user stops the viewpoint adjustment operation, the virtual camera naturally returns to the control of the original camera control mode logic, maintaining and updating the framing posture based on the real-time output of the original camera control mode logic.

[0142] The entire interruption and switching process is an instantaneous action, without any additional transition processing. The system will not insert a transition animation because it needs to smoothly transition from the posture at the moment of interruption to another posture. The purpose of this design is to provide the user's subjective operation with the fastest and most direct response, avoiding the sense of operational delay or visual inconsistency caused by executing unnecessary transition effects after an interruption.

[0143] In a specific business scenario, a user manipulates a virtual object in a virtual environment, interacting and engaging in combat with a hostile virtual object. The virtual object has locked onto the hostile virtual object, and the virtual camera is in the original camera control mode with a locked view. For example, the current attitude parameters are a horizontal rotation angle 60 degrees to the right of the reference axis and a jib length of 800 cm. At this moment, the user triggers an interaction, and the system obtains the camera control configuration data associated with this interaction. This camera control configuration data indicates that the camera control mode is in attitude overlay mode. The control parameters include a further 40-degree outward rotation of the horizontal rotation angle to the right of the reference axis as an offset, and a 200-cm reduction in the jib length as an offset. The target transition configuration information and the recovery transition configuration information are each set with a relatively slow transition duration, for example, 0.5 seconds each, to create a smooth viewpoint change effect. In addition, this camera control configuration data includes an input interruption threshold, for example, set to a 5-degree angle change.

[0144] The system begins framing attitude control, initially entering the target framing transition phase. The virtual camera gradually changes yaw angle from 60 degrees to 100 degrees, while the jib arm length gradually shortens from 800 cm to 600 cm. About halfway through this phase, the user suddenly notices a new hostile virtual object appearing to the side and rear of the scene. The user wants to quickly rotate the view to observe this new object. The user then quickly slides the mouse to the side and rear, resulting in a yaw angle change of approximately 15 degrees. The system detects this 15-degree change in real-time and compares it to the input interruption threshold of 5 degrees, determining that the change exceeds the threshold. The system immediately terminates the execution of the current camera control configuration data, halting the remaining progress of the target framing transition phase and preventing further transitions to the maintenance and recovery phases. The virtual camera no longer continues to transition towards the target with a 100-degree yaw angle and a 600-cm jib arm length; instead, it immediately responds to the mouse movement, turning the view in the direction indicated by the user. The jib arm length control is also released simultaneously, ceasing further shortening based on the offset. After the user finishes observing the new object, the virtual camera automatically re-tracks the original locked target under the original camera control mode logic of the locked viewpoint, and the viewpoint smoothly returns to the position that matches the locked target.

[0145] In another specific business scenario, the same camera control configuration data is triggered. The system is in the stage of maintaining the target framing posture, with the virtual camera at a 100-degree yaw angle and a 600-centimeter jib length, presenting the user with the designer's preset framing effect. At this moment, the user slightly pushes the right joystick on the controller, merely to fine-tune the viewpoint to see a detail at the edge of the image. The user's operation is very slight, resulting in a viewpoint change of, for example, 2 degrees. The system detects this 2-degree viewpoint change in real-time and compares it with the input interruption threshold of 5 degrees, determining that the viewpoint change does not exceed the input interruption threshold. The system considers the user's operation insufficient to constitute a clear interruption intention, therefore it does not interrupt the execution of the camera control configuration data and continues to maintain the target framing posture. After the user fine-tunes the viewpoint, the detail at the edge of the image becomes briefly visible, but because the viewpoint change does not exceed the threshold, the preset viewpoint performance effect is still fully preserved, preventing accidental interruption due to a slight accidental touch.

[0146] In another specific business scenario, the system is in the framing recovery transition phase, where the virtual camera is smoothly returning from the target framing posture to the framing posture in the original camera control mode. At this moment, the user actively and significantly manipulates the viewing angle, resulting in a change in viewing angle greater than the input interruption threshold. The system terminates the execution of the current configuration data, skips the remaining part of the recovery transition phase, and switches control to responding to the viewing angle adjustment operation. This means that the user does not need to wait for the preset slow return process to end, and can immediately gain active control of the viewing angle, allowing for timely observation and reaction to changing interactive situations.

[0147] As can be seen, by setting an input interruption threshold in the camera control configuration data, and continuously detecting and comparing the viewpoint adjustment operation in real time during the target framing transition phase, the target framing posture maintenance phase, and the recovery framing transition phase, the system can immediately terminate the automated framing posture control process when the user's intention to actively intervene reaches a certain intensity, and immediately return the framing posture control to the user. This mechanism enables the virtual camera control to dynamically balance the preset viewpoint performance effect with the user's real-time observation wishes. It ensures that the configuration data can fully present the design effect when there is no user intervention or only slight intervention, and also ensures that the user can quickly regain control when there is a clear need for directional adjustment. This provides a configurable and timely coordinated path for the virtual camera to switch between automatic control and user control.

[0148] Based on any embodiment of the method in this application, such as Figure 9 As shown, the control parameter information also includes the viewpoint offset value, and the current attitude parameters include the current observation point position, including steps S1511 to S1514. The following describes each step.

[0149] Step S1511: Determine the target observation point position based on the current observation point position and the viewpoint offset value.

[0150] During the adjustment of the virtual camera's framing posture, the control parameters include not only the parameters driving the virtual camera's own posture changes, but also a viewpoint offset value. This offset is used to synchronously adjust the virtual camera's viewpoint position during posture adjustment. The virtual camera's viewpoint determines the spatial location where the captured content is focused. By combining the adjustment of posture parameters with the viewpoint offset, the final image can simultaneously meet specific perspective design requirements in terms of both framing range and focus position.

[0151] The system acquires the current observation point position from the current attitude parameters. The current observation point position refers to the spatial position of the observation point determined in real-time by the original camera control mode before any viewpoint offset is applied. When a target is locked, the current observation point position is typically set near the default location of the target object. When no target is locked, the current observation point position is typically set at a preset distance in the direction the virtual camera is facing. The current observation point position is not a fixed value but is continuously updated according to the scene state in the original camera control mode.

[0152] Simultaneously, the system acquires the viewpoint offset value from the control parameter information. The viewpoint offset value is a set of preset offset parameters used to define the offset direction and magnitude of the observation point in each direction within the reference axis reference system. The offset direction can include at least one of the following: forward / backward offset along the reference axis, left / right offset in the horizontal direction perpendicular to the reference axis, and up / down offset in the vertical direction. For example, the up / down offset can be configured as a positive value to move the observation point upwards, the horizontal offset can be configured as a positive value to move the observation point to the right, and the axial offset can be configured as a positive value to move the observation point forwards. Based on the current observation point position and the viewpoint offset value, the system superimposes the offsets defined by the viewpoint offset value onto the current observation point position to obtain the target observation point position. The target observation point position is the final offset position that the observation point needs to reach during the entire attitude adjustment process.

[0153] In step S1512, during the process of controlling the virtual camera to change from the current viewing posture corresponding to the current posture parameter to the target viewing posture corresponding to the target posture parameter, the observation point position of the virtual camera is controlled to transition from the current observation point position to the target observation point position based on the target transition duration and target transition curve information.

[0154] During the process of controlling the virtual camera to change from the current framing posture corresponding to the current pose parameters to the target framing posture corresponding to the target pose parameters, the system synchronously controls the virtual camera's observation point position to transition from the current observation point position to the target observation point position based on the target transition duration and target transition curve information contained in the target transition configuration information. The transition process of the observation point position is executed in parallel with the transition process of the virtual camera's framing posture, and both share the same target transition duration and target transition curve information. This means that the rhythm of the observation point moving from its original position to the target offset position is completely consistent with the rhythm of the virtual camera rotating or shifting from the current framing posture to the target framing posture. For example, if the target transition curve information is of the ease-in / ease-out type, the movement of the observation point also exhibits a rhythmic characteristic of slow start, accelerated middle, and decelerated end. This synchronous transition ensures that the change in the observation point position and the change in the screen's perspective are coordinated in time, and the user will not feel a disconnect between the change in perspective and the movement of focus when viewing the screen.

[0155] Step S1513: While the virtual camera is in the target framing posture, control the virtual camera to use the target observation point position as the observation point.

[0156] During the period when the virtual camera is in the target framing pose—that is, the maintenance phase after the target framing transition phase has been completed and before the conditions for restoring framing have been met—the system controls the virtual camera to use the target viewpoint position as the viewpoint. The viewpoint remains at the target position after the full viewpoint offset value has been applied. During this phase, if a reference object in the scene related to the reference axis moves, the viewpoint will dynamically adjust as the reference axis is updated and the reference object's position changes, always maintaining the relative offset relationship defined by the viewpoint offset value. For example, if the viewpoint offset value is configured to offset vertically upwards by a certain height, then regardless of how the reference object moves, the viewpoint will always be located at that height above the reference object.

[0157] Step S1514: During the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, based on the recovery transition duration and recovery transition curve information, the virtual camera's observation point position is controlled to transition from the target observation point position back to the observation point position in the original camera control mode.

[0158] During the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, based on the recovery transition duration and recovery transition curve information, the virtual camera's observation point position is controlled to transition from the target observation point position back to the observation point position in the original camera control mode. The observation point position in the original camera control mode refers to the observation point position calculated in real time when the original camera control mode starts the recovery framing transition phase, rather than a historical snapshot saved before entering the adjustment process. This is because the interaction situation in the scene may have changed during the maintenance of the target framing posture, and the original camera control mode continues to run and generates new observation point position outputs. If the return target is the old position before entering the adjustment process, the observation point jumping from the target observation point position to that old position will cause focus jumps in the image. This embodiment uses the observation point position calculated in real time in the original camera control mode as the return target, so that the return process of the observation point is synchronized with the dynamic changes of the scene. The return process of the observation point also shares the same recovery transition duration and recovery transition curve information as the recovery transition of the framing posture, so that the return rhythm of the observation point is consistent with the return rhythm of the viewpoint. When the framing transition phase ends, the framing posture of the observation point and the virtual camera synchronously returns to the real-time output state of the original camera control mode.

[0159] In a specific business scenario, a user controls a virtual character in a virtual environment to interact and fight against a large hostile virtual object. The virtual character has locked onto the hostile virtual object, and the virtual camera is in the original camera control mode with a locked view. The observation point is automatically set by the original camera control mode to the default position of the hostile virtual object, for example, chest height. The user triggers an interaction, and the camera control configuration information associated with this interaction is obtained. In this configuration information, the camera control mode is set to attitude overlay mode, and the attitude control parameters are configured to rotate the virtual camera outward towards the reference axis and pull it closer to the length of the jib arm, in order to create a surround close-up of the hostile virtual object. At the same time, the control parameters also include a viewpoint offset value, for example, configured to offset vertically upward by a certain distance and axially forward by a certain percentage, to coordinate with the surround close-up to raise the observation point from the chest position to a position close to the head and push it slightly forward, creating a low-angle shot effect.

[0160] The system first obtains the current observation point position from the current attitude parameters, which is the chest position of the enemy virtual object. Then, it obtains the vertical offset and axial offset from the viewpoint offset values, and superimposes these two values ​​onto the current observation point position to determine the target observation point position as above the head of the enemy virtual object. Subsequently, the system enters the target framing transition phase. Based on the target transition duration and target transition curve information contained in the target transition configuration information, it synchronously controls the virtual camera to rotate outward from the locked viewpoint and shorten the jib length. Simultaneously, it controls the observation point to rise from the chest position and move forward to the head position. At the end of the target framing transition phase, the virtual camera is aligned with the head of the enemy virtual object at a close-up, side-forward, upward angle, and the observation point has synchronously reached the head position.

[0161] While the virtual camera is in the target framing posture, the system controls the observation point to remain at the head position. During this period, if the hostile virtual object moves, the observation point dynamically adjusts as the hostile virtual object's position updates, always maintaining the relative offset defined by the viewpoint offset value, i.e., always remaining above the hostile virtual object's head. When the framing restoration conditions are met, the system enters the framing restoration transition phase. The system acquires the observation point position calculated in real-time by the original camera control mode, which has changed due to the movement of the hostile virtual object compared to its position before entering the adjustment process. Based on the framing restoration duration and curve information included in the framing restoration configuration information, the system controls the observation point to gradually descend and retreat from the head position, returning to the real-time calculated observation point position in the original camera control mode. When the framing restoration transition phase ends, the virtual camera's framing posture and observation point have synchronously returned to the latest state in the original camera control mode, and the image smoothly and naturally transitions to the current interactive viewpoint.

[0162] As can be seen, by determining the target observation point position based on the current observation point position and the viewpoint offset value, and controlling the observation point to synchronously transition to the target position during the target framing transition phase, maintaining the observation point at the target position during the maintenance phase, and controlling the observation point to synchronously return to the observation point position in the original camera control mode during the recovery framing transition phase, the system achieves synchronous linkage between the observation point and the framing posture throughout the entire adjustment process. The transition and return of the observation point share the same transition configuration information as the framing posture, ensuring that the rhythm of the focus movement and the rhythm of the viewpoint change remain consistent. During the recovery framing transition phase, the target of the observation point return is the observation point position calculated in real time under the original camera control mode, rather than a historical snapshot, avoiding focus jumps caused by a mismatch between the return target and the actual state. This mechanism provides an implementation path for interactive scenarios that require synchronous changes in the focus position of the image during viewpoint adjustment.

[0163] Based on any embodiment of the method in this application, such as Figure 10As shown, steps S1611 and S1612 are included. The following describes each step.

[0164] In step S1611, during the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters, a motion blur effect and image afterimage are displayed. The intensity of the motion blur effect is dynamically adjusted according to the movement speed of the virtual camera, and the display direction of the image afterimage corresponds to the movement direction of the virtual camera.

[0165] During the execution of the virtual camera adjustment method, in addition to driving the virtual camera's posture changes, the camera control configuration information can also control the visual feedback effects presented by the virtual camera during the aforementioned posture change phases. This allows users to intuitively perceive the current motion state of the virtual camera through the visual changes in the image itself. This embodiment introduces visual effect processing for controlling the virtual camera to change from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters, and for controlling the virtual camera to change from the target framing posture back to the current framing posture. This allows the speed and direction of the virtual camera's movement during posture changes to be intuitively presented through the changes in the image itself.

[0166] During the process of controlling the virtual camera to change from the current framing posture corresponding to the current pose parameters to the target framing posture corresponding to the target pose parameters, the virtual camera changes from the current framing posture to the target framing posture. At this time, the virtual camera moves in position or rotates in angle in three-dimensional space. The system displays a motion blur effect and image afterimage during this stage to enhance the user's perception of speed and direction during rapid changes in perspective.

[0167] Motion blur is a visual processing effect applied to the displayed image when a virtual camera is in motion, simulating the motion blur produced by moving objects during exposure in a real camera. When the virtual camera moves at a high speed, directly displaying each frame of the original image may make the changes appear abrupt or lacking in a sense of speed for the user. The system dynamically adjusts the intensity of the motion blur effect based on the virtual camera's current speed, increasing the intensity for higher speeds and decreasing it for lower speeds, thus matching the degree of blur in the image to the range of motion of the virtual camera.

[0168] Image ghosting refers to a semi-transparent trailing effect superimposed on the displayed image, extending along the direction of motion. The system generates an image ghosting in the displayed image corresponding to the current motion direction of the virtual camera. The direction of the image ghosting is consistent with the current motion direction of the virtual camera, and the length or transparency of the image ghosting's trail is related to the amplitude of the motion speed.

[0169] The motion blur effect, combined with image retention, allows users to intuitively perceive the virtual camera's movement toward the target, as well as the direction and magnitude of that movement, through changes in the image itself.

[0170] In step S1612, during the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, a dynamic blur effect of corresponding intensity is displayed according to the movement speed of the virtual camera, and a corresponding image ghosting is displayed according to the movement direction of the virtual camera, until the framing posture is changed back to the original camera control mode, and the dynamic blur effect and image ghosting are removed.

[0171] During the process of controlling the virtual camera to change from the target framing posture to the original camera control mode framing posture, the virtual camera returns from the target framing posture to the original camera control mode framing posture, undergoing position movement or angle rotation again. Based on the virtual camera's movement speed during this phase, the system displays a motion blur effect of corresponding intensity, making the motion blur effect more pronounced at higher movement speeds and less pronounced at lower movement speeds. Simultaneously, based on the virtual camera's movement direction during this phase, the system displays an image afterimage corresponding to that movement direction. The generation method of the motion blur effect and image afterimage is consistent with the target framing transition phase, both dynamically changing according to the actual movement state of the virtual camera.

[0172] As the framing transition phase progresses, the virtual camera gradually approaches the framing posture of the original camera control mode. Its movement speed gradually decreases, the intensity of the motion blur effect weakens accordingly, and the length or transparency of the afterimage also decreases. When the virtual camera returns to the framing posture of the original camera control mode and the framing transition phase ends, the virtual camera stops moving, the system removes the motion blur effect and afterimage, and the image is completely restored to the normal, clear display state of the original camera control mode.

[0173] In a specific business scenario, a user controls a virtual character to interact and fight against a hostile virtual object in a virtual scene. The user triggers an interaction, and the system obtains the corresponding camera control configuration information. The camera control mode is set to pose replacement mode, and the pose control parameters are configured to rapidly rotate the virtual camera from its current position to a specified angle on the other side of the reference axis. The target transition configuration information includes a short transition duration. The system enters the target framing transition phase, and the virtual camera begins to rotate towards the target pose at a high angular velocity. During the rotation, the system applies a motion blur effect of appropriate intensity to the displayed image based on the virtual camera's current rotation angular velocity. Scene objects in the image exhibit motion blur in the same direction as the rapid rotation. Simultaneously, the system generates an image afterimage extending along the rotation direction, with the trailing direction of the afterimage consistent with the rotation direction. The user can determine the current direction of the virtual camera's rotation by observing the direction of the afterimage.

[0174] Once the conditions for restoring the framing are met, the system enters the framing restoration transition phase. The virtual camera begins to return from the target framing posture to the framing posture in the original camera control mode, and rotates again. Based on the virtual camera's rotation direction and speed during this return process, the system applies motion blur and image retention effects again. As the virtual camera gradually approaches the framing posture in the original camera control mode, the rotation speed gradually decreases, the motion blur effect gradually weakens, and the image retention gradually fades out. When the virtual camera has completely returned to the framing posture in the original camera control mode, the system removes all motion blur and image retention effects, and the image returns to normal.

[0175] As can be seen, by displaying motion blur and image retention effects based on the virtual camera's speed and direction of motion during the target framing transition and the recovery framing transition phases, the system can keep the visual changes in the image synchronized with the virtual camera's motion. This mechanism helps users intuitively perceive whether the virtual camera is moving, as well as the direction and magnitude of that movement, through visual feedback, providing a path to achieve visual continuity during virtual camera posture changes.

[0176] Based on any embodiment of the method in this application, such as Figure 11 As shown, steps S1621 and S1622 are included. The following describes each step.

[0177] In step S1621, during the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters, a picture-in-picture window is generated, and the framing image corresponding to the current framing posture is displayed in the picture-in-picture window. The size of the picture-in-picture window is controlled to gradually shrink from the full screen size to the preset size.

[0178] During the virtual camera's framing posture adjustment process, the camera control configuration information not only drives the virtual camera's own posture changes but also controls the visual elements presented in the image, allowing the user to continuously observe the framing status under the original camera control mode during viewpoint switching. This embodiment introduces picture-in-picture window display and size change processing for the target framing transition phase and the recovery framing transition phase, respectively. Through the dynamic scaling of the picture-in-picture window, a continuous visual reference is provided to the user during viewpoint switching.

[0179] During the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameters to the target framing posture corresponding to the target posture parameters, the system generates a picture-in-picture window and displays the view corresponding to the current framing posture in the picture-in-picture window. During this process, the virtual camera's framing posture is gradually changing from the current framing posture to the target framing posture, and the content of the main view in the displayed image constantly changes with the movement of the virtual camera. If the user needs to understand the framing state that should have been presented in the original camera control mode during this period, it is not directly possible to know this from the changing main view alone. The system generates a picture-in-picture window during the target framing transition phase and displays the view corresponding to the current framing posture in the picture-in-picture window. This view is generated based on the posture parameters output in real time from the original camera control mode. By observing the image within the picture-in-picture window, the user can understand in real time the viewpoint state that should have been presented in the original camera control mode.

[0180] While generating the picture-in-picture (PIP) window, the system controls its size to gradually shrink from full screen to a preset size. At the start of the target framing transition phase, the PIP window covers the entire displayed screen; the image within the PIP window is the view corresponding to the current framing posture, consistent with what the user saw before the transition began. As the target framing transition phase progresses, the virtual camera gradually shifts towards the target framing posture, and the main screen content changes accordingly. Meanwhile, the PIP window gradually shrinks from full screen to a preset position within the screen. This gradual shrinking of the PIP window is synchronized with the transition progress of the target framing phase, allowing the user to continuously observe the view corresponding to the current framing posture through the gradually shrinking PIP window even as the main screen perspective changes. When the target framing transition phase ends, the PIP window shrinks to the preset size and remains in the preset position within the screen.

[0181] Step S1622: During the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, the size of the picture-in-picture window is gradually increased from the preset size to the full screen size, and the picture-in-picture window is removed when it reaches the full screen size.

[0182] During the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, the system gradually enlarges the size of the picture-in-picture window from a preset size to full screen size. As the framing transition phase progresses, the picture-in-picture window gradually enlarges, and the area covered by the content within the window gradually expands, while the content presented in the main screen remains in the transition phase of framing recovery. The virtual camera's framing posture is gradually returning from the target framing posture to the framing posture in the original camera control mode. The enlargement process of the picture-in-picture window is synchronized with the transition progress of the framing recovery phase. When the size of the picture-in-picture window enlarges to full screen size, it completely covers the entire presented screen. At this point, the content in the picture-in-picture window is the framing posture output in real time in the original camera control mode, which coincides with the current actual framing posture presented by the virtual camera. When the picture-in-picture window reaches full screen size, the system removes the picture-in-picture window, and the presented screen returns to the normal full-screen display state, with the content corresponding to the framing posture in the original camera control mode. The entire perspective switching process is complete.

[0183] In a specific business scenario, a user controls a virtual character to interact and fight against a hostile virtual object in a virtual environment. The user has already locked onto the hostile virtual object, and the virtual camera is in the original camera control mode with a locked view. The user triggers an interaction, and the system obtains the corresponding camera control configuration information. The camera control mode is a pose replacement mode, the pose control parameters are configured to switch the virtual camera from the locked view to a fixed side view position, the target transition configuration information includes a transition duration of a medium length, and the recovery trigger condition is configured to the completion of the animation corresponding to this interaction.

[0184] The system enters the target framing transition phase, and the virtual camera begins to rotate from the locked viewpoint towards the target's posture. Simultaneously with the start of this transition, a picture-in-picture (PiP) window is generated. This window displays the viewpoint corresponding to the current framing posture—the locked viewpoint—at full screen size. As the virtual camera gradually rotates to a side viewpoint, the viewpoint in the main screen gradually deviates from the locked viewpoint, and the user sees the gradual emergence of the side view. At the same time, the PiP window gradually shrinks from full screen size, contracting towards the lower right corner of the screen. The user can continuously view the current locked viewpoint through this shrinking PiP window, understanding the target object and scene status under the original camera control mode.

[0185] Once the target framing transition phase ends and the virtual camera reaches a side view, the picture-in-picture window remains at its preset size in the lower right corner, continuing to display the real-time view from the locked perspective. At this time, the main screen displays the fixed side view, while the picture-in-picture window displays the locked perspective, allowing the user to see both viewpoints simultaneously. When the animation corresponding to the interactive action finishes playing and the conditions for restoring framing are met, the system enters the framing restoration transition phase. The virtual camera begins to return from the side view to the locked perspective, and the picture-in-picture window gradually enlarges from its preset size in the lower right corner. As the picture-in-picture window enlarges, the locked perspective's coverage area in the main screen gradually expands. When the framing restoration transition phase ends and the picture-in-picture window enlarges to full screen size, the locked perspective view in the picture-in-picture window completely overlaps with the virtual camera's current actual framing posture. The system removes the picture-in-picture window, and the screen returns to the normal locked perspective full-screen display state, seamlessly returning the user to the original camera control mode viewing experience.

[0186] As can be seen, by generating a picture-in-picture window during the target framing transition phase and controlling its size to gradually shrink from full screen to a preset size, and then controlling the picture-in-picture window to gradually enlarge from the preset size to full screen during the recovery framing transition phase and removing it when full screen is reached, the system can continuously provide the user with the framing view corresponding to the current framing posture as a reference during the viewpoint switching process. This mechanism allows the user to still perceive the viewpoint change under the original control logic during the preset viewpoint adjustment, and to naturally transition back to the original framing posture during the return phase through the enlargement process of the picture-in-picture window, providing a path to achieve the continuity of the image during the viewpoint switching process and the continuity of the user's spatial perception.

[0187] Please see Figure 12 According to one aspect of this application, a virtual camera adjustment device includes: a control configuration acquisition module 11, used to acquire camera control configuration information, the camera control configuration information including camera control mode and control parameter information, the control parameter information including attitude control parameters, target transition configuration information and recovery transition configuration information; an attitude parameter acquisition module 12, used to acquire the current attitude parameters of the virtual camera in the original camera control mode; a target attitude determination module 13, used to determine the target attitude parameters based on the camera control mode and attitude control parameters; a target attitude transition module 14, used to control the virtual camera to change from the current viewing attitude corresponding to the current attitude parameters to the target viewing attitude corresponding to the target attitude parameters based on the target transition duration and target transition curve information contained in the target transition configuration information; and an attitude recovery transition module 15, used to control the virtual camera to change from the target viewing attitude to the viewing attitude in the original camera control mode in response to meeting the recovery viewing conditions, based on the recovery transition duration and recovery transition curve information contained in the recovery transition configuration information.

[0188] like Figure 12 The diagram shows the internal structure of a virtual camera adjustment device. This device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. The computer-readable, non-volatile storage medium stores an operating system, a database, and computer-readable instructions. The database stores information sequences, and when executed by the processor, these computer-readable instructions enable the processor to implement a virtual camera adjustment method.

[0189] The processor of the virtual camera adjustment device provides computing and control capabilities to support the operation of the entire device. The memory of the virtual camera adjustment device can store computer-readable instructions, which, when executed by the processor, cause the processor to perform the virtual camera adjustment method of this application. The network interface of the virtual camera adjustment device is used for communication with a terminal.

[0190] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the virtual camera adjustment device to which the present application is applied. A specific virtual camera adjustment device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0191] In this embodiment, the processor is used to execute... Figure 12 The specific functions of each module are described, and the memory stores the program code and various data required to execute the above modules or sub-modules. The network interface is used to realize data transmission between user terminals or servers. In this embodiment, the non-volatile readable storage medium stores the program code and data required to execute all modules in the virtual camera adjustment device of this application, and the server can call the server's program code and data to execute the functions of all modules.

[0192] This application also provides a non-volatile readable storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the virtual camera adjustment method of any embodiment of this application.

[0193] This application also provides a computer program product, including a computer program / instructions that, when executed by one or more processors, implement the steps of the methods in any embodiment of this application.

[0194] In summary, this application uses the current posture parameters output in real time by the virtual camera under the original control as a reference benchmark, so that after the preset posture adjustment is completed, the posture calculated in real time by the original control logic can be used as the regression target, thereby realizing a smooth closed loop from the original control to the preset control and then back to the original control, avoiding screen jumps during the posture switching process.

[0195] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).

Claims

1. A method for adjusting a virtual camera, characterized in that, include: Obtain camera control configuration information, which includes camera control mode and control parameter information, including attitude control parameters, target transition configuration information and recovery transition configuration information; Obtain the current attitude parameters of the virtual camera in the original camera control mode; Based on the camera control mode and the attitude control parameters, the target attitude parameters are determined; Based on the target transition duration and target transition curve information contained in the target transition configuration information, the virtual camera is controlled to change from the current framing posture corresponding to the current posture parameter to the target framing posture corresponding to the target posture parameter. In response to meeting the conditions for restoring framing, based on the restoration transition duration and restoration transition curve information included in the restoration transition configuration information, the virtual camera is controlled to change from the target framing posture to the framing posture in the original camera control mode.

2. The method according to claim 1, characterized in that, The camera control modes include a pose replacement mode and a pose overlay mode. The determination of target pose parameters based on the camera control modes and the pose control parameters includes: When the camera control mode is attitude replacement mode, the attitude control parameters are replaced and determined as the target attitude parameters; When the camera control mode is attitude overlay mode, the offset corresponding to the attitude control parameter is overlaid with the current attitude parameter to obtain the target attitude parameter.

3. The method according to claim 2, characterized in that, When the camera control mode is attitude overlay mode, and the camera control configuration information contains multiple control parameter information for the same attitude parameter, the step of overlaying the attitude control parameter as an offset with the current attitude parameter to obtain the target attitude parameter includes: When none of the multiple control parameter information carries a final superposition flag, the attitude parameters of each of the control parameter information are added to the current attitude parameter as an offset to obtain the target attitude parameter. When control parameter information carrying a final superposition flag exists, the attitude parameter carried by the control parameter information is used as the unique offset and superimposed with the current attitude parameter to obtain the target attitude parameter.

4. The method according to claim 1, characterized in that, The control parameter information also includes horizontal rotation angle adjustment, reference axis, lateral mode, and angle limit threshold. Determining the target attitude parameters corresponding to the current attitude parameters based on the camera control mode and the attitude control parameters includes: Based on the lateral pattern, determine the target rotation direction corresponding to the horizontal rotation angle adjustment amount on both sides of the reference axis; Obtain the current horizontal rotation angle from the current posture parameters of the virtual camera, and adjust the current horizontal rotation angle based on the camera control mode and the horizontal rotation angle adjustment amount to obtain the target rotation angle; When the target rotation angle is less than the angle limit threshold, the target rotation angle is corrected to the angle represented by the angle limit threshold to prevent the virtual camera from crossing the reference axis.

5. The method according to claim 1, characterized in that, The method further includes: Obtain transition baseline information, which includes the relative position between the user virtual object and the hostile virtual object, and the character skill information released by the user virtual object to the hostile virtual object; Based on the transition baseline information, determine the target transition configuration information or the recovery transition configuration information.

6. The method according to claim 1, characterized in that, Before obtaining the camera control configuration information, the method further includes: Obtain the current combat status and target lock status, as well as the activation conditions corresponding to the camera control configuration information; When the combat state and the target lock state meet the activation conditions, the virtual camera is controlled to perform framing posture control according to the camera control configuration information; When the combat state and the target lock state do not meet the activation conditions, the camera control configuration information is ignored.

7. The method according to claim 1, characterized in that, The camera control configuration information also includes an input interruption threshold, and the method further includes: During the process of adjusting the framing posture of the virtual camera based on the camera control configuration information, the amount of view change caused by the view adjustment operation of the virtual camera is detected. If the change in viewing angle exceeds the input interruption threshold, stop adjusting the framing posture of the virtual camera based on the currently executing camera control configuration information, and adjust the framing posture of the virtual camera according to the viewing angle adjustment operation.

8. The method according to claim 1, characterized in that, The control parameter information also includes a viewpoint offset value, and the current attitude parameter includes the current observation point position; the method further includes: The target observation point position is determined based on the current observation point position and the viewpoint offset value; During the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameter to the target framing posture corresponding to the target posture parameter, based on the target transition duration and the target transition curve information, the observation point position of the virtual camera is controlled to transition from the current observation point position to the target observation point position; While the virtual camera is in the target framing posture, control the virtual camera to use the target observation point position as the observation point; During the process of controlling the virtual camera to change from the target framing posture to the framing posture in the original camera control mode, based on the recovery transition duration and the recovery transition curve information, the observation point position of the virtual camera is controlled to transition from the target observation point position back to the observation point position in the original camera control mode.

9. The method according to claim 1, characterized in that, The method further includes: During the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameter to the target framing posture corresponding to the target posture parameter, a motion blur effect and image afterimage are displayed. The intensity of the motion blur effect is dynamically adjusted according to the movement speed of the virtual camera, and the display direction of the image afterimage corresponds to the movement direction of the virtual camera. During the process of controlling the virtual camera to change from the target framing posture to the framing posture of the original camera control mode, the motion blur effect of corresponding intensity is displayed according to the movement speed of the virtual camera, and the image afterimage is displayed according to the movement direction of the virtual camera, until the framing posture is changed back to the original camera control mode, and the motion blur effect and the image afterimage are removed.

10. The method according to claim 1, characterized in that, The method further includes: During the process of controlling the virtual camera to change from the current framing posture corresponding to the current posture parameter to the target framing posture corresponding to the target posture parameter, a picture-in-picture window is generated, and the framing image corresponding to the current framing posture is displayed in the picture-in-picture window. The size of the picture-in-picture window is controlled to gradually shrink from the full screen size to the preset size. During the process of controlling the virtual camera to change its framing posture from the target to the original camera control mode, the size of the picture-in-picture window is gradually increased from the preset size to the full screen size, and the picture-in-picture window is removed when it reaches the full screen size.

11. A virtual camera adjustment device, characterized in that, include: The control configuration acquisition module is used to acquire camera control configuration information, which includes camera control mode and control parameter information, and the control parameter information includes attitude control parameters, target transition configuration information and recovery transition configuration information. The attitude parameter acquisition module is used to acquire the current attitude parameters of the virtual camera in the original camera control mode; The target attitude determination module is used to determine the target attitude parameters based on the camera control mode and the attitude control parameters. The target pose transition module is used to control the virtual camera to change from the current framing pose corresponding to the current pose parameter to the target framing pose corresponding to the target pose parameter, based on the target transition duration and target transition curve information contained in the target transition configuration information. The posture recovery transition module is used to control the virtual camera to change from the target framing posture to the framing posture in the original camera control mode in response to the fulfillment of the framing recovery conditions, based on the recovery transition duration and recovery transition curve information contained in the recovery transition configuration information.

12. A virtual camera adjustment device, comprising a central processing unit and a memory, characterized in that, When the central processing unit invokes the computer program in the memory, it implements the method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 10.