Do both the .glb and .usdz files get loaded each time the model is rendered? #1914
Replies: 3 comments
-
The glb is always loaded as this is what is used to render within model-viewer itself. The |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response. Just to confirm, in terms of network usage, at the point in time where the AR experience is activated, the overall size of the assets required for the experience is 2x the size of the .glb file for Android, and .glb + .usdz sizes on iOS. And as a followup, in the case of Android, would the glb get re-downloaded even if the browser cached the initial glb file? |
Beta Was this translation helpful? Give feedback.
-
The key is to remember that when activating the quick-look or scene-viewer AR modes, you are leaving the browser entirely for a native app, so they aren't even in the same process and there is definitely no shared memory. When activating the webxr version of AR (currently Android-only), you stay in the browser and nothing is re-downloaded, in fact it keeps using the same GL context so there is no extra setup at all. |
Beta Was this translation helpful? Give feedback.
-
Currently I am setting both the
src
andiosSc
assets for each model, so that it can be viewed on all compatible devices.I'm trying gauge storage costs at scale and was wondering how these assets get loaded. Does model-viewer always load both? Does it conditionally load based on device/browser? Guess the overarching question is : what constitutes the
load
event and does this differ for iOS/Android.Beta Was this translation helpful? Give feedback.
All reactions