A method and system for building animation interaction based on three-dimensional scene

By building a digital twin base and animation script production module in the three-dimensional engine, it provides a visual interface for three-dimensional animation design, solving the problems of poor flexibility and high complexity of three-dimensional animation production in the existing technology, and achieving flexible animation design and efficient Animation production process.

CN117893648BActive Publication Date: 2024-11-29BEIJING DANGJING DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410095106.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-11-29
Estimated Expiration
2044-01-23

Smart Images

  • Figure CN117893648B_ABST
    Figure CN117893648B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for building animation interaction based on a three-dimensional scene, building a digital twin base based on a three-dimensional engine, and loading a three-dimensional background image through the digital twin base; when the animation script production module is triggered, the animation script editing page is entered, and the animation script editing page includes a material library area, an animation design area, a property panel area, and a design layer result display area; and an animation associated with the three-dimensional background image is created. The present invention provides a method and system for building animation interaction based on a three-dimensional scene, and a design method based on three-dimensional scene animation interaction, which can meet the needs of users to produce three-dimensional animations based on a visual interface, and build scenes and design scripts in a WYSIWYG manner. It also provides rich materials and built-in tools, which can preview the construction effect in real time, and can also adjust the design content by dragging and dropping the layer list, and can export the produced animation in the form of video, which greatly improves the animation design efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of animation production, and in particular relates to a method and system for building animation interaction based on a three-dimensional scene. Background Art

[0002] With the continuous development of computer technology, 3D animation production technology has been continuously improved. 3D animation production technology is widely used in film and television production, game development, architectural expression and medical fields. For example, when used in game development, 3D animation production technology is used to create characters, scenes, special effects, etc. in the game, making the game more realistic and vivid.

[0003] However, existing 3D animation production can only produce 3D animation elements in specific scenes, with poor production flexibility and complicated production process. Summary of the invention

[0004] In view of the defects of the prior art, the present invention provides a method and system for building animation interaction based on a three-dimensional scene, which can effectively solve the above problems.

[0005] The technical solution adopted by the present invention is as follows:

[0006] The present invention provides a method for building animation interaction based on a three-dimensional scene, comprising the following steps:

[0007] Step 1: Building a digital twin base based on a three-dimensional engine, and loading a three-dimensional background image through the digital twin base;

[0008] Step 2, the three-dimensional background image is associated with an animation script production module. When the animation script production module is triggered, the animation script editing page is entered. The animation script editing page includes a material library area, an animation design area, a property panel area, and a design layer result display area. Through the animation script editing page, an animation associated with the three-dimensional background image is created. The specific method is:

[0009] Step 2.1, the animation design area initially displays the three-dimensional background image, and the three-dimensional background image is the first layer;

[0010] Step 2.2, the material library area is used to display various models that have been created; select multiple target models as required, and drag the target models to the target position of the three-dimensional background image in the animation design area in order; wherein, in the order of dragging, each target model forms a layer, thereby multiple layers are established on the first layer;

[0011] Step 2.3, for each target model dragged to the animation design area, when it is clicked, the property information of the target model is displayed in the property panel area, including animation properties; the animation properties include animation style, animation trajectory, animation start time and animation duration;

[0012] Step 2.4, configuring the animation attributes, including: configuring the animation style, animation trajectory, animation start time and animation duration, to obtain a completed target model animation corresponding to the target model;

[0013] Step 2.5, the design layer result display area displays the animation production process of each target model animation, and can adjust the execution order of each target model animation, thereby obtaining an animation script composed of multiple target model animations associated with the three-dimensional background image;

[0014] Step 3, previewing the animation script composed of multiple target model animations produced in step 2 by using a preview module, with the three-dimensional background image as the background;

[0015] Step 4, exporting the animation script composed of multiple target model animations and the three-dimensional background image produced in step 2 through the export module; the exported animation script can use the three-dimensional background image as the background and play each target model animation in sequence in the form of a video.

[0016] Preferably, in step 2.3, the animation styles include: animation flashing mode, animation deformation mode and animation style effect.

[0017] Preferably, the animation flashing mode includes animation flashing mode, animation flashing frequency, animation flashing start time and animation flashing delay setting;

