ozRocker Posted July 27, 2015 Share Posted July 27, 2015 For some reason when I add website user authentication "scene.executeWhenReady()" never runs. My code is like this:BABYLON.SceneLoader.Load("assets/", "main.babylon", engine, function (newScene) { console.log("Scene loaded"); newScene.executeWhenReady(function () { console.log("execute when ready"); //do stuff }}It prints "Scene loaded" but never prints "execute when ready". It works fine Safari, Chrome and Firefox though. I've set up my .htaccess like this:RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^([^/]+)/([^/]+)$ /index.php?menu=$1&submenu=$2 [QSA,L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^([^/]+) /index.php?menu=$1 [L]AuthUserFile /var/www/somedirectory/.htpasswdAuthName "Punk Office development site"AuthType Basicrequire user someguyI'm no expert in server configurations so I might have done something wrong here, but strange that it works everywhere cept in IE. Also there's no error message in the IE console.log Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 27, 2015 Author Share Posted July 27, 2015 ok, so what was happening is Babylon.js was trying to load images from a subdirectory and it didn't have the right credentials. I don't know how to fix that, but I just removed password protection from that particular folder with "Require all granted" in its .htaccess file and it worked. All browsers were having problems with this, I think the other browsers just happened to have cached data GameMonetize 1 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.