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 ran into this problem when trying to load a model from another domain. The .dae came in fine, but a security error happened when trying to render the texture. Last year, CORS for webgl textures was briefly disabled because it actually was a security risk, but now Chrome and FF currently support the crossorigin attribute on Image to circumvent the problem.
I was able to bypass this issue by modifying GLGE.Texture.prototype.setSrc as following:
// ... snip ...this.image=newImage();this.image.crossOrigin="anonymous";// Allow cross-domain resource sharing for image// ..rest of code ...
I'm not sure if this is by design or an oversight; however, any clarification would greatly be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
I ran into this problem when trying to load a model from another domain. The .dae came in fine, but a security error happened when trying to render the texture. Last year, CORS for webgl textures was briefly disabled because it actually was a security risk, but now Chrome and FF currently support the
crossorigin
attribute onImage
to circumvent the problem.I was able to bypass this issue by modifying
GLGE.Texture.prototype.setSrc
as following:I'm not sure if this is by design or an oversight; however, any clarification would greatly be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: