hibrid0 Active Member Licensed User Longtime User Aug 4, 2019 #1 Hi I want to know how can I load resources on webview. I try to use Three.js to show a 3D object. If I upload to my server an load with webiview.loadurl, work fine then the webview support webgl. But if I try to load from local, not work. The js files work fine if I embeded on the html, but the model json cant. The json model and the texture not load the files. I use jist the standard webview with js enabled. This a similar model I try to load. http://vectorslave.com/terrax/
Hi I want to know how can I load resources on webview. I try to use Three.js to show a 3D object. If I upload to my server an load with webiview.loadurl, work fine then the webview support webgl. But if I try to load from local, not work. The js files work fine if I embeded on the html, but the model json cant. The json model and the texture not load the files. I use jist the standard webview with js enabled. This a similar model I try to load. http://vectorslave.com/terrax/
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2019 #2 Copy the files to File.DirInternal and load it from there with: Code: WebView.LoadUrl("file://" & File.Combine(File.DirInternal, "index.html")) Upvote 0
Copy the files to File.DirInternal and load it from there with: Code: WebView.LoadUrl("file://" & File.Combine(File.DirInternal, "index.html"))