Virtual Object Rotation Control Using Dynamic Coefficients
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing animation control methods in game engines are inflexible, particularly in adjusting the rotation angles of virtual objects to ensure they always face a virtual camera, limiting the creativity and precision of animation design.
Innovation Solution
An animation control method that determines the rotation angle of a virtual object based on its position and the position of a virtual camera, using a rotation coefficient to adjust the angle and ensure the object faces the camera, allowing for more flexible and natural rotation adjustments.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If state machine method is used to switch animations, then animation coverage is complete, but workload is huge and animation switching has jump issues
Solution Approach 1:
The patent changes the control parameter from discrete state machine transitions to continuous rotation angle interpolation. By calculating target rotation angles based on camera position and interpolating between key orientations, the system achieves smooth animation transitions without the jump issues inherent in state machine switching, while reducing the workload of manually creating all possible animation states.
Solution Approach 2:
The patent introduces dynamic rotation coefficient adjustment that allows the rotation speed and smoothness to vary during animation playback. The rotation coefficient can be modified in real-time based on playback speed settings, enabling the same animation key orientations to produce different motion characteristics without requiring separate animation clips for each speed.
2Productivity
If IK animation is used for real-time calculation, then real-time interaction is achieved, but fine art adjustments are not allowed and copyright charges apply
Solution Approach 1:
The patent segments the animation control into two independent parts: key orientation definition (artistic control) and real-time rotation calculation (technical implementation). The key orientations are defined manually by artists at important poses, while the rotation coefficient and interpolation are automatically calculated in real-time based on camera position, combining artistic control with computational efficiency.
Solution Approach 2:
The patent introduces a rotation coefficient as an intermediary parameter that bridges the fixed key orientations and the dynamic camera position. This coefficient allows smooth transitions between key orientations while maintaining artistic control over the animation style, avoiding both the rigidity of pure IK and the labor-intensive state machine approach.
3Measurement precision
If rotation angle is directly calculated from camera position, then object faces camera accurately, but animation lacks flexibility and naturalness
Solution Approach 1:
The patent applies partial rotation by using a rotation coefficient that ranges from 0 to 1, where 1 represents the full rotation angle needed to face the camera exactly. By allowing the coefficient to be less than 1, the system can achieve natural-looking animations where the object doesn't always need to face the camera perfectly, providing both accuracy when needed and naturalness when the coefficient is reduced.
Data Source
AI summary
An animation control method and apparatus, a storage medium, and an electronic device are provided. The method includes: obtaining a first position of a virtual camera in an animation and a second position of a to-be-adjusted target in the animation; determining a first rotation angle of the to-be-adjusted target according to the first position, the second position, and coordinate information of a target object to which the to-be-adjusted target belongs; adjusting the first rotation angle by using a rotation coefficient to obtain a target angle, the rotation coefficient being used for adjusting a ratio of the first rotation angle of the to-be-adjusted target to a second rotation angle of an associated target, and the associated target having a linkage relationship with the to-be-adjusted target; and controlling the to-be-adjusted target to rotate according to the target angle.


