Hello @brianzinn !
I used for showing glb file. Currently we used webworker for lazy loading and get blob file. How I can import it into model?
I used rootUrl to added url link, but its not working with blob variant.
Also with this way its not working too.
const assetBlob = new Blob([assetArrayBuffer]);
const assetUrl = URL.createObjectURL(assetBlob);
Can you share the code where you pass the data - also make sure you are passing plugin extension:
<Model .... pluginExtension=".glb" />
2 Likes
<Suspense fallback={null}>
<Model
name="model"
rootUrl={data} // blob value
sceneFilename=""
scaleToDimension={3}
pluginExtension=".glb"
position={new Vector3(0, -2, 0)}
onModelLoaded={onModelLoaded}
/>
</Suspense>
pluginExtension=".glb" - fix the issue, thanks @brianzinn !
1 Like