Kuesa Runtime

SceneConfiguration QML Type

SceneConfiguration provides a way of conveniently specifying information about a glTF2 file and accompanying helpers to be loaded. More...

Since: Kuesa 1.3
Instantiates: SceneConfiguration

Properties

Detailed Description

SceneConfiguration provides a way of conveniently specifying information about a glTF2 file and accompanying helpers to be loaded.

When building an application that should display different scenes at different moments in time, recreating a new Qt 3D view with its FrameGraph, Kuesa::GLTF2Importer and other assets can be costly and unnecessary. Yet, that approach is still often favored as it can be seen as more convenient for the developer from an architecture point of view.

The KuesaUtils::SceneConfiguration used in conjunction with KuesaUtils::View3DScene provides a new way to architecture such type of applications. The idea is to instantiate the View3D once and use its KuesaUtils::View3DScene::activeScene property to point to different KuesaUtils::SceneConfiguration instances. Internally, when the active scene is changed, the new glTF2 file will be loaded and assets needed created while previous glTF2 file and assets unloaded.

Property Documentation

cameraName : string

The name of the camera asset that should be used to view the scene. If the name references a valid camera, the camera will automatically be set on the ForwardRenderer frameGraph and other internal assets such as Kuesa::TransformTracker.


source : url

The source of the glTF file to be loaded.