depthy icon indicating copy to clipboard operation
depthy copied to clipboard

Cannot upload images with Chrome from Linux

Open gloob opened this issue 11 years ago • 4 comments

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.

gloob avatar Apr 23 '14 14:04 gloob

What browser? Hmmm, it seems strange, as these are local files. Can you check it on development build?

panrafal avatar Apr 24 '14 06:04 panrafal

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.

gloob avatar Apr 24 '14 08:04 gloob

Same issue. Chrome 32.0.1700.77 on Ubuntu. 2014-04-27 18 34 12

lukaville avatar Apr 27 '14 14:04 lukaville

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.

mhirsch avatar Feb 29 '16 04:02 mhirsch