Re:Mozilla and Unity Bring Unity Game Engine to WebGL
by TazeTSchnitzel on Tuesday March 18, 2014 @03:02PM
(#7424174)
>Also how can you load say models but not textures? All files are just binary data.
CORS and the Same Origin Policy.
Re:Mozilla and Unity Bring Unity Game Engine to WebGL
by valarauca1 on Tuesday March 18, 2014 @03:18PM
(#7424302)
If you read thought my comment history you'll see I'm not a web developer.
Re:Mozilla and Unity Bring Unity Game Engine to WebGL
by camus2 on Tuesday March 18, 2014 @05:17PM
(#7425058)
dont worry CORS or same origin policity have nothing to do with the way the server should load assets.Not sure why the other guy talked about that. The issue you raised still stands.
Re:Mozilla and Unity Bring Unity Game Engine to WebGL
by TazeTSchnitzel on Tuesday March 18, 2014 @06:39PM
(#7425549)
What? Loading of WebGL textures is subject to the same origin policy.
Re:Mozilla and Unity Bring Unity Game Engine to WebGL
by vbnd on Wednesday March 19, 2014 @01:20AM
(#7426965)
You can load WebGL texture from byte[] pixel array. http://stackoverflow.com/questions/9046643/webgl-create-text...
Also how can you load say models but not textures? All files are just binary data.
I guess your only option is to play around with indexDB. Also it that per file 50MB, or overall 50MB. I guess with more aggressive compression could could achieve decently small disk usage.