Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Bullet JavaScript API
PostPosted: Thu Jan 26, 2012 10:44 am 
Offline

Joined: Thu Jan 13, 2011 9:26 am
Posts: 4
Hi all,

I am very happy that Bullet have set its foot inside the browser via the NativeClient. There are already a few examples on how to use it that way.

However, it makes me sad that it cannot be used together with WebGL. For that, a fast JavaScript API is needed. Of course, there is ammo.js (the JavaScript port of Bullet), but it is very heavy for the browser and it scales very badly.

I just discovered FireBreath, a framework for producing browser plugins. FireBreath is a layer on top of the NPAPI and it is supported in almost all browsers. I have succeeded in compiling Bullet into a FireBreath plugin. By generating bindings to Bullet (which I haven't done), a full and browser-native JavaScript Bullet API can be made. Just like IndexedDB, WebCL and other HTML5 javascript extensions.

The current WebGL game developers are looking for javascript physics engines, but the existing ones are far from satisfying.

Wouldn't a Bullet browser plugin be a good idea?

Stefan
granular.cs.umu.se/browserphysics


Top
 Profile  
 
PostPosted: Sun Jan 29, 2012 7:11 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
Yes, that is a good idea but we lack people to work in it all.

Are you interested in sharing some Javascript bindings?


Top
 Profile  
 
PostPosted: Sat Jun 16, 2012 8:52 pm 
Offline

Joined: Sat Jun 16, 2012 8:47 pm
Posts: 1
Have you seen this bulletjs port? https://github.com/adambom/bullet.js/

It appears to function well, albeit I'd prefer more documentation. About 125kb minified, 220 kb uncompressed. Having only run into it yesterday, I'm trying to put it to use in the coming days.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group