Visualization method for realizing 3D (three-dimensional) object and UI (user interface) animation event

By loading and initializing 3D objects and UI elements, creating initial keyframes and optimizing animations using intelligent track management algorithms, the problem of time-consuming and poor results in animation production in the existing technology is solved, and more natural and efficient animation production is achieved.

CN119027555AActive Publication Date: 2024-11-26BEIJING EASY TIMES DIGITAL TECH

Patent Information

Application Number
CN202411154284.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-26
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The existing 3D animation production technology requires manual setting of a large number of keyframes, which is time-consuming and error-prone, and lacks intelligent track management and optimization algorithms, resulting in poor animation effects.

Method used

By loading and initializing 3D objects and UI elements, recording the initial state, creating initial keyframes, defining keyframe attributes, and using animation functions to smooth out the incoherent points, and then optimizing the keyframe layout based on the intelligent track management algorithm to realize animation Smooth and visualize multiple times.

Benefits of technology

It achieves smoother and natural animation effects, reduces incoherence points, improves animation quality, reduces manual operation burden, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119027555A_ABST
    Figure CN119027555A_ABST
Patent Text Reader

Abstract

The invention provides a visualization method for realizing 3D (three-dimensional) object and UI (user interface) animation events, which belongs to the technical field of computer animation, and comprises the following steps: loading 3D objects and UI elements required to be animation according to actual requirements, initializing necessary parameters and vectors, and recording corresponding initial states; creating an initial key frame according to the initial state and the time axis, defining basic attributes of each type of key frame, and determining a basic orbit according to the basic attributes of each type of key frame; carrying out attribute analysis on the key frame, determining an attribute change condition, determining an incoherent point, setting an animation function, and carrying out first smoothing on the key frame according to the animation function; the key frame layout is determined based on the intelligent track management algorithm, the key frame is subjected to the second smoothing, the animation events of the 3D object and the UI elements are visualized by integrating the first smoothing and the second smoothing, incoherent points are effectively reduced, the burden of manual operation is relieved, and the efficiency is improved by automatically loading and initializing the 3D object and the UI elements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer animation technology, and in particular to a method for realizing visualization of 3D objects and UI animation events. Background Art

[0002] With the development of computer graphics and the improvement of computing power, 3D animation and rich user interface elements are becoming more and more common in various applications. Current animation production technologies mainly include keyframe animation, curve editing and physical simulation, etc., which still require manual setting of a large number of keyframes. The adjustment process is very time-consuming and prone to errors. In the case of a large number of keyframes, there is a lack of intelligent track management and optimization algorithms, which makes the overall animation effect poor.

[0003] Therefore, the present invention provides a method for realizing visualization of 3D objects and UI animation events. Summary of the invention

[0004] The present invention provides a method for realizing visualization of 3D objects and UI animation events, which loads and initializes 3D objects and UI elements, records the initial state, creates initial key frames, defines key frame properties, and uses animation functions to smooth incoherent points. Then, the key frame layout is optimized based on an intelligent track management algorithm, and finally multiple smoothing and visualization of the animation are realized, thereby achieving a smoother and more natural animation effect, effectively reducing incoherent points, improving the overall quality of the animation, alleviating the burden of manual operation, and improving efficiency by automatically loading and initializing 3D objects and UI elements.

[0005] The present invention provides a method for realizing visualization of 3D objects and UI animation events, comprising: Step 1: Load the 3D objects and UI elements that need to be animated according to actual needs, initialize the necessary parameters and vectors, and record the initial states of the 3D objects and UI elements; Step 2: Create initial keyframes based on the initial state and timeline, define basic properties of various keyframes, and determine basic tracks based on the basic properties of various keyframes; Step 3: Analyze the attributes of the key frame, determine the attribute changes, and determine the discontinuity points, set the animation function based on the discontinuity points, and perform the first smoothing on the key frame according to the animation function; Step 4: Determine the key frame layout based on the intelligent track management algorithm, perform a second smoothing on the key frames, and visualize the animation events corresponding to the 3D objects and UI elements by combining the first smoothing and the second smoothing.

[0006] The present invention provides a method for realizing visualization of 3D objects and UI animation events, which loads the 3D objects and UI elements to be animated according to actual needs, initializes necessary parameters and vectors, and records the initial states of the 3D objects and UI elements, including: Select the animation engine of the animation system according to actual needs; At the same time, class responsibilities are divided according to actual needs, and the class division results are obtained. According to the class division results, the animation data attributes that need to be maintained for the corresponding class are determined; Determine all possible loaded 3D objects and UI elements according to the actual needs, obtain a possible resource list, map each item in the possible resource list with a corresponding actual resource path, and obtain a mapping path; The 3D objects and UI elements are loaded according to the mapping path, and the necessary parameters corresponding to each item in the possible resource list are initialized according to the animation data attributes, so as to obtain the initial state of the corresponding item.

[0007] The present invention provides a method for realizing visualization of 3D objects and UI animation events, creating initial key frames according to the initial state and timeline, defining basic attributes of various key frames, and determining basic tracks according to the basic attributes of various key frames, including: Create the initial timeline of the animation, set the start time and end time to form the time range of the animation, and set the initial zoom level of the timeline according to user needs and animation complexity; Arranging initial keyframes according to the time range, and determining basic attributes of each item in the initial keyframe based on the initial state of each item in the possible resource list; A corresponding initial track is created based on the basic attributes, and an initial key frame is added to the corresponding initial track. At the same time, the attribute value corresponding to the basic attribute is assigned to the corresponding initial track, and the basic track is obtained by combining the assignment result, the joining result and the initial zoom level.

[0008] The present invention provides a method for realizing visualization of 3D objects and UI animation events, performing attribute analysis on the key frames, determining attribute changes, and determining discontinuity points, setting animation functions based on the discontinuity points, and performing first smoothing on the key frames according to the animation functions, including: View each keyframe and its corresponding attribute value, and analyze the changes in the attribute value of each keyframe; Marking the change of the attribute value of each key frame, and performing segment analysis on the change mark to obtain a change analysis result, determining the large rhythm segment of the corresponding key frame according to the change analysis result, and subdividing it to obtain the small rhythm segment; The incoherent points in the small rhythm segment are determined, the incoherent points are adjusted, and the key frames are first smoothed.

[0009] The present invention provides a method for realizing visualization of 3D objects and UI animation events, marking the change of attribute value of each key frame, performing segment analysis on the change mark, obtaining a change analysis result, determining a large rhythm segment of the corresponding key frame according to the change analysis result, and subdividing it to obtain a small rhythm segment, including: Classifying the attribute value changes, determining a preset fluctuation range corresponding to each attribute value change according to the classification result, marking a key frame corresponding to a significant change when each attribute value change exceeds the preset fluctuation range on the time axis, and dividing the key frames on the entire time axis according to the significant change to obtain a large rhythm segment; The large rhythm segment is subdivided into time periods based on the complexity of the animation changes contained in the large rhythm segment and the transition requirements of key actions to obtain small rhythm segments.

[0010] The present invention provides a method for realizing visualization of 3D objects and UI animation events, determining the incoherent points in the small rhythm segment, adjusting the incoherent points, and performing a first smoothing on the key frames, including: Analyze the segment attributes of each key frame in the small rhythm segment, determine the segment attribute change of the corresponding small rhythm segment, and determine the corresponding segment change rule according to the segment attribute change; Mark the discontinuous points according to the segment change rule, construct an animation function, and adjust the discontinuous points; If the segment change rule is acceleration, the corresponding acceleration animation function is: , if the segment change rule is deceleration, the corresponding deceleration animation function is: , if the segment change rule has both acceleration and deceleration, the corresponding acceleration-deceleration animation function is: ;in, Represents the accelerated animation function; Represents the deceleration animation function; Represents the acceleration-deceleration animation function; represents the initial amplitude adjustment factor; represents the decay fast adjustment factor; represents the fluctuation frequency adjustment factor; represents the phase shift adjustment factor; A represents the animation fluctuation amplitude; C represents the transition rate between the acceleration and deceleration behaviors of the animation fluctuation; D represents the phase shift of the animation fluctuation; F represents the animation fluctuation frequency; P represents the time interval of the animation fluctuation; t represents the animation progress; The key frames are first smoothed according to the acceleration animation function, the deceleration animation function and the acceleration-deceleration animation function.

[0011] The present invention provides a method for realizing visualization of 3D objects and UI animation events, determining key frame layout based on an intelligent track management algorithm, and performing a second smoothing on the key frames, including: Generate an initial key frame layout solution set on the timeline, wherein each initial key frame layout solution set contains a group of key frames, use a fitness function to evaluate each initial key frame layout solution set, and select an initial key frame layout with a fitness higher than a preset fitness as a basic body; Add random noise to each timestamp and attribute value of the basic body to obtain the variant; Generate a new layout solution set based on the basic body and variants, re-evaluate the fitness of the new layout solution set, retain the evaluation results that are higher than the preset fitness value, and form a new generation of basic bodies; Repeat the selection-mutation-retention cycle process multiple times to perform a second smoothing on the key frames; The first condition is to reach the preset number of cycles, and the second condition is that the improvement range of fitness is less than the preset improvement value. If any of the first and second conditions are found to be met during the cycle, the second smoothing process is completed and the optimal key frame layout solution set is output.

[0012] The present invention provides a method for realizing visualization of 3D objects and UI animation events, which integrates first smoothing and second smoothing to visualize animation events corresponding to 3D objects and UI elements, including: Extracting the timestamps and attribute values ​​of all key frames from the optimal key frame layout solution set; Determine the smoothness requirement according to the first smoothing and the second smoothing, select an interpolation algorithm, generate intermediate points between key frames according to the interpolation algorithm, and sequentially connect the intermediate points and the key frames to draw animation trajectory curves about 3D objects and UI elements; Traverse each key frame in the animation trajectory curve, update the properties of 3D objects and UI elements, render and update the scene frame by frame, and display the animation effect in real time.

[0013] Compared with the prior art, the beneficial effects of the present application are as follows: by loading and initializing 3D objects and UI elements, recording the initial state, creating initial keyframes, defining keyframe properties, and using animation functions to smooth out incoherent points, and then optimizing the keyframe layout based on the intelligent track management algorithm, multiple smoothing and visualization of the animation are finally achieved, achieving a smoother and more natural animation effect, effectively reducing incoherent points, improving the overall quality of the animation, reducing the burden of manual operation, and improving efficiency by automatically loading and initializing 3D objects and UI elements.

