Blender X3D exporter
with Kambi modifications
Blender is a magnificent free open-source 3D modelling software. Latest Blender version already includes an X3D exporter, so you can export your content and open it with our engine tools like view3dscene. We publish here some improvements / fixes / documentation for Blender's X3D exporter.
X3D exporter, for Blender 2.62
blender25_x3d/export_x3d.py: Download the actual exporter.
Copy it over (overwrite) the original Blender exporter, which is in <blender-installation-dir>/2.62/scripts/addons/io_scene_x3d/export_x3d.py.
blender25_x3d/x3d_blender_exporter_notes.txt: Detailed notes how the exporter (both original distributed in Blender and modified by me) works, how you should setup your model. At the end, contains notes about our modifications.
Blender people: feel welcome to take my fixes / changes, and apply them to Blender sources. Michalis will try to report them when he has time. Also feel free to take my notes, and use/convert them for documentation anywhere on Blender site, wiki etc. Permission to use my notes on any license required for official Blender wiki / docs contents is granted.
VRML 97 (2.0) and KAnim exporters, for Blender 2.4x
(Please note that I don't use exporters below anymore, they probably will not work with Blender 2.5x or newer, and I probably will not update them. X3D is the future, and X3D exporter above should be your preferred option. We also hope one day to see animation export to X3D, and then our "KAnim hack" will no longer be useful.)
Script kambi_vrml97_export.py (requires accompanying kambi_vrml97_export_base.py) :
Customized version of vrml97_export.py script (distributed with newer Blender versions, originally from here). Various customizations to improve exporting VRML 2.0 (aka 97) models: creaseAngle exporting (from Blender's set smooth/set solid/auto smooth/degr controls), full texture filename (including possibly relative path prefix) is written, corrected twoside detection, Background is proper VRML, also the model is not rotated to change +Z axis to +Y. Search for "Kambi" string inside files to know more.
The essential exporter class is inside kambi_vrml97_export_base.py, to be shared by kanim_export.py.
May not work with Blender < 2.44.
TODO: some fixes here should be submitted and hopefully merged into VRML 2.0 exporter included with Blender.
-
Some details important for anyone who exports VRML 2.0 from Blender, using original or our script versions. Also explains some reasoning behind changes in kambi_vrml97_export[_base].py as compared to original exporter.
-
kanim_export.py (requires accompanying kambi_vrml97_export_base.py) :
Exporter to kanim (Castle Game Engine animations) format. Thanks to Grzegorz Hermanowicz for starting this !
Subversion
You can grab all this stuff from SVN:
svn checkout http://svn.code.sf.net/p/castle-engine/code/trunk/blender