Blender to WebGL exporter

A month ago I posted a preview of some Blender to WebGL JavaScript exports. I haven’t had the time to add that many features to it, but I decided to put it on Google Code anyway. At the moment it exports to:

The export options are very basic at the moment. Hopefully I’ll find time to add more features to it :)

  • vertices
  • indices
  • normals
  • UV coordinates
  • vertex colors

If you’d like to contribute then please give me a shout :)

Here’s the Google Code page: http://code.google.com/p/blender-webgl-exporter/

This is an example of a simple Cube primitive with multiple array modifiers. 60 animation frames are exported.

See the live demo here.

  • Delicious
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • Twitter

8 thoughts on “Blender to WebGL exporter

  1. Hi Dennis,

    It seems that parsing huge Collada files in the browser is a bit taxing on user experience, so exporters such as this will be a good move for SceneJS (another alternative is SceneJS.asset nodes pulling JavaScript through a parser proxy, but that’s another story).

    It would be great to see this extended to generate SceneJS lighting, material, texture nodes etc. – I don’t know Python or Blender well enough, alas.

    But hold off until SceneJS V0.7.0 is released, because there will be some changes to the API in that release!

    cheers,
    Lindsay

  2. Peter says:

    Hi I would like to know how to export more than one object from blender to webgl. I’ve tried native webgl exporter and json exporter and the result was that they only export one object. Is it posible to export more ?
    Thanks for any help

  3. Great stuff Dennis. The exporter works for me in Blender 2.49b but I get a syntax error in latest version 2.57b. My Python and Blender experience isn’t good enough to try and fix it myself. Any ideas as to a remedy?

    Jim

  4. You may consider an open source plug-in Blend4Web as the best Blender to WebGL exporter. It is based on Blender datablocks and natively supports visual shader editing (aka node materials), Blender’s own particle system, NLA editor, Bullet physics which is part of BGE, Blender specific environment maps, vertex colors, vertex groups, armatures, parenting, different lighting models and so on.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>