panrafal / depthy

Extract depth map and original from photos made with Google Camera's Lens Blur.
http://depthy.stamina.pl
MIT License
1.32k stars 164 forks source link

Cannot upload images with Chrome from Linux #8

Open gloob opened 10 years ago

gloob commented 10 years ago

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.

panrafal commented 10 years ago

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

gloob commented 10 years ago

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.

lukaville commented 10 years ago

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

mhirsch commented 8 years ago

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.