Blender dotScene Exporter

From Ogre Wiki

Jump to: navigation, search
Image:ogredotscene2.png

Author: Michael Reimpell
Project: OGRE Add-on Project (blendersceneexporter)
Type: Python Script
Documentation: Help page
Sources: OGRE Addons SVN
Direct script download: ogredotscene.py
Status and bug reports: OGRE Forum Thread


The OGRE dotScene Exporter script converts Blender scenes to XML files defined by the dotscene.dtd of the DotSceneFormat addon project. (Read more about in DotScene.)

The script currently supports the export of mesh objects, cameras, Lamp-, Spot- and Sun-lamps, world horizon colour, global ambient and mist. Meshes themselves must be exported separately with the OGRE Meshes Exporter. Be sure to export all needed meshes at once using a material file named after the scene or manually copy all needed material definitions into a single material file named after the scene (e.g. Scene.scene, Scene.material). Custom object properties can be exported through Logic Properties (F4) however you will need to create a custom loader for Ogre to import these, as they are not part of the dotScene.dtd XML specification.

This tool will give you a XML file named after your scene. Inside you'll find a description of nodes and entities for your objects, cameras and lights and environmental settings. You can use the DSI framework code to load this dotScene file directly into your project. You'll probably want to use the ST_GENERIC scene manager. An alternative is to compile the dotScene file into a binary octree file with the dotSceneOctree Converter Tool. In this case your scene manager would be the dotSceneOctree scene manager which would handle importing the scene for you. Finally you can also use this dotScene file to generate a light map from using the ogrefsrad tool. Refer to OGRE Exporters for available options.

Personal tools
administration