3D

Updated at:
Copy as MD

The 3D component lets you upload custom 3D models and provides a sample model library. Use this component to visualize 3D scenes for applications like industrial manufacturing and water treatment. This topic describes how to configure the 3D component.

Example

The following figure shows the 3D component displaying a cooling tower model.

冷却塔模型

Step 1: Add the component

  1. Create a web application. For more information, see Create a web application.

  2. In the web application editor, click the component icon 组件 on the far left.

  3. Above the component list to the left of the canvas, enter 3D to find the component. Then, drag the component to the center of the canvas.

    For more information about adding components, see Add a component.

    In the component panel on the left, search for 3D and drag the 3D component from the Basic Components category onto the canvas. After you select the component, you can configure its properties in the Styles panel on the right. These properties include the component name, position (X, Y), width and height, and opacity. In the Model section, click Upload Model to add a 3D model and select a Light Preset. In the Background section, set the 3D scene preset and background color. In the Interaction Settings section, select Free Interaction and configure the Default Zoom and Initial Angle.

Step 2: Configure the data source

  1. In the Styles panel on the right, click Upload Model.

  2. In the Asset Library dialog box, select a 3D model.

    • To use an Official 3D model, click Official in the Source section.

    • To use a local 3D model, click Upload Model. In the Upload Asset dialog box that appears, upload the model to the My model library. Then, in the Source section, click My.

    Important
    • You can upload 3D models in .fbx, .glb, and .3ds formats, or as a .zip archive.

    • The maximum capacity of the My model library is 5 GB.

    • The maximum size for an uploaded 3D model is 10 MB.

    • You cannot delete 3D models from the Official model library. To delete a 3D model from the My model library, click the delete icon 删除.

  3. Double-click the selected 3D model or click OK.

Step 3: Configure styles

  1. In the Styles panel on the right, configure the 3D component's display settings.

    Parameter

    Description

    Material Preset

    Sets the material and color of the 3D model. The Material Color setting is ignored if Material Preset is set to Model default.

    Material Color

    Light Preset

    Sets the lighting effects for the 3D model.

    Background Settings

    Sets the 3D scene, background color, and background image for the 3D model.

    Interaction Settings

    Configures interaction options, including enabling Free Interaction and auto-rotate, and setting the Default Zoom, Initial Angle, and rotation speed.

    Note

    If you select the Free Interaction checkbox, you can drag the model on the preview page to adjust its angle.

  2. Adjust the component's position on the page. For more information about general component style settings, see Configure styles.

  3. Click Preview in the upper-right corner of the page to view and debug the component's data and style.