[0014] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0015] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 It is a flow chart of a method for realizing visualization of 3D objects and UI animation events provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0018] Embodiment 1: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, such as Figure 1 As shown, including: Step 1: Load the 3D objects and UI elements that need to be animated according to actual needs, initialize the necessary parameters and vectors, and record the initial states of the 3D objects and UI elements; Step 2: Create initial keyframes based on the initial state and timeline, define basic properties of various keyframes, and determine basic tracks based on the basic properties of various keyframes; Step 3: Analyze the attributes of the key frame, determine the attribute changes, and determine the discontinuity points, set the animation function based on the discontinuity points, and perform the first smoothing on the key frame according to the animation function; Step 4: Determine the key frame layout based on the intelligent track management algorithm, perform a second smoothing on the key frames, and visualize the animation events corresponding to the 3D objects and UI elements by combining the first smoothing and the second smoothing.

[0019] In this embodiment, the necessary parameters are parameters that need to be set when initializing resources to ensure that the resources can be loaded and displayed correctly, including: model file path: model file of 3D object; material file path: material and texture information; initial position, rotation and scaling: initial transformation state of object or UI element; initial animation state: for example, the start frame of animation, loop mode, etc.

[0020] In this embodiment, the initial state refers to the initial position, transformation, attributes, and other states of the resource after loading and initialization, which is used for the starting frame display of the animation, including: initial position: the initial coordinates of the resource in the 3D space when the animation starts; initial rotation: the initial rotation angle or quaternion of the resource; initial scale: the initial size ratio of the resource; initial transparency and color: the initial transparency and color when the UI element or object is rendered.

[0021] In this embodiment, the initial keyframe refers to the original keyframe set at the beginning of the animation, which is used to determine the initial state and subsequent changes of the animation, and includes basic attribute values ​​of 3D objects and UI elements, such as position, rotation, scale, etc.

[0022] In this embodiment, the process of determining the basic attributes is to load all resources from the possible resource list; obtain the initial position, rotation, scaling and other attributes of each resource; and use these initial states as the basic attribute values.

[0023] In this embodiment, the process of deriving the basic track is to create a timeline for the animation and set the start time and the end time; select a suitable initial zoom level of the timeline according to the complexity of the animation and user needs to control the display density of the key frames on the timeline; arrange the initial key frames on the timeline and determine the basic attribute value of each key frame according to the initial state; create a corresponding initial track for each basic attribute (such as position, rotation, and scale) of each 3D object and UI element; assign the attribute values ​​of the initial key frames to the corresponding initial tracks; combine the assignment results and the joining results to obtain a complete initial track layout to form a basic track.

[0024] In this embodiment, the changes in the attribute values ​​of the key frames include the following aspects: position change: the change in the position of the object in 3D space, usually expressed by (x, y, z) coordinates; rotation change: the change in the rotation state of the object, usually expressed by quaternions or Euler angles; scale change: the change in the size ratio of the object; transparency change: the change in the transparency level of the object; color change: the change in the color attribute of the object.

[0025] In this embodiment, the discontinuous point refers to an abnormal point in the animation trajectory caused by discontinuous or abrupt changes in attribute values, which is manifested as a sudden change or jump between animation transitions and affects the continuity and fluency of the animation.

[0026] In this embodiment, the first smoothing process is to analyze the key frames and attribute changes in the small rhythm segment, determine the segment attribute change rules, mark the incoherent points and construct the corresponding animation function, and adjust and smooth the key frames.

[0027] In this embodiment, the second smoothing is achieved by generating an initial key frame layout and evaluating the fitness, selecting a high fitness layout as the basic body, performing random noise mutation and fitness re-evaluation, and repeatedly repeating the selection-mutation-retention process until the preset conditions are met, thereby achieving the second smoothing of the key frame.

[0028] In this embodiment, the process of combining the first smoothing and the second smoothing is to extract the timestamps and attribute values ​​of the optimal key frame layout, select an interpolation algorithm to generate intermediate points according to the smoothness requirements, draw an animation trajectory curve, and update the attributes of the 3D objects and UI elements.

[0029] The working principle and beneficial effects of the above technical solution are: by loading and initializing 3D objects and UI elements, recording the initial state, creating initial keyframes, defining keyframe properties, and using animation functions to smooth out discontinuous points, and then optimizing the keyframe layout based on the intelligent track management algorithm, multiple smoothing and visualization of the animation are finally achieved, achieving a smoother and more natural animation effect, effectively reducing discontinuous points, improving the overall quality of the animation, reducing the burden of manual operations, and improving efficiency by automatically loading and initializing 3D objects and UI elements.

[0030] Embodiment 2: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, which loads the 3D objects and UI elements to be animated according to actual needs, initializes necessary parameters and vectors, and records the initial states of the 3D objects and UI elements, including: Select the animation engine of the animation system according to actual needs; At the same time, class responsibilities are divided according to actual needs, and the class division results are obtained. According to the class division results, the animation data attributes that need to be maintained for the corresponding class are determined; Determine all possible loaded 3D objects and UI elements according to the actual needs, obtain a possible resource list, map each item in the possible resource list with a corresponding actual resource path, and obtain a mapping path; The 3D objects and UI elements are loaded according to the mapping path, and the necessary parameters corresponding to each item in the possible resource list are initialized according to the animation data attributes, thereby obtaining the initial state of the corresponding item.