[0018] The animation deformation mode includes: animation deformation position, animation deformation scaling ratio, animation deformation direction, animation deformation transparency, animation deformation loop setting, animation deformation start time and animation deformation delay time;

[0019] The animation style effects include animation fill color, animation stroke color, animation transparency, animation loop setting, animation style start time and animation style delay time.

[0020] Preferably, in step 2.3, the attribute information of the target model also includes model style information and model data source information.

[0021] Preferably, the model style information includes model display position, model display angle, model display scale, model display transparency, model display outline, model sight distance display, model shadow and model ground contact.

[0022] Preferably, when designing the animation of the target model in the animation design area, it also includes:

[0023] A plurality of lenses are added to the animation design area; each of the lenses has a different lens viewing angle, and under each lens viewing angle, a corresponding animation of the target model is designed.

[0024] Preferably, the preview module is specifically used for:

[0025] With the three-dimensional background image as the background, each target model animation is displayed in a timeline in the design order of each target model animation; and the timeline can be paused or clicked to fast forward or rewind to a specified time point.

[0026] Preferably, it also includes:

[0027] Step 5, animation playing process, including:

[0028] First, load and display the 3D background image; start the clock timing module to start timing from the start time of the 3D background image display, and use the monitoring module to monitor the animation start time of the target model animation configuration;

[0029] When it is monitored that the clock timing module reaches the animation start time configured for the target model animation, the target model animation is triggered, so that the target model animation plays the animation according to the configured animation trajectory and animation style; when the animation duration configured for the target model animation is reached, the animation is stopped; then, the remaining target model animations are monitored and timed through the clock timing module and the monitoring module, so that each target model animation is played as configured.

[0030] The present invention also provides a system for the method of building animation interaction based on a three-dimensional scene, comprising:

[0031] A three-dimensional background image loading module, used to build a digital twin base based on a three-dimensional engine, and load a three-dimensional background image through the digital twin base;

[0032] An animation script production module is used to produce an animation script associated with the three-dimensional background image; when the animation script production module is triggered, the animation script editing page is entered, and the animation script editing page includes a material library area, an animation design area, a property panel area and a design layer result display area; through the animation script editing page, an animation associated with the three-dimensional background image is created.

[0033] The method and system for building animation interaction based on three-dimensional scenes provided by the present invention have the following advantages:

[0034] The present invention provides a method and system for building animation interaction based on a three-dimensional scene, and a design method based on the three-dimensional scene animation interaction, which can realize the user's demand for making three-dimensional animation based on a visual interface, and the WYSIWYG building scene and design script. At the same time, it also provides rich materials and built-in tools, which can preview the building effect in real time, adjust the design content by dragging and dropping the layer list, and export the produced animation in the form of video, which greatly improves the animation design efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a flow chart of a method for building animation interaction based on a three-dimensional scene provided by the present invention;

[0036] Figure 2 A structural diagram of a page for building animation interaction based on a three-dimensional scene provided by the present invention;

[0037] Among them: 1 is the 3D scene interaction design page, 2 is the material library area, 3 is the animation design area, 4 is the property panel area, and 5 is the design layer result display area. DETAILED DESCRIPTION

[0038] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0039] The present invention provides a method and system for building animation interaction based on a three-dimensional scene, and a design method based on the three-dimensional scene animation interaction, which can realize the user's demand for making three-dimensional animation based on a visual interface, and the WYSIWYG building scene and design script. At the same time, it also provides rich materials and built-in tools, which can preview the building effect in real time, adjust the design content by dragging and dropping the layer list, and export the produced animation in the form of video, which greatly improves the animation design efficiency and user experience.

[0040] See also Figure 1 The present invention provides a method for building animation interaction based on a three-dimensional scene, comprising the following steps:

[0041] Step 1: Building a digital twin base based on a three-dimensional engine, and loading a three-dimensional background image through the digital twin base;

[0042] Step 2: The three-dimensional background image is associated with an animation script making module. When the animation script making module is triggered, the animation script editing page is entered. Figure 2The animation script editing page includes a material library area, an animation design area, a property panel area, and a design layer result display area; through the animation script editing page, an animation associated with the three-dimensional background image is created; the specific method is:

