Troubleshooting steps for kooviewer error reporting

Case

Case 1:Version too old

https://www.kujiale.com/pub/site/model/brandmodel/3FO4GDA9LBNH?kpm=qkWL.4b43c27b89b74773.5610f06.1626348291067

hello, There is an error in the 3D preview of this model. Is kooviewer responsible for this sdk?

673

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

613

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

1444

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',
});