Page 2 of 4

Re: List of loaders for RUBE scenes

Posted: Sun Jul 13, 2014 7:51 pm
by msm1982
petrc wrote:Is there any planned/in progress loaders for phaser.js and unity?
This is something I'd like as well. Phaser is using p2js now, has anyone made a loader for this yet? I've started the process myself, but to be honest I was still learning box2d when I picked up RUBE and have no experience using p2js, so my progress is not blazingly fast

Re: List of loaders for RUBE scenes

Posted: Wed Jul 16, 2014 4:49 pm
by iforce2d
About Phaser, I spent a couple of days learning the basics and set up a loader for RUBE scenes using box2dweb: http://www.iforce2d.net/rube/loaders/phaser/basic.html

It's a bit rough, in that touch positions are not quite correct due to the offset of the div not being taken into account properly (at least I think that's what's happening). On desktop Chrome at least, I think everything should be working fully. I'll probably tidy this up, add a few more example scenes and add it to the sample loaders sometime.

*** EDIT ***
I made a more detailed example showing simple platform game (ported from the 'planetcute' scene that is included in the sampler loaders of Cocos2d, SFML etc
http://www.iforce2d.net/rube/loaders/ph ... tcute.html

This example is fully commented, but the supporting files could use some attention.

Source: http://www.iforce2d.net/rube/loaders/ru ... sample.zip

Re: List of loaders for RUBE scenes

Posted: Fri Jul 18, 2014 11:36 pm
by msm1982
iforce2d wrote:About Phaser, I spent a couple of days learning the basics and set up a loader for RUBE scenes using box2dweb: http://www.iforce2d.net/rube/loaders/phaser/basic.html

It's a bit rough, in that touch positions are not quite correct due to the offset of the div not being taken into account properly (at least I think that's what's happening). On desktop Chrome at least, I think everything should be working fully. I'll probably tidy this up, add a few more example scenes and add it to the sample loaders sometime.

*** EDIT ***
I made a more detailed example showing simple platform game (ported from the 'planetcute' scene that is included in the sampler loaders of Cocos2d, SFML etc
http://www.iforce2d.net/rube/loaders/ph ... tcute.html

This example is fully commented, but the supporting files could use some attention.

Source: http://www.iforce2d.net/rube/loaders/ru ... sample.zip

Thanks, that is awesome news, I will take a look when I have some time. Great great news if I can use RUBE with Phaser, thanks for the awesome work as usual

Re: List of loaders for RUBE scenes

Posted: Wed Oct 08, 2014 3:11 am
by bunnyhero
iforce2d wrote:Not that I know of. Would it help to use RUBE output with Unity? I thought it had its own capable editor and methods of doing things.
a unity loader would be handy when porting a project from another system. right now i have an HTML5 game prototype that i would rather use unity for. i spent a lot of time fine-tuning a scene and don't want to have to try recreating it in unity by hand.

thanks!

Re: List of loaders for RUBE scenes

Posted: Wed Nov 26, 2014 10:20 pm
by dmagunov

Re: List of loaders for RUBE scenes

Posted: Thu Dec 25, 2014 5:47 pm
by dmagunov
Hello guys,

Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code

Re: List of loaders for RUBE scenes

Posted: Fri Dec 26, 2014 6:43 am
by iforce2d
dmagunov wrote:Hello guys,

Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code
Nice work! I recall from my time using it that Emscripten was not that easy to work with :) By the way, it's a bit hard to tell from your pages which demos are using Emscripten, but it's always the ones called 'box2djs' right? There are so many similar names for js ports of Box2D that I feel something like 'box2d-emscripten' might have made it easier to differentiate.

Re: List of loaders for RUBE scenes

Posted: Fri Dec 26, 2014 10:26 pm
by dmagunov
iforce2d wrote: Nice work! I recall from my time using it that Emscripten was not that easy to work with :) By the way, it's a bit hard to tell from your pages which demos are using Emscripten, but it's always the ones called 'box2djs' right? There are so many similar names for js ports of Box2D that I feel something like 'box2d-emscripten' might have made it easier to differentiate.
Hello Chris,

Already renamed to 'emscripten-box2djs', Thanks!

Re: List of loaders for RUBE scenes

Posted: Fri Jan 09, 2015 8:15 pm
by dmagunov
Hello guys!

The last javascript port of box2d - box2d-html5 for RUBE testbed is here: Demo | Article | Source code

Re: List of loaders for RUBE scenes

Posted: Sat Jan 10, 2015 9:17 am
by iforce2d
dmagunov wrote:box2d - box2d-html5 for RUBE testbed is here:
Wow, you are really cranking out the code! It looks like gravity scale is not being implemented in any of the loaders you have - in the 'joint types' example the 'B' body in the top right should have gravity scale of zero, so that it settles in a position above the ground. You can check the expected behavior in the RUBE player view.

What are your impressions on comparing these Javascript implementations? I like that box2d-html5 is hand-ported and the most up-to-date, with all joint types implemented. Speed-wise, I don't see a whole lot of difference between them. For some reason, the domino tower example behaves a bit strange in most Javascript implementations (box2d-html5 especially). I commented about this here a while ago if you're interested:
https://code.google.com/p/box2d-html5/i ... etail?id=1