8000 web: createInstancedAsset: "Cannot call gltfio$FilamentAsset._getAssetInstances due to unbound types: 0x19f231" · Issue #8711 · google/filament · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aep opened this issue May 8, 2025 · 0 comments

Comments

@aep
Copy link
aep commented May 8, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0