Kuesa::Serenity::GLTF2Importer¶
Imports glTF 2 scenes into a Serenity 3D scene. More...
#include <Kuesa/Serenity/api/gltf2importer.h>
Inherits from KDFoundation::Object
Public Types¶
Name | |
---|---|
enum class | Status { None, Loading, Ready, Error} |
Public Functions¶
Name | |
---|---|
GLTF2Importer() | |
~GLTF2Importer() | |
std::vector< std::unique_ptr<::Serenity::Entity > > & | sceneRoots() |
Public Attributes¶
Name | |
---|---|
KDBindings::Property< String > | source the source of the glTF file |
KDBindings::Property< bool > | assignNames if true, assets with no names will be added to collections with default names (default is false) |
KDBindings::Property<::Serenity::LayerManager * > | layerManager |
KDBindings::Property< AssetCollections * > | assetCollections asset collections |
KDBindings::Property< Status > | status |
Detailed Description¶
1 |
|
Imports glTF 2 scenes into a Serenity 3D scene.
Since: Kuesa 2.0
Note: Materials are registered using the name of the glTF node that references the glTF mesh.
GLTF2Importer imports glTF 2 scenes into a Serenity 3D scene.
1 2 3 4 |
|
If a Kuesa::Serenity::AssectCollections has been set on the importer, various Qt 3D resources generated upon import will be registered into named collections. If no name is specified for an asset in the glTF, a default name will be assigned to the asset. If several assets of the same type share the same name, subsequent assets will be given unique names by appending an index.
Below is a list of resources currently registered into collections:
- AnimationClips
- AnimationMappers
- Cameras
- Entities
- Lights
- Meshes
- Materials
- Textures
- Transforms
Public Types Documentation¶
enum Status¶
Enumerator | Value | Description |
---|---|---|
None | ||
Loading | ||
Ready | ||
Error |
Public Functions Documentation¶
function GLTF2Importer¶
1 |
|
function ~GLTF2Importer¶
1 |
|
function sceneRoots¶
1 |
|
Public Attributes Documentation¶
variable source¶
1 |
|
the source of the glTF file
variable assignNames¶
1 |
|
if true, assets with no names will be added to collections with default names (default is false)
variable layerManager¶
1 |
|
variable assetCollections¶
1 |
|
asset collections
See: Kuesa::Serenity::AssetCollections
variable status¶
1 |
|
Updated on 2023-07-03 at 11:02:06 +0000