You can use the code from gltf-viewer for centering your object and an optimal camera configuration:
The variable object
represents your loaded asset.
You can use the code from gltf-viewer for centering your object and an optimal camera configuration:
The variable object
represents your loaded asset.