JavaScript / Emscripten

Information, contacts and source code for ports to Linux, Windows, etc.

Moderators: winston, another_commander

Post Reply
Crush
Competent
Competent
Posts: 32
Joined: Tue Oct 20, 2009 2:07 pm

JavaScript / Emscripten

Post by Crush » Sat May 09, 2015 2:08 pm

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.

User avatar
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: JavaScript / Emscripten

Post by kanthoney » Sat May 09, 2015 2:48 pm

Oolite is written in objective C, not C++. Even if there were a similar thing for objective C, I'd vote for insanely impractical.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5394
Joined: Wed Feb 28, 2007 7:54 am

Re: JavaScript / Emscripten

Post by another_commander » Sat May 09, 2015 2:51 pm

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.

Crush
Competent
Competent
Posts: 32
Joined: Tue Oct 20, 2009 2:07 pm

Re: JavaScript / Emscripten

Post by Crush » Sat May 09, 2015 7:15 pm

Oops! My bad. I had a brain fart - of course Oolite is written Objective C.

grondilu
Competent
Competent
Posts: 48
Joined: Sat Jun 27, 2015 2:48 pm

Re: JavaScript / Emscripten

Post by grondilu » Sat Jun 27, 2015 2:56 pm

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:

Crush
Competent
Competent
Posts: 32
Joined: Tue Oct 20, 2009 2:07 pm

Re: JavaScript / Emscripten

Post by Crush » Mon Jun 29, 2015 7:59 pm

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.

grondilu
Competent
Competent
Posts: 48
Joined: Sat Jun 27, 2015 2:48 pm

Re: JavaScript / Emscripten

Post by grondilu » Mon Jun 29, 2015 8:37 pm

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.

http://aegidian.org/bb/viewtopic.php?f=5&t=17433

Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 269
Joined: Sat Aug 09, 2014 4:16 pm

Re: JavaScript / Emscripten

Post by Commander_X » Mon Jun 29, 2015 9:06 pm

grondilu wrote: I created a new thread because this one was explicitly about Emscripten.

http://aegidian.org/bb/viewtopic.php?f=5&t=17433
You actually created a new thread called WebGL effort :D

Post Reply