Page 1 of 1

JavaScript / Emscripten

Posted: Sat May 09, 2015 2:08 pm
by Crush
Has anyone got any idea how practical it would be to port Oolite to JavaScript?

Emscripten (and others) will apparently compile C++ to JavaScript, and as I would like to be able to play Oolite on my ChromeBook, this seemed a possible route.

Re: JavaScript / Emscripten

Posted: Sat May 09, 2015 2:48 pm
by kanthoney
Oolite is written in objective C, not C++. Even if there were a similar thing for objective C, I'd vote for insanely impractical.

Re: JavaScript / Emscripten

Posted: Sat May 09, 2015 2:51 pm
by another_commander
The first problem I see here is that Oolite is not written in C++. But even if you manage to find something that translates Objective-C to Javascript, I still don't see it happening.

Edit: Ninjas everywhere.

Re: JavaScript / Emscripten

Posted: Sat May 09, 2015 7:15 pm
by Crush
Oops! My bad. I had a brain fart - of course Oolite is written Objective C.

Re: JavaScript / Emscripten

Posted: Sat Jun 27, 2015 2:56 pm
by grondilu
What we want is a full rewrite of oolite in HTML5/WebGL.

A daunting task for sure, but a man can dream.

Me, I'm currently reading about WebGL and I'd love to try to at least make a mini-game where the goal would be to dock to a coriolis station:

Image


Also, it so happens that a WebGL online course will begin in a few days on coursera:

https://www.coursera.org/course/webgl

Again, a man can dream ! :lol:

Re: JavaScript / Emscripten

Posted: Mon Jun 29, 2015 7:59 pm
by Crush
grondilu wrote:
What we want is a full rewrite of oolite in HTML5/WebGL.

...

Also, it so happens that a WebGL online course will begin in a few days on coursera:

https://www.coursera.org/course/webgl
I've done some playing about with Three.js, but currently have limited bandwidth due to day_job && small_child_monster++

If you get something going with WebGL that would be awesome. If you're putting code on GitHub or similar please post coordinates.

Re: JavaScript / Emscripten

Posted: Mon Jun 29, 2015 8:37 pm
by grondilu
Crush wrote:
grondilu wrote:
What we want is a full rewrite of oolite in HTML5/WebGL.

...

Also, it so happens that a WebGL online course will begin in a few days on coursera:

https://www.coursera.org/course/webgl
I've done some playing about with Three.js, but currently have limited bandwidth due to day_job && small_child_monster++

If you get something going with WebGL that would be awesome. If you're putting code on GitHub or similar please post coordinates.
I created a new thread because this one was explicitly about Emscripten.

https://bb.oolite.space/viewtopic.php?f=5&t=17433

Re: JavaScript / Emscripten

Posted: Mon Jun 29, 2015 9:06 pm
by Commander_X
grondilu wrote:
I created a new thread because this one was explicitly about Emscripten.

https://bb.oolite.space/viewtopic.php?f=5&t=17433
You actually created a new thread called WebGL effort :D