Search found 10 matches

by labsin
Wed Apr 19, 2017 6:20 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

Good job.
by labsin
Wed Apr 12, 2017 10:30 am
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

Yes, I'm not sure at all about the make file.
I had to set the Unicode directive, but it wasn't used when compiling the .d files. I think it has something to do with the .import thing. I have not a lot of experience with editing make files.

Your example also works in the android (chrome) browser.
by labsin
Wed Apr 12, 2017 5:38 am
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

I ttied building the HEAD now. When I ran it in Firefox I opened up the developers console (the hotkeys don't work as the emscripten html page grabs all input, you can disable this somewhere tho). It complained about the display not set. The code I added in CEGLManager.cpp for this wasn't patched. S...
by labsin
Tue Apr 11, 2017 6:09 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

On windows the same clang compiler is used to compile CPP to llvm ir (the clang from the emscripten sdk). And fastcomp is the llvm back end of emscripten to compile llvm ir to js/HTML. VS (or MinGW) is used only to build fastcomp when you install emsdk from source and nothing more. With the VS plugi...
by labsin
Tue Apr 11, 2017 5:05 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

I'll give it a try. I defined _IRR_LINUX_PLATFORM_ because emscripen has good support in mimicking Linux. Emscripten prefers the webgl subset of gles (that's default). If you want to use the compatibility layer of gles do you can use all functions, you need to set FULL_ES2=1. This needs to be set in...
by labsin
Fri Apr 07, 2017 5:33 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

I never used emscripten on windows but I thought it compiled with the same code path, with __UNIX__ defined etc and with the same headers. It "should" work.
by labsin
Sun Apr 02, 2017 10:50 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

Emscripten should go as easy on Debian as on ubuntu. On linux there are no prebuilds so compiling it takes soms time. I just installed 'latest'. The packages in Ubuntu repo are too old. The emmake commandant just sets all the env vars to point to the em compilers emcc and emc++ and the linker. Emcon...
by labsin
Sun Apr 02, 2017 10:04 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

https://drive.google.com/open?id=0B1euibKhpEeQMnUzN2ZPajg5emc <- emscripten.patch (svn diff > empscripten.patch) Only tested the first example. So it's just a start. Don't know if I'm going to add a lot soon. You can build the core with 'emmake make emscripten' The example is build with 'emmake mak...
by labsin
Sun Apr 02, 2017 7:59 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Re: Emscripten port

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) In both cases we should be able to include s...
by labsin
Sun Apr 02, 2017 5:55 pm
Forum: Open Discussion and Dev Announcements
Topic: Emscripten port
Replies: 57
Views: 19348

Emscripten port

Hi I've managed to get (at least) the 01.HelloWorld example to run on the webs with emscripten. I've used the ogl-es branch to compile this. It uses a combo of SDL/EGL/GLES2 which seems to work. https://s28.postimg.org/r198940zh/Schermafdruk_van_2017-04-02_19-51-59.png Is there interest to get this ...