汽车配置器

汽车模型示例,演示如何使用Qt Quick 3D摄像头、扩展场景环境和Qt Quick 3D。

运行示例

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

概述

Car Configurator在不同的场景环境中显示不同颜色的汽车。它使用 QML 实现,并依赖于许多 Qt 模块,其中最突出的是 Qt QuickQt Quick 3D

注意: 本示例在运行时会从互联网服务器下载一些资产。因此,首次启动时需要连接互联网。

您可以在两种模式下与汽车模型进行交互:

  • 演示模式
  • 用户模式

演示模式

摄像头视角沿不同路径移动,显示汽车的不同视图。

重置摄像头

摄像机回到初始位置。

场景环境

本示例有四种场景环境可供选择:

  • 沙漠
  • 车库
  • 工作室
  • 动画

汽车颜色

汽车有四种颜色可供选择:

  • 白色
  • 黑色
  • 黄色
  • 红色

车灯

您可以打开或关闭汽车的灯光。

示例项目 @ code.qt.io

© 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.