Xeonzinc Posted February 24, 2015 Share Posted February 24, 2015 Hi, Currently i create my ground mesh from a height map which is created dynamically on the canvas with:world_map = canvas.toDataURL();This is then just passed to the CreateGroundFromHeightMap function, where it creates the height map. Everything works fine when i run this at the start of my program. Now I'm working on rebuilding the ground in game, however whenever I run the same functions again everything still works (the new canvas height map is created, put into a dataURL and the mesh is constructed) but once all the other functions have finished I get this error:XMLHttpRequest cannot load data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAADUCAYAAADTEMIsAAAgAElEQ…gmrCfUWUWMxNTwxuXZjRsTzpS8riZwYmpFxXufWonXYPoMikF/INIzW/MAAAAASUVORK5CYII=. Received an invalid response. Origin 'http://126.96.36.199' is therefore not allowed access.babylon.js:3 BJS - [17:15:18]: Error in XHR request in BABYLON.Database.I don't really understand why I'm getting this error when: a ) The image is getting used babylon without problem before the error is thrown b ) There is no error when i first run the process (and I'm disposing of everything as far as i can tell) Quote Link to comment Share on other sites More sharing options...
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.