[0031] In this embodiment, the class responsibility division is to modularize the functions of the animation system and define the responsibilities of each class in order to better manage and maintain the animation data, including: animation management class, key frame management class, resource management class, rendering class and physical simulation class: simulate physical effects, manage mechanics and collision calculations.

[0032] In this embodiment, the animation engine is a core component responsible for animation planning, interpolation calculation and rendering. Common animation engines include: Unity, Unreal Engine, Godot, etc.

[0033] In this embodiment, the animation data attributes are the characteristics and parameters that need to be maintained for each animation element, including: position: the coordinates of the object in 3D space; rotation: the rotation state of the object (usually expressed by quaternions or Euler angles); scale: the size ratio of the object; transparency: the transparency level of the object; color: the color attribute of the object.

[0034] In this embodiment, the possible resource list is a summary list of all 3D objects and UI elements that may be loaded into the animation system for use, including: 3D model files: files for each 3D object, such as OBJ and FBX formats; texture images: image files for each texture, such as PNG and JPG formats; UI icons and elements: all images and graphic elements used for the user interface; audio files: any animation-related sound effect files.

[0035] In this embodiment, the mapping path is the mapping relationship between each resource in the resource list and its actual storage path, which is used for path reference when loading resources, including: model path mapping: mapping of model file name to storage path; material path mapping: mapping of material or texture to storage path; UI element path mapping: mapping of UI icons and graphic elements to actual paths.

[0036] The working principle and beneficial effects of the above technical solution are: by selecting a suitable animation engine, dividing class responsibilities, determining animation data attributes, mapping actual resource paths, loading 3D objects and UI elements, and then initializing necessary parameters to obtain the initial state, comprehensive management and optimization of the animation system are achieved, the modularity and maintainability of the system are improved, and at the same time, the efficient loading and initialization of the animation system is ensured, and the usability and resource management efficiency of the animation engine are improved.

[0037] Embodiment 3: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, creating an initial key frame according to an initial state and a timeline, defining basic attributes of various key frames, and determining a basic track according to the basic attributes of various key frames, including: Create the initial timeline of the animation, set the start time and end time to form the time range of the animation, and set the initial zoom level of the timeline according to user needs and animation complexity; Arranging initial keyframes according to the time range, and determining basic attributes of each item in the initial keyframe based on the initial state of each item in the possible resource list; A corresponding initial track is created based on the basic attributes, and an initial key frame is added to the corresponding initial track. At the same time, the attribute value corresponding to the basic attribute is assigned to the corresponding initial track, and the basic track is obtained by combining the assignment result, the joining result and the initial zoom level.

[0038] In this embodiment, the initial zoom level refers to the initial scale when zooming on the animation timeline, which can affect the visualization density of the keyframes. The zoom level depends on the complexity of the animation and the needs of the user. For example, a complex animation may require a higher zoom level for more precise adjustment.

[0039] In this embodiment, the difference between basic attributes and animation attributes is that animation data attributes are used to define and control various parameters of animation effects, such as position, rotation, scale, etc., basic attributes are the initial values ​​at the beginning of the animation, and animation data attributes are variable attributes throughout the entire animation process.

[0040] In this embodiment, the initial track refers to a track line created for each attribute (eg, position, rotation, and scale) on the timeline, and each initial track corresponds to a change in an attribute of a 3D object or UI element.

[0041] In this embodiment, the allocation result refers to allocating each attribute value in the initial key frame to the corresponding track, which is specifically manifested as positioning the key frame and its attribute values ​​on different tracks on the timeline; the addition result refers to adding the initial key frame to the corresponding initial track to ensure that the attribute value of each key frame is correctly allocated and stored.

[0042] The working principle and beneficial effects of the above technical solution are: by creating an animation timeline, setting the time range and initial zoom level, arranging the initial keyframes, determining the basic properties, and creating corresponding tracks based on these properties, the keyframes and property values ​​are assigned to the tracks to form basic tracks, thereby realizing the initial layout and management of the animation as a whole, ensuring the reasonable layout of the animation and the initial organization of the tracks, enhancing the controllability and adjustability of the animation, and laying the foundation for subsequent animation optimization and smoothing.

[0043] Embodiment 4: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, performing attribute analysis on the key frames, determining attribute changes, and determining discontinuity points, setting animation functions based on the discontinuity points, and performing first smoothing on the key frames according to the animation functions, including: View each keyframe and its corresponding attribute value, and analyze the changes in the attribute value of each keyframe; Marking the change of the attribute value of each key frame, and performing segment analysis on the change mark to obtain a change analysis result, determining the large rhythm segment of the corresponding key frame according to the change analysis result, and subdividing it to obtain the small rhythm segment; The incoherent points in the small rhythm segment are determined, the incoherent points are adjusted, and the key frames are first smoothed.

[0044] In this embodiment, the change mark is a mark used to identify the change characteristics of the key frame attribute value, including: an incremental mark: a mark for an increase in attribute value (for example, an increase in attribute values ​​such as position, rotation, and scale); a decrement mark: a mark for a decrease in attribute value; a static mark: a mark for no significant change in attribute value; a mutation mark: a mark for a drastic change in attribute value in a short period of time.