[0043] Step 2.1, the animation design area initially displays the three-dimensional background image, and the three-dimensional background image is the first layer;

[0044] Step 2.2, the material library area is used to display various models that have been created; select multiple target models as required, and drag the target models to the target position of the three-dimensional background image in the animation design area in order; wherein, in the order of dragging, each target model forms a layer, thereby multiple layers are established on the first layer;

[0045] Step 2.3, for each target model dragged to the animation design area, when it is clicked, the property information of the target model is displayed in the property panel area, including animation properties; the animation properties include animation style, animation trajectory, animation start time and animation duration;

[0046] In this step, the animation style includes: animation flicker mode, animation deformation mode and animation style effect. The animation flicker mode includes animation flicker mode, animation flicker frequency, animation flicker start time and animation flicker delay setting;

[0047] The animation deformation mode includes: animation deformation position, animation deformation scaling ratio, animation deformation direction, animation deformation transparency, animation deformation loop setting, animation deformation start time and animation deformation delay time;

[0048] The animation style effects include animation fill color, animation stroke color, animation transparency, animation loop setting, animation style start time and animation style delay time.

[0049] The attribute information of the target model also includes model style information and model data source information. The model style information includes model display position, model display angle, model display scale, model display transparency, model display outline, model viewing distance display, model shadow and model ground contact.

[0050] Step 2.4, configuring the animation attributes, including: configuring the animation style, animation trajectory, animation start time and animation duration, to obtain a completed target model animation corresponding to the target model;

[0051] In the present invention, when designing the animation of the target model in the animation design area, it also includes: adding multiple lenses in the animation design area; each of the lenses has a different lens viewing angle, and under each lens viewing angle, the corresponding animation of the target model is designed.

[0052] Step 2.5, the design layer result display area displays the animation production process of each target model animation, and can adjust the execution order of each target model animation, thereby obtaining an animation script composed of multiple target model animations associated with the three-dimensional background image;

[0053] Step 3, previewing the animation script composed of multiple target model animations produced in step 2 by using a preview module, with the three-dimensional background image as the background;

[0054] The preview module is specifically used to: use the three-dimensional background image as the background, and display each target model animation in a timeline in the design order of each target model animation; and can pause or click the timeline to fast forward or rewind to a specified time point.

[0055] Step 4, exporting the animation script composed of multiple target model animations and the three-dimensional background image produced in step 2 through the export module; the exported animation script can use the three-dimensional background image as the background and play each target model animation in sequence in the form of a video.

[0056] Also includes:

[0057] Step 5, animation playing process, including:

[0058] First, load and display the 3D background image; start the clock timing module to start timing from the start time of the 3D background image display, and use the monitoring module to monitor the animation start time of the target model animation configuration;

[0059] When it is monitored that the clock timing module reaches the animation start time configured for the target model animation, the target model animation is triggered, so that the target model animation plays the animation according to the configured animation trajectory and animation style; when the animation duration configured for the target model animation is reached, the animation is stopped; then, the remaining target model animations are monitored and timed through the clock timing module and the monitoring module, so that each target model animation is played as configured.

[0060] The present invention also provides a system for building an animation interaction method based on a three-dimensional scene, comprising:

[0061] A three-dimensional background image loading module, used to build a digital twin base based on a three-dimensional engine, and load a three-dimensional background image through the digital twin base;

[0062] An animation script production module is used to produce an animation script associated with the three-dimensional background image; when the animation script production module is triggered, the animation script editing page is entered, and the animation script editing page includes a material library area, an animation design area, a property panel area and a design layer result display area; through the animation script editing page, an animation associated with the three-dimensional background image is created.

[0063] The animation script production module is specifically used for:

[0064] The animation design area initially displays the three-dimensional background image, which is the first layer;

[0065] The material library area is used to display various models that have been created; select multiple target models as required, and drag the target models to the target position of the three-dimensional background image in the animation design area in order; wherein, in the order of dragging, each target model forms a layer, thereby multiple layers are established on the first layer;

[0066] For each target model dragged to the animation design area, when it is clicked, the property information of the target model is displayed in the property panel area, including animation properties; the animation properties include animation style, animation track, animation start time and animation duration;

