Case
Case 1:Version too old
hello, There is an error in the 3D preview of this model. Is kooviewer responsible for this sdk?

http://qhmodel-viewer-oss.kujiale.com/release/0.0.75/sdk-ui.min.js

Troubleshooting steps:
- Confirm the SDK version you are using?
- The version number in the case is 0.0.75, which is too old.Update to the version written in the document.
- Is there a problem trying again?
Case 2: UI SDK usage error
https://s3.amazonaws.com/onlyshowroom.com/demo.html

Problem:
- When using the UI SDK, just create an instance, and you cannot call the start() method again.
- If you want to ensure the timing of the getComponents() method call, you can use afterDidMount();
Common problem
There are slight differences in details between SDK and UI SDK :
- After the SDK creates an instance, you need to call the start () method.
import { ViewerSDK } from '@qunhe/3d-model-viewer-sdk';
const viewer = new ViewerSDK({
mount: document.getElementById('app') ,
modelId: '3FO4BW6OBYGE',
});
viewer.start().then(() => {}).catch(() => {});
- The UI SDK can be used after creating an instance.
import { ViewerUISDK } from '@qunhe/3d-model-viewer-sdk';
const viewer = new ViewerUISDK({
mount: document.getElementById('app') ,
modelId: '3FO4BW6OBYGE',
});