[0045] In this embodiment, the change analysis results are obtained by analyzing the attribute value changes and change marks of all key frames, and determining the overall change trends and characteristics: change trends: for example, the position continues to rise or fall over a period of time; significant change points: for example, the attribute value changes of several key frames are significantly higher than other time periods; stable sections: areas where attribute values ​​change less.

[0046] In this embodiment, the large rhythm segment is determined based on the change analysis results, and includes an animation change interval with a longer time span, reflecting the main change trend and overall rhythm characteristics of the animation; the small rhythm segment is a subdivided area of ​​the large rhythm segment, which is further divided according to the complexity of the animation change and the transition requirements of key actions, and can describe the animation change process more finely.

[0047] The working principle and beneficial effects of the above technical solution are: by viewing and analyzing each key frame and its attribute value changes, performing change marking and segment analysis, establishing large rhythm segments and small rhythm segments, finding the discontinuities in the small rhythm segments and adjusting them, the first smoothing processing of the key frames is achieved, the discontinuities in the animation are effectively identified and corrected, the smoothness and naturalness of the animation transition are improved, the overall animation continuity and visual quality are enhanced, and high-quality output of the animation is ensured.

[0048] Embodiment 5: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, marking the change of attribute value of each key frame, performing segment analysis on the change mark, obtaining a change analysis result, determining a large rhythm segment of the corresponding key frame according to the change analysis result, and subdividing it to obtain a small rhythm segment, including: Classifying the attribute value changes, determining a preset fluctuation range corresponding to each attribute value change according to the classification result, marking a key frame corresponding to a significant change when each attribute value change exceeds the preset fluctuation range on the time axis, and dividing the key frames on the entire time axis according to the significant change to obtain a large rhythm segment; The large rhythm segment is subdivided into time periods based on the complexity of the animation changes contained in the large rhythm segment and the transition requirements of key actions to obtain small rhythm segments.

[0049] In this embodiment, the classification result is to classify the change of the attribute value into different types for further analysis and processing, including: steady change, linear change, periodic change and sudden change.

[0050] In this embodiment, the preset fluctuation range is the allowable variation range set after classifying each attribute value change. Changes beyond this range are marked as significant changes. For example, if the identified change is a smooth change in position, the corresponding fluctuation range is ±1 unit. If the identified change is a smooth change in rotation, the corresponding rotation angle fluctuation range is set to ±5 degrees.

[0051] In this embodiment, the specific steps of time segmentation are to identify important animation change points or turning points in the large rhythm segment; add more key frames near key actions to make the transition smoother; re-divide the time of the large rhythm segment so that each small rhythm segment can better reflect the details of the animation change; verify each small rhythm segment to ensure that the division is reasonable and can meet the smoothness requirements of the animation. If some small rhythm segments still have significant changes or incoherent points, further adjustments are made.

[0052] The working principle and beneficial effects of the above technical solution are: by classifying the changes in attribute values, determining the preset fluctuation range, marking the key frames with significant changes, dividing the large rhythm segments on the timeline, and subdividing them into small rhythm segments based on the complexity of the animation changes and the key transition requirements, the detailed decomposition and management of the animation rhythm are achieved, the control accuracy of the animation is improved, the natural transition of key actions is guaranteed, and the overall continuity and fluency of the animation are improved.

[0053] Embodiment 6: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, determining the incoherent points in the small rhythm segment, adjusting the incoherent points, and performing a first smoothing on the key frames, including: Analyze the segment attributes of each key frame in the small rhythm segment, determine the segment attribute change of the corresponding small rhythm segment, and determine the corresponding segment change rule according to the segment attribute change; Mark the discontinuous points according to the segment change rule, construct an animation function, and adjust the discontinuous points; If the segment change rule is acceleration, the corresponding acceleration animation function is: , if the segment change rule is deceleration, the corresponding deceleration animation function is: , if the segment change rule has both acceleration and deceleration, the corresponding acceleration-deceleration animation function is: ;in, Represents the accelerated animation function; Represents the deceleration animation function; Represents the acceleration-deceleration animation function; represents the initial amplitude adjustment factor; represents the decay fast adjustment factor; represents the fluctuation frequency adjustment factor; represents the phase shift adjustment factor; A represents the animation fluctuation amplitude; C represents the transition rate between the acceleration and deceleration behaviors of the animation fluctuation; D represents the phase shift of the animation fluctuation; F represents the animation fluctuation frequency; P represents the time interval of the animation fluctuation; t represents the animation progress; The key frames are first smoothed according to the acceleration animation function, the deceleration animation function and the acceleration-deceleration animation function.

[0054] In this embodiment, the segment attribute analysis is to analyze the attribute value of each key frame in the small rhythm segment to determine the overall change characteristics of the segment. The analysis content includes: position, rotation, scaling change, change rate and change mode.

[0055] In this embodiment, the segment attribute change is the result of the segment attribute analysis, which describes the specific changes in the attribute values ​​of each key frame in the small rhythm segment, including: trend: for example, gradual increase, gradual decrease or repeated fluctuations, rate: the speed of change, such as acceleration, deceleration or constant speed, nature: whether there is a significant change or mutation point.

