Open gloob opened 10 years ago
What browser? Hmmm, it seems strange, as these are local files. Can you check it on development build?
Hi, I didn't tested in local from git I just try to use http://depthy.stamina.pl site to upload it. I'm using Google Chrome 31.0.1650.34 beta.
Same issue. Chrome 32.0.1700.77 on Ubuntu.
WebGL texture loads require the same kind of cross-origin permissions that normal image loads require. See: https://hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
Three.js has a feature to handle this: https://stackoverflow.com/questions/24087757/three-js-and-loading-a-cross-domain-image
I haven't googled it but I would guess pixiJS has something similar.
Try to upload an image and this error appears in console:
Failed to load resource: the server responded with a status of 404 (Not Found) http://depthy.stamina.pl/styles/vendor.css compoundFiles 3be9a114.scripts.js:1 2 Cross-origin image load denied by Cross-Origin Resource Sharing policy. depthy.stamina.pl/:1 2 WebGL: INVALID_VALUE: texImage2D: no image depthy.stamina.pl/:1 [.WebGLRenderingContext]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete' depthy.stamina.pl/:1
The rest are other WebGL warnings probably because not texture loaded.