内容表

上一话题

Qt 3D:Scene2D QML 范例

下一话题

Qt 3D:阴影贴图 QML 范例

Qt 3D:Scene3D QML 范例

QML 应用程序演示可视化 3D 场景。

../_images/scene3d.png

This example demonstrates visualizing a 3D scene from a Qt Quick application. The 3D scene contains a single active camera and a single active light source. Visualized data is assumed to be at a fixed location.

运行范例

要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 . For more information, visit Building and Running an Example.

可视化 3D 场景

We set up the 3D scene and specify the entity to animate in main.qml :

We specify the active camera in scene3d/AnimatedEntity.qml :

范例工程 @ code.qt.io