[0067] Configuring the animation attributes, including: configuring the animation style, animation trajectory, animation start time, and animation duration, to obtain a completed target model animation corresponding to the target model;

[0068] The design layer result display area displays the animation production process of each target model animation, and can adjust the execution order of each target model animation, thereby obtaining an animation script composed of multiple target model animations associated with the three-dimensional background image;

[0069] Previewing the animation script composed of multiple target model animations by using the preview module, with the three-dimensional background image as the background;

[0070] The animation script composed of multiple target model animations and the three-dimensional background image are exported through the export module; the exported animation script can use the three-dimensional background image as the background and play each target model animation in sequence in the form of a video. Example

[0071] The following is a specific embodiment of a method for building animation interaction based on a three-dimensional scene:

[0072] (1) Build a 3D digital twin base and design tools

[0073] a) Building a digital twin base based on a three-dimensional engine, loading a three-dimensional background image through the digital twin base, and providing corresponding tools, such as layer management and display, element management and display, model management and display, analysis tools, measurement tools, special effect settings, etc.

[0074] b) Animation design tools

[0075] i. Animation design tools include animation creation, editing, deletion, export and other functions. Various layers, models and scenes can be displayed in a three-dimensional scene. At the same time, existing data can be operated based on various tools.

[0076] (2) Animation design

[0077] a) A new animation script production module is added based on the animation design tool. Click the animation script production module to enter the animation script editing page. The overall animation script editing page is divided into the following areas: material library area, animation design area, property panel area and design layer result display area.

[0078] i. The material library area includes: various models, layers, special effects, signs, annotations, texts, scenes, pictures, videos, documents and some common tools managed by the digital twin base, such as: model analysis, model disassembly, cross-section analysis, line of sight analysis, viewshed analysis, buffer analysis, set position relationship analysis, terrain analysis, terrain sectioning, potential measurement, straight-line distance measurement, horizontal distance measurement, surface distance measurement, azimuth measurement, projection area measurement, surface area measurement, height measurement, elevation measurement, model surface area measurement, weather, particle effects, etc.

[0079] ii. Property panel area: It is an area for configuring properties based on various types of materials. When you drag and drop materials displayed in the material library area to the animation design area, click a material in the animation design area to display the material's property information in the property panel area, including: style (position, angle, scale, transparency, outline, display by viewing distance, shadow, ground contact, etc.), data (data source of the material), animation properties (animation trajectory, animation flashing mode, animation deformation mode, animation style, etc.).

[0080] 1. Animation track: The before and after effects of the design elements or scenes are displayed according to the designed animation track. Animation track configuration includes: animation track (settable / editable); animation track direction, including forward / reverse; animation loop mode, including: no loop, number of loops, etc.; animation track start time, that is, starting from before or after the previous animation or at the same time; animation track delay, including: no delay, delay time, etc.;

[0081] 2. Animation flashing mode: the animation flashing effect of the design elements or scenes, including: animation flashing mode (flashing, breathing flashing), animation flashing frequency, animation flashing start time (before, after or at the same time as the previous animation), animation flashing delay (no delay, delay time)

[0082] 3. Animation deformation mode: the deformation effect of the design element or scene, including: animation deformation position, animation deformation scale, animation deformation direction, animation deformation transparency, animation deformation loop (no loop, number of loops), animation deformation start time (before, after or at the same time as the previous animation), animation deformation delay (no delay, delay time)

[0083] 4. Animation style: animation style effects of design elements or scenes, including: animation fill color, animation stroke color, animation transparency, animation style loop (no loop, number of loops), animation style start time (before, after or at the same time as the previous animation), animation style delay (no delay, delay time).

[0084] iii. Animation design area: It is the area for designing script animation. The entire animation design area uses a three-dimensional scene as the background and integrates various elements and tools.

[0085] 1. In the animation design area, various elements and tools can be displayed in a WYSIWYG way. When designing animations, you can use the lens settings to design layers from multiple angles in a multi-view manner.

[0086] 2. In the animation design area, you can customize and add scenes, such as model display, dynamic assembly and disassembly, etc. You can also set the model display information, the location and direction of model assembly and disassembly, and record the assembly and disassembly steps and descriptions.