[0056] In this embodiment, the segment change rule determines the overall rule of attribute change within the small rhythm segment according to the change of segment attributes. Common segment change rules include: accelerated change: the rate of change of attribute value gradually increases within the segment; decelerated change: the rate of change of attribute value gradually decreases within the segment; periodic change: the attribute value changes according to a certain periodic rule, such as oscillating motion; smooth change: the rate of change of attribute value is constant, without obvious acceleration or deceleration.

[0057] In this embodiment, the step of marking incoherent points is to identify the segment change law: perform attribute analysis on each key frame in the small rhythm segment to determine the change law of each attribute in the segment, for example, the position attribute shows an accelerated change law in the segment; detect abnormal points: based on the identified segment change law, detect whether there are points in the attribute change in the segment that are inconsistent with the law. For example, in an accelerated change segment, if the rate of change of the attribute value of a key frame suddenly decreases, then the point is regarded as an abnormal or incoherent point; calculate the threshold: set a reasonable threshold range to determine which changes can be regarded as normal changes within the segment and which are incoherent changes. For example, set the allowable deviation range of the position change rate; mark incoherent points: mark the key frames that exceed the threshold range on the timeline, that is, the changes in the attribute values ​​of these key frames are inconsistent with the segment change law.

[0058] In this embodiment, it is assumed that there is a small rhythm segment whose key frame attribute is position, and its segment change law is accelerated change. The specific steps are segment attribute analysis: calculate the position change rate between each key frame, and determine that the change speed of the overall segment shows an accelerating trend (such as the speed difference of each frame is getting larger and larger); segment attribute change situation: the position change rate gradually increases, which is in line with the acceleration law; segment change law: the segment is an accelerated change law; mark discontinuity points: check the speed change of each key frame, and set an allowable rate increase range, such as a deviation of ≤10%; if the rate change of a frame exceeds this range, it is marked as an incoherent point. For example, assuming that the rate of key frame 1 to 2 is 10, the rate of key frame 2 to 3 is 12, and the rate of key frame 3 to 4 is 15, this is in line with the accelerated change law. If the rate of key frame 4 to 5 suddenly drops to 8, this point is an incoherent point.

[0059] The working principle and beneficial effects of the above technical solution are: by analyzing the key frames and attribute changes in the small rhythm segment, determining the change rules of the segment attributes, marking the discontinuity points and constructing the corresponding animation function, adjusting and smoothing the key frames, achieving the natural transition of the animation, and improving the naturalness and smoothness of the animation transition.

[0060] Embodiment 7: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, determining key frame layout based on an intelligent track management algorithm, and performing a second smoothing on the key frames, including: Generate an initial key frame layout solution set on the timeline, wherein each initial key frame layout solution set contains a group of key frames, use a fitness function to evaluate each initial key frame layout solution set, and select an initial key frame layout with a fitness higher than a preset fitness as a basic body; Add random noise to each timestamp and attribute value of the basic body to obtain the variant; Generate a new layout solution set based on the basic body and variants, re-evaluate the fitness of the new layout solution set, retain the evaluation results that are higher than the preset fitness value, and form a new generation of basic bodies; Repeat the selection-mutation-retention cycle process multiple times to perform a second smoothing on the key frames; The first condition is to reach the preset number of cycles, and the second condition is that the improvement range of fitness is less than the preset improvement value. If any of the first and second conditions are found to be met during the cycle, the second smoothing process is completed and the optimal key frame layout solution set is output.

[0061] In this embodiment, the specific steps of evaluating the initial key frame layout solution set by the fitness function are to define a fitness standard and calculate a total fitness score for each initial key frame layout solution set according to smoothness, coherence, naturalness and complexity.

[0062] In this embodiment, the preset improvement value is the improvement range of the set fitness score, and the setting process is: calculate the average fitness of the initial key frame layout solution set as the baseline; set the absolute value or percentage of the fitness improvement. For example, the fitness needs to be improved by at least 2% per round; adjust the improvement value according to the actual effect to ensure effective convergence during the optimization process.

[0063] In this embodiment, the specific steps corresponding to the selection-mutation-retention cycle process are to select a basic body from an initial key frame layout solution set whose fitness is higher than a preset value; introduce random noise into the key frame attribute value of each basic body to generate a variant; combine the basic body and the variant to generate a new key frame layout solution set; re-evaluate the new layout solution set using the fitness function and calculate the fitness score; select a solution set with a fitness higher than a preset value from the new layout solution set as a new generation of basic bodies; repeat the selection-mutation-retention cycle until the exit condition is met.

[0064] In this embodiment, the preset number of cycles is usually the maximum number of cycles set to prevent infinite loops. The specific setting process can be to set a reasonable range of cycle times, such as 100 times, based on previous experiments and experience; and set an acceptable maximum number of cycles based on system performance and time.

[0065] The working principle and beneficial effects of the above technical solution are: by generating an initial keyframe layout and evaluating the fitness, selecting a high fitness layout as the basic body, performing random noise mutation and fitness re-evaluation, and repeatedly looping the selection-mutation-retention process until the preset conditions are met, the second smoothing of the keyframe is achieved, efficient smoothing processing is guaranteed, and finally the optimal animation layout is output, ensuring smooth animation transitions and good visual effects.

