Hello Team,
I am currently working with Hoops Communicator and have successfully loaded a primary model (model1.scz
) into the scene using the WebViewer
as follows:
javascript
Copy code
let params = {
containerId: "divId",
streamMode: window.Communicator.StreamingMode.All,
rendererType: window.Communicator.RendererType.Client,
streamCutoffScale: streamCutoffScale,
endpointUri: uri,
boundingPreviewMode: Communicator.BoundingPreviewMode.None,
model: 'model1.scz'
};
let _viewer = new window.Communicator.WebViewer(params);
_viewer.start();
I would like to load an additional model (model2.scz
) into the same scene without replacing the primary model. Could you guide me on the best way to achieve this?
My Trials:
const root = this.viewer.model.createNode(rootNodeId, "combineModel");
await this.model.loadSubtreeFromModel(root, 'model2.scz');
Error: Missing model: ‘model2.scz’.
(Note: but the endpoint url for both the models are not same)
Thank you in advance for your assistance!