[0087] 3. You can add lenses in the animation design area. Lens settings include lens teleportation, lens trajectory, lens rotation, and lens roaming. You can also arrange and combine multiple lenses.

[0088] iv. Design layer result display area: In this area, you can see the information of various element settings in the animation design area, including the element's name, type, design time, animation duration and other information.

[0089] Designers can view the entire animation design process in the design layer result display area, and can adjust the execution order and execution time of each layer by dragging. The effect after dragging can be reflected in the animation design area in real time, and designers can generally view the effect after dragging and adjusting. At the same time, designers can view the lens in the design layer result display area. Multiple lenses can be included in an animation design. By displaying the same model or scene through multiple lenses, the information can be presented more comprehensively.

[0090] b) Preview the effect

[0091] i. You can preview the designed animation effects on the script design page or the script management page. The preview of the overall script effect is based on the 3D scene, and the design process is displayed in the scene in the order of the design elements in the form of a timeline. You can pause and click the timeline to fast forward or rewind to the effect at a specified time point.

[0092] c) Export results

[0093] On the script management page, you can export the designed animation script. You can also export multiple script results according to different time ranges. The exported results can be played and displayed in the form of video. Example

[0094] The following is an example of a method for building an animation interaction based on a three-dimensional scene:

[0095] Step 1.

[0096] Prepare models: for example, terrain, building, tree, vehicle and other models, and add them to the material library; prepare the URL link of the digital twin base map;

[0097] Step 2.

[0098] Display the digital twin base map as the 3D background map through the URL link in step 1, and select the required model in the material library area and drag it to the target position of the 3D background map to load the terrain and building, tree, vehicle and other models preset in step 1 onto the 3D background map.

[0099] Step 3.

[0100] Through the property panel area, set the style of each model (position, angle, scale, transparency, outline, display, shadow, ground-attached, etc.). If the model involves animation, also set the animation properties of the model. Animation configuration includes: animation track (settable / editable), track forward / reverse, loop (no loop, number of loops), animation start time (before or after the previous animation or at the same time), animation delay (no delay, delay time), and can combine multiple animation effects.

[0101] In the specific implementation, clockTick is bound to the clock. When the clock reaches the specified animation start time, the callback method will be triggered. This feature is used to implement the timing triggering of animation playback.

[0102] Step 4.

[0103] The animation properties you set can store all the animation parameters. You can calculate the corresponding animation start time, animation end time, and node time by setting the animation parameters (before, after, or at the same time as the previous animation, delay time, number of loops, etc.) to generate an animation script. When you click to start the animation, you can listen by calling clockTick to determine whether the model's start time parameters match the current time. If they match, the animation will start.

[0104] Step 5.

[0105] The animation track is animated by the set longitude, latitude, altitude and time. It reaches the specified longitude, latitude and altitude at the set time and moves along the track direction. The angle of the model will continue to change along the track.

[0106] In the specific implementation, CallbackProperty is a class whose value is calculated by the callback function in a delayed manner. That is to say, the class calls itself continuously, and whenever the returned object changes, the changed value is thrown. Using this feature, when defining animation styles, using CallbackProperty to generate dynamic objects and assign them to model animation parameters, you can get the effect of style change, thereby achieving animation flashing, animation deformation, animation style and other effects.

[0107] Among them: animation flashing, animation deformation, animation style and other effects are also achieved by monitoring the calculated time and making corresponding parameter changes to achieve the animation effect.

[0108] In the present invention, a lens is also configured. The principle of lens setting is to actively switch the current lens viewing angle and set the time parameters, record the latitude and longitude, heading (azimuth), pitch (inclination), and roll (rotation angle) of the current lens, monitor the time during the animation execution process, and switch the two lenses directly through the camera's setView to set the duration transition time and easingFunction transition animation parameters. There will only be one lens configuration at the same time. In addition, the first perspective of the model needs to use the camera's lookAt to dynamically modify the viewing angle.

[0109] Step 6.

[0110] Export animation scripts. You can export the animation script as a whole, or you can intercept the script by setting the start time, end time, and use the animation time of each model element and the camera angle time.

