User Tools

Site Tools


tools:blenderexportscripts

Start Page » Game Development with the Drag[en]gine » Blender3D Export Scripts

Blender3D is an excellent free-software application that is well suited to deliver models and animations needed for any game development project. Incorporating Blender3D authored resources is done via the Drag[en]gine Exporter.

The Drag[en]gine Exporter is a Python script composed of multiple export modules that produce the XML formats that are most suitable for the map editor. The choice of XML here means that you can post process any resources, before importing into the map editor or even write your own exporters for functionality not covered by the engine.

The following file formats can be exported:

  • Models in the *.demodel format describe model geometry, bone weighting information, edge creasing, textures (materials), texture coordinates and LODs.
  • Animations in the *.deanim format describe Actions which are not flagged invisible. Each Action is exported as one move with the same name. For each bone, the position, rotation and size are saved per keyframe. There is no need to align keyframes of all bones as the engine works such details out for you. The playtime is considered from frame 1 up to the last keyframe placed in the Action. A frame rate of 50 frames per second is assumed. Later versions of the script will allow you to alter this value.
  • Rigs in the *.derig format describe the bone structure and bone relationships including physical properties which Blender3D does not typically handle.
  • Occlusion Meshes in the *.deoccmesh format describe similar information to .demodel but exports only model geometry and bone weighting.
  • Navigation Spaces in the *.denavspace format describe similar information to .demodel but exports only model geometry.

Resources exported from Blender3D in these formats can be used immediatelyby the game engine.

Installation

The addon scripts can be installed using the typical Blender3D workflow for installing addons.

Click the “Install” button and select the plugin zip file itself. After installing IGDE, the plugins zip file can be found at:

  • Linux: /usr/share/deigde/tools/blender-addon-dragengine-{version}.zip
  • Windows: %Programfiles%\DEIGDE\Share\tools\blender-addon-dragengine-{version}.zip
    • on Windows 10 onwards this directory becomes variable if installed from MSIX (App Store). Use download link below instead.

You can download the zip file individually from: https://github.com/LordOfDragons/dragengine/releases/download/v1.7.1/blender-addon-dragengine-1.7.zip

Once the plugins are installed, various panels are added to Blender3D's views and properties with the title “Drag[en]gine”. To export resources find the “Drag[en]gine Resources” sub menu in the File→Export menu.

Example Blend Files

Example blend files can be found in the Drag[en]gine Example Projects repository. For a more complete example, look in the Example Application.

You could leave a comment if you were logged in.
tools/blenderexportscripts.txt · Last modified: 2021/11/16 17:51 by dragonlord