REDDemon wrote:Hi and good work!
it would be interesting to have it. So far Emscripten should work by just using SDL device(for which irrlicht has already a device) and GLES2 .
Yes, that's what I did and it mostly "just works". (only tested one Helloworld)
REDDemon wrote:In both cases we should be able to include support for irrlicht officially, I assume we just need to skip inclusion of libraries that are not available as headers and include the Emscripten includes.
it could be done by checking if the compiler is Emscripten: no need to use special compiler flags.
Only small edits in the Makefile are needed and some ifdef's.
How should I propose it for merge? Never used svn before.
REDDemon wrote:however I see one major issue.. Can you try upload it on some free webhost like altervista, put a big texture (like 2048x2048) and see if the texture load time cause the browser to hang while waiting to download the needed files?.
I think we should at least a custom HTML file to get rid of that horrible emscripten banner and use eventually the nice irrlicht logo
Haven't done any testing. I used Emscripten's 'preload-file' function. Then you have to host a separate file with the filesystem.
The html is just an example. You can just compile to js and then implement the html yourself.
There is still a lot to do.