In the public directory I have created a data folder in which I have pasted the microengine.scs file.
In the public directory I have also created a js/hoops/hoops_web_viewer.js file in which I have pasted the hoops_web_viewer.js file within the SDK’s directory structure.
I see only the box with the black border, but nothing is rendered inside it.
Hi, Tino, thanks for your fast reply. The problem is that I have already tried the approach from the above video… It is not working for me. This is the code example:
import microengine from "../assets/microengine.scs";
export default class ViewerManager {
createViewer(divId) {
let viewer = new window.Communicator.WebViewer({
containerId: divId,
endpointUri: microengine,
});
viewer.start();
return viewer;
}
}
Just to clarify for the React approach I have defined the .scs file in assets folder, and I am calling the HoopsViewer component, just showing the black border and no model inside them. Same for the simple HTML page.
I have added the engine.wasm and engine-wasm.js files in hoops directory. Now I do not see any errors in console or failing resourses in network tab. The model is still not loading. Can I provide you any other additional data ?
Now it is working for me also withouth any additional changes. There was a mistake when copiying the .scs file. So I think there is no issue with the library and we can close the issue. Thank you for the support.