Amethyst17 Posted June 19, 2020 Share Posted June 19, 2020 When I am loading the scene, the "progress.total" is 0 BABYLON.SceneLoader.Load(folder, fileName, $scope.engine, function (loadedScene) { //Do something with the scene },loadingProgress); function loadingProgress(progress) { var lp = (Math.round((progress.loaded / progress.total) * 100)).toString() + '%'; $(ls).find('[data-progress="true"]').html(lp); } The "progress.loaded" is giving me the correct number, but the "progress.total" is 0. Why is this happening? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.