Using 3D Components | Qt Creator Manual

- Qt Creator Manual
- Using 3D Components
- Qt Creator Manual 4.13.0

Adding 3D Views ◦ Setting Node Properties

# Using 3D Components

To add 3D components to the scene, drag and drop a them from Library > QML Types > Qt Quick 3D to the scene or to a 3D view in the Navigator.

To edit 3D components, select the component in the 3D editor or in the Navigator and set its properties in the Properties view.

- Setting Node Properties

  You can set the opacity, visibility, and transform properties of all 3D components.

- Adding Models

  You can use the model component to load static mesh data from storage or one of the built-in primitive types: cube, cone, cylinder, rectangle, or sphere. You can attach materials to meshes and sub-meshes.

- Using Materials and Shaders

  You can use materials and shaders to define how object surfaces are rendered in a scene and during live preview.

- Attaching Textures to Materials

  You can use a Texture component to specify an image and how it is mapped to meshes in a 3D scene. Texture components can use image data either from a file or a Qt Quick QML type.

- Applying 3D Effects

  You can use 3D effect components to generate post-processing effects.

- Using Lights

  You can use several light types as the source of lighting in a scene and set their properties.

- Using Scene Camera

  To project a 3D scene to a 2D viewport, it is necessary to view the scene from a camera. You can select the camera type and set its properties.

- Setting Scene Environment

  You can use the SceneEnvironment type to specify how the scene is rendered globally.

Adding 3D Views ◦ Setting Node Properties