Erwin Coumans from Bulletphysics.org has published a Chrome extension that showcases real-time physics in the browser. The sample includes an embedded .blend file. You can also load your own .blend.
The Native Client module executed in this page runs a basic C++ Bullet Physics simulation.
Use the mouse wheel for camera zoom and left mouse button to pick and drag objects. The test embeds a Blender 3D .blend file and it can also load a local .blend file. This is an unmodified version of the Bullet C++ library using the premake build system. See the source code at http://github.com/erwincoumans/experiments.
Check in the Chrome "About Box" that you are using version 15 or later.
Link
15 Comments
This is pretty slick actually ... could open a new era of browser based Blender games, perhaps.
Browser based games are possible with Burster plugin at all browsers.
That's a good point. But I hate downloading random plugins ... I guess it can't hurt though, right? Unity you need to download their plug and unless it's a javascript solution ...
I thought Burster didn't support the Mac or Safari yet?
not yet :(
Nice experiment.
I think it's worth mentioning that there are other bullet solutions that do not require the user to install a plugin. http://www.google.com/search?q=bullet+physics+javascript
It will have a much harder time taking off if people have to install something (Blender used to have a browser plugin), but also needs to run fast. I'm hoping for browsers to catch up quick.
This does not require a plugin installation. It's running through Google's Native Client (NaCL) which is a native code sandbox, meaning it executes native binary instructions (with native efficiency) but it's as safe and secure as Javascript.
It's not unrealistic to assume that Blender itself will run within NaCL browsers like Chrome without a "plugin".
Umm... when I try to run it (in Chrome 15) it says it can't because I'm missing a plugin.... That sounds like it needs one to me.
What operating system?
Yes I should have clarified. NaCL is still in beta, and not enabled by default yet. To turn on NaCL goto "about:flags" and enable "Native Client". I believe that NaCL apps in the Google Webstore actually do work out-of-the-box even without enabling NaCL manually.
https://chrome.google.com/webstore/search/cordy
Both Cordy and Sleepy Jack will use NaCL instead of Unity3D on Chrome browsers.
bullet "pysics" please fix the typo, my ocd is killing me.
updated
This isn't exactly "new." Here is a blog post from the Bullet blog from October:
http://bulletphysics.org/wordpress/?p=333
Some people have mentioned Burster, which is a good solution but requires a plugin. I wonder if this option could ever run on all browsers without an explicit plugin installation...
But why installing plugin is so terrible for peoples? I am sure most of us have a lot of unused programs and browser plugins/extensions. I think it is better to install an open source plugin for some features than to have all in one slowly browsers.