Hello and thank you for being a member of the community!
If you want to report a bug, please make sure to share a repro on the forum:
code
var canvas = document.getElementById("renderCanvas");
var engine = new BABYLON.Engine(canvas, true);
const vrmLoaderScript = document.createElement('script');
vrmLoaderScript.src = '../../common/js/babylon-vrm-loader/dist/index.js';
document.head.appendChild(vrmLoaderScript);
/******* Add the create scene function ******/
var createScene = function () {
// Create a scene.
var scene = new BABYLON.Scene(engine);
var camera = myArcRotateCamera("Camera", Math.PI / 2, Math.PI / 2, 2, new BABYLON.Vector3(0, 1, 0), scene);
camera.attachControl(canvas, true);
var objHemisphericLight = new BABYLON.HemisphericLight("hemi", new BABYLON.Vector3(0, 1, 0), scene);
objHemisphericLight.intensity = 1;
vrmLoaderScript.onload = () => {
// BABYLON.SceneLoader.Append('./', 'AliciaSolid_vrm-0.51.vrm', scene, () => {
// console.log("scene", scene);
// });
BABYLON.SceneLoader.Append('https://www.3dyzt.com/', 'AliciaSolid_vrm-0.51.vrm', scene, () => {
console.log("scene", scene);
});
};
return scene;
};
/******* End of the create scene function ******/
//Call the createScene function
var scene = createScene();
engine.runRenderLoop(function() {
scene.render();
});
window.addEventListener("resize", function () {
engine.resize();
});