zhang Posted August 3, 2017 Share Posted August 3, 2017 Hi I would like to use my demo android webview app, but app in the run to BABYLON.SceneLoader.ImportMesh ("", "02 / Binary /", "02.binary.babylon", scene, function (newMeshes) {} This function can not run because it can not read the local file Is there a way to keep babylon projects running on a local server Does anyone have the same problem, and that can tell me how to solve it? thanks Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 3, 2017 Share Posted August 3, 2017 Hello zhang, Babylon.js projects are running fine on a local server. Maybe if you show us more of your code/configuration we can help you ? Quote Link to comment Share on other sites More sharing options...
zhang Posted August 3, 2017 Author Share Posted August 3, 2017 hi I have a demo, he is used to display the heritage model, it can have a local server environment (such as nginx) can be a good run. My purpose to pack him into app, so that it can be off-line environment to show the results to customers. I now meet the problem is that, "index.html" can not be opened directly to run only in the case of local services to run. Quote Link to comment Share on other sites More sharing options...
zhang Posted August 3, 2017 Author Share Posted August 3, 2017 Packaged app, he is mainly to show the index.html, but there is no local server, resulting in the app can not run up Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 3, 2017 Share Posted August 3, 2017 If you don't have any local webserver, you won't be able to load objects... There is no solution for this as far as i know. Quote Link to comment Share on other sites More sharing options...
zhang Posted August 4, 2017 Author Share Posted August 4, 2017 Well, I try to have no other way to achieve the purpose, if any, I will come back Thank you Quote Link to comment Share on other sites More sharing options...
zhang Posted August 4, 2017 Author Share Posted August 4, 2017 Hi I think I find a way to do an offline babylon App, The use of “ionic codova” can achieve the effect of offline loading model。 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 4, 2017 Share Posted August 4, 2017 This looks really cool! 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.