-
Notifications
You must be signed in to change notification settings - Fork 13
Description
One thing I've been considering is how LOD handling should be handled on the web. Could we leverage <source srcset to define LOD swapping?
An example:
<model>
<source
srcset="assets/example_200.usdz 200w, assets/example_1024.usdz 1024w"
type="model/vnd.usdz+zip"
>
</model>
The idea here would be that when the model is rendered at 200px or less in the viewport that the model from url assets/example_200.usdz would be rendered. Just to be clear I'm not talking about elements innerWidth but rather the render resolution of the model itself calculated from a bounding sphere.
It could be assumed that the lowest quality model is the one that would be rendered at the lowest resolution.
Arguing against this idea it could be argued that the 3D Model Format itself should define this functionality.
I've created a demo using canvas/webgl that has similar functionality that I can share at some point if it's helpful.