Skip to content

web: createInstancedAsset: "Cannot call gltfio$FilamentAsset._getAssetInstances due to unbound types: 0x19f231" #8711

Open
@aep

Description

@aep

createInstancedAsset doesnt work from js

const instancesArray: any[] = new Array(instanceCount).fill(null);                                                                                                 
const asset = loader.createInstancedAsset(modelBuffer, instancesArray);                                                                                                                                                       
Cannot call gltfio$FilamentAsset._getAssetInstances due to unbound types: 0x19f231"

this may be a limitation of emscripten not being able to pass an array

however, according to the documentation in https://github.com/google/filament/blob/main/libs/gltfio/include/gltfio/AssetLoader.h#L204C20-L204C40 this is the only method to actually create multiple instances efficiently.

Metadata

Metadata

Labels

gltfSpecific to glTF supportlow priorityLow priority issuewebIssue/request for WASM/WebGL

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions