You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd really like to load textures out of 3D models I'm loading in a locally stored webpage but CORS isn't enabled and I cannot get some resources to load.
You can try with three.js' examples stored locally, like with this demo.
To try, download the master.zip from three.js and try to load the file.
It won't load the resources needed and you'll get a black screen. It works "ok" with a few examples but CORS is really mandatory if content is stored locally (unless you run a dedicated server in the system).
Could we possibly have such a feature as a checkbox in the main app (like with the mute option for videos, for example)?
I should be able to easily modify the source to make it available just for me but I really think that the community may benefit from the modification.
I'd appreciate your opinion on this, merely to know if I should wait for this implementation or if I should make it.
Have a nice day!
EDIT: of course, I can just re-pack the html so that all resources are within the webpage, but the point is about traversing folders. The possibilities it would bring are way beyond wallpapers. Interactive GUIs/3D file managers/you name it!
The text was updated successfully, but these errors were encountered:
This looks like exactly what you need. I don't know much of this topic, but I suspect a simple webView.web_context.get_security_manager().register_uri_scheme_as_cors_enabled("http") will do the trick 🙂
I'd really like to load textures out of 3D models I'm loading in a locally stored webpage but CORS isn't enabled and I cannot get some resources to load.
You can try with three.js' examples stored locally, like with this demo.
To try, download the master.zip from three.js and try to load the file.
It won't load the resources needed and you'll get a black screen. It works "ok" with a few examples but CORS is really mandatory if content is stored locally (unless you run a dedicated server in the system).
Could we possibly have such a feature as a checkbox in the main app (like with the mute option for videos, for example)?
I should be able to easily modify the source to make it available just for me but I really think that the community may benefit from the modification.
I'd appreciate your opinion on this, merely to know if I should wait for this implementation or if I should make it.
Have a nice day!
EDIT: of course, I can just re-pack the html so that all resources are within the webpage, but the point is about traversing folders. The possibilities it would bring are way beyond wallpapers. Interactive GUIs/3D file managers/you name it!
The text was updated successfully, but these errors were encountered: