Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientImport Namespace Reference

Format-independent scene data produced by asset importers. More...

Classes

struct  ImportedNode
struct  ImportedScene
struct  ImportedAnimationSkinMapping
struct  ImportedAnimation
struct  ImportedDocument

Typedefs

using TextureAssetList = std::vector<RefCntAutoPtr<IRadientTextureAsset>>
 Owning array of strong references to imported texture assets.
using MaterialAssetList = std::vector<RefCntAutoPtr<IRadientMaterialAsset>>
 Owning array of strong references to imported material assets.
using MeshAssetList = std::vector<RefCntAutoPtr<IRadientMeshAsset>>
 Owning array of strong references to imported mesh assets.
using SkinAssetList = std::vector<RefCntAutoPtr<IRadientSkinAsset>>
 Owning array of strong references to imported skin assets.

Functions

RADIENT_STATUS InstantiateSceneGraph (const RadientImport::ImportedDocument &Scene, Uint32 SceneIndex, IRadientSceneWriter &Writer, RadientEntityID RootEntity, IRadientAnimationRegistry *pAnimationRegistry=nullptr)

Detailed Description

Format-independent scene data produced by asset importers.

Function Documentation

◆ InstantiateSceneGraph()

RADIENT_STATUS Diligent::RadientImport::InstantiateSceneGraph ( const RadientImport::ImportedDocument & Scene,
Uint32 SceneIndex,
IRadientSceneWriter & Writer,
RadientEntityID RootEntity,
IRadientAnimationRegistry * pAnimationRegistry = nullptr )

Instantiates a scene from an imported document under an existing root entity.

SceneIndex selects an entry in ImportedDocument::Scenes. InvalidRadientSceneIndex selects the document's default scene. When pAnimationRegistry is provided, supported animation targets are bound to the newly instantiated objects and registered with the scene instance. Animation binding and registration failures are logged and skipped, preserving the instantiated scene.