[0066] Embodiment 8: The embodiment of the present invention provides a method for realizing visualization of 3D objects and UI animation events, which visualizes animation events corresponding to 3D objects and UI elements by combining first smoothing and second smoothing, including: Extracting the timestamps and attribute values ​​of all key frames from the optimal key frame layout solution set; Determine the smoothness requirement according to the first smoothing and the second smoothing, select an interpolation algorithm, generate intermediate points between key frames according to the interpolation algorithm, and sequentially connect the intermediate points and the key frames to draw animation trajectory curves about 3D objects and UI elements; Traverse each key frame in the animation trajectory curve, update the properties of 3D objects and UI elements, render and update the scene frame by frame, and display the animation effect in real time.

[0067] In this embodiment, the determination of the smoothness requirement needs to refer to the smoothing results and user requirements in the first smoothing and second smoothing processes. The corresponding steps are to average the smoothing parameters (such as the maximum allowable gradient of attribute change, change rate, etc.) achieved by the first smoothing and the second smoothing to obtain the overall smoothness parameter; adjust the smoothness parameter according to the user's visual effect requirements. For example, if the user wants the animation to be smoother, a stricter smoothness parameter may be required; in the actual test process, the smoothness parameter is dynamically adjusted to find the best balance point so that the animation is both coherent and has a sufficient response rate.

[0068] In this embodiment, the process of generating the intermediate points mainly involves selecting an interpolation algorithm, and then calculating the intermediate points between the key frames according to the interpolation algorithm. , where b3 represents the position value of the middle point, a represents the interpolation ratio, b1 and b2 represent the left key frame and the right key frame respectively.

[0069] In this embodiment, the animation trajectory curve refers to a continuous and coherent curve formed on the timeline during the animation of a 3D object or UI element. The trajectory curve is formed by connecting all key frames and intermediate points. Key frames: the main nodes of the animation, defining the attribute values ​​(such as position, rotation, and scale) of 3D objects or UI elements at a specific time point; intermediate points: points generated by the interpolation algorithm, which are filled between key frames to make the animation transition smoother; trajectory curve: by sequentially connecting key frames and intermediate points, a continuous motion trajectory of the object in space will be formed.

[0070] In this embodiment, the property update process is to update the properties of 3D objects or UI elements frame by frame according to the generated animation trajectory curve. The steps are: loading 3D objects and UI elements and setting the initial state; traversing each point on the trajectory curve frame by frame, including key frames and intermediate points generated by interpolation calculation; updating the property values ​​of 3D objects and UI elements according to the current point on the trajectory curve, for example: position: updating the (x, y, z) coordinates of the object; rendering the updated scene to the screen to make the changes visible in real time; looping to read the next key point on the trajectory curve and repeating the update process until all key frames and intermediate points have been traversed.

[0071] The working principle and beneficial effects of the above technical solution are: by extracting the timestamps and attribute values ​​of the optimal keyframe layout, selecting the interpolation algorithm to generate intermediate points according to the smoothness requirements, drawing the animation trajectory curve, updating the attributes of 3D objects and UI elements, rendering and updating the scene frame by frame, and displaying the animation effect in real time, it ensures the accurate drawing and natural transition of the animation trajectory, and improves the continuity and visual effect of the 3D object and UI element animation.

