History: RapidXML Dotscene Loader
Source of version: 13
Copy to clipboard
{TRANSCLUDE(page="Layout_div6", img="1736")}This is a dotscene loader based on RapidXML.{TRANSCLUDE}
{maketoc}
!Introduction
This ((DotScene|dotscene)) loader is based on ((New DotScene Loader)) but uses RapidXML instead of TinyXML.
It also implements a simple Ogre terrain loader.
RapidXML is very similar to TinyXML in use, but it's only a single header - and thus extremely lightweight.
{DIV(class="Layout_box13")}%info% If you have questions, etc, use [http://www.ogre3d.org/forums/viewtopic.php?f=5&t=58474|this forum topic].{DIV}
{DIV(class="Layout_box11")}%warning2% The code is currently not as generic as it could be, as the loader class is fished directly out of the ((Ogitor)) repository.
It will be cleaned up and fixed later - most probably as a separate project.{DIV}
---
!Prerequisites
* [http://rapidxml.sourceforge.net/|RapidXML]
---
!The Code
{toc}
An up-to-date version lives in the Ogitor repository:
http://hg.ogitor.org/v0-4
---
!Sample Use
Add the two files above to your project, along with {MONO()}rapidxml.hpp{MONO}, and then it's just a matter of calling {MONO()}parseDotScene{MONO}:
{CODE(wrap="1", colors="c++")}
Ogre::DotSceneLoader loader;
loader.parseDotScene("SampleScene2.xml","General", mSceneMgr);
{CODE}
%note% The loader assumes that the scene is in your Ogre resource locations.
That's it.
The loader will be refactored soon, so stay tuned.
One of the things which will be refactored is the fact that it currently constructs and manages a terrain instance.
---
{TRANSCLUDE(page="seebox")}* ((DotScene))
* ((DotScene Loader with User Data))
* ((MOGRE dotSceneLoader))
* ((Tools: Blender|#dotScene Exporter|Blender dotScene Exporter)) - Exports .scene files from Blender.
* Example Scene Converter - Parses scene file into binary octree file (Works in conjunction with DotSceneManager)
* 3DS Scene Exporter - Exports meshes/lights/materials/.scene file (ogreaddons/3dssceneexporter)
* Octopus - From the [http://www.yake.org/|YAKE] creators - exports .scene files (among other things) from 3DS Max
* [http://www.lfagames.com/help.htm|LFA Scene Manager] for Maya - Exports meshes/lights/materials/.scene file
* ((Maya Scene Exporter)) - Open Source scene exporter, supporting lights,cameras,transformations, references. In Ogre AddOns CVS.
* ((OgreMax Scene Exporter)) - The OgreMax Scene Exporter is a 3DS Max 8/9/2008/2009 exporter plugin that exports scenes to the .scene format.
* ((Ogitor)) - An open source Ogre scene editor ([http://www.ogitor.org/|www.Ogitor.org]){TRANSCLUDE}