[0111] The present invention provides a method and system for building animation interaction based on a three-dimensional scene. It is a method for integrating various animation elements and tools in a three-dimensional scene based on the function of a three-dimensional twin base. Through various design tools such as animation element design, animation attribute design, animation scene design, animation design, and lens design, various types of information are combined and arranged according to dimensions such as time and lens, to meet the needs of online building of animation scripts and online preview of animation effects, which greatly improves the efficiency of three-dimensional animation script design and user experience.

[0112] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A method for building animation interaction based on a three-dimensional scene, characterized in that: The following steps are involved: Step 1: Building a digital twin base based on a three-dimensional engine, and loading a three-dimensional background image through the digital twin base; Step 2, the three-dimensional background image is associated with an animation script production module. When the animation script production module is triggered, the animation script editing page is entered. The animation script editing page includes a material library area, an animation design area, a property panel area, and a design layer result display area. Through the animation script editing page, an animation associated with the three-dimensional background image is created. The specific method is: Step 2.1, the animation design area initially displays the three-dimensional background image, and the three-dimensional background image is the first layer; Step 2.2, the material library area is used to display various models that have been created; select multiple target models as required, and drag the target models to the target position of the three-dimensional background image in the animation design area in order; wherein, in the order of dragging, each target model forms a layer, thereby multiple layers are established on the first layer; Step 2.3, for each target model dragged to the animation design area, when it is clicked, the property information of the target model is displayed in the property panel area, including animation properties; the animation properties include animation style, animation trajectory, animation start time and animation duration; Step 2.4, configuring the animation attributes, including: configuring the animation style, animation trajectory, animation start time and animation duration, to obtain a completed target model animation corresponding to the target model; Step 2.5, the design layer result display area displays the animation production process of each target model animation, and can adjust the execution order of each target model animation, thereby obtaining an animation script composed of multiple target model animations associated with the three-dimensional background image; Step 3, previewing the animation script composed of multiple target model animations produced in step 2 by using a preview module, with the three-dimensional background image as the background; Step 4, exporting the animation script composed of multiple target model animations and the three-dimensional background image produced in step 2 through the export module; the exported animation script can play the animations of each target model in sequence in the form of a video with the three-dimensional background image as the background; When designing the animation of the target model in the animation design area, it also includes: Adding multiple lenses in the animation design area; each of the lenses has a different lens angle of view, and under each lens angle of view, a corresponding animation of the target model is designed; Also includes: Step 5, animation playing process, including: First, load and display the 3D background image; start the clock timing module to start timing from the start time of the 3D background image display, and use the monitoring module to monitor the animation start time of the target model animation configuration; When it is monitored that the clock timing module reaches the animation start time configured for the target model animation, the target model animation is triggered, so that the target model animation plays the animation according to the configured animation track and animation style; when the animation duration configured for the target model animation is reached, the animation is stopped; then, the remaining target model animations are monitored and timed through the clock timing module and the monitoring module, so that each target model animation plays according to the configuration; The specific steps include: Step 1. Prepare models: including terrain, buildings, trees, and vehicle models, and add them to the material library; prepare the URL link of the digital twin base map; Step 2. Display the digital twin base map as the 3D background map through the URL link in step 1, and select the required model in the material library area and drag it to the target position of the 3D background map to load the terrain, building, tree, and vehicle models preset in step 1 on the 3D background map; Step 3. Set the style of each model through the property panel area; if the model involves animation, also set the animation properties of the model; animation configuration includes: animation track, track forward / reverse, loop, animation start time, animation delay; In the specific implementation, clockTick is bound to the clock. When the clock reaches the specified animation start time, the callback method will be triggered. This feature is used to implement the timing triggering of animation playback. Step 4. The set animation properties can store all animation parameters. The corresponding animation start time, animation end time, and node time are calculated through the set animation parameters to generate animation scripts. When the animation is clicked, clockTick is called for monitoring to determine whether the model's start time parameters match the current time. If they match, the animation starts. Step 5. The animation track is animated by the set longitude, latitude, altitude and time. When the set time is reached, the specified longitude, latitude and altitude are reached and the model moves along the track direction. The angle of the model will continue to change along the track. In the specific implementation, CallbackProperty is a class whose value is calculated by callback function delay. The class calls itself continuously and throws the changed value whenever the returned object changes. By using this feature, when defining animation style, CallbackProperty is used to generate dynamic objects and assign them to model animation parameters, so that the style change effect can be achieved, thus realizing animation flashing, animation deformation, and animation style effects. Among them: animation flashing, animation deformation, and animation style effects also achieve animation effects by monitoring the calculated time and making corresponding parameter changes; It is also configured with lenses. The principle of lens setting is to actively switch the current lens perspective and set the time parameters, record the current lens's latitude and longitude, heading azimuth, pitch inclination, and roll rotation angle, and monitor the time during the animation execution. The two lenses are directly switched through the camera's setView to set the duration transition time and easingFunction transition animation parameters. There will only be one lens configuration at the same time. In addition, the model's first perspective needs to use the camera's lookAt to dynamically modify the perspective. Step 6. Export the animation script, export the animation script as a whole, or intercept the script by setting the start time and end time of the animation script, using the animation time of each model element and the time of the camera angle.

