Roaming Animation in 3D Scenes

  • Last update:November 15, 2024
  • Overview

    Application scenario: If you have installed the FineVis Data Visualization plugin, you can learn functions related to the FVS template in this document.

    Version

    Report Server Version
    Plugin VersionFunctional Change

    11.0.16

    V1.x

    /

    11.0.16

    V2.0.0

    Optimized the prompt for exiting a preview on the scene editing page.

    11.0.22

    V2.3.1

    Added setting items for viewing angle parameters for better animation effects.

    11.0.22

    V2.10.0

    • Modified Add Roaming Path to Add Roaming Animation.

    • Added Playback Command (whose value can be set to Start Playback, Pause Playback, or Exit Playback) to optimize the interaction event page of 3D Roaming Animation. For details, see section "3D Animation Event  Playback."

    Application Scenario

    In a 3D scene, you can form a roaming path by adding multiple viewing angles. Then, the roaming animation effect of the 3D scene can be achieved through the click events.

    Function Description

    Adding Roaming Animation

    1. Enter the 3D component editing page, and click Add Roaming Animation under Scene > Camera > Roaming Animation to enter the roaming animation setting panel.

    1.png

    2. After adjusting the viewing angle of the 3D scene, click Add Current Viewing Angle to add the current viewing angle to the list in the box. Then adjust the next viewing angle, and click Add Current Viewing Angle. Repeat the addingprocess to form a path.

    三维GIF111.gif

    The following table describes the setting items of the roaming path.

    iconNote:
    You cannot undo the operations such as viewing angle modification and deletion. Perform such operations with caution.
    Setting ItemDescription

    Path Name

    You can customize the roaming path name.

    Roaming Mode

    You can switch between two roaming modes.

    • Uniform Roaming

    • Custom Roaming: You can customize the flight time from the current viewing angle to the next one.

    Viewing  Angle List

    • You can drag the added angles up and down to change their order.

    • When a viewing angle is selected, the 3D scene in the current viewing angle is immediately displayed.

    • You can delete a certain viewing angle.

    Viewing   Angle Name

    You can customize the name of a selected viewing angle. Duplicate names are not allowed.

    Viewing   Angle Parameter

    • The camera coordinate and viewpoint coordinate of the selected viewing angle are displayed. You can manually modify the coordinates.

    • The buttons below the parameters are Update Parameter, Copy, and Paste to Replace.

    • When the viewing angle of the scene on the left is changed, the parameters of the selected viewing angle will not change. You need to click Update Parameter to update these parameter.

    Dwell Time

    You can set the dwell time in wich the scene in the selected viewing angle is displayed.

    Flight Time

    If Custom Roaming is selected, you can set Flight Time.

    (Flight Time specifies the flight time from the current viewing angle to the next one, which does not take effect for the last viewing angle.)

    3. After setting a roaming path, click OK to return to the configuration panel under Scene > Camera. In the roaming path list, you can edit, preview, and delete roaming paths.

    • Preview allows you to view the roaming animation effect on the current 3D scene editing page.

    • During the preview, you can click Exit Preview or press the shortcut key Esc to stop the animation playback. You can press the spacebar to pause/resume the animation playback.

    • If you exit the preview or end the roaming animation midway, the scene will stay in the current viewing angle.

    iconNote:
    In V2.0.0 and later versions, if you click anywhere on the designer page other than the Exit Preview button during preview, a prompt saying "Exit the roaming animation preview before performing other operations." will be displayed, as shown in the following figure.

    Setting Roaming Amination Playback

    Roaming Animation Event Playback

    The 3D Roaming Animation click event is added in the component interaction attribute. You can set click-to-play roaming animation effects for all components that support click events.

    Function setting items are as follows.

    • Action Name: Name an action.

    • Animation Source: Set the animation object source. You can select 3D components on the current page. The component applied by the background page is regarded as a content page component, and is only effective for the current content page.

    • Animation Object: Select the 3D component object. You can select multiple animation objects and adjust their orders.

    • Playback Command: You can select Start Playback, Pause Playback, or Exit Playback.

    • Playback Method: You can select Single Playback (default value) or Loop Playback.

    Example:

    2.0.png

    JavaScript Event

    The roaming animation playback event can only be triggered by clicking. 

    The code is as follows for the template with only one page.

    setTimeout(() => {
      duchamp.getWidgetByName("Warehouse Park").playRoamAnimations({
       names:["Roaming Path 1"],
       playMode: "once"
    })
    }, 3000)

    The code is as follows for the template with multiple pages.

    duchamp.on("storychange", (current) => {
     if (current === "Page 2") {
      setTimeout(() => {
       duchamp.getWidgetByName("Warehouse Park").playRoamAnimations({
        names: ["Roaming Path 1"],
        playMode: "loop"    })
      }, 3000);
     }
    });

    Example:

    3.png

    Setting Animation Pause/Resumption/Exit

    Roaming animation pause/resumption/exit during the template preview cannot be realized through shortcut keys. 

    The code is as follows for playback pause.

    duchamp.getWidgetByName("Warehouse Park").updateRoamAnimationAction("pause");

    The code is as follows for playback resumption.

    duchamp.getWidgetByName("Warehouse Park").updateRoamAnimationAction("continue");

    The code is as follows for playback exit.

    duchamp.getWidgetByName("Warehouse Park").updateRoamAnimationAction("exit");

    Example:

    4.png

    Notes

    1. During the template preview, if the focus or refresh interface in a 3D component with a roaming animation being played currently is also invoked in other components, the roaming animation playback will be terminated.
    2. During the template preview, if the 3D component with a roaming animation being played is set with a monitoring refresh, the roaming animation playback will be terminated when you refresh the component.

    Template Download

    For details, you can download the template 3D Scene Roaming Example.fvs.

    Attachment List


    Theme: FineVis Data Visualization
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy