maxkrieger / aframe-draw-component

HTML5 canvas component for AFrame VR.
http://a9.io/aframe-draw-component/
57 stars 8 forks source link

Does not work with iOS or Safari Desktop #2

Closed ngokevin closed 8 years ago

ngokevin commented 8 years ago

Getting CORS errors. Is there a workaround?

I tried sending the data URL to an <img> with crossorigin, and then reading from that, but that didn't work.

mayognaise commented 8 years ago

:sob:

ngokevin commented 8 years ago

http://jeromeetienne.github.io/threex.proceduralcity/examples/demo.html seems to be able to provide a canvas as a texture in Safari.

maxkrieger commented 8 years ago

Yeah me and @mayognaise were discussing this problem yesterday. I'll see if I can find a solution in the coming weeks. If anyone finds any more insight on this let me know.

maxkrieger commented 8 years ago

I believe I've solved this with 1.3.0 by piping directly from canvas to texture. Let me know if it works now! @mayognaise @ngokevin

https://github.com/maxkrieger/aframe-draw-component/issues/3

amicoleo commented 8 years ago

Hi, this works for me on Safari Desktop and iOS Safari.

ngokevin commented 8 years ago

Woot!