[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for realizing visualization of 3D objects and UI animation events, characterized in that: include: Step 1: Load the 3D objects and UI elements that need to be animated according to actual needs, initialize the necessary parameters and vectors, and record the initial states of the 3D objects and UI elements; Step 2: Create initial keyframes based on the initial state and timeline, define the basic properties of each keyframe, and determine the basic track based on the basic properties of each keyframe; Step 3: Analyze the attributes of the key frame, determine the attribute changes, and determine the discontinuity points, set the animation function based on the discontinuity points, and perform the first smoothing on the key frame according to the animation function; Step 4: Determine the key frame layout based on the intelligent track management algorithm, perform a second smoothing on the key frames, and visualize the animation events corresponding to the 3D objects and UI elements by combining the first smoothing and the second smoothing.

2. A method for realizing visualization of 3D objects and UI animation events according to claim 1, characterized in that: Load the 3D objects and UI elements that need to be animated according to actual needs, initialize the necessary parameters and vectors, and record the initial states of the 3D objects and UI elements, including: Select the animation engine of the animation system according to actual needs; At the same time, class responsibilities are divided according to actual needs, and the class division results are obtained. According to the class division results, the animation data attributes that need to be maintained for the corresponding class are determined; Determine all possible loaded 3D objects and UI elements according to the actual needs, obtain a possible resource list, map each item in the possible resource list with a corresponding actual resource path, and obtain a mapping path; The 3D objects and UI elements are loaded according to the mapping path, and the necessary parameters corresponding to each item in the possible resource list are initialized according to the animation data attributes, so as to obtain the initial state of the corresponding item.

3. The method for realizing visualization of 3D objects and UI animation events according to claim 2, characterized in that: Create initial keyframes based on the initial state and timeline, define the basic properties of various keyframes, and determine the basic track based on the basic properties of various keyframes, including: Create the initial timeline of the animation, set the start time and end time to form the time range of the animation, and set the initial zoom level of the timeline according to user needs and animation complexity; Arranging initial keyframes according to the time range, and determining basic attributes of each item in the initial keyframe based on the initial state of each item in the possible resource list; A corresponding initial track is created based on the basic attributes, and an initial key frame is added to the corresponding initial track. At the same time, the attribute value corresponding to the basic attribute is assigned to the corresponding initial track, and the basic track is obtained by combining the assignment result, the joining result and the initial zoom level.

4. The method for realizing visualization of 3D objects and UI animation events according to claim 3, characterized in that: Performing attribute analysis on the key frame to determine attribute changes and discontinuity points, setting animation functions based on the discontinuity points, and performing first smoothing on the key frame according to the animation function, including: View each keyframe and its corresponding attribute value, and analyze the changes in the attribute value of each keyframe; Marking the change of the attribute value of each key frame, and performing segment analysis on the change mark to obtain a change analysis result, determining the large rhythm segment of the corresponding key frame according to the change analysis result, and subdividing it to obtain the small rhythm segment; The incoherent points in the small rhythm segment are determined, the incoherent points are adjusted, and the key frames are first smoothed.

5. The method for realizing visualization of 3D objects and UI animation events according to claim 4, characterized in that: Mark the change of the attribute value of each key frame, and perform segment analysis on the change mark to obtain the change analysis result, determine the large rhythm segment of the corresponding key frame according to the change analysis result, and subdivide it to obtain the small rhythm segment, including: Classifying the attribute value changes, determining a preset fluctuation range corresponding to each attribute value change according to the classification result, marking a key frame corresponding to a significant change when each attribute value change exceeds the preset fluctuation range on the time axis, and dividing the key frames on the entire time axis according to the significant change to obtain a large rhythm segment; The large rhythm segment is subdivided into time periods based on the complexity of the animation changes contained in the large rhythm segment and the transition requirements of key actions to obtain small rhythm segments.

6. The method for realizing visualization of 3D objects and UI animation events according to claim 4, characterized in that: Determining the incoherent points in the small rhythm segment, adjusting the incoherent points, and performing a first smoothing on the key frames, including: Analyze the segment attributes of each key frame in the small rhythm segment, determine the segment attribute change of the corresponding small rhythm segment, and determine the corresponding segment change rule according to the segment attribute change; Mark the discontinuous points according to the segment change rule, construct an animation function, and adjust the discontinuous points; If the segment change rule is acceleration, the corresponding acceleration animation function is: , if the segment change rule is deceleration, the corresponding deceleration animation function is: , if the segment change rule has both acceleration and deceleration, the corresponding acceleration-deceleration animation function is: ;in, Represents the accelerated animation function; Represents the deceleration animation function; Represents the acceleration-deceleration animation function; represents the initial amplitude adjustment factor; represents the decay fast adjustment factor; represents the fluctuation frequency adjustment factor; represents the phase shift adjustment factor; A represents the animation fluctuation amplitude; C represents the transition rate between the acceleration and deceleration behaviors of the animation fluctuation; D represents the phase shift of the animation fluctuation; F represents the animation fluctuation frequency; P represents the time interval of the animation fluctuation; t represents the animation progress; The key frames are first smoothed according to the acceleration animation function, the deceleration animation function and the acceleration-deceleration animation function.

7. The method for realizing visualization of 3D objects and UI animation events according to claim 1, characterized in that: Determine the key frame layout based on the intelligent track management algorithm and perform a second smoothing on the key frames, including: Generate an initial key frame layout solution set on the timeline, wherein each initial key frame layout solution set contains a group of key frames, use a fitness function to evaluate each initial key frame layout solution set, and select an initial key frame layout with a fitness higher than a preset fitness as a basic body; Add random noise to each timestamp and attribute value of the basic body to obtain the variant; Generate a new layout solution set based on the basic body and variants, re-evaluate the fitness of the new layout solution set, retain the evaluation results that are higher than the preset fitness value, and form a new generation of basic bodies; Repeat the selection-mutation-retention cycle process multiple times to perform a second smoothing on the key frames; The first condition is to reach the preset number of cycles, and the second condition is that the improvement range of fitness is less than the preset improvement value. If any of the first and second conditions are found to be met during the cycle, the second smoothing process is completed and the optimal key frame layout solution set is output.

8. The method for realizing visualization of 3D objects and UI animation events according to claim 7, characterized in that: The first smoothing and the second smoothing are combined to visualize the animation events corresponding to the 3D objects and UI elements, including: Extracting the timestamps and attribute values ​​of all key frames from the optimal key frame layout solution set; Determine the smoothness requirement according to the first smoothing and the second smoothing, select an interpolation algorithm, generate intermediate points between key frames according to the interpolation algorithm, and sequentially connect the intermediate points and the key frames to draw animation trajectory curves about 3D objects and UI elements; Traverse each key frame in the animation trajectory curve, update the properties of 3D objects and UI elements, render and update the scene frame by frame, and display the animation effect in real time.

Citation Information

Patent Citations

  • Controllable fluid animation generation method based on fluid keyframe editing

    CN103489209A

  • Three-dimensional game animation system

    CN104077797A

  • Nonlinear modification method for 3D character animation

    CN104574481A

  • Animation interpolator construction method, animation playing method, animation interpolator construction device, animation playing device and electronic equipment

    CN111596918A

  • Animation visual editing method and device, storage medium and electronic equipment

    CN114870401A

Cited By

  • Multi-track controllable animation control system and method independent of three-dimensional engine

    CN120612408A

  • Animation generation method and device, electronic equipment and readable storage medium

    CN121170084A

  • Reusable animation control method based on behavior pattern

    CN122064337A