在此页面

特效和材质展示

展示Qt Quick 3D 的材质和特效功能。本示例演示了如何在Qt Quick 3D 中使用粒子特效和材质。

该示例包括一个带有 3D 模型的交互式 3D 场景。您可以更改模型的材质,并在场景的几个不同环境之间切换。

除了材质功能外,您还可以在场景中添加雪、烟和火等粒子效果。

运行示例

运行示例 Qt Creator,打开Welcome 模式并从Examples 中选择示例。更多信息,请参阅Qt Creator: 教程:构建并运行

平台说明

对于本示例,您可以为 iOS、macOS、Windows 和 Linux 等主要平台创建目标可执行文件。在 Android 上,本示例创建了一个Module 库。

更多信息,请参阅qt_add_executable

相关类

本示例使用Qt Quick 3D模块,该模块是Qt Online Installer 中的一个单独项目。如果本示例配置失败,请确保已安装Qt Quick 3D。

源文件

示例项目 @ code.qt.io

另请参阅 Qt Quick 3D 示例和教程

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.