本页面内容

特效与材质展示厅

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

带材质和粒子特效控制面板的3D金色龙模型

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

除了材质功能外,您还可以向场景中添加基于粒子的特效,例如雪、烟雾和火焰。

运行示例

您可以通过以下方式运行该示例:

平台说明

在此示例中,您可以为主要平台(包括 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.