JSModeler contains a built-in viewer to show models. The viewer needs the Three.js framework, and we can initialize it for an existing canvas in the onload event of the page. If we have a canvas with an id “example”, we can use the following code to initialize the viewer.
The built-in viewer based on three.js library and WebGL. It converts the JSModeler model format to three.js model format, and uses three.js for viewing the model. It means it needs three.js and WebGL support.