特效和材质展示
演示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 。
源文件
另请参阅 Qt Quick 3D 示例和教程。
© 2025 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.