2. A method for building animation interaction based on a three-dimensional scene according to claim 1, characterized in that: In step 2.3, the animation styles include: animation flashing mode, animation deformation mode and animation style effect.

3. The method for building animation interaction based on a three-dimensional scene according to claim 2, characterized in that: The animation flashing mode includes animation flashing mode, animation flashing frequency, animation flashing start time and animation flashing delay setting; The animation deformation mode includes: animation deformation position, animation deformation scaling ratio, animation deformation direction, animation deformation transparency, animation deformation loop setting, animation deformation start time and animation deformation delay time; The animation style effects include animation fill color, animation stroke color, animation transparency, animation loop setting, animation style start time and animation style delay time.

4. The method for building animation interaction based on a three-dimensional scene according to claim 1, characterized in that: In step 2.3, the attribute information of the target model also includes model style information and model data source information.

5. The method for building animation interaction based on a three-dimensional scene according to claim 4, characterized in that: The model style information includes model display position, model display angle, model display scale, model display transparency, model display outline, model sight distance display, model shadow and model ground contact.

6. The method for building animation interaction based on a three-dimensional scene according to claim 1, characterized in that: The preview module is specifically used for: With the three-dimensional background image as the background, each target model animation is displayed in a timeline in the design sequence of each target model animation; and it is possible to pause or click the timeline to fast forward or rewind to a specified time point.

7. A system for implementing the method for building animation interaction based on a three-dimensional scene as described in any one of claims 1 to 6, characterized in that: include: A three-dimensional background image loading module, used to build a digital twin base based on a three-dimensional engine, and load a three-dimensional background image through the digital twin base; An animation script making module is used to make an animation script associated with the three-dimensional background image; when the animation script making module is triggered, an animation script editing page is entered, and the animation script editing page includes a material library area, an animation design area, a property panel area, and a design layer result display area; through the animation script editing page, an animation associated with the three-dimensional background image is created; The animation script making module is specifically used for: The animation design area initially displays the three-dimensional background image, which is the first layer; The material library area is used to display various models that have been created; select multiple target models as required, and drag the target models to the target position of the three-dimensional background image in the animation design area in order; wherein, in the order of dragging, each target model forms a layer, thereby multiple layers are established on the first layer; For each target model dragged to the animation design area, when it is clicked, the property information of the target model is displayed in the property panel area, including animation properties; the animation properties include animation style, animation track, animation start time and animation duration; Configuring the animation attributes, including: configuring the animation style, animation trajectory, animation start time, and animation duration, to obtain a completed target model animation corresponding to the target model; The design layer result display area displays the animation production process of each target model animation, and can adjust the execution order of each target model animation, thereby obtaining an animation script composed of multiple target model animations associated with the three-dimensional background image; Previewing the animation script composed of multiple target model animations by using the preview module, with the three-dimensional background image as the background; The animation script composed of multiple target model animations and the three-dimensional background image are exported through the export module; the exported animation script can use the three-dimensional background image as the background and play each target model animation in sequence in the form of a video.

Citation Information

Patent Citations

  • Graphic animation design system based on three-dimensional digital earth and design method thereof

    CN107492137A

  • Editing method and system of digital twin virtual three-dimensional scene and storage medium

    CN115049811A

  • Animation editor and animation design method based on three-dimensional map visualization platform

    CN116778038A